SAI: Fast and automated quantification of stomatal parameters on microscope images

Na Sai, James Bockman, Hao Chen, Nathan S. Watson‐Haigh, Bo Xu, Xueying Feng, Adriane Piechatzek, Chunhua Shen, Matthew GillihambioRxiv 2022

TL;DR

This paper introduces StomaAI (SAI), a deep learning tool that automates the measurement of stomatal parameters from microscope images, significantly speeding up plant physiology research. SAI achieves human-level accuracy and can process images orders of magnitude faster than manual methods, enabling more comprehensive and reliable stomatal analysis.

What Problem Does This Paper Address?

Investigating stomatal behavior is crucial for understanding plant physiology, particularly in areas like photosynthesis, water use efficiency, and stress responses. Traditionally, this involves manual measurement of stomatal features from microscope images, a process that is extremely time-consuming, labor-intensive, and prone to human error and bias. This bottleneck limits the number of samples researchers can analyze, hindering the statistical power and accuracy of their findings. The paper aims to overcome this by developing an automated, accurate, and efficient tool for stomatal measurement.

Methods

The core of StomaAI (SAI) is a deep learning model, specifically leveraging the Mask R-CNN architecture. Mask R-CNN is a state-of-the-art framework for object detection, segmentation, and keypoint detection. The authors adapted this model to perform these tasks simultaneously for stomatal analysis. This involves:

  • Object Detection: Identifying the presence of stomata within an image and drawing bounding boxes around them.
  • Segmentation: Delineating the precise outline of the stomatal pore.
  • Keypoint Detection: Identifying specific points to accurately measure features like width and length.

SAI was trained using two class-specific models: one for dicot plants (Arabidopsis) and another for monocot plants (barley), acknowledging their distinct stomatal morphologies. The system is designed to be flexible, capable of handling various stomatal pore shapes, unlike traditional ellipse-fitting methods that are limited to ovular pores.

Datasets

The study utilized two main datasets:

  • Newly Created Dataset: Approximately 150 annotated images containing around 1700 stomata from Arabidopsis thaliana and Hordeum vulgare (barley) were created for training and evaluation. These annotations included bounding boxes, opening status (open/closed), and pore features defined by polygons or lines. This dataset was organized in a format compatible with the MS-COCO benchmark.
  • Published Datasets: Images from a previous study by Xu et al. (2021) were used to validate SAI's ability to reproduce scientific conclusions from existing research.

Key Insights and Ideas

  • Beyond Traditional Methods: SAI moves beyond traditional ellipse-fitting methods, which struggle with non-ovular stomatal shapes (like barley) and are less effective for partially or fully closed stomata. Its mask segmentation approach is more robust and adaptable.
  • Human-Level Performance: The tool achieves accuracy comparable to human experts, as demonstrated by a high concordance correlation coefficient (CCC) for stomatal width measurements. This is a critical finding, as it validates the reliability of automated measurements for scientific conclusions.
  • Reproducibility: Unlike manual measurements, which can exhibit inter-rater bias, SAI provides consistent and reproducible results, ensuring that findings are not dependent on the specific researcher.
  • Accelerated Research: The dramatic reduction in processing time per image allows researchers to analyze significantly more stomata, increasing statistical power and enabling more comprehensive studies.
  • Adaptability: The ability to train SAI on different species, and the provision of a combined species model, suggests its potential for application to a wider range of plant species with minimal fine-tuning.

Key Results

  • Accuracy: SAI achieved a CCC of 0.891 for Arabidopsis and 0.984 for barley when comparing its measurements to an average human-level reference for stomatal width. These results were comparable to or better than human expert agreement.
  • Speed: SAI can process a high-resolution microscope image in 6-12 seconds on a CPU, a task that takes humans 2-5 minutes. Using a GPU (NVIDIA GTX 1070), this time drops to approximately 600 milliseconds per image, enabling the processing of hundreds of images per minute.
  • Reproducing Conclusions: SAI's measurements from previously published datasets led to the same scientific conclusions as those derived from manual measurements by human experts.
  • Detection Rate: While SAI detected fewer stomata than human experts (due to a confidence threshold to minimize false positives), its high throughput compensates for this by allowing the analysis of a much larger number of stomata.

Limitations and Future Work

  • Detection Rate vs. Experts: SAI sometimes misses stomata that human experts can identify, particularly those that are blurry, occluded, or unresolved. This is mitigated by a confidence threshold, but it means some potentially valid stomata might be discarded. The authors argue that the increased throughput of SAI makes this less critical.
  • Species-Specific Models: While SAI includes models for Arabidopsis and barley, and a combined model, its performance on entirely new species might require further fine-tuning with species-specific annotated data.
  • Future Work: The authors suggest extending SAI's capabilities to measure other relevant cell structures beyond stomata. They also highlight the potential for using SAI as a starting point for researchers to fine-tune models for new plant types by providing annotated examples. The development of a user-friendly web app and a downloadable local version makes SAI accessible for broader use.

Summary updated

Abstract

Abstract Using microscopy to investigate stomatal behaviour is a common technique in plant physiology research. Manual inspection and measurement of stomatal features is a low throughput process in terms of time and human effort, which relies on expert knowledge to identify and measure stomata accurately. This process represents a significant bottleneck in research pipelines, adding significant researcher time to any project that requires it. To alleviate this, we introduce StomaAI (SAI): a reliable and user-friendly tool that measures stomata of the model plant Arabidopsis (dicot) and the crop plant barley (monocot grass) via the application of deep computer vision. We evaluated the reliability of predicted measurements: SAI is capable of producing measurements consistent with human experts and successfully reproduced conclusions of published datasets. Hence, SAI boosts the number of images that biologists can evaluate in a fraction of the time so is capable of obtaining more accurate and representative results.
BibTeX
@misc{sai2022sai,
  author = {Na Sai and James Bockman and Hao Chen and Nathan S. Watson‐Haigh and Bo Xu and Xueying Feng and Adriane Piechatzek and Chunhua Shen and Matthew Gilliham},
  title = {{SAI: Fast and automated quantification of stomatal parameters on microscope images}},
  year = {2022},
  doi = {10.1101/2022.02.07.479482},
  howpublished = {bioRxiv},
}
Figure