Welcome to Francis Academic Press

The Frontiers of Society, Science and Technology, 2023, 5(18); doi: 10.25236/FSST.2023.051804.

Detection and Application of Apple Leaf Diseases Based on Object Detection


Mingyuan Zhong

Corresponding Author:
Mingyuan Zhong

School of Information Technology, Beijing Normal University, Zhuhai, Zhuhai, 519087, China


The healthy development of apple leaves is closely related to apple yield. There are three common symptoms of apple leaves: leaf spot, leaf rust and powdery mildew. Apple leaves are very susceptible to these viruses and are highly infectious. If the disease management of apple leaves is improper, it will lead to heavy losses in apple production and directly affect the economic income of farmers. Early detection of apple leaf diseases is the basis for timely prevention, which can inhibit the spread of diseases and minimize serious economic losses. Nowadays, the existing target detection technology can be used in apple leaf detection. Therefore, this paper will use the yolov5 algorithm based on deep learning to detect apple leaves and determine whether apple leaves are diseased. The experimental data comes from the Kaggle AI Challenge competition data set and the public data set on Kaggle. The disease area is manually marked by labeling tools to form a training apple leaf disease data set. In data processing, the Mosaic data enhancement method is used for data expansion, and the image is transferred into the HSV color space for tone transformation, so that the disease features have better highlights and achieve the purpose of data enhancement. The experimental model uses the YOLOv5 s network model. In order to improve the performance of the model, the CBAM attention mechanism is added to the backbone network of YOLOv5 s. The experimental data show that the accuracy (P) of the YOLOv5 s network model is 0.849, the recall rate ( R ) is 0.788, and the average detection accuracy (mAP) is 0.843. The accuracy (P) of YOLOv5s + CBAM was 0.869, the recall rate (R) was 0.798, and the average detection accuracy (mAP) was 0.848. At the end of the experiment, the web application design based on Flask framework is designed. In the last chapter, this paper looks forward to the future and summarizes the experiment.


YOLOv5; Object detection algorithm; Apple disease

Cite This Paper

Mingyuan Zhong. Detection and Application of Apple Leaf Diseases Based on Object Detection. The Frontiers of Society, Science and Technology (2023) Vol. 5, Issue 18: 19-29. https://doi.org/10.25236/FSST.2023.051804.


[1] Liu Y. Research on apple leaf disease detection method based on improved Faster R-CNN[D]. Xi 'an: Shaanxi University of Science and Technology, 2022.

[2] Ding R. Research on apple leaf disease recognition and segmentation based on convolutional neural network[D]. Shandong Agricultural University, 2022.

[3] Xu C. Measurement of green total factor productivity and analysis of influencing factors in China's main apple producing areas[D]. Tai 'an: Shandong Agricultural University, 2022.

[4] Li J, Zhu X, Jia R, Liu B, Yu C. Apple-YOLO: A Novel Mobile Terminal Detector Based on YOLOv5 for Early Apple Leaf Diseases[C]//2022 IEEE 46th Annual Computers, Software, and Applications Conference (COMPSAC). Los Alamitos, CA, USA: IEEE, 2022: 352-361.

[5] Song X, Mariano V Y. Image-based Apple Disease Detection Based on Residual Neural Network and Transfer Learning[C]//2023 IEEE 3rd International Conference on Power, Electronics and Computer Applications (ICPECA). Shenyang, China: IEEE, 2023: 365-369.

[6] Firdous S, Akbar S, Hassan S A, Khalid A, Gull S. Deep Convolutional Neural Network-based Framework for Apple Leaves Disease Detection[C]//2023 4th International Conference on Advancements in Computational Sciences (ICACS). Lahore, Pakistan: IEEE, 2023: 1-6.

[7] Liu Y-C. Improved algorithm for target detection based on YOLO series[D]. Changchun: Jilin University, 2021.

[8] Bonkra A, Bhatt P K, Kaur A, Kamboj S. Scientific Landscape and the Road Ahead for Deep Learning: Apple Leaves Disease Detection[C]//2023 International Conference on Artificial Intelligence and Smart Communication (AISC). Greater Noida, India: IEEE, 2023: 869-873.

[9] Ding K, Li X, Guo W, Wu L. Improved object detection algorithm for drone-captured dataset based on yolov5[C]//2022 2nd International Conference on Consumer Electronics and Computer Engineering (ICCECE). Guangzhou, China: IEEE, 2022: 895-899.

[10] Chakraborty S, Paul S, Rahat-Uz-Zaman M. Prediction of Apple Leaf Diseases Using Multiclass Support Vector Machine[C]//2021 2nd International Conference on Robotics, Electrical and Signal Processing Techniques (ICREST). DHAKA, Bangladesh: IEEE, 2021: 147-151.

[11] B. K S B, G S, Kishore M, S R, A. D J. Real-time Pothole Detection using YOLOv5 Algorithm: A Feasible Approach for Intelligent Transportation Systems[C]//2023 Second International Conference on Electronics and Renewable Systems (ICEARS). Tuticorin, India: IEEE, 2023: 1678-1683.