ABSTRACT
Pomegranate is an important fruit crop that is usually managed manually through experience. Intelligent management systems for pomegranate orchards can improve yields and address labor shortages. Fast and accurate detection of pomegranates is one of the key technologies of this management system, crucial for yield and scientific management. Currently, most solutions use deep learning to achieve pomegranate detection, but deep learning is not effective in detecting small targets and large parameters, and the computation speed is slow; therefore, there is room for improving the pomegranate detection task. Based on the improved You Only Look Once version 5 (YOLOv5) algorithm, a lightweight pomegranate growth period detection algorithm YOLO-Granada is proposed. A lightweight ShuffleNetv2 network is used as the backbone to extract pomegranate features. Using grouped convolution reduces the computational effort of ordinary convolution, and using channel shuffle increases the interaction between different channels. In addition, the attention mechanism can help the neural network suppress less significant features in the channels or space, and the Convolutional Block Attention Module attention mechanism can improve the effect of attention and optimize the object detection accuracy by using the contribution factor of weights. The average accuracy of the improved network reaches 0.922. It is only less than 1% lower than the original YOLOv5s model (0.929) but brings a speed increase and a compression of the model size. and the detection speed is 17.3% faster than the original network. The parameters, floating-point operations, and model size of this network are compressed to 54.7%, 51.3%, and 56.3% of the original network, respectively. In addition, the algorithm detects 8.66 images per second, achieving real-time results. In this study, the Nihui convolutional neural network framework was further utilized to develop an Android-based application for real-time pomegranate detection. The method provides a more accurate and lightweight solution for intelligent management devices in pomegranate orchards, which can provide a reference for the design of neural networks in agricultural applications.
Subject(s)
Algorithms , Fruit , Neural Networks, Computer , Pomegranate , Pomegranate/chemistry , Deep LearningABSTRACT
Here, a machine learning tool (YOLOv5) enables the detection of Cryptosporidium microorganisms using optical and phase contrast microscope images. The two databases were processed using 520 images (optical microscopy) and 1200 images (phase contrast microscopy). It used Python libraries to label, standardize the size, and crop the images to generate the input tensors to the YOLOv5 network (s, m, and l). It implemented two experiments using randomly initialized weights in optical and phase contrast microscope images. The other two experiments used the parameters for the best training time obtained before and after retraining the models. Metrics used to assess model accuracy were mean average accuracy, confusion matrix, and the F1 scores. All three metrics confirmed that the optimal model used the best epoch of optical imaging training and retraining with phase contrast imaging. Experiments with randomly initialized weights with optical imaging showed the lowest precision for Cryptosporidium detection. The most stable model was YOLOv5m, with the best results in all categories. However, the differences between all models are lower than 2%, and YOLOv5s is the best option for Cryptosporidium detection considering the differences in computational costs of the models.