C-ViT: An Improved ViT Model for Multi-Label Classification of Bamboo Chopstick Defects

The quality of disposable bamboo chopsticks directly affects consumers' usage experience and health safety. Therefore, quality inspection is particularly important, and multi-label classification of defects can better meet the refined demands of actual production. While ViT has made significant progress in visual tasks, it has limitations when dealing with extreme aspect ratios like bamboo chopsticks. To address this, this paper proposes an improved ViT model, C-ViT, introducing a convolutional neural network feature extraction module (CFE) to replace traditional patch embedding, making the input features more suitable for the ViT model. Moreover, existing loss functions in multi-label classification tasks focus on label prediction optimization, making hard labels difficult to learn due to their low gradient contribution. Therefore, this paper proposes a Hard Examples Contrastive Loss (HCL) function, dynamically selecting hard examples and combining label and feature correlation to construct a contrastive learning mechanism, enhancing the model's ability to model hard examples. Experimental results show that on the self-built bamboo chopstick defect dataset (BCDD), C-ViT improves the mAP by 1.2% to 92.8% compared to the ViTS model, and can reach 94.3% after adding HCL. In addition, we further verified the effectiveness of the proposed HCL function in multi-label classification tasks on the VOC2012 public dataset.

Authors

Institutions

Publication Details

Journal
Sensors
Published
2026-01-26
DOI
https://doi.org/10.3390/s26030812
Primary Topic
Bamboo properties and applications
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

C-ViT: An Improved ViT Model for Multi-Label Classification of Bamboo Chopstick Defects

Lu Zeng, Yue Shen, Chaoyun Zhu, Wei Peng et al.
Sensors
Bamboo properties and applications
article

C-ViT: An Improved ViT Model for Multi-Label Classification of Bamboo Chopstick Defects

Lu Zeng, Yue Shen, Chaoyun Zhu, Wei Peng, Yingchun Kuang
article en

Abstract

The quality of disposable bamboo chopsticks directly affects consumers' usage experience and health safety. Therefore, quality inspection is particularly important, and multi-label classification of defects can better meet the refined demands of actual production. While ViT has made significant progress in visual tasks, it has limitations when dealing with extreme aspect ratios like bamboo chopsticks. To address this, this paper proposes an improved ViT model, C-ViT, introducing a convolutional neural network feature extraction module (CFE) to replace traditional patch embedding, making the input features more suitable for the ViT model. Moreover, existing loss functions in multi-label classification tasks focus on label prediction optimization, making hard labels difficult to learn due to their low gradient contribution. Therefore, this paper proposes a Hard Examples Contrastive Loss (HCL) function, dynamically selecting hard examples and combining label and feature correlation to construct a contrastive learning mechanism, enhancing the model's ability to model hard examples. Experimental results show that on the self-built bamboo chopstick defect dataset (BCDD), C-ViT improves the mAP by 1.2% to 92.8% compared to the ViTS model, and can reach 94.3% after adding HCL. In addition, we further verified the effectiveness of the proposed HCL function in multi-label classification tasks on the VOC2012 public dataset.

SensorsVol. 26(3)
Jishou University (CN), Xiangtan University (CN), Hunan Agricultural University (CN)
Hunan Agricultural University
Openalex Percentile: Top 77%
Bamboo properties and applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

C-ViT: An Improved ViT Model for Multi-Label Classification of Bamboo Chopstick Defects — Lu Zeng, Yue Shen, et al. · Sensors (2026) | TGRS Research Map | TGRS