Measuring Visual Acuity in Bees from High-Resolution Images

4 minute read

Published:

Visual acuity, the ability to perceive detail, is ecologically important, as it dictates what aspects of a visual scene an animal can resolve. The study of visual acuity in bee species helps biologists understand their evolutionary history and gain insight into their foraging strategies and navigation abilities. Sponsored by the Caves Lab, this project aims to design a pipeline that uses high-resolution 2D photos taken by the NSF-funded Big Bee Project to estimate visual acuity across different bee species. In the pipeline, we develop algorithmic approaches to measure the diameter of the ommatidia and estimate the interommatidial angles on the eyeʼs surface. By achieving a significant level of automation and accuracy, our pipeline will facilitate more efficient data collection for biologists. You can access the code and poster, if you are interested.

Introduction

Previous studies have relied on painstaking manual counts and estimates to describe compound eye structure. So, we focus on utilizing 2D bee photos to expedite the data collection process. In our pipeline, we want to detect and measure following key quantities:

  • ommatidia: individual hexagon-like units that make up the compound eyes of insects and its diameter \(D\) refers to the width of hexagon and represents the sensitivity to light
  • Interommatidial angle \(\boldsymbol{\phi}\) : angular separation between adjacent ommatidia in the compound eyes, representing the field of view that each ommatidium covers
  • Cycle per Degree (CPD): the number of distinct line pairs, or cycles, that can be perceived within one degree of the visual field. A higher CPD value indicates finer visual acuity and the ability to discern smaller details or patterns.
\[\boldsymbol{C P D}=1 /(2 * \boldsymbol{\phi} * 180 / \boldsymbol{\pi})\]
eye structure

We collected data from the Big Bee Library, an online repository housing bee image, trait, and specimen data. We bulk downloaded Head Frontal and Habitus Lateral images for each bee and organized them into a folder named by the bee’s catalog number. Currently, our data focused exclusively on 145 bee specimens collected at UCSB Cheadle Center. Each image was obtained by synthesizing multiple identical 6000*4000 pixel bee photos with varying focal points, allowing for the creation of high-resolution representations of different sections of the bee. A scale bar for length measurements is available in each image. For the contour analysis, we perform eye segmentation on the head frontal images, extracting both eye bitmaps and converting them into binary images.

two sides of one bee

Method

Our pipeline developed for measuring visual acuity parameters from 2D images of bees involves several steps. Firstly, the ommatidia diameter is measured using a 2D Ommatidia Diameter Algorithm (ODA)[1]. Next, a pre-trained segmentation model segment-anything is deployed to accurately segment the shape of the bee’s eye. To approximate the shape of the bee’s eye, a continuous curve is fitted to the eye contour. Finally, by simulating discrete points along the fitted curve, with each point representing an ommatidium and utilizing the previously measured ommatidia diameter, the interommatidial angles can be calculated. We then analyze the ommatidia diameter and interommatidial angle among bees in the Apidae family.

pipeline

Results

By examining the initial results in the Apidae family, our pipeline and algorithms can produce consistent results with ecological and biological meanings. Close results are obtained from multiple measurements on the same bee specimen, and measurements on distinct bee specimens with identical biological traits also yield similar outcomes.

results

The findings from the study reveal that male bees exhibit larger ommatidia diameter \(\boldsymbol{D}\), while female bees exhibit superior \(\boldsymbol{C P D}\) capabilities for discerning small details. Male bees predominantly remain within the hive and engage in mating activities with the queen. The presence of larger \(\boldsymbol{D}\) in male bees enhances their sensitivity to low light conditions, enabling them to effectively function in such environments. Conversely, female bees typically venture outside the hive to gather pollen and nectar. The possession of better \(\boldsymbol{C P D}\) in female bees facilitates their navigation through complex environments and enables them to interact adeptly with various objects encountered during foraging activities.