{"title":"基于Swin变压器和迁移学习的大白菜生育期识别方法研究","authors":"Xin Chen, Yuexin Shi, Xiang Li","doi":"10.13031/aea.15260","DOIUrl":null,"url":null,"abstract":"Highlights To the best of our knowledge, this study was the first intelligent recognition for Chinese cabbage growth period and proposed the Swin Transformer+1 model. If the four growth periods were considered, the recognition accuracy rate of the model on the test set was 96.15%. If the transition periods of Chinese cabbage growth were considered, the model recognition accuracy rate was 97.17%. Experiments showed that the Swin Transformer+1 model was robust and could be applied in real agricultural production. Abstract. In order to facilitate agricultural management and improve the quality and yield of Chinese cabbage, it is necessary to intelligently identify the growth periods of Chinese cabbage. In this study, a transfer learning-based recognition model for Chinese cabbage growth periods was proposed, which could identify four growth periods of Chinese cabbage: “germination and seedling period,” “rosette period,” “heading period,” and “dormant period.” The data set of Chinese cabbage growth periods was built. The recognition model was named Swin Transformer+1, using Swin Transformer as the backbone network to extract image features, and a fully connected layer as the classifier. To optimize the model, we used Letterbox instead of Stretching to resize the image, used Focal Loss instead of Cross Entropy Loss as the loss function, and used Stochastic Weight Averaging instead of Adam as the optimizer. Transfer learning was used for training, which could solve the problems of overfitting and underfitting when training deep network with a small data set. We verified the effectiveness of the above improved methods through ablation experiments. Experiments showed that the Swin Transformer+1 model had a high recognition accuracy rate. If only the four growth periods were considered, the recognition accuracy rate was 96.15%. If the transition periods between two growth periods of Chinese cabbage were considered, the recognition accuracy rate was 97.17%. The model had strong robustness. It maintained a high recognition accuracy rate when the images in the test set were augmented. In general, Swin Transformer+1 model has high application value in actual agricultural production scenarios. Keywords: Chinese cabbage growth period, Deep learning, Image recognition, Swin transformer, Transfer learning","PeriodicalId":55501,"journal":{"name":"Applied Engineering in Agriculture","volume":null,"pages":null},"PeriodicalIF":0.8000,"publicationDate":"2023-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Research on Recognition Method of Chinese Cabbage Growth Periods Based on Swin Transformer and Transfer Learning\",\"authors\":\"Xin Chen, Yuexin Shi, Xiang Li\",\"doi\":\"10.13031/aea.15260\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Highlights To the best of our knowledge, this study was the first intelligent recognition for Chinese cabbage growth period and proposed the Swin Transformer+1 model. If the four growth periods were considered, the recognition accuracy rate of the model on the test set was 96.15%. If the transition periods of Chinese cabbage growth were considered, the model recognition accuracy rate was 97.17%. Experiments showed that the Swin Transformer+1 model was robust and could be applied in real agricultural production. Abstract. In order to facilitate agricultural management and improve the quality and yield of Chinese cabbage, it is necessary to intelligently identify the growth periods of Chinese cabbage. In this study, a transfer learning-based recognition model for Chinese cabbage growth periods was proposed, which could identify four growth periods of Chinese cabbage: “germination and seedling period,” “rosette period,” “heading period,” and “dormant period.” The data set of Chinese cabbage growth periods was built. The recognition model was named Swin Transformer+1, using Swin Transformer as the backbone network to extract image features, and a fully connected layer as the classifier. To optimize the model, we used Letterbox instead of Stretching to resize the image, used Focal Loss instead of Cross Entropy Loss as the loss function, and used Stochastic Weight Averaging instead of Adam as the optimizer. Transfer learning was used for training, which could solve the problems of overfitting and underfitting when training deep network with a small data set. We verified the effectiveness of the above improved methods through ablation experiments. Experiments showed that the Swin Transformer+1 model had a high recognition accuracy rate. If only the four growth periods were considered, the recognition accuracy rate was 96.15%. If the transition periods between two growth periods of Chinese cabbage were considered, the recognition accuracy rate was 97.17%. The model had strong robustness. It maintained a high recognition accuracy rate when the images in the test set were augmented. In general, Swin Transformer+1 model has high application value in actual agricultural production scenarios. Keywords: Chinese cabbage growth period, Deep learning, Image recognition, Swin transformer, Transfer learning\",\"PeriodicalId\":55501,\"journal\":{\"name\":\"Applied Engineering in Agriculture\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.8000,\"publicationDate\":\"2023-01-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Applied Engineering in Agriculture\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.13031/aea.15260\",\"RegionNum\":4,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q4\",\"JCRName\":\"AGRICULTURAL ENGINEERING\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Applied Engineering in Agriculture","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.13031/aea.15260","RegionNum":4,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"AGRICULTURAL ENGINEERING","Score":null,"Total":0}
Research on Recognition Method of Chinese Cabbage Growth Periods Based on Swin Transformer and Transfer Learning
Highlights To the best of our knowledge, this study was the first intelligent recognition for Chinese cabbage growth period and proposed the Swin Transformer+1 model. If the four growth periods were considered, the recognition accuracy rate of the model on the test set was 96.15%. If the transition periods of Chinese cabbage growth were considered, the model recognition accuracy rate was 97.17%. Experiments showed that the Swin Transformer+1 model was robust and could be applied in real agricultural production. Abstract. In order to facilitate agricultural management and improve the quality and yield of Chinese cabbage, it is necessary to intelligently identify the growth periods of Chinese cabbage. In this study, a transfer learning-based recognition model for Chinese cabbage growth periods was proposed, which could identify four growth periods of Chinese cabbage: “germination and seedling period,” “rosette period,” “heading period,” and “dormant period.” The data set of Chinese cabbage growth periods was built. The recognition model was named Swin Transformer+1, using Swin Transformer as the backbone network to extract image features, and a fully connected layer as the classifier. To optimize the model, we used Letterbox instead of Stretching to resize the image, used Focal Loss instead of Cross Entropy Loss as the loss function, and used Stochastic Weight Averaging instead of Adam as the optimizer. Transfer learning was used for training, which could solve the problems of overfitting and underfitting when training deep network with a small data set. We verified the effectiveness of the above improved methods through ablation experiments. Experiments showed that the Swin Transformer+1 model had a high recognition accuracy rate. If only the four growth periods were considered, the recognition accuracy rate was 96.15%. If the transition periods between two growth periods of Chinese cabbage were considered, the recognition accuracy rate was 97.17%. The model had strong robustness. It maintained a high recognition accuracy rate when the images in the test set were augmented. In general, Swin Transformer+1 model has high application value in actual agricultural production scenarios. Keywords: Chinese cabbage growth period, Deep learning, Image recognition, Swin transformer, Transfer learning
期刊介绍:
This peer-reviewed journal publishes applications of engineering and technology research that address agricultural, food, and biological systems problems. Submissions must include results of practical experiences, tests, or trials presented in a manner and style that will allow easy adaptation by others; results of reviews or studies of installations or applications with substantially new or significant information not readily available in other refereed publications; or a description of successful methods of techniques of education, outreach, or technology transfer.