DefectTex AI: Textile Defect Classification, Severity Analysis and Fabric Quality Recommendation System
Fabric 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.
Authors
- Meghana Patil
- K P Preethi
- G S Chethan Kumar
- A Swarnalatha
- Naik R Prasanna Kumar
Institutions
- University B.D.T College of Engineering (IN)
- Visvesvaraya Technological University (IN)
Publication Details
- Journal
- Indian Journal of Computer Science and Technology
- Published
- 2026-11-25
- DOI
- https://doi.org/10.59256/indjcst.20260503120
- Primary Topic
- Industrial Vision Systems and Defect Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00