Digital Repository

FabrIXD: Advanced Patterned Fabric Defect Detection and Calculating the Defect Size using Explainable AI

Show simple item record

dc.contributor.author Alwis, Devaka
dc.date.accessioned 2026-04-08T09:44:52Z
dc.date.available 2026-04-08T09:44:52Z
dc.date.issued 2025
dc.identifier.citation Alwis, Devaka (2025) FabrIXD: Advanced Patterned Fabric Defect Detection and Calculating the Defect Size using Explainable AI. BSc. Dissertation, Informatics Institute of Technology en_US
dc.identifier.issn 20210236
dc.identifier.uri http://dlib.iit.ac.lk/xmlui/handle/123456789/3152
dc.description.abstract The textile industry continues to rely heavily on manual inspection for fabric defect detection, a process that is often inefficient, inconsistent, and highly susceptible to human error, particularly in fast-moving production environments. These challenges are further amplified when inspecting coloured and complex patterned fabrics, where conventional automated systems struggle to achieve reliable defect detection. Moreover, quality assessment methods such as the 4-point system require accurate defect size measurements, yet most existing automated solutions lack defect sizing capabilities and interpretable outputs, limiting their practical adoption and trustworthiness in industrial settings. To address these limitations, this research proposes an explainable deep learning-based fabric defect detection and sizing framework. The Xception pre-trained convolutional neural network was employed for both fabric pattern classification and defect detection, trained using a publicly available patterned fabric dataset. To enhance model transparency, the Grad-CAM explainable AI (XAI) technique was integrated to generate visual heatmaps highlighting defect regions responsible for model predictions. These heatmaps were further processed to localise defect areas and compute defect sizes in pixel space. Using optical principles including working distance, focal length, and field-of-view calculations, pixel measurements were converted into real-world dimensions. Experimental results demonstrate strong performance, with the defect detection model achieving 0.91 training accuracy and 0.88 validation and test accuracy, alongside precision, recall, and F1-score values of 0.88. Fabric pattern classification achieved a test accuracy of 0.98. The integration of Grad-CAM provided meaningful visual explanations and enabled accurate defect localisation and size estimation. Overall, this approach improves interpretability, supports informed decision-making in textile quality control, and contributes toward the development of reliable and transparent AI-driven inspection systems for modern textile manufacturing. en_US
dc.language.iso en en_US
dc.subject Fabric Defect Detection en_US
dc.subject Defect Size Estimation en_US
dc.subject Multi- Defect Classification en_US
dc.subject Explainable AI en_US
dc.title FabrIXD: Advanced Patterned Fabric Defect Detection and Calculating the Defect Size using Explainable AI en_US
dc.type Thesis en_US


Files in this item

This item appears in the following Collection(s)

Show simple item record

Search


Advanced Search

Browse

My Account