Manuscript Offprint
arXiv:2610.11764UltraLight Luma: A Novel Edge-Deployable Perception Network for Crop-Row Segmentation in Agricultural Robotics
Dhanushka Balasingham , Shamod Ginigaddarage , Hanojhan Rajahrajasingh , Nuwan Kodagoda and Rajitha de Silva
Abstract—Reliable crop-row perception is essential for autonomous agricultural robots, but low-cost deployment is constrained by computation, memory, power, and inference time. This paper addresses crop-row detection and navigation-line extraction using UltraLight Luma, a compact encoder-decoder segmentation network with a progressive learning strategy and only 13.1k trainable parameters. The predicted crop-row masks are processed using a post-processing algorithm to estimate row alignment for downstream visual servoing. UltraLight Luma improves parameter efficiency over U-Net, YOLOv8, and YOLOv26 while maintaining reliable crop-row detection performance. The model required only 25.23 mJ per inference, demonstrating its suitability for resource-constrained agricultural robots.
Keywords: Crop-row segmentation, agricultural robotics, edge deployment, lightweight neural networks, visual servoing, Triangle Scan Method
I. INTRODUCTION
Autonomous agricultural robots can reduce labor demand and improve field productivity, but reliable crop-row detection remains essential for navigation, localization, weeding, spraying, and inspection. Deployment on low-cost mobile platforms is constrained by computation, battery capacity, and hardware cost, while high-computation models often require expensive processors and consume more power [1]. Therefore, crop-row detection must be accurate, efficient, cost effective, and fast enough for real-time operation.
In this work, crop-row detection is formulated as an image segmentation task using forward-facing red-green-blue (RGB) images from mobile agricultural robots. The goal is to identify visible crop-row regions for row following and navigation under practical field challenges such as shadows, weeds, missing plants, uneven soil, and perspective distortion. The target platform is a low-cost, compute-constrained embedded device with limited memory, power, and inference time.
The proposed approach uses an ultra-lightweight segmentation model to predict crop-row regions from RGB images in real time on constrained hardware. Unlike classical thresholding or line-fitting methods, it is designed to be more robust to changes in illumination, plant density, and row structure, while avoiding the high memory, power, and processor requirements of heavier deep networks [1], [2]. Thus, the method balances accuracy, speed, and deployability for low-cost agricultural robots.
The key contributions of this paper are: (1) A novel ultralightweight encoder-decoder segmentation network, UltraLight Luma, is proposed with a progressive learning strategy for crop-row segmentation on low-cost agricultural robotic platforms using only 13.1k trainable parameters. (2) A navigation-line extraction module based on the Triangle Scan Method (TSM) is applied to the segmented mask to estimate the crop-row navigation line. (3) A comparative analysis against state-of-the-art models is conducted through experimental assessment.
Multiple semantic segmentation models have been explored for crop-row detection in agricultural environments. Among them, U-Net-based approaches have demonstrated effective pixel-wise segmentation performance for identifying croprows under varying field conditions [7], [8]. For example, Doha et al. reported competitive mean Intersection over Union (IoU) scores using U-Net architectures for crop-row segmentation tasks. However, conventional U-Net architectures consist of deep encoder-decoder networks with numerous convolutional layers, resulting in increased computational complexity and inference time. Consequently, more computationally efficient architectures such as LinkNet have been investigated to enable real-time agricultural navigation applications [8].
Although LinkNet is more computationally efficient than U-Net, it still contains approximately 11.5 million parameters [9]. To further reduce computational cost, efficient architectures such as Efficient Neural Network (ENet) [2], YOLO-based models [10], and MobileNet-based backbones [11] have been investigated for agricultural vision tasks, including crop-row identification. These models have demonstrated promising performance. However, their parameter counts remain relatively high for extremely constrained embedded deployment. To the best of current knowledge, existing lightweight approaches for crop-row detection have not achieved a parameter count
(Corresponding author: Dhanushka Balasingham.)
Dhanushka Balasingham, Shamod Ginigaddarage, Hanojhan Rajahrajasingh and Nuwan Kodagoda are with the Faculty of Computing, Sri Lanka Institute of Information Technology, Malabe, Sri Lanka. Email: dhanushkasandeepa@gmail.com; shamodpasindu@gmail.com
Rajitha de Silva is with Lincoln Centre for Autonomous Systems (L-CAS), University of Lincoln, UK. Email: odesilva@lincoln.ac.uk below 0.1 million. In contrast, the proposed model uses only 13.1k parameters for crop-row segmentation, providing a substantially more compact alternative for low-cost robotic platforms.
III. METHODOLOGY
Figure 1 presents the complete crop-row detection pipeline, where a forward-facing camera captures RGB images, which are passed to UltraLight Luma for crop-row segmentation. The resulting mask is processed by the TSM to estimate the angular error, which is then fed to the visual-servoing controller to generate velocity commands. This work focuses on two tasks: crop-row detection and navigation-line extraction for the straddling robot.

