Using Machine Vision to Estimate Fish Length from Images using Regional Convolutional Neural Networks

Research output: Contribution to journalArticlepeer-review

Electronic versions



1. An image can encode date time, location and camera information as metadata and implicitly encodes species information and data on human activity, e.g. the size distribution of fish removals. Accurate length estimates can be made from images using a fiducial marker however, their manual extraction is time consuming and estimates are inaccurate without control over the imaging system. This article presents a methodology which uses machine vision to estimate the total length (TL) of a fusiform fish (European sea bass).

2. Three regional convolutional neural networks (R CNN) were trained from public images. Images of European sea bass were captured with a fiducial marker with 3 non specialist cameras. Images were undistorted using the intrinsic lens properties calculated for the camera in OpenCV, then TL was estimated using machine vision (MV) to detect both marker and subject. MV performance was evaluated for the three R CNNs under downsampling and rotation of the captured images.

3. Each R CNN accurately predicted the location of fish in test images (mean intersection over union, 93%) and estimates of TL were accurate, with percent mean bias error (%MBE [95% CIs]) = 2.2% [2.0, 2.4]). Detections were robust to horizontal flipping and downsampling. TL estimates at absolute image rotations > 20̊ became increasingly inaccurate but %MBE [95% CIs] was reduced to -0.1% [-0.2, 0.1] using machine learning to remove outliers and model bias.

4. Machine vision can classify and derive measurements of species from images without specialist equipment. It is anticipated that ecological researchers and managers will make increasing use of MV where image data is collected (e.g. in remote electronic monitoring, virtual observations, wildlife surveys and morphometrics) and MV will be of particular utility where large volumes of image data will be gathered.


  • European sea bass, convolutional neural networks, fiducial marker, fish length, machine vision, photogrammetry, regional convolutional neural network, videogrammetry
Original languageEnglish
Pages (from-to)2045-2056
Number of pages12
JournalMethods in Ecology and Evolution
Issue number12
Early online date10 Aug 2019
Publication statusPublished - Dec 2019

Research outputs (1)

View all

Total downloads

No data available
View graph of relations