Submitted:
02 June 2026
Posted:
03 June 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
- The proposed Residual LBP variant achieves the best aggregate performance on three of four primary metrics (50.85% top-1 accuracy versus 49.54% baseline, 84.77% top-3 versus 83.69%, and 5.70 pp MAE versus 5.84 pp), while matching the baseline on adjacent-class accuracy (84.92% vs. 85.15%). Improvements are consistent across folds with a 28% reduction in MAE standard deviation.
- The LBP-Conv variant, which replaces rather than augments the pretrained first convolution, performs substantially worse than the baseline (43.77% top-1 accuracy, 7.69 pp MAE). The 7-percentage-point gap between LBP-Conv and LBP-Residual, two variants embedding the identical learnable LBP module, isolates pretraining preservation as the dominant architectural variable on small textile datasets.
- The classical baselines achieve 31.85% (LBP+SVM) and 34.46% (LBP+ANN) top-1 accuracy, 16–19 percentage points below the deep variants but 4–5× above the random-chance floor. This confirms that classical LBP histograms carry genuine but limited cotton-density signal.
- The residual gate converges to small but non-zero values across all 5 folds (), providing direct evidence that the network actively learned to use the LBP signal during training.
2. Related Work
2.1. Automated Textile Material Identification
2.2. Deep Learning for Fabric and Fiber Classification
2.3. Concurrent Work: Wiedemann et al. (2025)
2.4. Local Binary Patterns and Their Variants
2.5. LBP-CNN Fusion and Learnable LBP
2.6. Small-Data Transfer Learning and Texture-vs-Shape Bias
2.7. Ordinal Classification
2.8. Positioning of This Work
3. Materials and Methods
3.1. Problem Formulation
3.2. Baseline Architecture
3.3. Classical LBP Baselines (LBP+SVM, LBP+ANN)
3.3.1. Local Binary Patterns: Background
3.3.2. Feature Extraction
3.3.3. LBP+SVM
3.3.4. LBP+ANN
3.4. Completed LBP Input Augmentation (CLBP)
3.5. Learnable LBP Convolution Stem (LBP-Conv)
3.6. Residual LBP Stem (LBP-Residual)
3.7. Loss Function: Ordinal Soft-Label Cross-Entropy
3.8. Evaluation Metrics
3.9. Cross-Validation Protocol
3.10. Training Configuration
3.11. Summary of Model Variants
4. Results
4.1. Aggregate Performance
4.2. Per-Fold Consistency
4.3. Comparison with Wiedemann et al. (2025)
| Method | Top-1 (%) | RMSE (%) | Architecture |
|---|---|---|---|
| Wiedemann et al. [55] | 48.15 | 14.77 | ResNet50 + EfficientNetB4 + DenseNet121 + AFPN + DConv (3 backbones) |
| LBP-Residual (ours) | 50.85 | ≈7.2 | ResNet50 + residual LBP stem (1 backbone) |
4.4. Training Dynamics
4.5. The Learned Residual Gate
4.6. Confusion Structure
4.7. Synthesis
4.8. Distribution of Prediction Errors
5. Discussion
5.1. The Central Finding
5.2. Interpretation of the Residual Gate
5.3. Why the Residual Design Outperforms CLBP Input Augmentation
5.4. What the Classical Baselines Reveal
5.5. Structure of the Remaining Errors
5.6. Limitations
5.7. Generalization Beyond Cotton Percentage Classification
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| CLBP | Completed Local Binary Pattern |
| CNN | Convolutional Neural Network |
| LBP | Local Binary Pattern |
| MAE | Mean Absolute Error |
| NIR | Near-Infrared |
| ATR-FTIR | Attenuated Total Reflectance Fourier-Transform Infrared |
| RGB | Red, Green, Blue (color channels) |
| ResNet | Residual Network |
| ViT | Vision Transformer |
References
- Boiten, V.J.; Li-Chou Han, S.; Tyler, D. Circular Economy Stakeholder Perspectives: Textile Collection Strategies to Support Material Circularity; European Union: Brussels, Belgium, 2017.
- Ellen MacArthur Foundation. Fashion and the Circular Economy: Deep Dive. Available online: https://www.ellenmacarthurfoundation.org/fashion-and-the-circular-economy-deep-dive (accessed on 1 January 2026).
- Cura, K.; Rintala, N.; Kamppuri, T.; Saarimäki, E.; Heikkilä, P. Textile Recognition and Sorting for Recycling at an Automated Line Using Near Infrared Spectroscopy. Recycling 2021, 6, 11.
- Riba, J.-R.; Cantero, R.; Canals, T.; Puig, R. Circular Economy of Post-Consumer Textile Waste: Classification through Infrared Spectroscopy. J. Clean. Prod. 2020, 272, 123011.
- Riba, J.-R.; Cantero, R.; Riba-Mosoll, P.; Puig, R. Post-Consumer Textile Waste Classification through Near-Infrared Spectroscopy, Using an Advanced Deep Learning Approach. Polymers 2022, 14, 2475.
- Peets, P.; Leito, I.; Pelt, J.; Vahur, S. Identification and Classification of Textile Fibres Using ATR-FT-IR Spectroscopy with Chemometric Methods. Spectrochim. Acta A Mol. Biomol. Spectrosc. 2017, 173, 175–181.
- Liu, Z.; Li, W.; Wei, Z. Qualitative Classification of Waste Textiles Based on Near Infrared Spectroscopy and the Convolutional Network. Text. Res. J. 2020, 90, 1057–1066.
- Xing, W.; Liu, Y.; Xin, B.; Zang, L.; Deng, N. The Application of Deep and Transfer Learning for Identifying Cashmere and Wool Fibers. J. Nat. Fibers 2022, 19, 88–104.
- Zhong, Y.; Lu, K.; Tian, J.; Zhu, H. Wool/Cashmere Identification Based on Projection Curves. Text. Res. J. 2017, 87, 1730–1741.
- Niloy, N.T.; Ahmed, M.R.; Ananna, S.S.; Kater, S.; Shorna, I.J.; Sneha, S.I.; Ferdaus, M.H.; Islam, M.M.; Rashid, M.R.A.; Jabid, T.; Ali, M.S. CottonFabricImageBD: An Image Dataset Characterized by the Percentage of Cotton in a Fabric for Computer Vision-Based Garment Recycling. Data Brief 2024, 55, 110712.
- Zhong, S.; Ribul, M.; Cho, Y.; Obrist, M. TextileNet: A Material Taxonomy-based Fashion Textile Dataset. arXiv preprint 2023, arXiv:2301.06160.
- Liu, Z.; Luo, P.; Qiu, S.; Wang, X.; Tang, X. DeepFashion: Powering Robust Clothes Recognition and Retrieval with Rich Annotations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 1096–1104.
- Guo, S.; Huang, W.; Zhang, X.; Srikhanta, P.; Cui, Y.; Li, Y.; Adam, H.; Scott, M.R.; Belongie, S. The iMaterialist Fashion Attribute Dataset. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops (ICCVW), Seoul, Korea, 27–28 October 2019.
- Chetverikov, D.; Hanbury, A. Finding Defects in Texture Using Regularity and Local Orientation. Pattern Recognit. 2002, 35, 2165–2180.
- Liu, R.-Q.; Li, M.-H.; Shi, J.-C.; Liang, Y.-B. Fabric Defect Detection Method Based on Improved U-Net. J. Phys. Conf. Ser. 2021, 1948, 012160.
- Jing, J.; Ren, H. Defect Detection of Printed Fabric Based on RGBAAM and Image Pyramid. Autex Res. J. 2021, 21, 135–141.
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778.
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An Image Is Worth 16×16 Words: Transformers for Image Recognition at Scale. In Proceedings of the International Conference on Learning Representations (ICLR), Virtual, 3–7 May 2021.
- Steiner, A.; Kolesnikov, A.; Zhai, X.; Wightman, R.; Uszkoreit, J.; Beyer, L. How to Train Your ViT? Data, Augmentation, and Regularization in Vision Transformers. arXiv preprint 2021, arXiv:2106.10270.
- Hussain, M.A.I.; Khan, B.; Wang, Z.; Ding, S. Woven Fabric Pattern Recognition and Classification Based on Deep Convolutional Neural Networks. Electronics 2020, 9, 1048.
- Ohi, A.Q.; Mridha, M.F.; Hamid, M.A.; Monowar, M.M.; Kateb, F.A. FabricNet: A Fiber Recognition Architecture Using Ensemble ConvNets. IEEE Access 2021, 9, 13224–13236.
- Meng, S.; Pan, R.; Gao, W.; Yan, B.; Peng, Y. A Multi-Task and Multi-Scale Convolutional Neural Network for Automatic Recognition of Woven Fabric Pattern. J. Intell. Manuf. 2020.
- Bissi, L.; Baruffa, G.; Placidi, P.; Ricci, E.; Scorzoni, A.; Valigi, P. Automated Defect Detection in Uniform and Structured Fabrics Using Gabor Filters and PCA. J. Vis. Commun. Image Represent. 2013, 24, 838–845.
- Liu, Q.; Wang, C.; Li, Y.; Gao, M.; Li, J. A Fabric Defect Detection Method Based on Deep Learning. IEEE Access 2022, 10, 4284–4296.
- Jing, J.; Wang, Z.; Ratsch, M.; Zhang, H. Mobile-Unet: An Efficient Convolutional Neural Network for Fabric Defect Detection. Text. Res. J. 2020.
- Wei, B.; Hao, K.; Tang, X.; Ding, Y. A New Method Using the Convolutional Neural Network with Compressive Sensing for Fabric Defect Classification Based on Small Sample Sizes. Text. Res. J. 2019.
- Ojala, T.; Pietikäinen, M.; Harwood, D. A Comparative Study of Texture Measures with Classification Based on Featured Distributions. Pattern Recognit. 1996, 29, 51–59.
- Ojala, T.; Pietikäinen, M.; Mäenpää, T. Multiresolution Gray-Scale and Rotation Invariant Texture Classification with Local Binary Patterns. IEEE Trans. Pattern Anal. Mach. Intell. 2002, 24, 971–987.
- Guo, Z.; Zhang, L.; Zhang, D. A Completed Modeling of Local Binary Pattern Operator for Texture Classification. IEEE Trans. Image Process. 2010, 19, 1657–1663.
- Tan, X.; Triggs, B. Enhanced Local Texture Feature Sets for Face Recognition under Difficult Lighting Conditions. IEEE Trans. Image Process. 2010, 19, 1635–1650.
- Liao, S.; Zhu, X.; Lei, Z.; Zhang, L.; Li, S.Z. Learning Multi-Scale Block Local Binary Patterns for Face Recognition. In Proceedings of the International Conference on Biometrics (ICB), Seoul, Korea, 27–29 August 2007; pp. 828–837.
- Ojansivu, V.; Heikkilä, J. Blur Insensitive Texture Classification Using Local Phase Quantization. In Proceedings of the International Conference on Image and Signal Processing (ICISP), Cherbourg-Octeville, France, 1–3 July 2008; pp. 236–243.
- Pietikäinen, M.; Hadid, A.; Zhao, G.; Ahonen, T. Computer Vision Using Local Binary Patterns; Computational Imaging and Vision, Vol. 40; Springer: London, UK, 2011.
- Liu, L.; Fieguth, P.; Guo, Y.; Wang, X.; Pietikäinen, M. Local Binary Features for Texture Classification: Taxonomy and Experimental Study. Pattern Recognit. 2017, 62, 135–160.
- Ahonen, T.; Hadid, A.; Pietikäinen, M. Face Description with Local Binary Patterns: Application to Face Recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2006, 28, 2037–2041.
- Nanni, L.; Lumini, A.; Brahnam, S. Local Binary Patterns Variants as Texture Descriptors for Medical Image Analysis. Artif. Intell. Med. 2010, 49, 117–125.
- Juefei-Xu, F.; Naresh Boddeti, V.; Savvides, M. Local Binary Convolutional Neural Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 19–28.
- Srivastava, R.K.; Greff, K.; Schmidhuber, J. Highway Networks. arXiv preprint 2015, arXiv:1505.00387.
- Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780.
- Yosinski, J.; Clune, J.; Bengio, Y.; Lipson, H. How Transferable Are Features in Deep Neural Networks? In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Montreal, QC, Canada, 8–13 December 2014; pp. 3320–3328.
- Kornblith, S.; Shlens, J.; Le, Q.V. Do Better ImageNet Models Transfer Better? In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–20 June 2019; pp. 2661–2671.
- Raghu, M.; Zhang, C.; Kleinberg, J.; Bengio, S. Transfusion: Understanding Transfer Learning for Medical Imaging. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Vancouver, BC, Canada, 8–14 December 2019.
- Geirhos, R.; Rubisch, P.; Michaelis, C.; Bethge, M.; Wichmann, F.A.; Brendel, W. ImageNet-Trained CNNs Are Biased towards Texture; Increasing Shape Bias Improves Accuracy and Robustness. In Proceedings of the International Conference on Learning Representations (ICLR), New Orleans, LA, USA, 6–9 May 2019.
- Hermann, K.L.; Chen, T.; Kornblith, S. The Origins and Prevalence of Texture Bias in Convolutional Neural Networks. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Virtual, 6–12 December 2020.
- Tuli, S.; Dasgupta, I.; Grant, E.; Griffiths, T.L. Are Convolutional Neural Networks or Transformers More Like Human Vision? arXiv preprint 2021, arXiv:2105.07197.
- Frank, E.; Hall, M. A Simple Approach to Ordinal Classification. In Proceedings of the European Conference on Machine Learning (ECML), Freiburg, Germany, 5–7 September 2001; pp. 145–156.
- Niu, Z.; Zhou, M.; Wang, L.; Gao, X.; Hua, G. Ordinal Regression with Multiple Output CNN for Age Estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 4920–4928.
- Cao, W.; Mirjalili, V.; Raschka, S. Rank Consistent Ordinal Regression for Neural Networks with Application to Age Estimation. Pattern Recognit. Lett. 2020, 140, 325–331.
- Beckham, C.; Pal, C. Unimodal Probability Distributions for Deep Ordinal Classification. In Proceedings of the International Conference on Machine Learning (ICML), Sydney, Australia, 6–11 August 2017.
- Liu, H.; Lu, J.; Feng, J.; Zhou, J. Ordinal Deep Learning for Facial Age Estimation. IEEE Trans. Circuits Syst. Video Technol. 2019, 29, 486–501.
- Geng, X. Label Distribution Learning. IEEE Trans. Knowl. Data Eng. 2016, 28, 1734–1748.
- Geng, X.; Yin, C.; Zhou, Z.-H. Facial Age Estimation by Learning from Label Distributions. In Proceedings of the AAAI Conference on Artificial Intelligence, Bellevue, WA, USA, 14–18 July 2013.
- Zhang, Z.; Song, Y.; Qi, H. Age Progression/Regression by Conditional Adversarial Autoencoder. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017.
- Liu, X.; Zou, Y.; Song, Y.; Yang, C.; You, J.; Vijaya Kumar, B.V.K. Ordinal Regression with Neuron Stick-Breaking for Medical Diagnosis. In Proceedings of the European Conference on Computer Vision Workshops (ECCVW), Munich, Germany, 8–14 September 2018.
- Wiedemann, M.; Penava, P.; Mai, C.; Buettner, R. Deep-Learning-Based Determination of Textile Properties: A Novel Triplet Architecture Approach for Classifying Cotton Content. IEEE Access 2025, 13, 164395–164408. [CrossRef]
- Cohen, J. Weighted Kappa: Nominal Scale Agreement Provision for Scaled Disagreement or Partial Credit. Psychol. Bull. 1968, 70, 213–220.
- Loshchilov, I.; Hutter, F. Decoupled Weight Decay Regularization. In Proceedings of the International Conference on Learning Representations (ICLR), New Orleans, LA, USA, 6–9 May 2019.









| Dataset | Images | Classes | Annotation source | Reference |
|---|---|---|---|---|
| DeepFashion | 800K | 218 fabric attributes | Crawled metadata | Liu et al. [12] |
| iMaterialist | 1M | 11 fiber + 21 fabric | Crowdsourced | Guo et al. [13] |
| TILDA | 3.2K | 8 fabric defect classes | Manual | Chetverikov et al. [14] |
| TextileNet | 760K | 33 fiber + 27 fabric | Expert taxonomy | Zhong et al. [11] |
| CottonFabricImageBD | 1,300 originals + 27,300 augmented | 13 cotton % classes | Thread-counting expert verification | Niloy et al. [10] |
| Method | LBP form | Integration pattern | Pretraining preserved | Reference |
|---|---|---|---|---|
| Classical LBP | Fixed sign-only | Standalone descriptor + classifier | N/A | Ojala et al. [27,28] |
| CLBP | Sign + Mag + Center | Standalone descriptor + classifier | N/A | Guo et al. [29] |
| LTP | Three-state | Standalone descriptor + classifier | N/A | Tan and Triggs [30] |
| LBP-CNN late fusion | Fixed | Histogram concat at FC layer | Yes | Bissi et al. [23] |
| LBCNN | Fixed binary patterns | Replaces standard conv (efficiency) | No | Juefei-Xu et al. [37] |
| LBP-Residual | Learnable | Additive residual: | Yes (fully) | This paper |
| Variant | Backbone / classifier | LBP integration | Pretrained weights |
|---|---|---|---|
| Baseline | ResNet50 (deep) | None | Yes |
| CLBP | ResNet50 (deep) | Pre-input concatenation (6-channel) | Yes (RGB channels) |
| LBP-Conv | ResNet50 (deep) | Parallel-branch stem replacing | No (stem reinitialized) |
| LBP-Residual | ResNet50 (deep) | Additive residual gated by learnable | Yes (fully) |
| LBP+SVM | RBF SVM (classical) | Spatial LBP histogram, 160-dim feature vector | N/A (no pretraining) |
| LBP+ANN | 2-hidden-layer MLP (classical) | Spatial LBP histogram, 160-dim feature vector | N/A (no pretraining) |
| Model | Top-1 (%) ↑ | Top-3 (%) ↑ | Adjacent (%) ↑ | MAE (pp) ↓ |
|---|---|---|---|---|
| Baseline | 49.54 ± 2.54 | 83.69 ± 1.16 | 85.15 ± 2.04 | 5.84 ± 0.58 |
| CLBP | 50.23 ± 1.75 | 83.46 ± 1.67 | 84.77 ± 1.08 | 5.68 ± 0.28 |
| LBP-Conv | 43.77 ± 3.02 | 79.62 ± 2.88 | 77.92 ± 3.45 | 7.69 ± 0.76 |
| LBP-Residual | 50.85 ± 2.39 | 84.77 ± 1.97 | 84.92 ± 1.57 | 5.70 ± 0.42 |
| LBP+SVM | 31.85 ± 3.11 | 67.38 ± 1.97 | 66.62 ± 1.64 | 10.94 ± 0.50 |
| LBP+ANN | 34.46 ± 2.55 | 70.00 ± 2.59 | 66.77 ± 4.56 | 11.15 ± 0.92 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).