A Study on Small-Scale Snake Image Classification Based on Improved SimCLR
The exotic pet trade is a major driver of alien species invasions. Improper introductions or a lack of management can result in severe ecological consequences. Therefore, accurate identification of exotic pets is essential for the prevention and early warning of species invasions. This paper propose...
Saved in:
| Main Authors: | , , , |
|---|---|
| Format: | Article |
| Language: | English |
| Published: |
MDPI AG
2025-06-01
|
| Series: | Applied Sciences |
| Subjects: | |
| Online Access: | https://www.mdpi.com/2076-3417/15/11/6290 |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| _version_ | 1850160862555275264 |
|---|---|
| author | Lingyan Li Ruiqing Kang Wenjie Huang Wenhui Feng |
| author_facet | Lingyan Li Ruiqing Kang Wenjie Huang Wenhui Feng |
| author_sort | Lingyan Li |
| collection | DOAJ |
| description | The exotic pet trade is a major driver of alien species invasions. Improper introductions or a lack of management can result in severe ecological consequences. Therefore, accurate identification of exotic pets is essential for the prevention and early warning of species invasions. This paper proposes a novel recognition method for fine-grained images of small-scale exotic pet snakes in complex backgrounds based on an improved SimCLR framework. A hierarchical window attention mechanism is introduced into the encoder network to enhance feature extraction. In the loss function, a supervised contrastive mechanism is introduced to exclude false negative samples using label information, which helps reduce representation noise and enhance training stability. The training strategy incorporates random erasing and random grayscale data augmentation techniques to improve performance further. The projection head is constructed using a two-layer multilayer perceptron (MLP), and the cosine annealing schedule combined with the AdamW optimizer is adopted for learning rate adjustment. Experimental results on a self-constructed dataset demonstrate that the proposed model achieves a recognition accuracy of 97.5%, outperforming existing baseline models. This study fills a gap in exotic pet snake classification and provides a practical tool for species invasion prevention and early detection. |
| format | Article |
| id | doaj-art-01fb3f456bcb455fa69dc8d87ae5a677 |
| institution | OA Journals |
| issn | 2076-3417 |
| language | English |
| publishDate | 2025-06-01 |
| publisher | MDPI AG |
| record_format | Article |
| series | Applied Sciences |
| spelling | doaj-art-01fb3f456bcb455fa69dc8d87ae5a6772025-08-20T02:23:01ZengMDPI AGApplied Sciences2076-34172025-06-011511629010.3390/app15116290A Study on Small-Scale Snake Image Classification Based on Improved SimCLRLingyan Li0Ruiqing Kang1Wenjie Huang2Wenhui Feng3School of Automation and Electrical Engineering, University of Science and Technology Beijing, Beijing 100083, ChinaSchool of Automation and Electrical Engineering, University of Science and Technology Beijing, Beijing 100083, ChinaSchool of Automation and Electrical Engineering, University of Science and Technology Beijing, Beijing 100083, ChinaSchool of Automation and Electrical Engineering, University of Science and Technology Beijing, Beijing 100083, ChinaThe exotic pet trade is a major driver of alien species invasions. Improper introductions or a lack of management can result in severe ecological consequences. Therefore, accurate identification of exotic pets is essential for the prevention and early warning of species invasions. This paper proposes a novel recognition method for fine-grained images of small-scale exotic pet snakes in complex backgrounds based on an improved SimCLR framework. A hierarchical window attention mechanism is introduced into the encoder network to enhance feature extraction. In the loss function, a supervised contrastive mechanism is introduced to exclude false negative samples using label information, which helps reduce representation noise and enhance training stability. The training strategy incorporates random erasing and random grayscale data augmentation techniques to improve performance further. The projection head is constructed using a two-layer multilayer perceptron (MLP), and the cosine annealing schedule combined with the AdamW optimizer is adopted for learning rate adjustment. Experimental results on a self-constructed dataset demonstrate that the proposed model achieves a recognition accuracy of 97.5%, outperforming existing baseline models. This study fills a gap in exotic pet snake classification and provides a practical tool for species invasion prevention and early detection.https://www.mdpi.com/2076-3417/15/11/6290artificial intelligence (AI) platformcontrastive learningimage classificationsnake species |
| spellingShingle | Lingyan Li Ruiqing Kang Wenjie Huang Wenhui Feng A Study on Small-Scale Snake Image Classification Based on Improved SimCLR Applied Sciences artificial intelligence (AI) platform contrastive learning image classification snake species |
| title | A Study on Small-Scale Snake Image Classification Based on Improved SimCLR |
| title_full | A Study on Small-Scale Snake Image Classification Based on Improved SimCLR |
| title_fullStr | A Study on Small-Scale Snake Image Classification Based on Improved SimCLR |
| title_full_unstemmed | A Study on Small-Scale Snake Image Classification Based on Improved SimCLR |
| title_short | A Study on Small-Scale Snake Image Classification Based on Improved SimCLR |
| title_sort | study on small scale snake image classification based on improved simclr |
| topic | artificial intelligence (AI) platform contrastive learning image classification snake species |
| url | https://www.mdpi.com/2076-3417/15/11/6290 |
| work_keys_str_mv | AT lingyanli astudyonsmallscalesnakeimageclassificationbasedonimprovedsimclr AT ruiqingkang astudyonsmallscalesnakeimageclassificationbasedonimprovedsimclr AT wenjiehuang astudyonsmallscalesnakeimageclassificationbasedonimprovedsimclr AT wenhuifeng astudyonsmallscalesnakeimageclassificationbasedonimprovedsimclr AT lingyanli studyonsmallscalesnakeimageclassificationbasedonimprovedsimclr AT ruiqingkang studyonsmallscalesnakeimageclassificationbasedonimprovedsimclr AT wenjiehuang studyonsmallscalesnakeimageclassificationbasedonimprovedsimclr AT wenhuifeng studyonsmallscalesnakeimageclassificationbasedonimprovedsimclr |