In order to monitor the early growth status of clam seedlings and meet the demands of precision seedling cultivation in a factory setting, this study improves the YOLOv5s model and proposes a high-precision and lightweight method for detecting biological features of clam seedlings. Firstly, dataset of clam seedlings under the microscope was constructed. Secondly, we established a clam seedling detection model based on four different attention mechanisms and analyzed the differences in the features focused on by different attention mechanisms in clam seedling detection. The accuracy of the anchors was optimized using the K-means++ algorithm, and the Soft-NMS method was employed to address the issue of missed detections caused by dense stacking of clam seedlings. The proposed approach has the optimal comprehensive performance by comparing various lightweight networks. The results show that the AP-health, AP-death and mAP of this approach are 98.15%, 93.87% and 96.01%, which can meet the standard for high precision. With a transmission speed of 86 FPS, an average response time of 11.54 ms, and a model size of 27.59 MB, the approach satisfies the requirements for efficiency and portability. Finally, a biological feature detection software of clam seedlings was developed, which can automatically calculate phenotypic information such as the number of clam seedlings, survival rate, and average size. This paper provides a basis for real-time and accurate assessment of clam seedlings biological features while offering technical support for the automation and intelligence of clam seedlings production in factories.
Read full abstract