A YOLO-based pest detection system for precision agriculture