LGH-YOLOv12n: Latent Diffusion Inpainting Data Augmentation and Improved YOLOv12n Model for Rice Leaf Disease Detection

Detecting rice leaf diseases in real-world field environments remains challenging due to varying lesion sizes, diverse lesion morphologies, complex backgrounds, and the limited availability of high-quality annotated datasets. Existing detection models often suffer from performance degradation under these conditions, particularly when training data lack sufficient diversity and structural realism. To address these challenges, this paper proposes a Latent Diffusion Inpainting (LDI) data augmentation method and an improved lightweight detection model, LGH-YOLOv12n. Unlike conventional diffusion-based augmentation methods that generate full images or random patches, LDI performs category-aware latent inpainting, synthesizing realistic lesion patterns by jointly conditioning on background context and disease categories, thereby enhancing data diversity while preserving scene consistency. Furthermore, LGH-YOLOv12n improves upon the YOLOv12n baseline by introducing GSConv in the backbone to reduce channel redundancy and enhance lesion localization, and integrating Hierarchical Multi-head Attention (HMHA) into the neck network to better distinguish disease features from complex field backgrounds. Experimental results demonstrate that LGH-YOLOv12n achieves an F1 of 86.1% and an mAP@50 of 88.3%, outperforming the YOLOv12n model trained without data augmentation by 3.3% and 5.0%, respectively. Moreover, when trained on the LDI-augmented dataset, LGH-YOLOv12n consistently outperforms YOLOv8n, YOLOv10n, YOLOv11n, and YOLOv12n, with mAP@50 improvements of 4.6%, 5.2%, 1.9%, and 2.1%, respectively. These results indicate that the proposed LDI augmentation and LGH-YOLOv12n model provide an effective and robust solution for rice leaf disease detection in complex field environments.

Authors

Institutions

Publication Details

Journal
Agriculture
Published
2026-02-04
DOI
https://doi.org/10.3390/agriculture16030368
Citations
1
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
31.34
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

LGH-YOLOv12n: Latent Diffusion Inpainting Data Augmentation and Improved YOLOv12n Model for Rice Leaf Disease Detection

Cheng Li, Gang Chen, Shaowei Mi, Kui Fang et al.
1 citations
Agriculture
Smart Agriculture and AI
31.34
article

LGH-YOLOv12n: Latent Diffusion Inpainting Data Augmentation and Improved YOLOv12n Model for Rice Leaf Disease Detection

Cheng Li, Gang Chen, Shaowei Mi, Kui Fang, Xinghui Zhu
article en
1 citations

Abstract

Detecting rice leaf diseases in real-world field environments remains challenging due to varying lesion sizes, diverse lesion morphologies, complex backgrounds, and the limited availability of high-quality annotated datasets. Existing detection models often suffer from performance degradation under these conditions, particularly when training data lack sufficient diversity and structural realism. To address these challenges, this paper proposes a Latent Diffusion Inpainting (LDI) data augmentation method and an improved lightweight detection model, LGH-YOLOv12n. Unlike conventional diffusion-based augmentation methods that generate full images or random patches, LDI performs category-aware latent inpainting, synthesizing realistic lesion patterns by jointly conditioning on background context and disease categories, thereby enhancing data diversity while preserving scene consistency. Furthermore, LGH-YOLOv12n improves upon the YOLOv12n baseline by introducing GSConv in the backbone to reduce channel redundancy and enhance lesion localization, and integrating Hierarchical Multi-head Attention (HMHA) into the neck network to better distinguish disease features from complex field backgrounds. Experimental results demonstrate that LGH-YOLOv12n achieves an F1 of 86.1% and an mAP@50 of 88.3%, outperforming the YOLOv12n model trained without data augmentation by 3.3% and 5.0%, respectively. Moreover, when trained on the LDI-augmented dataset, LGH-YOLOv12n consistently outperforms YOLOv8n, YOLOv10n, YOLOv11n, and YOLOv12n, with mAP@50 improvements of 4.6%, 5.2%, 1.9%, and 2.1%, respectively. These results indicate that the proposed LDI augmentation and LGH-YOLOv12n model provide an effective and robust solution for rice leaf disease detection in complex field environments.

AgricultureVol. 16(3)
Hunan Agricultural University (CN)
Openalex Percentile: Top 1%
Smart Agriculture and AI
31.34
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.

LGH-YOLOv12n: Latent Diffusion Inpainting Data Augmentation and Improved YOLOv12n Model for Rice Leaf Disease Detection — Cheng Li, Gang Chen, et al. · Agriculture (2026) | TGRS Research Map | TGRS