Fig. 1: Overall vision-based navigation pipeline, including RGB image input, lightweight segmentation, crop-row mask prediction, and navigation-line extraction.
Crop-row detection is formulated as a binary semantic segmentation problem. Given an RGB image , the objective is to predict a binary mask , where pixels with label 1 correspond to crop-row regions and pixels with label 0 correspond to background. The predicted crop-row mask is then used as a perception output for downstream row following and navigation. The complete crop-row perception pipeline consists of four phases.
A. Dataset Preparation
The dataset in [7], collected with a front-mounted camera on a Husky robot, contains 2000 images across two crops, 11 field variations, and 50 data classes, split into 1250 training, 250 validation, and 500 test images. Each image has a binary ground-truth mask, with white pixels representing crop regions and black pixels representing background. Images and masks are resized to , and training uses spatial and photometric augmentation while preserving image-mask correspondence.
B. UltraLight Luma Architecture
UltraLight Luma uses a U-Net-inspired encoder-decoder structure [12] and extends the lightweight depthwise-separable design of UltraLight+ [13] to segmentation. Standard convolutions are replaced with depthwise-separable (DW-Sep) blocks to reduce parameters and activation memory for edge deployment. Each DW-Sep block applies a depthwise convolution followed by a pointwise convolution, with Batch Normalization (BN) and ReLU after each step, as shown in Eq. 1.
where is the input feature map of spatial dimensions with input channels, denotes a depthwise convolution applying one filter per input channel, denotes a pointwise convolution that mixes information across channels, BN denotes Batch Normalisation, ReLU is the rectified linear unit activation function, and is the output feature map with output channels. This composite block is referred to as DWSep() and the full layer sequence is summarised in Table I.
TABLE I: UltraLight Luma layer summary.
| Stage | Name | Output Shape | Channels |
|---|---|---|---|
| Encoder | Input | 64×64 | 3 |
| Stem | 32×32 | 16 | |
| MS-Fuse | 32×32 | 32 | |
| Enc-1 | 32×32 | 32 | |
| Downsample | Enc-2 | 16×16 | 32 |
| Enc-3 | 8×8 | 32 | |
| Decoder | Dec-3 | 16×16 | 32 |
| Dec-2 | 32×32 | 16 | |
| Dec-1 | 64×64 | 16 | |
| Output | Seg-Out | 64×64 | 2 |
The network processes inputs through four sequential stages namely encoder, downsample, decoder, and output head.
- Encoder: The encoder stage begins with a stem convolution that applies a standard convolution with stride 2, reducing the input to a feature map while extracting initial low-level spatial features. The stem output is then passed to a multi-scale fusion block that processes features at two spatial scales in parallel. The first branch preserves the current resolution using a depthwise convolution, while the second branch applies a strided depthwise convolution and upsamples the result back to . The two branches are concatenated and fused through a pointwise convolution. The fused representation is then processed by a DW-Sep block (Enc-1), whose output is stored as skip connection that is denoted by for later use in the decoder. The encoder stage is expressed in 4.
- Downsample: The downsample stage reduces the spatial resolution of the encoder representation to a compact bottleneck through two successive strided DW-Sep blocks. Enc-2 halves the spatial dimensions from to and its output is retained as skip connection that is denoted

