Mingshuang Bai , Tao Chen , Jia Yuan , Gang Zhou , Jiajia Wang , Zhenhong Jia
{"title":"A point-based method for identification and counting of tiny object insects in cotton fields","authors":"Mingshuang Bai , Tao Chen , Jia Yuan , Gang Zhou , Jiajia Wang , Zhenhong Jia","doi":"10.1016/j.compag.2024.109648","DOIUrl":null,"url":null,"abstract":"<div><div>Monitoring of crop pests in the field can be achieved by using sticky traps that capture pests. However, due to the small size and high density of the captured pests, conventional object detection methods relying on bounding boxes struggle to accurately identify and count pests, as they are highly sensitive to positional deviations. Therefore, we propose a novel point framework for multi-species insect identification and counting, termed MS-P2P, which is free from the limitation of Bounding box. Specifically, we employ the lightweight object detection network YOLOv7-tiny for feature extraction and incorporate a lightweight attention detection head (LAHead) for point coordinate regression and insect classification. The LAHead enhances the model’s sensitivity to subtle insect features in complex environments. Additionally, we utilize point proposal prediction and the Hungarian matching algorithm to achieve one-to-one matching of optimal prediction points for targets, which simplifies post-processing methods significantly. Finally, we introduce SmoothL1 Loss and Focal Loss to address the issues of matching instability and class imbalance in the point estimation strategy, respectively. Extensive experiments on the self-built NSC dataset and the publicly available YST dataset have demonstrated the effectiveness of our designed MS-P2P. In particular, on our self-built dataset of 9 insect species, the overall counting metrics achieved a MAE of 18.9 and a RMSE of 28.8. The combined localization and counting metric, nAP0.5, reached 86.4%. Compared with other state-of-the-art algorithms, MS-P2P achieved the best overall results in both localization and counting metrics.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"227 ","pages":"Article 109648"},"PeriodicalIF":7.7000,"publicationDate":"2024-11-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers and Electronics in Agriculture","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0168169924010391","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
Monitoring of crop pests in the field can be achieved by using sticky traps that capture pests. However, due to the small size and high density of the captured pests, conventional object detection methods relying on bounding boxes struggle to accurately identify and count pests, as they are highly sensitive to positional deviations. Therefore, we propose a novel point framework for multi-species insect identification and counting, termed MS-P2P, which is free from the limitation of Bounding box. Specifically, we employ the lightweight object detection network YOLOv7-tiny for feature extraction and incorporate a lightweight attention detection head (LAHead) for point coordinate regression and insect classification. The LAHead enhances the model’s sensitivity to subtle insect features in complex environments. Additionally, we utilize point proposal prediction and the Hungarian matching algorithm to achieve one-to-one matching of optimal prediction points for targets, which simplifies post-processing methods significantly. Finally, we introduce SmoothL1 Loss and Focal Loss to address the issues of matching instability and class imbalance in the point estimation strategy, respectively. Extensive experiments on the self-built NSC dataset and the publicly available YST dataset have demonstrated the effectiveness of our designed MS-P2P. In particular, on our self-built dataset of 9 insect species, the overall counting metrics achieved a MAE of 18.9 and a RMSE of 28.8. The combined localization and counting metric, nAP0.5, reached 86.4%. Compared with other state-of-the-art algorithms, MS-P2P achieved the best overall results in both localization and counting metrics.
期刊介绍:
Computers and Electronics in Agriculture provides international coverage of advancements in computer hardware, software, electronic instrumentation, and control systems applied to agricultural challenges. Encompassing agronomy, horticulture, forestry, aquaculture, and animal farming, the journal publishes original papers, reviews, and applications notes. It explores the use of computers and electronics in plant or animal agricultural production, covering topics like agricultural soils, water, pests, controlled environments, and waste. The scope extends to on-farm post-harvest operations and relevant technologies, including artificial intelligence, sensors, machine vision, robotics, networking, and simulation modeling. Its companion journal, Smart Agricultural Technology, continues the focus on smart applications in production agriculture.