Autonomous Agricultural Tractor: Integrated Weed Detection and LiDAR Navigation for Precision Paddy Farming
Organizations: Department of Computing and Software Engineering Florida Gulf Coast University, Fort Myers, FL 33965, USA
Abstract
Site-specific weed management in paddy farming offers substantial reductions in herbicide use over conventional broadcast spraying, but field deployment has been limited by three persistent challenges: robust crop-row navigation under canopy where GNSS degrades, real-time visual discrimination between rice and morphologically diverse weeds, and the asymmetric cost of misclassifying rice as weed, which is irreversible. This paper presents AgriNav, an integrated autonomous tractor system built around four ROS-coupled modules: a custom PyTorch reimplementation of WeedDet for rice detection, a parallel lightweight 1.68M-parameter CNN-FPN variant with asymmetric class weighting, an inverted-logic discrimination module that protects the rice class through a hardcoded confidence-gate veto, and a 6-state constant-velocity-turn-rate Extended Kalman Filter fusing GNSS, IMU, and wheel odometry with three-level outage bridging. Our primary system-level contribution is a four-mechanism LiDAR-camera fusion bridge that uses the navigation LiDAR for region-of-interest constraint, world-coordinate projection, ground-plane filtering, and bidirectional confidence fusion at zero additional hardware cost. Simulation experiments demonstrate continuous position tracking through a 20-second GNSS outage, crop row detection confidence above 0.9 throughout operation, and rice-detection confidences from 0.32 to 0.95 across paddy, aerial, and post-flood imagery. The LiDAR ROI constraint reduces detection inference region by an estimated 30 to 50 percent.
Figures & tables
| Split | Images | Rice boxes | Weed boxes | Ratio W:R |
|---|---|---|---|---|
| Train | 3,232 | 14,891 | 2,217 | 1:6.7 |
| Validation | 404 | 1,868 | 277 | 1:6.7 |
| Test | 405 | 1,860 | 278 | 1:6.7 |
| Total | 4,041 | 18,619 | 2,772 | 1:6.7 |
| Stage | Output Size | Channels | Stride | FPN |
|---|---|---|---|---|
| Stage 1 | 32 | 2 | No | |
| Stage 2 | 64 | 2 | No | |
| Stage 3 | 128 | 2 | P3 | |
| Stage 4 | 256 | 2 | P4 | |
| Stage 5 | 512 | 2 | P5 |
| Hyperparameter | Value |
|---|---|
| Optimizer | Adam |
| Initial LR | |
| LR schedule | Cosine annealing |
| Batch size | 4 (CPU) / 16 (GPU) |
| Epochs | 12 |
| Gradient clip | max norm |
| Class | AP (%) | Notes |
|---|---|---|
| Rice | 24.7 | Adequate localization at |
| Weed | 0.0 ∗ | High classification confidence; IoU is the bottleneck |
| mAP | 12.4 | CPU training, resolution |
| ∗ Weed confidence scores confirmed up to 0.995. | ||
| Box IoU limited by low resolution; GPU training resolves this. | ||
| Field | Value |
|---|---|
| Output topic | /weeddet/detections |
| Message type | Custom BoundingBoxArray |
| Box format | [x1, y1, x2, y2] in pixels |
| Label encoding | 1 = rice , 2 = weed |
| Score range | |
| Weed conf. threshold | 0.15 |
| Node | Function |
|---|---|
| lidar_row_detection | K-means + RANSAC + EKF crop row detection from 2D LiDAR |
| ekf_localization | 6-state CVTR EKF fusing GNSS + IMU + wheel odometry |
| gnss_outage_bridge | GNSS health monitoring and dead-reckoning mode management |
| row_centerline | Centerline computation + pure pursuit lane-following controller |
| Metric | Value |
|---|---|
| GNSS outage duration | 20 s |
| Robot forward speed | 0.3 m/s |
| Final positional drift | 2.46 m |
| Localization method | EKF dead reckoning |
| Sensor fusion inputs | GNSS + IMU + odometry |
| Metric | Value | Reference |
| Detection Models | ||
| WeedDet architecture | Det-ResNet-50 + eFPN + ERetinaHead (PyTorch reimplementation) | Section III |
| WeedDet best training loss | 1.2346 over 94 epochs | Section III |
| WeedDet rice confidence range | 0.32 to 0.95 across paddy / aerial / post-flood imagery | Section III |
| Lightweight model parameters | 1.68M (5-stage backbone + 3-level FPN) | Section IV |
| Lightweight training resolution | (CPU); GPU run pending | Section IV |
| Topic | Producer | Consumer |
|---|---|---|
| /crop_row_state | Krish/Bilal | Benny (ROI) |
| /cmd_vel | Krish | Vehicle Control |
| /gnss/status | Krish | All |
Agricultural Robotics
Agricultural robotics develops autonomous machines that sense, navigate, and perform tasks such as monitoring, weeding, spraying, and harvesting crops.
See all 97 papers