Fig. 2: Architecture of the proposed UltraLight Luma encoder–decoder network for crop-row segmentation. The model uses compact depthwise-separable convolutional blocks, multi-scale feature fusion, and skip connections to preserve spatial row structure while maintaining edge-deployable complexity.
by . Enc-3 further reduces the resolution to , producing the bottleneck representation . The downsample stage is expressed using 5.The is the bottleneck feature map passed to the decoder, and the subscript denotes strided convolution for spatial downsampling.
- Decoder: The decoder restores spatial resolution through three successive bilinear upsampling steps, following the Feature Pyramid Network paradigm [14]. At each stage, the upsampled feature map is concatenated with the corresponding encoder skip connection and fused by a pointwise convolution before a DW-Sep block, recovering spatial detail critical for accurate crop-row boundary delineation. The decoder stage is expressed in 6.
where is the feature map from the previous decoder stage (with ), is the corresponding skip connection from the encoder or downsample stage, and denotes bilinear upsampling by a factor of 2. The final decoder output is produced by a third upsampling step without a skip connection.
- Output: A convolution maps the final feature map to C = 2 class logits, and a softmax activation converts these logits into per-pixel class probabilities for the background and crop-row classes using 7.
where denotes the logit for class produced by the convolution, is the total number of classes (background and crop-row), and is the predicted probability that pixel belongs to class .
C. Training Objective
The output probabilities are compared with the ground-truth mask using a combined focal and Dice loss to address class imbalance in crop-row segmentation. Focal loss emphasizes hard foreground pixels, while Dice loss encourages overlap between the predicted and ground-truth masks. The total loss is defined in Eq. 8.
The model is trained using the Adam optimizer with an initial learning rate of and a cosine decay learning-rate schedule. Checkpoints are selected based on the validation crop-row IoU. Multiple training durations are evaluated to analyze how segmentation quality changes with the number of epochs and the results are presented in Section IV-A. Once training is complete, the optimised model weights are applied during inference. To further optimize this process, the network incorporates the two-phase progressive resolution training strategy established in paper [15], which initiates training with low-resolution inputs (64x64) before progressing to higher resolutions. This progressive training approach enables highly efficient parameter utilization, accelerates convergence, and reduces total training time by 28%.
D. Inference and Post-Processing
At inference time, the RGB image is resized to and passed through UltraLight Luma. The network produces a probability tensor, and the crop-row probability channel is bilinearly upsampled to the original image resolution. A fixed threshold is then applied to obtain the binary crop-row mask, as given in 9.

(a)
(b)
(c)

(d)
(e)
(f)
Fig. 3: Crop-row segmentation predictions produced by UltraLight Luma at different training stages: (a) 50 epochs, (b) 100 epochs, (c) 150 epochs, (d) 200 epochs, (e) 250 epochs, and (f) 300 epochs. White pixels indicate predicted crop-row regions.
where denotes the pixel coordinates in the upsampled map and is the upsampled crop-row probability at that position. For row-geometry analysis, the binary mask is skeletonized to obtain single-pixel-wide row centerlines. A small morphological dilation is then applied to make the extracted lines easier to visualize while preserving their geometric location. The resulting mask is used in the TSM-based analysis described in Section IV-C.
IV. EXPERIMENTAL EVALUATION
This section evaluates the proposed model using quantitative segmentation metrics, qualitative prediction results, TSM-based crop-row analysis, and comparisons with YOLO and U-Net where appropriate. Experiments were conducted on a Ryzen 7 CPU and an NVIDIA RTX 4050 GPU with 4 GB of memory using the dataset described in Section III-A. Segmentation performance is measured using IoU across training epochs, while qualitative results assess robustness under selected field conditions.
A. Training Progress and Segmentation Accuracy
The proposed model was trained for 50, 100, and 150 epochs to analyze the effect of training duration on crop-row segmentation performance. The prediction results at each training stage are presented in Fig. 3, where the detected crop-row regions are shown as white pixels in the binary output images. To quantitatively evaluate detection performance on the test dataset, IoU was used as the evaluation metric. The model achieved IoU values of 15.63%, 17.77%, 18.72%, 19.66%, 19.88%, and 20.68% after 50, 100, 150, 200, 250, and 300 epochs, respectively. These results show that segmentation accuracy improved as training progressed. The total training time for 300 epochs was 26.08 minutes, with a mean training time of 5.22 seconds per epoch. This average was computed across six training runs corresponding to 50, 100, 150, 200, 250, and 300 epochs.

(a) RGB image
(b) U-Net prediction

(c) YOLO prediction
(d) UltraLight Luma prediction
Fig. 4: Qualitative comparison of crop-row detection for a representative strawberry greenhouse image: (a) input RGB image, (b) U-Net segmentation prediction, (c) YOLOv8-based prediction, and (d) UltraLight Luma prediction.
B. Crop Row Prediction Under Diverse Field Conditions
Figure 6 shows the crop-row masks predicted by the Luma model for land crops such as maize and sugar beet, as well as greenhouse crops such as strawberry. Prediction under shadowed field conditions is also shown in Fig. 6(d), indicating the model's ability to maintain crop-row detection under changes in illumination and scene appearance. Figure 4 compares crop-row predictions produced by U-Net [7], YOLOv8, and Luma from the same RGB input image. The qualitative results show that the proposed Luma model is capable of segmenting croprows efficiently. In addition, effective segmentation performance was observed under indoor greenhouse conditions.
C. TSM-Based Crop Row Analysis
The TSM is a post-processing algorithm that exploits the crop-row vanishing point caused by perspective distortion to define the top point of the centerline. Keeping this top point fixed, it performs a sweeping scan to candidate points along the bottom edge, and the line with the most white pixels is selected as the crop-row centerline, defining its angle and lateral position. The TSM was applied to evaluate the crop-row detection performance of the proposed model. For each image, two parameters were extracted from the detected crop-row: the angular deviation from the vertical axis ( ) and the lateral offset of the lower endpoint from the image center ( ). These parameters were used to compute the overall detection performance as defined in 10.

