Estimating Cannabis Flower Maturity in Greenhouse Conditions Using Computer Vision

Read full text
Authors: Etay Lorberboym, Silit Lazare, Polina Golshmid, Guy Shani
Cited by: 1
References: 30

Abstract

The maturity of cannabis flowers at harvest critically influences cannabinoid yield and product quality. However, conventional assessment methods rely on subjective visual inspection of trichomes and stigmas, making them inherently inconsistent. This research presents an automated framework integrating computer vision and deep learning to objectively evaluate cannabis flower maturity. High-resolution macro images were acquired using low-cost smartphone-based systems under greenhouse and laboratory conditions. A two-stage pipeline was implemented: a fine-tuned Faster R-CNN model detected trichomes (Precision: 0.815; Recall: 0.802), while a YOLOv8 classifier categorized them into clear, milky, or amber classes (Accuracy: 98.6%). In parallel, a YOLOv8 segmentation model delineated stigmas (AP50: 52.2%) to compute color ratios as maturity indicators. Features were aggregated at the flower level and correlated with HPLC-measured cannabinoid concentrations. A dataset of over 14,000 images was collected across multiple imaging sessions to support training, evaluation, and correlation experiments. Results demonstrated that stigma coloration—detectable with low-end devices—provides a robust visual indicator of peak chemical maturity, with the green-to-orange transition aligning with maximum cannabinoid concentration. This work offers a scalable, cost-effective solution for real-time maturity assessment in cannabis cultivation, contributing to improved harvest timing and quality control.

Fields of Study & Subjects

Smart Agriculture and AI Cannabis and Cannabinoid Research Spectroscopy and Chemometric Analyses

Publication details

Journal / source
Agriculture
Publisher
MDPI AG
Volume
16
Issue
4
Pages
460–460
Publication date
16 February 2026
Language
EN