Enhancing Smart Agriculture With Lightweight Object Detection: MobileNetv3-YOLOv4 and Adaptive Width Multipliers
I-Shih Lin, Yingjun Cheng, Trong‐Yen Lee
Abstract
In recent years, the rapid development of the Internet of Things (IoT) and AI deep learning technologies has enhanced communication between devices and increased the availability of image data. In smart agriculture, sensors remotely monitor crop information, and cameras detect leaf growth and health, thereby enhancing farm productivity and quality. However, most object detection algorithms, such as YOLOv4, have too many parameters for real-time deployment on edge computing devices. To address this, we propose the MobileNetv3-YOLOv4 (MobYOLv4) architecture, which uses MobileNetv3 as the backbone and depthwise separable convolution to reduce complexity. This approach balances accuracy and detection speed. Experimental results reveal that the lightest MobYOLv4 architecture reduces parameters by 82.31%, achieves 29.48 FPS (a 38.14% increase), and has an accuracy of 97.74%. The MobYOLv4 with widths 1.4 architecture, optimized with width multiplier, reduces parameters by 78.03%, achieves 28.87 FPS, and has an accuracy of 98.84%. The MobYOLv4 with widths 1.8 architecture achieves the highest accuracy at 99.65%, reduces parameters by 72.62%, and achieves 27.91 FPS. Furthermore, the MQTT IoT transmission protocol is used to manage farm data and facilitate device communication. The proposed adaptive width multiplier strategies in MobYOLv4 for lightweight object detection balance accuracy improvement per additional parameter with overall model accuracy, effectively optimizing the model. The width multiplier can significantly impact the model’s parameters and actual detection accuracy.