Fig. 5: Log-parameter-normalized performance comparison of the proposed Luma model, U-Net, YOLOv8n, and YOLOv26n across different data categories. Each cell represents the normalized log-parameter-adjusted score, while the raw value is shown in brackets. Higher values indicate better parameter-efficient performance.
where N is the total number of images evaluated, and are the maximum observed angular deviation and lateral offset respectively, used to normalize the errors within a consistent scale. Figure 6 illustrates representative TSM detection outputs across different field conditions. These outputs show that the Luma model can identify the navigation line from its predictions using the TSM algorithm. The values of and were selected from the baseline defined in [16]. The proposed Luma model achieved an average score of 74.81%. Although it achieved a lower raw score than U-Net, it required substantially fewer trainable parameters, demonstrating stronger parameter efficiency. Therefore, a comparative analysis was conducted between the proposed Luma model and U-Net [16], YOLOv8, and YOLOv26 using the log-normalized parameter efficiency metric defined in Eq. 11. This metric enables a fairer comparison across models with considerably different parameter counts.
where is the log-normalized parameter efficiency score, is the raw performance score, and

(a) Maize
(b) Strawberry greenhouse

(c) Sugar beet
(d) Sugar beet with front shadows
Fig. 6: Representative TSM-based crop-row detection outputs under different field conditions: (a) maize, (b) strawberry greenhouse, (c) sugar beet, and (d) sugar beet with front shadows. Each subplot shows the crop-row centerline estimated from the segmentation output and used to compute the angular deviation and lateral offset metrics.
is the parameter count of method i in millions. The index denotes the segmentation method, and j denotes the data category as defined in [16] and illustrated in Fig. 5, where each category is represented along the x-axis. The constant ensures numerical stability, and the min and max operators are computed globally over all i and j. The comparative analysis of values is presented in Fig. 5. The average values were 57.6%, 57.4%, and 39.1% for U-Net, YOLOv8, and YOLOv26, respectively, whereas Luma achieved 91.0%, demonstrating its superior performance. These results indicate that the detected crop-rows are consistently well-centered and aligned with the vertical axis, demonstrating the capability of the proposed model to reliably detect crop rows across varying field conditions.
D. Computational Efficiency Analysis
The inference efficiency of UltraLight Luma was compared against YOLOv8n across four metrics: CPU utilization, energy per inference, average power consumption, and total inference time, measured over 30 test cases. As shown in Fig. 7 and Table II, UltraLight Luma achieved lower resource consumption across all metrics, with only 0.013M parameters compared to 3.157M for YOLOv8n, making it approximately 243 times smaller while requiring less energy and power during inference.

(a)
(b)

