- Home
- Archives
- 2026
- Vol. 5 Issue 3
- Article
DefectTex AI: Textile Defect Classification, Severity Analysis and Fabric Quality Recommendation System
Authors
1 2 3 4 Assistant Professor, Department of Master of Computer Application, U.B.D.T College of Engineering Institute of Engineering, Davanagere, Visvesvaraya Technological University (VTU), Belagavi, Karnataka, India. 5 Student, Department of Master of Computer Application, U.B.D.T College of Engineering Institute of Engineering, Davanagere, Visvesvaraya Technological University (VTU), Belagavi, Karnataka, India.
Article Information
- Published In
- Volume 5, Issue 3 (2026)
- Published Online
- September-December 2026
- Pages
- 1008-1013
- Article Type
- Original Article
Abstract
View PDFFabric inspection is an essential quality-control activity in the textile industry because defects formed during yarn preparation, weaving, finishing, storage, or handling can reduce the appearance, usability, and commercial value of fabric. Conventional inspection is commonly performed through visual examination by trained personnel. Although this approach remains useful, the inspection process can be time-consuming and its results may vary with the experience, attention, and working conditions of the inspector. This paper presents DefectTex AI, a web-based prototype developed to support fabric inspection through machine-learning-based image classification and quality assessment. The system accepts a fabric image through a web interface and processes it using an ensemble approach combining Random Forest and XGBoost. The project dataset contains five categories: Good, Hole, Objects, Oil Spot, and Thread Error. After classification, the application displays the predicted defect category and provides severity information, a fabric-quality score, a recommendation, and an Accept or Reject outcome. The application is implemented using Python and the Flask framework, providing a simple interface for submitting images and viewing analysis results. The project evaluation table reports 88.48% accuracy for Random Forest, 92.66% for XGBoost, and 92.77% for the ensemble. The ensemble also records 90.95% precision, 92.77% recall, and a 91.18% F1-score in the reported results. These values indicate that the ensemble achieved the highest accuracy among the three evaluated models in the project results. The main contribution of DefectTex AI is the integration of defect classification and quality-related outputs in one web-based workflow, intended to assist users in making more consistent fabric-inspection decisions. The prototype is designed as a decision-support aid rather than a replacement for professional inspection. Further validation using a clearly documented independent test set, class-wise evaluation, and expert-verified severity rules is required before deployment in an industrial environment.
Related Articles
Share Article
*Instagram doesn't support direct link sharing from web. Copy the link and share it in your Instagram story or post.