Mengze Du , Fei Wang , Yu Wang , Kun Li , Wenhui Hou , Lu Liu , Yong He , Yuwei Wang
{"title":"Improving long-tailed pest classification using diffusion model-based data augmentation","authors":"Mengze Du , Fei Wang , Yu Wang , Kun Li , Wenhui Hou , Lu Liu , Yong He , Yuwei Wang","doi":"10.1016/j.compag.2025.110244","DOIUrl":null,"url":null,"abstract":"<div><div>Long-tail problem is common in large-scale agricultural datasets, posing significant challenges to agricultural research. It is often resulting from the prohibitively high costs of data collection, the challenges of obtaining accurate, comprehensive data, and the restricted access to diverse sources of information. This issue manifests especially within agricultural pest datasets, where the imbalance in the frequency of different pest types can severely hinder detection accuracy. To counteract this pervasive challenge, this paper introduces a robust method leveraging the power of a diffusion model to address the long-tailed problem effectively. Our method focuses on fine-tuning specialized pre-trained models to generate highly realistic pest images, providing a critical solution for balancing the dataset’s distribution. This paper also presents a visualization technique that offers a clear, intuitive representation of the long-tailed problem’s impact on the dataset. By producing high-quality synthetic images using the diffusion model, our method not only balances the uneven data distribution but also reduces the discrepancies between real and synthetic data, effectively mitigating the under-representation of tail categories. The experimental results, tested on the widely-used IP102 large-scale pest dataset, confirm the superiority of our approach. The method strikes an optimal balance between sample fidelity and diversity, outperforming traditional methods in image quality. Moreover, it demonstrates remarkable performance in pest classification tasks, achieving the highest evaluation metrics and showcasing its ability to address the long-tailed problem with notable success.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"234 ","pages":"Article 110244"},"PeriodicalIF":7.7000,"publicationDate":"2025-03-08","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/S0168169925003503","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
Long-tail problem is common in large-scale agricultural datasets, posing significant challenges to agricultural research. It is often resulting from the prohibitively high costs of data collection, the challenges of obtaining accurate, comprehensive data, and the restricted access to diverse sources of information. This issue manifests especially within agricultural pest datasets, where the imbalance in the frequency of different pest types can severely hinder detection accuracy. To counteract this pervasive challenge, this paper introduces a robust method leveraging the power of a diffusion model to address the long-tailed problem effectively. Our method focuses on fine-tuning specialized pre-trained models to generate highly realistic pest images, providing a critical solution for balancing the dataset’s distribution. This paper also presents a visualization technique that offers a clear, intuitive representation of the long-tailed problem’s impact on the dataset. By producing high-quality synthetic images using the diffusion model, our method not only balances the uneven data distribution but also reduces the discrepancies between real and synthetic data, effectively mitigating the under-representation of tail categories. The experimental results, tested on the widely-used IP102 large-scale pest dataset, confirm the superiority of our approach. The method strikes an optimal balance between sample fidelity and diversity, outperforming traditional methods in image quality. Moreover, it demonstrates remarkable performance in pest classification tasks, achieving the highest evaluation metrics and showcasing its ability to address the long-tailed problem with notable success.
期刊介绍:
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.