(c)
(d)
UltraLight Luma
YOLOv8n
Fig. 7: Comparison of inference efficiency metrics between UltraLight Luma and YOLOv8n over 30 inference cycles. UltraLight Luma consistently outperforms YOLOv8n across all metrics, demonstrating significantly lower resource consumption. (a) CPU utilization (%), (b) energy per inference (mJ), (c) average power consumption (W), and (d) total inference time (s).
TABLE II: Inference efficiency comparison: UltraLight Luma vs. YOLOv8n.
| Model | Params (M) | Size (MB) | CPU (%) | Power (W) | Energy (mJ/inf.) |
|---|---|---|---|---|---|
| UltraLight Luma | 0.013 | 0.517 | 62.23 | 28.00 | 25.23 |
| YOLOv8n | 3.157 | 6.550 | 72.13 | 32.46 | 1268.50 |
V. CONCLUSION
This paper presented UltraLight Luma, an ultra-lightweight encoder-decoder segmentation network for crop-row perception on low-cost agricultural robotic platforms. The proposed approach formulates crop-row detection as a binary segmentation problem and combines the predicted mask with a Triangle Scan Method-based navigation-line extraction module to support downstream visual servoing. Despite its modest maximum IoU of 20.68%, UltraLight Luma preserved sufficient crop-row structure to achieve an average crop-row detection score of 74.81%, while using only 13.1k trainable parameters and reaching a parameter-efficiency score of 91.0%. These results show that UltraLight Luma offers a practical balance between segmentation performance, navigation-line extraction, and edge-deployable efficiency for resource-constrained agricultural robots.
VI. ACKNOWLEDGEMENT
The authors acknowledge the use of OpenAI ChatGPT for language editing, grammar improvement, and clarity enhancement during manuscript preparation. The AI tool was used only to refine the presentation of author-provided technical content and final manuscript content were reviewed and verified by the authors.
REFERENCES
[1] V. Sze, Y.-H. Chen, T.-J. Yang, and J. S. Emer, “Efficient processing of deep neural networks: A tutorial and survey,” Proceedings of the IEEE, vol. 105, no. 12, pp. 2295–2329, 2017.
[2] J. Yu, J. Zhang, A. Shu, Y. Chen, J. Chen, Y. Yang, W. Tang, and Y. Zhang, “Study of convolutional neural network-based semantic segmentation methods on edge intelligence devices for field agricultural robot navigation line extraction,” Computers and Electronics in Agriculture, vol. 209, p. 107811, 2023.
[3] D. Balasingham, S. Samarathunga, G. G. Arachchige, A. Bandara, S. Wellalage, D. Pandithage, M. M. Hansika, and R. De Silva, “Sparrow: Smart precision agriculture robot for ridding of weeds,” in 2024 5th International Conference for Emerging Technology (INCET), pp. 1–6, 2024.
[4] Y. Hu and H. Huang, “Extraction method for centerlines of crop row based on improved lightweight yolov4,” in 2021 6th International Symposium on Computer and Information Processing Technology (ISCIPT), pp. 127–132, 2021.
[5] H. Gong, W. Zhuang, and X. Wang, “Improving the maize crop row navigation line recognition method of yolox,” Frontiers in Plant Science, vol. Volume 15 - 2024, 2024.
[6] B. Li, D. Li, Z. Wei, and J. Wang, “Rethinking the crop row detection pipeline: An end-to-end method for crop row detection based on row-column attention,” Computers and Electronics in Agriculture, vol. 225, p. 109264, 2024.
[7] R. de Silva, G. Cielniak, G. Wang, and J. Gao, “Deep learning-based crop row detection for infield navigation of agri-robots,” Journal of Field Robotics, vol. 41, no. 7, pp. 2299–2321, 2024.
[8] R. Doha, M. A. Hasan, and S. Anwar, “Semantic segmentation approaches in crop row detection,” in 2022 IEEE International Conference on Big Data (Big Data), pp. 2224–2230, 2022.
[9] A. Chaurasia and E. Culurciello, “Linknet: Exploiting encoder representations for efficient semantic segmentation,” CoRR, vol. abs/1707.03718, 2017.
[10] T. Sun, F. Le, C. Cai, Y. Jin, X. Xue, and L. Cui, “Soybean-corn seedling crop row detection for agricultural autonomous navigation based on gd-yolov10n-seg,” Agriculture, vol. 15, no. 7, 2025.
[11] L. Wu, Y. Cui, H. Shi, X. Sun, J. Yang, X. Cao, P. Zou, and Y. Liu, “An improved deeplabv3+ based method for crop row segmentation and navigation line extraction in agricultural fields,” Sensors, vol. 26, no. 10, 2026.
[12] O. Ronneberger, P. Fischer, and T. Brox, “U-net: Convolutional networks for biomedical image segmentation,” in Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015 (N. Navab, J. Hornegger, W. M. Wells, and A. F. Frangi, eds.), (Cham), pp. 234–241, Springer International Publishing, 2015.
[13] S. Ginigaddarage and H. Rajahrajasingh, “Ultralight+: An optimized progressive cnn architecture for efficient image classification,” in 2025 IEEE 19th International Conference on Industrial and Information Systems (ICIIS), vol. 19, pp. 401–406, 2026.
[14] T. Lin, P. Dollár, R. B. Girshick, K. He, B. Hariharan, and S. J. Belongie, “Feature pyramid networks for object detection,” CoRR, vol. abs/1612.03144, 2016.
[15] S. Ginigaddarage and H. Rajahrajasingh, “Ultralight: Progressive resolution training for ultra-efficient cnns on edge devices,” 01 2026.
[16] R. de Silva, G. Cielniak, and J. Gao, “Vision based crop row navigation under varying field conditions in arable fields,” Computers and Electronics in Agriculture, vol. 217, p. 108581, 2024.