Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Nov 18:16:1707985.
doi: 10.3389/fpls.2025.1707985. eCollection 2025.

Instance-level phenotype-based growth stage classification of basil in multi-plant environments

Affiliations

Instance-level phenotype-based growth stage classification of basil in multi-plant environments

Jung-Sun Gloria Kim et al. Front Plant Sci. .

Abstract

Climate change, shrinking arable land, urbanization, and labor shortages increasingly threaten stable crop production, attracting growing attention toward AI-based indoor farming technologies. Accurate growth stage classification is essential for nutrient management, harvest scheduling, and quality improvement; however, conventional studies rely on time-based criteria, which do not adequately capture physiological changes and lack reproducibility. This study proposes a phenotyping-based and physiologically grounded growth stage classification pipeline for basil. Among various morphological traits, the number of leaf pairs emerging from the shoot apex was identified as a robust indicator, as it can be consistently observed regardless of environmental variations or leaf overlap. This trait enables non-destructive, real-time monitoring using only low-cost fixed cameras. The research employed top-view images captured under various artificial lighting conditions across seven growth chambers. YOLO automatically detected multiple plants, followed by K-means clustering to align positions and generate an individual dataset of crop images-leaf pairs. A regression model was then trained to predict leaf pair counts, which were subsequently converted into growth stages. Experimental results demonstrated that the YOLO model achieved high detection accuracy with mAP@0.5 = 0.995, while the A convolutional neural network regression model reached MAE of 0.13 and R² of 0.96 for leaf pair prediction. Final growth stage classification accuracy exceeded 98%, maintaining consistent performance in cross-validation. In conclusion, the proposed pipeline enables automated and precise growth monitoring in multi-plant environments such as plant factories. By relying on low-cost equipment, the pipeline provides a technological foundation for precision environmental control, labor reduction, and sustainable smart agriculture.

Keywords: BBCH scale; automated decision pipeline; controlled environment agriculture (CEA); smart agriculture; vision-based phenotyping.

PubMed Disclaimer

Conflict of interest statement

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Figures

Figure 1
Figure 1
Overview of the top-view image collection system in growth chambers.
Figure 2
Figure 2
Representative examples of basil (Ocimum basilicum L.) growth stages based on the number of visible leaf pairs from top-view images: (A) Level 1 (≤ 2 pairs), (B) Level 2 (3–4 pairs), and (C) Level 3 (≥ 5 pairs). Arrows indicate the apical bud with emerging leaf primordia used as reference points for stage classification.
Figure 3
Figure 3
Examples of excluded images during preprocessing. (A) Multiple plants within a single pot; (B) Images captured during the dark period; (C) Plants more than half out of frame; (D) Non-germinated pots; (E) Plants with leaf removal history.
Figure 4
Figure 4
Automated labeling pipeline for basil plants: (A) YOLOv8 detects individual plants, (B) the detected plants are grouped into rows using K-means clustering, (C) plants within each row are sorted from left to right, and (D) sequential numbering is assigned for consistent labeling.
Figure 5
Figure 5
Automated pipeline for generating cropped plant images with matched leaf count labels for CNN model training, using YOLOv8 detection and preprocessing.
Figure 6
Figure 6
Integrated inference pipeline for plant growth stage classification. YOLOv8 detects individual plants, ResNet-18 regression estimates leaf-pair counts, and predictions are converted into discrete growth stages.
Figure 7
Figure 7
(A) Confusion matrix for the validation set, showing 352 true positives, 0 false positives, and 1 false negative. (B) F1–confidence curve illustrating the optimal confidence threshold that maximizes the F1-score. (C) Training and validation curves for box loss, classification loss, distribution focal loss, precision, recall, and mAP@0.5/0.5–0.95 over 100 epochs (x-axis: epoch, y-axis: corresponding loss or metric value).
Figure 8
Figure 8
Model training and classification performance. (A) Training and validation loss curves showing stable convergence, with early stopping triggered at the 27th epoch to prevent overfitting; (B) Normalized confusion matrix for Level 1–3 classification on the test set, indicating high prediction accuracy across all levels.
Figure 9
Figure 9
Automated growth stage classification of basil plants. (A) Cultivation bed 1, showing detection and classification of individual plants based on leaf-pair counts; (B) Cultivation bed 4, demonstrating stable multi-plant detection and classification under artificial lighting. Bounding boxes denote individual plants, and labels indicate the predicted growth stage (Level 1–3) and leaf-pair number.

References

    1. Adedeji O., Abdalla A., Ghimire B., Ritchie G., Guo W. (2024). Flight altitude and sensor angle affect unmanned aerial system cotton plant height assessments. Drones 8, 746. doi: 10.3390/drones8120746 - DOI
    1. Akiba T., Sano S., Yanase T., Ohta T., Koyama M. (2019). “ Optuna: A next-generation hyperparameter optimization framework,” In KDD '19: Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. New York, NY, USA: Association for Computing Machinery (ACM). pp. 2623–2631. doi: 10.1145/3292500.3330701 - DOI
    1. Antwi K., Bennin K. E., Asiedu D. K. P., Tekinerdogan B. (2024). On the application of image augmentation for plant disease detection: A systematic literature review. Smart Agric. Technol. 9, 100590. doi: 10.1016/j.atech.2024.100590 - DOI
    1. Avgoustaki D. D., Xydis G. (2020). “ How energy innovation in indoor vertical farming can improve food security, sustainability, and food safety?,” In Advances in Food Security and Sustainability, Vol. 5. (Cambridge, MA, USA: Elsevier; ), 1–51. doi: 10.1016/bs.af2s.2020.08.002 - DOI
    1. Bashyam S., Choudhury S. D., Samal A., Awada T. (2021). Visual growth tracking for automated leaf stage monitoring based on image sequence analysis. Remote Sens. 13, 961. doi: 10.3390/rs13050961 - DOI

LinkOut - more resources