Disease and detection is crucial for the protection of forest growth, reproduction, and biodiversity. Traditional detection methods face challenges such as limited coverage, excessive time and resource consumption, and poor accuracy, diminishing the effectiveness of forest disease prevention and control. By addressing these challenges, this study leverages drone remote sensing data combined with deep object detection models, specifically employing the YOLO-v3 algorithm based on loss function optimization, for the efficient and accurate detection of tree diseases and pests. Utilizing drone-mounted cameras, the study captures insect pest image information in pine forest areas, followed by segmentation, merging, and feature extraction processing. The computing system of airborne embedded devices is designed to ensure detection efficiency and accuracy. The improved YOLO-v3 algorithm combined with the CIoU loss function was used to detect forest pests and diseases. Compared to the traditional IoU loss function, CIoU takes into account the overlap area, the distance between the center of the predicted frame and the actual frame, and the consistency of the aspect ratio. The experimental results demonstrate the proposed model’s capability to process pest and disease images at a slightly faster speed, with an average processing time of less than 0.5 s per image, while achieving an accuracy surpassing 95%. The model’s effectiveness in identifying tree pests and diseases with high accuracy and comprehensiveness offers significant potential for developing forest inspection protection and prevention plans. However, limitations exist in the model’s performance in complex forest environments, necessitating further research to improve model universality and adaptability across diverse forest regions. Future directions include exploring advanced deep object detection models to minimize computing resource demands and enhance practical application support for forest protection and pest control.