Figures
Abstract
Defect identification is critical for ensuring the reliability and price of fabrics. Defective fabrics result in significant waste and losses. Automatic defect identification using the use of deep learning is a faster and more efficient way to analyze fabric quality, replacing human inspection. Furthermore, both plain and printed textiles are produced concurrently in enterprises; hence, one design should be effective in identifying faults in both types of fabric. As a result, a strong deep learning algorithm must be trained to detect defects within fabric datasets produced during manufacturing with excellent performance and cheap computing costs. This study incorporates a local dataset collected from Chenab Textiles and validated with three publicly available datasets, such as Tildav2, DPFD-DET, and ZJU-Leaper. The experiment provides a comprehensive and diversified range of defective images. To identify textile defects successfully, the suggested approach, universal and optimized YOLOv12, named universal defect detect network (UniDefectNet-Omni) for robust identification of a wide spectrum of fabric defects with multi and diverse types of fabric using YOLOv12 by fine-tuning and optimizing training, integrating high determination feature learning, heterogeneous defect representation, and adaptive augmentation. As a consequence, UniDefectNet-Omni is a lightweight, computationally efficient, and robust framework across varied fabrics.The Chenab textile dataset mean Average Precision (mAP) is 85.1%, precision is 84.5%, and recall is 81.7% over seven separate fabric defect categories. The proposed fine-tuned YOLOv12 outperformed on validated datasets, such as the TILDAv2 dataset, having a mean Average Precision (mAP) score 86.7%, precision about 83.7%, in addition recall about 83.6% over four separate fabric defect categories. DPFD-DET with a mean Average Precision (mAP) score 93.6%, precision is 92.2%, and recall is 87.8% over four separate fabric defect categories. ZJU-Leaper with groups 1, 2, 3, and 4 having a mean Average Precision (mAP) score 93%, precision about 78.1%, in addition recall about 90.3% over twelve separate fabric defect categories.
Citation: Ahmad W, Ashraf R, Mahmood T, Hussain T, Abid MH (2026) Fabric defect detection using fine-tuned Yolo-12. PLoS One 21(7): e0353550. https://doi.org/10.1371/journal.pone.0353550
Editor: Gaurav Arora, King Mongkut’s University of Technology North Bangkok, THAILAND
Received: April 27, 2026; Accepted: June 25, 2026; Published: July 22, 2026
Copyright: © 2026 Ahmad et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The data supporting the findings of this study are publicly available as follows: 1:{CHENAB TEXTILE dataset} is available on Kaggle at {https://www.kaggle.com/datasets/muhammadharisabid/fabricdefectntu} and the original source can be accessed via the Google Drive link provided in the dataset documentation. 2:{TILDA V2 dataset} is available on Kaggle at {https://www.kaggle.com/datasets/muhammadharisabid/tildadefectntu1} and from the original source at {https://universe.roboflow.com/search?q=tilda%20fabric}. 3:{DPFD-DET dataset} is available on Kaggle at {https://www.kaggle.com/datasets/muhammadharisabid/fdntu3rdds} and the original dataset is available on Figshare at {https://figshare.com/articles/dataset/FD_Dataset_7z/25546465?file=45460297}. 4:{ZJU-Leaper dataset} is available on Kaggle at {https://www.kaggle.com/datasets/muhammadharisabid/zju-leaperntu} and from the original Roboflow source at {https://universe.roboflow.com/sant-anna/fabric-defectv6obb2}.
Funding: The author(s) received no specific funding for this work.
Competing interests: The authors have declared that no competing interests exist.
1 Introduction
The clothing sector is among the world’s foundational and significant industries, driving economic growth, job creation, and technological advances. Textiles are especially important in nations like Pakistan, where they account for a sizable portion of exports and industrial production. Textile production, through weaving or spinning with dyeing as well as finishing, is actually a complicated process that requires high levels of precision and reliability [1]. Textile quality assurance is a vital stage throughout the manufacturing process, with substantial implications for product quality, costs, economic efficiency, and the competitive advantage of organizations. Fabric defect identification within the textile industry is a difficult task. Defects in textiles not only influence the look, durability, and longevity of items, but they may also cut pricing by 45% to 65%, emphasizing the crucial need for accurate defect identification. As a result, fast and precise detection of fabric problems is critical for assuring product quality. Accurate detection may prevent faulty items from accessing the market. Whereas identifying possible issues early allows for immediate remedial action to mitigate negative effects on corporate image and consumer satisfaction [2]. Fabric becomes wasted mainly as a result of numerous production defects. This causes financial losses for textile producers throughout Pakistan. Machines’ failure is among the most common sources of these faults. An inspection is necessary to ensure that the manufactured cloth meets market requirements. The inspection requires several competent people. The process is physically demanding and may lead to mistakes due to weariness. Hence, a computerized methodology is necessary for this activity. Deep learning-based identification approaches have gained popularity due to advancements in hardware technology [1].
The majority of fabric defect detection research depends on well-positioned photographs obtained under controlled settings. Real-time manufacturing presents unique issues for dataset collections. Images neither have high quality or perfectly positioned. Modifications in lighting intensity, disruption, and blurriness may drastically change visual perception. Furthermore, the literature addressing this subject may be divided into two major categories: faults in plain textiles and defects within printed fabrics. Textured textiles can be classified further into regular as well as irregular prints [3]. The diversity of printing makes it challenging to distinguish between the pattern and the defect. As a result, various approaches must be followed in each circumstance. There is minimal research on models that can detect defects in plain, typical, and irregularly designed textiles [4]. This paper proposes a universal and optimized YOLOv12 named universal defect detect network (UniDefectNet-Omni). UniDefectNet-Omni is designed for robust identification of a wide spectrum of fabric defects with multiple and diverse types of fabric. UniDefectNet-Omni is trained with the Chenab textile dataset and validated with heterogeneous datasets. The UniDefectNet-Omni is designed for both printed and plain fabrics, including grayscale and color variations. UniDefectNet-Omni can detect complex and fine-grained defects such as stains, knots, broken ends, thread errors, holes, and structural inconsistencies. The proposed UniDefectNet-Omni is considered reliable, optimized, and robust for varying production inspections. In this study,
- Indigenous datasets regarding Chenab Textile, Tildav2, DPFD, and ZJU-Leaper were used, including printed with plain fabric photographs obtained under various production settings.
- The object detection framework UniDefectNet-Omni, being computationally quicker and using fewer resources, was trained.
- YOLOv12 was fine-tuned through a thorough hyperparameter tuning and training workflow, which increases resilience against fluctuations in defect form, size, texture, and illumination conditions.
The remaining articles are grouped as follows: Section two provides an overview of the published research on this issue. Section 3 discusses the models along with collections. Section 4 outlines the findings, whereas Section 5 concludes the work and recommends areas for refinement.
2 Related work
Fabric defect identification has received a great deal of attention in studies. This field included extensive research throughout history. Fabric identification techniques fall into four categories: statistical, spectral, approach, and deep learning. Statistics algorithms include tools such as the co-occurrence matrix and structure. Manual visual examination is the primary approach for detecting fabric defects, but it is ineffective and has an optimal speed of just twelve meters per minute. According to studies, manually fault identification is accurate between 60% and 75% about the time. Furthermore, manual visual inspection was prone to inspector tiredness, experience, including subjective judgment, which might impair the precision of detection findings [5,6]. The defect is identified by contrasting the gray levels of pixels to those around them. The detection outcomes for such techniques are determined by the extent of the windows. Furthermore, tiny defects are hard to discover using such approaches. Spectral-based techniques transform the investigated image towards the regularity domain. To discover faults, calculate the difference between spectral coefficients. This contains the Fourier transformation technique, the Wavelet Transformed method, and the Gabor Transformed method. Choosing the right filter banks is crucial for the efficacy of these approaches, which also need complicated computations. Model-based approaches characterize textural properties of non-defective materials using various measurement methods. Defects are discovered by comparing test images to the established typical texture model [7,8]. Such models, including statistical models, have high computational complexity and are generally unsuccessful at spotting minor defects. The Auto Regression Approach is a sample. Convolutional neural systems excel at expressing features in computer vision problems. Large convolutional networks require streamlined storage and processing. The research on using neural networks to identify fabric faults is separated into two categories: printed textiles and plain materials.
An inflatable neural network utilized YOLO, was proposed [9] to detect fabric problems. This project aimed to lower computing costs and apply the model to practical uses on embedded systems. Deep CNNs have become more accurate; however, this has led to higher computational and storage demands. This may limit their application in low-resource situations like mobile phones and embedded gadgets. The research offers short convolution levels (1 × among 3 × 3) to decrease dimensionality and merge information. Multi-scale feature collection was employed to improve the model’s detection of different fault levels. K-means clustering was employed to determine the optimal dimensions for anchor frames for YOLO identification in the textile defect image collection. A textile image benchmark collection with 3000 images and five classifications yielded a reliability of 97.2%. An unsupervised learning strategy was developed to detect fabric defects, with an emphasis on collecting faulty samples [10]. Adding annotations to datasets manually becomes time-consuming and costly. This research proposes a sophisticated convolutional generative adversarial network.Researchers utilized a normal DCGAN containing a novel encoder element to recreate the query picture without errors. The encoder produced a residual mapping by subtracting the reconstructed original images. This map identifies possible defect areas. The model generates the possibility map with each pixel within the picture, indicating the probability of faults at that location. The probability and residual maps were combined to create a fusion mapping. The map organizes gray levels within defect-free zones and shows deviations in defective spots. The model had an FNR equal to 12.09, a predictive value of about 51.62%, using an FPR equal to 49.91% for TILDA textile pattern and neighborhood samples. Still, the model produced noisy partitioning. Another multitasking fusion module alongside a focused method was developed to identify fabric defects [2]. The system of attention causes networks to focus on defects. Multi-task fusion improves the proposed architectural categorization through feature concatenation. This fusion component combines attention mapping with classification branches to improve classification results, especially for tiny errors. According to the study, the concept is feasible in real-time commercial cases. The suggested model had an F1 index of about 0.987, a recall of 0.994, and an accuracy of 0.98 within the AITEX collection. Although it was just used with basic materials.
A deeply convolutional neural network was suggested to identify printed fabric problems based on real-time visual data from industries [11]. The fault classifications employed were color recognition and print inconsistencies. Experiments were conducted to determine the optimal hyperparameters using a basic CNN model. The rates of learning (0.0003), the volume of batches (16), and the regularization ratio ( = 0.001), especially activating the ReLU, have been finalized. The research used VGG-16 through VGG-19 architectures on the collection. The dataset included self-collected imagery printed with two classes: color patches, particularly misprints. VGG16 outperformed all three designs, achieving a recall of about 0.71, a precision of nearly 0.70, and a precision of 72%. TILDA RGBAAM, together with IMAGE PYRAMID are suggested to identify faults in printed textiles with regular patterns [12]. The first stage was calculating the minimum printing duration for the cloth using RGBAAM. The minimal time was utilized as a foundation to create a Gaussian pyramid using both the defective and template images. The template, while a faulty picture, was compared using an identical measuring approach. Finally, faults in printed cloth were identified through the Laplacian pyramidal repair approach. According to the study, the suggested model accurately determines the periodic element for printing as well as the fault site. Complex patterns take longer for the framework to perform. Zhang et al. proposed an economical MobileNetV2-SSDLite enabling cloud-edge computation [13]. The model uses channel concentration and focused loss to identify minor defects and maintain a balance across faulty and normal data. Experiments were done using four distinct datasets. The suggested technique attained accuracy scores of 84.39 with CF, 93.05 with GF, 71.18% with BPF, and 95.5% with the DRF dataset. Zhao et al. upgraded the faster RCNN, which was added for identifying defects [14].
This approach aims to improve accuracy and convergence when identifying small faults. The quicker RCNN was modified to use a ResNet50 basis rather than VGG16. This resolved the issue of the gradients disappearing due to the Res-Net’s increased depth with residual connections. Another FPN was added for linking low- and high-level characteristics, improving the accuracy of detecting tiny faults. ROI pooling has been used rather than ROI matching. The benefit was that quantization had been reduced, and therefore, nuances were not overlooked. Furthermore, transfer learning has been employed to reduce the duration of training. The suggested architecture was evaluated with self-collected fiber samples. The defects involved ribbon yarn, damaged yarn, holes, and stains. This model achieved a mAp scoring of 94.73% based on the provided dataset. Although the architecture had not been implemented in production. The VGG system was used to classify five distinct fabric faults [15,16]. The study developed an initial processing filter to remove nonlinear mixed noises from pictures and presented a deeply trained CNN framework to detect faults. The research consists of two parts. In the beginning stage, a pseudo-convolutional neural network (P-CNN) is utilized for picture preprocessing. The CNN network has been constructed containing three layers, similar to standard convolutional networks [17,18]. The earliest feature extraction stages employ weight-initiated adaptive window filtering. These filter parameters are initialized through a probability pattern of noise. This PCNN effectively rejects impulsive noise in pictures. Stage 2 includes a CNN to categorize and find problems. The self-collected collection yielded 93.92% accuracy along with 92.51% specificity. Still, the algorithm failed to accurately detect printed textiles with bands versus real-time ordinary fabric samples containing noise.
A dual sparse low-rank decomposing approach was developed to detect faults in printed textiles with irregular and complicated patterns [19]. The suggested model consists of three successive steps. Initially, previous knowledge was retrieved from both kinds of data: templates and defects. The template was previously produced from sparse materials and used as a printable template. The incorrect prior was identified by comparing the faulty printed fabric structure to the template fabric graph. The backdrop and print were separated using a double-dense low-rank decomposition. To segment faults, prominence mAp proved binaries using an optimum threshold segmentation approach. This method helped identify and see faults more clearly. Using a self-collected collection of 98 cloth designs, the model achieved a TPR of about 89.29%, with an FPR of about 0.85. Although the model is not very robust. SDANet (in Siamese FPN) had been scheduled to identify faults in printed textiles [20]. The Siamese featuring pyramid network has been employed to extract multi-scale attributes from both inputs alongside standard/template images. An attention component was developed to identify differences between source and template characteristics. A self-calibration device was developed to reduce positioning errors between the standard along input images. This research employed two well-known datasets: Tianchi Fabric and Tianchi Tile Defects Identification. The model achieved a mAp of about 47.1, with an accuracy of about 83.3%. The approach has the issue of requiring template photos for every design to detect faults. Quite recently, Li et al. trained a strong model using a fabric collection that included both printed with plain materials [21]. The researchers used a cascade R-CNN using a self-collected collection with 19 distinct backdrops and 9 categories, including stains, gaps, wrinkles, and thread ends. Additional strategies were used to increase the model’s precision. The “block identification and detection package merging algorithm” detects tiny and medium-sized faults in high-resolution pictures. To train, big, high-resolution photos were broken into smaller parts. For inference, massive high-resolution picture inputs were divided into smaller pieces and fed into the framework. Detection findings from tiny pieces were integrated to create an ultimate high-resolution picture. Furthermore, a multi-morphology augmented data approach was devised and implemented. Initially, faults were extracted using mean filtering with dynamic thresholding against a white or even black backdrop. Augmentation methods, including scaling, mirroring, trimming, rotation, and morphological processing, have been applied to change the geometry of the faults. The procedure resulted in defects that were randomly integrated into fabric pictures in groupings. The findings indicated a mAp of about 75.3%, although only faults among the dataset’s structures were efficiently recognized.
Nasim et al. used a native dataset that is directly obtained by Chenab Textiles, offering genuine and varied photos that accurately depict the circumstances of actual production [1]. The dataset has been utilized for training YOLOv8, a state-of-the-art network that is lighter and computationally quicker. In contrast, the identical dataset is used to train the YOLOv5 along with MobileNetV2-SSD FPN-Lite networks. Having a mAP of about 84.8%, an accuracy of 0.818, along with a recall of about 0.839 over seven distinct defective classes, YOLOv8n demonstrated the best performance. AdaptiveDet is a flaw detection framework for digitally printed fabric that incorporates adaptive attention methods [22]. To better fit the intricate goal form, the K-means++ method was first used to create the first foundation box. Secondly, a flexible CBS module might be used to reorganize the backbone system, reducing interference from non-critical features, thus extracting higher-level characteristics. The ELAN-EVC package was then used to reconstruct the neck structure such that the framework could learn simultaneous globally and locally based feature visualizations to more precisely capture data regarding small flaws. In order to improve the model’s response towards spatial information and achieve exceptional performance during a challenging background defect detection process, the DyHead structure was finally implemented in the header of YOLOv7-Tiny. According to the experiment’s findings, the suggested model outperforms previous detection models by scoring a mAP@.5 of 93% across the DPFD-DET collection. This indicates the system could prove able to satisfy the need for digitally printed fabric’s high-precision fault identification. Since conventional approaches rely on specified defect classifications, they are fundamentally restricted in their ability to detect invisible problems. In order to solve this problem, Ye et al. provide OW-DLN, an open-world fabric defect identification network that unifies generative reconstruction with detached feature learning across known as well as unknown deficiencies to enable efficient detection and continuous learning of undiscovered defects [22]. There are three parts to the design. Semantic learning characteristics are guided through a Mask-Free Inpainting (MFI) section that reconstructs defective pictures towards defect-free image descriptions. A Decoupled Incremental Learning (DIL) section that separates the feature modeling of recognized and unidentified defects, thereby mitigating catastrophic ignorance, while a Dual-View Pseudo-Label Generator (DVPG) module that produces more dependable pseudo-labels, decreasing the omission of unidentified samples, and permitting the framework to more accurately detect features of unforeseen defects. OW-DLN outperforms state-of-the-art (SOTA) OWOD strategies and traditional fabric defect detection techniques in both open-world and incremental scenarios, as demonstrated by extensive experiments utilizing the Tianchi Benchmark alongside a self-collected textile defect dataset. It achieves an undetermined recall of 0.156 while 0.510 mAP@50 within class expansion conditions.
The inference rapidity, localization precision, and detection consistency of existing fabric defect detection techniques are limited. This paper suggests an improved flaw detection approach (Neekolo) determined by You Only Look Once Version 8 (YOLOv8) to solve these issues [23]. Three significant advances are introduced by the suggested framework: To improve the design of the model, an additional detection layer has been incorporated within the feature retrieval network. combined with shadow convolution to reduce feature overlap along with redundant parameters; The design fusion algorithm integrates Omni-dimensional Dynamic Convolution (ODConv) alongside Deformable Large Kernel Attention (DLKA) for enhancing dynamic shape adaptability along with spatial localization by utilizing the morphological, especially distributional features of fabric imperfections; Global-local spatial and channel details are concurrently optimized by a new Neeko attention technique. Both an accessible multi-category defect collection and a uniquely labeled dataset were used for validation purposes. The suggested model considerably speeds up inference while achieving 1.9% while 10.5% gains in 50% (mAP50) across the corresponding datasets contrasted to the benchmark YOLOv8. These findings highlight the model’s capacity for industrial use as well as its resilience to fault variability.
In addition to highlighting a number of present issues [24], investigating ML algorithms within mechanical behavior evaluation of composite substances and applications highlights possible strengths and future directions in the field. When analyzing the mechanical operation of material composites using machine learning, there are several important challenges to solve. Since reliable, high-resolution samples are often necessary for successful model training, material availability as well as quality are significant concerns. However, because comprehensive laboratory testing along with material characterization is required, getting such information sets may be time-consuming and expensive. Additionally, it is difficult for ML methods to accurately represent the complex microstructural variability along with nonlinear component relations seen in material composites. Another problem that can result in algorithms that operate well with standard training data while badly on unforeseen circumstances is overfitting, particularly when working with small datasets. The challenge of describing mathematical models, especially DL methods, makes their wider implementation more difficult, as researchers frequently need to comprehend how forecasts are created. Furthermore, choosing the optimum feature representations and hyperparameters, with methods for particular material systems, continues to be a major technological challenge. Machine learning (ML) is a useful method for determining the mechanical characteristics of composite substances because of its exceptional ability to represent intricate, nonlinear relationships [25]. The fact that these algorithms can be applied to both regulated and unregulated settings shows how versatile they are. ML has also been used to tackle several parametric issues in engineering, especially industrial operations. Several studies have effectively used machine learning techniques to anticipate the mechanical characteristics of different composites. The advancement of reinforcing composite materials has been remarkably accelerated by the application of machine learning modeling techniques.
The literature evaluation revealed two key research gaps. Investigations are divided between printed and ordinary textiles, resulting in separate focal areas. There currently exists no single model that can accurately address both sorts of fabrics. Second, current research focuses on datasets with well-positioned fabric photographs acquired under controlled settings, as shown in Table 1. Real-time manufacturing typically lacks high-quality picture datasets with accurate positioning. Furthermore, enterprises manufacture both simple and patterned textiles. To reliably detect faults in fabric collections during manufacturing, an effective algorithm is needed. Deep learning methods can help overcome these gaps.
To reliably detect faults in fabric collections during manufacturing, an effective algorithm is needed. Deep learning methods can help overcome these gaps.
3 Proposed methods and materials
This section describes the dataset, incorporating data collection together with preparation processes. The approach of this research and model designs are further discussed.
3.1 Data collection and preprocessing
In this work, we trained the proposed model UniDefectNet-Omni with the publicly available Chenab Textile dataset [1,27]. The proposed model UniDefectNet-Omni was then validated with three publicly available datasets, such as Tildav2 [28,29], DPFD-DET [30], and ZJU-Leaper [31]. The Chenab Textile dataset includes printed with plain cloth photos acquired under various production settings. Shortlisting was conducted on the typicality of a certain fault class. Only a few data samples were collected for uncommon defects. Such as between five and six picture samples collected over between four and five months. Consequently, such classes were eliminated. The dataset covers seven categories: baekra, color difficulties, contamination, trimmed, gray stitching, selvet, and stains. Color difficulties include color and discoloration faults. Data preparation involved creating folders for every group and manually adding photographs from different periods. The dataset was then annotated with Roboflow. To accommodate most detection algorithms, including YOLO, researchers manually created square boundaries for all faulty samples. This data set exhibited a class imbalance issue. Certain classifications, such as stain, have significantly larger sample sizes than others. To address this issue, classes with fewer samples received further augmentation. Augmentation methods, such as picture rotation alongside flipping, were widely used. The dataset has been separated into three categories (train, test, alongside valid) while exported using YOLOv12 plus record formats via Roboflow. Initially, model training yielded unsatisfactory mAP readings for several classes. When retraining the model across these classes, image samples from publicly available datasets with Roboflow were used. The total dataset includes around 2800 observations.
3.2 Defect categories for the Chenab textile dataset
The study covers seven categories: baekra, color difficulties, contamination, cut, gray stitch, selvet, and stain. Colored difficulties include colored spots and deterioration defects. The dataset comprises instances of plain cloth, frequently printed fabric, and erratically printed fabric. Table 2 shows more about the problems reported by the entire industry.
The total dataset includes around 2800 items. Table 3 displays statistics on the total number of instances for each class within the dataset.
3.3 TILDA FabricV2 dataset
The dataset contains 896 images. Every image underwent the pre-processing described below. Fabric is annotated in the YOLOv12 structure. Pixel data is automatically oriented (with EXIF alignment stripped). Resize up to 416 × 416 (Stretching) Grayscale (CCT phosphor). The subsequent augmentation was used to generate three copies of every initial image. The likelihood of a horizontal flip is 50%. The likelihood of a vertical flip is 50%. There is an equal chance of choosing between the subsequent 90-degree alternating: none, clockwise, or counterclockwise [29]. The details of defects are explained in Table 4. The total dataset includes around 896 items. Table 5 displays statistics on the total number of instances for each class within the dataset.
3.4 Dataset innovation and characteristics
The literature part mentions significant datasets, including TILDA [29,32], TIANCHI [33,34], and AITEX [35], which help identify defects efficiently. However, these photographs are often prepared and of good quality, focused primarily on the fault region without distracting background elements. Our initial dataset includes photos captured immediately from the producing line, lacking any operator placement or modification. The “as-produced” technique includes natural defects and background features from the production process. This dataset provides an authentic training and forecasting context for detecting defects algorithms.
3.5 DPFD-DET dataset
Each of the four different forms of defects within colored fabrics, such as Oil, Hole, Cutting, as well as Crack are represented by 720 photographs in the collection, with around 180 images given category. This collection has substantial academic importance, especially in the field regarding computer vision, where it can be an essential tool for creating standard, deep learning, including image processing techniques for tasks like segmentation, object recognition, and classification. The incorporation of it has the potential to greatly accelerate improvements within textile designing and manufacturing techniques. The details of defects are explained in Table 6. The total dataset includes around 720 items. Table 7 displays statistics on the total number of instances for each class within the dataset.
3.6 ZJU-Leaper dataset
ZJU-Leaper, which offers 98,777 fabric photos with detailed annotations from 19 different fabric categories and five groups. Such current fabric datasets, which are made up of individual but non-time-series cloth photographs and were created under idealized fabrication settings, are invaluable resources. In this work, we selected ZJU-Leaper with groups 1, 2, 3, and 4 having 6992 images with twelve defect categories such as ‘broken-end’, ‘coffee-stain’, ‘double-ends’, ‘double-picks’, ‘ink-stain’, ‘knots’, ‘ladder’, ‘missing-picks’, ‘oil-stain’, ‘pin-marks’, ‘slip-knot’, and ‘thread-out’. The details of defects are explained in Table 8. The total dataset includes around 6992 items. Table 9 displays statistics on the total number of instances for each class within the dataset.
3.7 Proposed methodology
A broad summary of the technique is represented in Fig 1. The dataset gathered by Textile industry with Tilda was enhanced and annotated. The scenario used required speedier designs that were capable of being deployed in low-resource situations. The system has been developed for high-speed fabric manufacturing facilities, where cameras have been carefully placed to scan continually created fabric and spot problems quickly. After reviewing publications, the situation was determined that YOLO represents the most appropriate object identification method for these cases.
YOLO approaches object detection as simply an isolated regression issue. YOLO analyzes the whole image in a single forward run through the algorithm, while other models examine regions that are significant independently, which takes more time. Such an approach minimizes computing costs and delays. The proposed UniDefectNet-Omni maintains the original backbone, detection head, and neck of YOLO-V12, unlike modifying its architecture with additional transformer, attention, or feature fusion components. The proposed solution has the ability of a unified strategy for detection by combining high-resolution training, diverse representations, and adaptive augmentation to enhance the performance of detection across various fabric defect categories, characteristics, and generalization capacity. As a result, YOLOv12 is taught to spot problems. Following model training, projections were produced for test data samples. Adding photos from publicly accessible datasets increased the accuracy of classes with lower mAPs.
3.7.1 Libraries.
The code is implemented in Jupyter Notebook using the Kaggle platform. The specific libraries are imported. The first library is Ultralytics. Which develops innovative (SOTA) YOLO modeling based on numerous years of fundamental research in image processing and Intelligence. They excel with object identification, observing, instance division, image classification, including posture estimation. Squarify provides a Processing module that performs its squarify treemap structuring technique. It splits an area through rectangles, each of which is sized according to a collection of values, with the rectangles designed to be as square as feasible. Matplotlib uses the Pillow package to load picture data. This is simply a 24-bit RGB PNG picture (8 bits per R, G, and B channel). Depending on where receive data, it will also come across RGBA pictures, which enable transparency, and single-channel monochrome (luminosity) images.
3.7.2 Datasets acquisition.
Datasets are split into three sub-directories train, test, and validation. Labels are separated into three sub-directories. Before training the machine vision model, it requires labeled information. The accuracy of the labels, called annotations, determines the performance of the model. Datasets with train, test, and validation sets can be defined in Equation 1–3.
where are images in training, validation, and test sets,
are the corresponding labels, and
are the number of samples in each set.
3.7.3 Trying Yolo-12 on pre-trained images.
In the next step, we tried defect detection on pre-trained test images of both datasets. The images in Figs 2–5 show that no defect is detected in the image from all datasets.
3.7.4 Hyperparameters adjustment.
proposed model was quick, accurate, and simple to use, while they are regularly revised to improve performance and versatility. Various hyperparameter configurations were utilized to train the YOLOv12 networks. The standard hyperparameter choices for YOLOv12, including image dimensions 640, and periods 200, alongside batch size 64, yielded optimal results. The beginning and end learning rates were 0.005 with 0.01, respectively, with a momentum equal to 0.97 with weight decay equal to 0.0005. To help sustain the training sessions, a 7-epoch warming-up phase is also included. The following YOLO settings were used:hsv_h = 0.025, hsv_s = 0.7, hsv_v = 0.5, mosaic = 0.3. Dropout is set to 0.025 as Deactivates a subset of the neural networks (units) within that layer during each training session. This indicates that the chosen neurons’ outputs have been configured to zero, therefore they have no impact on the subsequent pass during the back-propagation process for that particular sample. Patience is set to 35 for epochs wait for no obvious progress before discontinuing training. Optimizer is set to auto for auto adjustment of optimization through the training process. Similar was the case with yolov12. It was cloned using ultrasonics. A “data.yaml” file exported in YOLOv12 format from roboflow was provided to the model for training. YOLOv12 was trained for 200 epochs and an image size of 640 with default parameters to produce approximately similar results; hence, YOLOv12 was chosen as the final model. All key equations representing parameters are as follows Equations 4–11.
Here learning Rate(ep) at epoch ep. lri is the initial learning rate = 0.005. lrf is final learning rate = 0.01 and Fep are total epochs = 200 for Textile industry dataset and 1 for Tildav2.
Where is momentum = 0.97, lrc is the current learning rate,
is loss in Gradient and
is the models weight. The adjusted equation is as under
Here L2total is total regularization and is weight decay = 0.0005.
Where do is dropout = 0.025
Where denotes the initial learning rate at epoch ep. The adjusted equation is as follows:
Mosaic combined four images in one for a broader context. Saturation transformation
Value transformation
Mosaic augmentation
where P(Imgmosaic) = 0.3.
Training Jupyter Notebook through Kaggle, having a T4 GPU and 16GB GPU memory, was used for training, while inference was performed together with the Ultralytics architecture. The data set output by roboflow using the yolov12 format includes a “data.yaml” item with information on any number of categories and training, testing, and validation folders. Ultralytics was used to configure the YOLOv12 packaging, and the algorithm received a “data.yaml” file as its training data. The image size and the total number of intervals were specified as 640 by 200, respectively. The average training time was approximately 8 hours.
4 Results and discussion
This section presents the experimental results and provides a comprehensive discussion of the findings. The proposed approach is evaluated based on precision and recall, and the outcomes are compared with state-of-the-art methods to highlight its strengths. Mean average precision, mostly written as mAP, is used mainly as an evaluation metric in this study. However, along with mAP, recall(R) and precision(P) have also been displayed for UniDefectNet-Omni. The details of results generated by UniDefectNet-Omni are as overall mAp50 for the Chenab textile dataset is 85.1%, for the Tilda v2 dataset is 86.7%, for the DPFD dataset is 93.6%, and for the ZJU-Leaper dataset is 93%. Similarly, mAp95 for the Chenab textile dataset is 57.5%, for the Tilda v2 dataset is 59.5%, for the DPFD dataset is 60.1%, and for the ZJU-Leaper dataset is 51.5%. The individual class accuracy for the Chenab textile dataset shows remarkable results for contamination class with mAP of 98.7%, stain with mAP 93.4%, cut with mAP 81.6%, Baekra with mAP 85%, Selvet with mAP 84.7%, color issues with mAP 71.7%, and gray stitch with mAP 80.9%. Precision and recall values for all classes are 84.5% and 81.7%. The values can be viewed in Table 10.
The individual class precision for the Tilda v2 dataset shows results for the oil spot class with a mAp of 98.9%, objects with mAp of 91.8%, hole with mAp of 87.4%, and thread error with mAp 68.5%. Precision and recall values for all classes are 83.7% and 83.6%. The values can be viewed in the Table 11.
The individual class accuracy for the DPDF dataset shows results for the oil spot class with mAP of 98.9%, hole with mAP of 97%, cutting with mAP of 85.4%, and cracks with mAP 93%. Precision and recall values for all classes are 92.2% and 87.8%. The values can be viewed in Table 12.
The individual class accuracy for the ZJU-Leaper dataset shows results for Broken-End, Coffee-Stain, Ink-Stain, Ladder, Oil-Stain, Pin-Marks, Slip-Knot, and Thread-Out classes with mAP of 99.5%, Double-Ends with mAP of 85.3%, Double-Picks with mAP of 91.6%, Knots with mAP of 76.1%, and Missing-Picks with mAP 67.2%. Precision and recall values for all classes are 78.1% and 90.3%. The values can be viewed in Table 13.
4.1 The learning curve for box loss for the Textile industry dataset
A learning curve provides a representation showing model performance during learning across experiences or time. Figure 6 below shows that training and validation loss gradually decreased for the Textile industry dataset across epochs or during model training.
4.2 The learning curve for Classification loss for the Textile industry dataset
The classification loss graph represents model learning for data classification over training. Figure 7 below represents classification loss for the Textile industry dataset. Classification loss is gradually decreasing for training and validation. This shows showing the model is accurately trained and validated.
4.3 The learning curve for distribution focal loss for the Textile industry dataset
Using the Distribution Focal Loss algorithm solves class imbalance during classification with semantic segmentation by elaborating on the Focal Loss functional concepts. Focal Loss increases losses for details with a big discrepancy between anticipated and actual products, thereby forcing neural networks to focus on more difficult-to-classify cases. This is especially effective in cases of class imbalance. Figure 8 shows showing the distribution focal loss is decreasing. It means the Textile industry dataset is properly trained and data loss is also decreasing.
4.4 Confusion matrix for Textile industry dataset
A confusion matrix includes a table designed to describe the effectiveness of a classification method. A confusion matrix depicts and analyzes the performance of a technique for classification. The confusion matrix in Fig 9 represents 68 samples of baekra class that are true and predicted true and 12 samples are misclassified. The 20 samples of color issues class true classified and 4 are misclassified. The 54 samples of contamination class are truly classified and 3 are misclassified. The 85 samples of cut class are truly classified and 12 are misclassified. The 68 samples of gray stich class are true and truly predicted with 21 are misclassified. The 106 samples of selvet class are truly classified and 28 are misclassified. The 290 samples of stain class are truly predicted and 24 are misclassified. Defects having low contrast, irregular boundaries, and a small size failed to activate discriminative structures; the model interpreted them as background. Similarly, texture variations, wrinkles, illumination changes, or noise resemble a defect pattern learned as a defect-free region. The model can be overfit with local features. The class stain has large samples, which limits feature generalization.
4.5 Validation inferences for the Textile industry dataset
The following Fig 10 shows defect detection on the Textile industry fabric dataset’s validation data. Red boxes indicate predicted defects and blue for reality-based truth annotations. Several images are narrowly localized defects truly detected with labeled using appropriate boxes. The model tackles both structural and surface defects. Both large and small defects are detected by the model. It indicates appropriate performance for multi-scale datasets.
4.6 Detected object through fine-tuned Yolo-12 for Textile industry dataset
The detection result in Fig 11 shows that the confidence score of the cut defect is 88%. It means our Fine-tuned Yolo-12 is considered a State-of-the-art detection model.
4.7 The learning curve for box loss for the Tilda dataset
A learning curve provides a representation showing model performance during learning across experiences or time. Fig 12 below shows that training and validation loss gradually decrease for the Tildav2 dataset across epochs or during model training.
4.8 The learning curve for the Classification loss for the Tilda dataset
The classification loss graph represents model learning for data classification over training. Fig 13 below represents classification loss for the Tildav2 dataset. Classification loss is gradually decreasing for training and validation. This shows showing the model is accurately trained and validated.
4.9 The learning curve for distribution focal loss for the Tilda dataset
Using the Distribution Focal Loss algorithm solves class imbalance during classification with semantic segmentation by elaborating on the Focal Loss functional concepts. Focal Loss increases losses for details with a big discrepancy between anticipated and actual products, thereby forcing neural networks to focus on more difficult-to-classify cases. This is especially effective in cases of class imbalance. Fig 14 shows that the focal loss in the distribution is decreasing. It means the Tildav2 dataset is properly trained and data loss is also decreasing.
4.10 Confusion matrix for Tilda dataset
A confusion matrix includes a table designed to describe the effectiveness of a classification method. A confusion matrix depicts and analyzes the performance of a technique for classification. The confusion matrix in Fig 15 represents 21 samples of hole class that are true and predicted true and 1 samples are misclassified. Of the 23 samples of objects class is true classified and 11 are misclassified. The 23 samples of oil spot class are truly classified and 3 are misclassified. The 21 samples of thread error class are truly classified and 17 are misclassified. The thread errors are very similar to fabric structures. The extracted features can be overlapped with regular patterns. Similarly, holes and objects may have edge structures with occlusion effects.
4.11 Validation inferences for the Tilda dataset
The following Fig 16 shows defect detection on the Tildav2 fabric dataset’s validation data. Boxes indicate predicted defective and reality-based truth annotations. Several images are narrowly localized defects truly detected with labeled using appropriate boxes. The model tackles both structural and surface defects. Both large and small defects are detected by the model. It indicates appropriate performance for multi-scale datasets.
4.12 Detected object through fine-tuned Yolo-12 for Tilda dataset
The detection result in Fig 17 shows the confidence score of oil spot defect is 84%. It means our Fine-tuned Yolo-12 is considered a State-of-the-art detection model.
4.13 The learning curve for box loss for the DPFD dataset
A learning curve provides a representation showing model performance during learning across experiences or time. Fig 18 below shows that training and validation loss gradually decrease for the DPFD dataset across epochs or during model training.
4.14 The learning curve for the classification loss for the DPFD dataset
The classification loss graph represents model learning for data classification over training. Fig 19 below represents the classification loss for the DPFD dataset. Classification loss is gradually decreasing for training and validation. This shows showing the model is accurately trained and validated.
4.15 The learning curve for distribution focal loss for the DPFD dataset
Using the Distribution Focal Loss algorithm solves class imbalance during classification with semantic segmentation by elaborating on the Focal Loss functional concepts. Focal Loss increases losses for details with a big discrepancy between anticipated and actual products, thereby forcing neural networks to focus on more difficult-to-classify cases. This is especially effective in cases of class imbalance. Fig 20 shows that the distribution of focal loss is decreasing. It means the DPFD dataset is properly trained, and data loss is also decreasing.
4.16 Confusion matrix for DPFD dataset
A confusion matrix includes a table designed to describe the effectiveness of a classification method. A confusion matrix depicts and analyzes the performance of a technique for classification. The confusion matrix in Fig 21 represents 28 samples of the oil-spot class that are true and predicted true, and 0 samples are misclassified. The 17 samples of hole class are truly classified, and 2 are misclassified. The 12 samples of the cutting class are truly classified, and 8 are misclassified. The 15 samples of the cracks class are truly classified, and 0 are misclassified. The wide samples are concentrated along the a diagonal, showing strong class discrimination. The small number of Hole = 1, Oil spot = 2, Crack = 3, and Cutting = 3 instances were categorized as background. It suggested that some regions of defects were not appropriately distinctive for reliable detection.
4.17 Validation inferences for the DPFD dataset
The following Fig 22 shows defect detection on the DPFD dataset’s validation data. Boxes indicate predicted defective and reality-based truth annotations. Several images are narrowly localized defects truly detected with labeled using appropriate boxes. The model tackles both structural and surface defects. Both large and small defects are detected by the model. It indicates appropriate performance for multi-scale datasets.
4.18 Detected object through fine-tuned Yolo-12 for DPFD dataset
The detection result in Fig 23 shows the confidence score of the oil spot defect is 91%. It means our Fine-tuned Yolov-12 is considered a State-of-the-art detection model.
4.19 The learning curve for box loss for the ZJU-Leaper dataset
A learning curve provides a representation showing model performance during learning across experiences or time. Fig 24 below shows that training and validation loss gradually decrease for the ZJU-Leaper dataset across epochs or during model training.
4.20 The learning curve for the classification loss for the ZJU-Leaper dataset
The classification loss graph represents model learning for data classification over training. Fig 25 below represents the classification loss for the ZJU-Leaper dataset. Classification loss is gradually decreasing for training and validation. This shows showing the model is accurately trained and validated.
4.21 The learning curve for distribution focal loss for the ZJU-Leaper dataset
Using the Distribution Focal Loss algorithm solves class imbalance during classification with semantic segmentation by elaborating on the Focal Loss functional concepts. Focal Loss increases losses for details with a big discrepancy between anticipated and actual products, thereby forcing neural networks to focus on more difficult-to-classify cases. This is especially effective in cases of class imbalance. Fig 26 shows that the distribution of focal loss is decreasing. It means the ZJU-Leaper dataset is properly trained, and data loss is also decreasing.
4.22 Confusion matrix for ZJU-Leaper dataset
A confusion matrix includes a table designed to describe the effectiveness of a classification method. A confusion matrix depicts and analyzes the performance of a technique for classification. The confusion matrix in Fig 27 represents 5 samples of broken-end class that are true and predicted true, and 0 samples are misclassified. The 6 samples of coffee-stain class are truly classified, and 0 are misclassified. The 10 samples of double-ends class are truly classified, and 0 are misclassified. The 14 samples of the double-picks class are truly classified, and 9 are misclassified. The 3 samples of ink-stain class are truly classified, and 0 are misclassified. The 6 samples of konts class are truly classified, and 5 are misclassified. The 1 sample of ladder class is truly classified, and 1 is misclassified. The 19 samples of the missing-picks class are truly classified, and 11 are misclassified. The 3 samples of oil-stain class are truly classified, and 1 is misclassified. The 7 samples of pin-marks class are truly classified, and 1 is misclassified. The 7 samples of slip-kont class are truly classified, and 0 are misclassified. The 6 samples of thread-out class are truly classified, and 0 are misclassified. The dominant error source is samples with background, specifically Knots, Broken-End, and Missing picks. This indicates that the model is suitable for defect detection but weak for visual contrast, small spatial level, irregular boundaries, or textures. The feature representations learning is highly discriminative. The remaining errors were associated with defect sensitivity and defect localization instead of class ambiguity.
4.23 Validation inferences for the ZJU-Leaper dataset
The following Fig 28 shows defect detection on the ZJU-Leaper dataset’s validation data. Boxes indicate predicted defective and reality-based truth annotations. Several images have narrowly localized defects that are truly detected and labeled using appropriate boxes. The model tackles both structural and surface defects. Both large and small defects are detected by the model. It indicates appropriate performance for multi-scale datasets.
4.24 Detected object through fine-tuned Yolo-12 for ZJU-Leaper dataset
The detection result in Fig 29 shows the confidence score of the coffee-stain defect is 88%. It means our Fine-tuned Yolo-12 is considered a State-of-the-art detection model.
4.25 Discussion
The proposed UniDefectNet-Omni proves strong defect detection ability with diverse defects, such as colored, grayscale, plain, and printed fabrics. The conventional YOLO defect detectors only optimized specific fabrics or limited fabric defect categories. Whereas UniDefectNet-Omni is a unified solution for defect-invariant representations for diverse fabrics. The proposed model is successful for contamination, structural, and texture-related defects with a single model with stabilizing computational efficiency. While transformer-based frameworks such as OW-DLN and AdaptiveDet introduced supplementary architectural complexity. UniDefectNet-Omni attains competitive performance with operative feature learning and generalization of defect representation, making it more appropriate for across-the-board industrial inspection. While comparing with the recent study [26], the proposed UniDefectNet-Omni has improved consistency for stain and structural defect detection. Unlike [23], that highlight global accessible fields, UniDefectNet-Omni has balanced augmentation, learning ability for high resolution, and effective small-scale defect localization, such as thread-out, pin marks, and cracks. The work of [26] focused on open-world flexibility proposed UniDefectNet-Omni, which is stable without complex decoupled learning approaches. Furthermore, comparing with [22] which only targeted complicated printed fabrics, the proposed work maintains modest performance with both simple and high-textured backgrounds, proving strong generalization ability. While comparing mAp levels from several past investigations in Fig 30.
Table 14 presents a comprehensive comparison of the proposed model with state-of-the-art approaches across multiple textile defect datasets using mAP@0.5 as the evaluation metric. UniDefectNet-Omni achieved higher results, achieving an aggregate mAP of about 85.1% across the Chenab textile sample, 86.7% for the Tildav2 sample, 93.6%, for the DPFD sample, and for ZJU-Leaper with groups 1, 2, 3, and 4 having 93%. UniDefectNet-Omni outperformed other algorithms in contamination, baekra, selvet, and stain detection in Chenab textile dataset. Favorable outcomes were achieved with high percentages regarding cut, color difficulties, and gray stitching. In Tildav2 objects defects achieved 91.8% and oil spot is 98.9% detected. These are also favorable results. In DPFD dataset oil-spot achieved 98.9% detection and hole detection is 97%, that is also high performance indication. In ZJU-leaper dataset, most of defect classes accurately detected and model outperformed current studies. The results are 99.5% for Broken-End, Coffee-Stain, Ink-Stain, Ladder, Oil-Stain, Pin-Marks, Slip-Knot and Thread-Out. In certain courses, UniDefectNet-Omni was surpassed. This strategy improves accuracy. This conclusion shows the complexities of techniques since performance advances in certain areas might not correlate to overall benefits.
The detection of faults was accurate, with well-defined boundary lines and high confidence ratings. The degree of trust for the threshold class within the test specimen is quite high, with values of 0.88 for the Chenab textile collection, 0.84 within Tildav2, 0.91 in the DPFD dataset, and 0.88 in the ZJU-Leaper dataset. The newest object identification model, UniDefectNet-Omni, may identify faults in both plain and patterned textiles, including regular and uneven designs. The results indicate that serious problems may be accurately discovered. The mAp frequency “thread error” within the Tildav2 and Missing-Picks in ZJU-Leaper datasets seems rather low. To improve, consider including additional data samples within that course to ensure effective pattern learning. The current analysis focuses on a limited number of typical problems within Pakistan’s textile business and relies only on producer data. Adding more variants to the collection can help increase accuracy.
4.25.1 Ablation study for adjusted hyper-parameter.
The adjusted training parameters for UniDefectNet-Omni were justified through an ablation analysis on the Chenab Textile Dataset. The varied hyperparameters were applied, and other settings remained unchanged. The mAP@50 is a major performance evaluation metric. Table 15 shows ablation results.In this Table presents the impact of different training configurations on model performance in terms of mAP@50%. Several hyperparameters were systematically varied, including input image size, learning rate, Mosaic augmentation ratio, and warmup epochs.
The outcomes indicated the learning rate of 0.005 achieved the top detection accuracy having stable convergence. High learning rates showed oscillatory training performance, whereas lower rates presented optimization. The resolution 640 × 640 showed effective stability for computational cost and feature preservation. The generalization improved through restrained mosaic augmentation by revealing the model for diverse patterns of defects. The warm-up trained with 7 epochs is useful for stabilizing the gradient during the early stages of optimization. On the basis of these hit-and-trial methods, adjusted hyperparameters were configured and adopted for experiments.
5 Conclusions and future work
This work proposed UniDefectNet-Omni, a unified defect detection solution for plain and printed fabrics. The proposed model is capable of accurately identifying diverse defects such as structural, texture-oriented, and contamination. The proposed UniDefectNet-Omni achieves high mAP across diverse datasets and explores its robustness. The results clarify that optimal training with a scalable architecture can efficiently explore small size defect, background complexity, and texture variations. Our method includes training and evaluating UniDefectNet-Omni, a substance detection model, using the Chenab Textile, Tildav2, DPFD, and ZJU-Leaper datasets. YOLO-V12 / UniDefectNet-Omni was chosen for its computing speed and resource efficiency for defect detection. UniDefectNet-Omni achieved a mAp of around 85.1% for the Chenab textile collection, which included samples for 7 defect categories (stains, cut, contamination, bakery, gray thread, color problems, and selvet). During the second testing for 4 defect types (hole, oil spot, thread fault, and objects), UniDefectNet-Omni achieved an mAp equivalent to 86.7% for the Tildav2 dataset. In the third DPFD dataset, the mAP score 93.6%, with four defect classes, such as Oil, Hole, Cutting, and Crack. ZJU-Leaper with groups 1, 2, 3, and 4 having mAP score 93% over twelve separate fabric defect categories such as ‘broken-end’, ‘coffee-stain’, ‘double-ends’, ‘double-picks’, ‘ink-stain’, ‘knots’, ‘ladder’, ‘missing-picks’, ‘oil-stain’, ‘pin-marks’, ‘slip-knot’, and ‘thread-out’. Despite high performance, the proposed UniDefectNet-Omni has certain limitations. The detection may face issues for low-contrast images, such as jeans fabrics. The model is not incorporating transformer mechanisms, which may enhance feature representation. Similarly, exclusion of rare defects to reduce class imbalance and training stability may affect the model’s generalization for unseen defects.
We plan to test this framework in real time within high-speed textile manufacturing scenarios. To incorporate the model’s training into existing production procedures, sophisticated cameras using high-speed internet connections will be mounted above the moving sheets. Bright illumination will ensure excellent image quality. This machine will operate on Ubuntu or Windows, using a deep learning platform installed to configure the environment. The trained UniDefectNet-Omni modeling weights shall be loaded while set up for real-time interpretation. A database would be required to store detection findings. Visualization libraries may be used to provide a user experience that displays real-time outcomes of detection, including fault analysis, as long as the system runs smoothly. Furthermore, an explainable defect detection model will be trained and validated for deeper defect analysis. The structure can be incorporated with camera-based inspection in manufacturing. Such automation may reduce manual reliance. Early defect detection will reduce material waste, rework cost, and improve production. Similarly, early detection can contribute to the rejection rate, customer satisfaction, and lower quality costs.
References
- 1. Nasim M, Mumtaz R, Ahmad M, Ali A. Fabric Defect Detection in Real World Manufacturing Using Deep Learning. Information. 2024;15(8):476.
- 2. Zhou L, Ma B, Dong Y, Yin Z, Lu F. DCFE-YOLO: A novel fabric defect detection method. PLoS One. 2025;20(1):e0314525. pmid:39808621
- 3. Kang X. Research on fabric defect detection method based on lightweight network. Journal of Engineered Fibers and Fabrics. 2024;19.
- 4. Das Gupta A, Sadek Z, Hossain MS, Toha TR, Mondol A, Habiba SU, et al. An approach to automatic fault detection in four-point system for knitted fabric with our benchmark dataset Isl-Knit. Heliyon. 2024;10(17):e35931. pmid:39676831
- 5. Zhu D, Pan R, Gao W, Zhang J. Yarn-Dyed Fabric Defect Detection Based On Autocorrelation Function And GLCM. Autex Research Journal. 2015;15(3):226–32.
- 6. Niaz AA, Ashraf R, Mahmood T, Faisal CMN, Abid MM. An efficient smart phone application for wheat crop diseases detection using advanced machine learning. PLoS One. 2025;20(1):e0312768. pmid:39775380
- 7. Jia L, Chen C, Liang J, Hou Z. Fabric defect inspection based on lattice segmentation and Gabor filtering. Neurocomputing. 2017;238:84–102.
- 8.
Abid MH, Ashraf R, Mahmood T, Faisal CN. A robust technique for detection of hybrid adversarial attack in multi-modal medical imaging. Applied Soft Computing. 2026;:114842.
- 9.
Grabisch M, Nguyen HT, Walker EA. Pattern recognition and computer vision. Fundamentals of uncertainty calculi with applications to fuzzy inference. Springer. 1995. 261–92.
- 10. Hu G, Huang J, Wang Q, Li J, Xu Z, Huang X. Unsupervised fabric defect detection based on a deep convolutional generative adversarial network. Textile Research Journal. 2019;90(3–4):247–70.
- 11.
Chakraborty S, Moore M, Parrillo-Chapman L. Automatic defect detection of print fabric using convolutional neural network. arXiv preprint. 2021. https://doi.org/10.48550/arXiv.210100703
- 12. Jing J, Ren H. Defect Detection of Printed Fabric Based on RGBAAM and Image Pyramid. Autex Research Journal. 2021;21(2):135–41.
- 13. Zhang J, Jing J, Lu P, Song S. Improved MobileNetV2-SSDLite for automatic fabric defect detection system based on cloud-edge computing. Measurement. 2022;201:111665.
- 14. Jia Z, Shi Z, Quan Z, Shunqi M. Fabric defect detection based on transfer learning and improved Faster R-CNN. Journal of Engineered Fibers and Fabrics. 2022;17.
- 15.
Van Gastel A, Scataglini S, Zelck S, Denteneer L, Bossche HV, Verwulgen S. Towards Wearable Technology Assisting in Training and Risk Assessment Against Musculoskeletal Disorders for Maritime Workers. Lecture Notes in Networks and Systems. Springer International Publishing. 2021. 368–76. https://doi.org/10.1007/978-3-030-79763-8_44
- 16. Abid MH, Ashraf R, Mahmood T, Faisal CMN. Multi-modal medical image classification using deep residual network and genetic algorithm. PLoS One. 2023;18(6):e0287786. pmid:37384779
- 17. Ashraf R, Ijaz Y, Asif M, Haider KZ, Mahmood T, Owais M. Classification of woven fabric faulty images using convolution neural network. Mathematical Problems in Engineering. 2022;2022(1):2573805.
- 18. Ashraf R, Habib MA, Akram M, Latif MA, Malik MSA, Awais M, et al. Deep Convolution Neural Network for Big Data Medical Image Classification. IEEE Access. 2020;8:105659–70.
- 19. Liu A, Yang E, Wu J, Teng Y, Yu L. Double sparse low rank decomposition for irregular printed fabric defect detection. Neurocomputing. 2022;482:287–97.
- 20. Zheng Y, Cui L. Defect detection on new samples with siamese defect-aware attention network. Appl Intell. 2022;53(4):4563–78.
- 21. Li L, Li Q, Liu Z, Xue L. Effective Fabric Defect Detection Model for High-Resolution Images. Applied Sciences. 2023;13(18):10500.
- 22. Su Z, Zhang X, Li J, Shao Y, Li P, Zhang H. AdaptiveDet: Defect Detection for Digital Printing Fabric with Complex Background. Journal of Natural Fibers. 2025;22(1).
- 23. Zhou Z, Liu H. A fabric defect detection model based on deformable large kernel convolution and feature attention. Engineering Applications of Artificial Intelligence. 2026;165:113382.
- 24. Sharma H, Arora G, Singh MK, Ayyappan V, Bhowmik P, Rangappa SM, et al. Review of machine learning approaches for predicting mechanical behavior of composite materials. Discov Appl Sci. 2025;7(11).
- 25. Sharma H, Arora G, Bhowmik P, Singh MK, Ayyappan V, Sehgal AK, et al. Predictive modeling of thermoplastic nanocomposites using machine learning algorithms. Discov Mechanical Engineering. 2025;4(1).
- 26. Ye Q, Hou J, Yang Y, Xue J, Liu Z. OW-DLN: A novel open-world decoupled learning network for fabric defect detection. Pattern Recognition. 2026;175:113112.
- 27.
Dataset C. https://drive.google.com/drive/folders/1oB2fan6GVGG83Eog66Ad4wK2ZoOjwu3F
- 28.
Andersen I. 2021. https://universe.roboflow.com/irvin-andersen/tilda-fabric
- 29.
Andersen I. TILDA Fabric Dataset. 2021. https://universe.roboflow.com/irvin-andersen/tilda-fabric
- 30.
Unknown Author (s). Fabric defects object detection dataset. 2024. https://figshare.com/articles/dataset/FD_Dataset_7z/25546465
- 31.
sant anna. Fabric defect v2 object detection model (v1). Roboflow Universe. 2023. https://universe.roboflow.com/sant-anna/fabric-defectv6obb2
- 32. Stavolo A, Cavrini G, Romero-Ortuno R. A Bibliometric Review of the Utilization of TILDA Data in the Literature. Age and Ageing. 2024;53(Supplement_4).
- 33.
Tianchi. Smart Diagnosis of Cloth Flaw Dataset / Cloth Flaw Detection Dataset. Cloth Flaw Detection Dataset. 2020. https://tianchi.aliyun.com/dataset/dataDetail?dataId=79336
- 34.
Saleem. 2022. https://www.kaggle.com/datasets/nexuswho/fabric-defects-dataset
- 35.
Silvestre-Blanes JMJ, Albero-Albero T, Miralles I, Pérez-Llorens R. AITEX Fabric Image Database; 2019. https://www.aitex.es/afid/
- 36. Huang Z, Wang J, Li C, Yu M. FDDNet: Fabric defect detection with spatial depth-transforming convolution and multiscale dilated self-attention fusion module. Journal of Engineered Fibers and Fabrics. 2025;20.