Next Article in Journal
A Comparison of the Horizontal and Vertical Positions of the PET Bioreactor for In Vitro Commercial Propagation of Vanilla
Previous Article in Journal
Effects of Different Light-Quality Ratios on Growth and Development of Chrysanthemum morifolium Tissue-Cultured Plantlets
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

DFR-YOLOv12n: A Lightweight Detection Method for Tomato Leaf Diseases in Natural Environments via Detail-Preserving Downsampling, Feature Fusion Enhancement, and Regression Optimization

1
School of Agricultural Engineering and Food Science, Shandong University of Technology, Zibo 255000, China
2
Research of Institute of Ecological Unmanned Farm, Shandong University of Technology, Zibo 255000, China
3
School of Agriculture and Biology, Shanghai Jiao Tong University, Shanghai 200240, China
*
Author to whom correspondence should be addressed.
Horticulturae 2026, 12(7), 879; https://doi.org/10.3390/horticulturae12070879
Submission received: 20 June 2026 / Revised: 15 July 2026 / Accepted: 16 July 2026 / Published: 18 July 2026

Abstract

Tomato leaf disease detection in natural environments is challenged by subtle early-stage symptoms, complex backgrounds, leaf occlusion, and scale variation, which can lead to missed detections, false detections, and unstable leaf localization. Meanwhile, practical agricultural applications impose higher requirements on model lightweightness and edge-deployment capability. To address these issues, this study proposes DFR-YOLOv12n, a lightweight tomato leaf disease detection model based on YOLOv12n that integrates detail-preserving downsampling, feature enhancement, and regression optimization. First, a multi-source dataset collected in natural environments was constructed and curated, covering eight categories: bacterial spot, early blight, late blight, leaf mold, mosaic virus disease, septoria leaf spot, yellow leaf curl virus disease, and healthy leaves. Second, SPDConv was introduced into key downsampling layers to preserve fine-grained disease-related visual cues. The A2C2f_DEConv module was incorporated into the P3 feature fusion branch to enhance leaf texture and disease-related appearance features under complex backgrounds. In addition, MPDIoU was adopted to optimize bounding box regression and improve whole-leaf localization under occlusion and background interference. The optimal model configuration was determined through insertion-position, module comparison, and ablation experiments. Compared with the baseline model, DFR-YOLOv12n increased Precision, Recall, and mAP@0.5 from 86.8%, 76.9%, and 86.5% to 88.1%, 81.7%, and 88.6%, respectively. Meanwhile, FLOPs decreased from 5.83 G to 5.27 G, the parameter count decreased from 2.51 M to 2.25 M, and the model size decreased from 5.22 MB to 4.71 MB. Furthermore, the model was successfully deployed and validated on the Jetson Nano platform, demonstrating its potential for edge applications. The results indicate that DFR-YOLOv12n achieves a favorable balance among detection accuracy, model complexity, and deployment feasibility, providing a reference for intelligent tomato leaf disease detection in natural environments.
Keywords: natural environment; tomato leaf diseases; YOLOv12n; lightweight; edge deployment natural environment; tomato leaf diseases; YOLOv12n; lightweight; edge deployment

Share and Cite

MDPI and ACS Style

Han, Y.; Zhu, Y.; Hu, T.; Lan, Y.; Huang, D.; Zhao, S. DFR-YOLOv12n: A Lightweight Detection Method for Tomato Leaf Diseases in Natural Environments via Detail-Preserving Downsampling, Feature Fusion Enhancement, and Regression Optimization. Horticulturae 2026, 12, 879. https://doi.org/10.3390/horticulturae12070879

AMA Style

Han Y, Zhu Y, Hu T, Lan Y, Huang D, Zhao S. DFR-YOLOv12n: A Lightweight Detection Method for Tomato Leaf Diseases in Natural Environments via Detail-Preserving Downsampling, Feature Fusion Enhancement, and Regression Optimization. Horticulturae. 2026; 12(7):879. https://doi.org/10.3390/horticulturae12070879

Chicago/Turabian Style

Han, Yanlu, Yi Zhu, Tianxiang Hu, Yubin Lan, Danfeng Huang, and Shuo Zhao. 2026. "DFR-YOLOv12n: A Lightweight Detection Method for Tomato Leaf Diseases in Natural Environments via Detail-Preserving Downsampling, Feature Fusion Enhancement, and Regression Optimization" Horticulturae 12, no. 7: 879. https://doi.org/10.3390/horticulturae12070879

APA Style

Han, Y., Zhu, Y., Hu, T., Lan, Y., Huang, D., & Zhao, S. (2026). DFR-YOLOv12n: A Lightweight Detection Method for Tomato Leaf Diseases in Natural Environments via Detail-Preserving Downsampling, Feature Fusion Enhancement, and Regression Optimization. Horticulturae, 12(7), 879. https://doi.org/10.3390/horticulturae12070879

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop