2,490
Views
52
CrossRef citations to date
0
Altmetric
Original Articles

An automatic counter for aerial images of aggregations of large birds

, , , &
Pages 302-308 | Received 15 Jun 2010, Accepted 11 May 2011, Published online: 28 Jun 2011

Abstract

Capsule Counts with precision comparable to those of an expert observer can be achieved automatically.

Aims To develop an open-source freeware program that automatically extracts and counts the number of birds in aerial images of dense aggregations.

Methods Software was developed and validated using aerial photographs of Greater Flamingo colonies from France, Turkey and Mauritania. We used a stochastic approach based on object processes. The objects representing flamingos were defined as ellipses, and the software detected these and produced a count. Details of the procedure are provided in electronic supplementary material. The energy is extracted by a birth-and-death algorithm, leading to the total number of birds.

Results This procedure gave counts with precision comparable to manual counts of the aerial photographs by an expert (<5% difference). The procedure does not need any supervision of the extraction by an operator, thus reducing the processing time required to get the estimate of bird numbers in the image from >4 h to 20 min on average.

Conclusion This open-source freeware should be useful for ornithologists and wildlife managers.

Monitoring the size of bird populations has become a routine activity for many ornithologists and wildlife managers. This allows managers to detect population trends and highlight possible environmental or anthropogenic changes which negatively affect species. Whereas capture–mark–recapture methods have gained enormous importance in diagnosing the underlying causes of population declines, adding census data in an integrated modelling approach has proved to improve predictions of population trajectories greatly (Besbeas et al. Citation2002, Gauthier et al. Citation2007). Hence, estimating the size of bird populations remains a major prerequisite for the conservation and management of bird species.

For several gregarious bird species, wildlife managers take the opportunity of breeding and migrating aggregations to monitor variations in population size. This task is accomplished using photographs to comprehensively record the birds present in the given area. Birds are then counted on the photographs, either projected or printed, which avoids bias resulting from real-time visual estimation (Leonard & Fish Citation1974, Boyd Citation2000, Béchet et al. Citation2004). However, counting individual birds, even in photographs, can be time-consuming, particularly for dense congregations. This is the case for geese, penguins and flamingos, which often breed in colonies of several thousand individuals and sometimes up to over 1 million. Although it is feasible to count predefined sample areas and use interpolation procedures, this complicates the detection of temporal trends due to the variance factor associated with the resulting estimate (Béchet et al. Citation2004). The recent development of high-resolution image scanners and digital photography enables automated counting methods based on computerized image analysis (Bajzak & Piatt Citation1990, Trathan Citation2004).

General models for object detection based on classical image processing tools such as mathematical morphology, template matching, or colour threshold segmentation (Gougeon Citation1995, Pollock Citation1998, Larsen Citation1999) appears to be unsatisfactory when there is a high degree of overlap between birds in the flocks. Other approaches may be available in commercial software solutions (e.g. ecognition; Milton et al. Citation2006), yet they are too expensive for most wildlife managers and scientists, especially those working in developing countries. Our aim was to develop a tool to count large numbers of birds automatically from images which would have the following properties: (i) provide accurate counts on a wide range of photograph types that would be most comparable with counts from an expert; (ii) be user-friendly; (iii) be free and open-source. The tool was developed and validated on aerial photographs of Greater Flamingo Phoenicopterus roseus colonies. We developed an approach embedding a geometric model of the bird silhouette in the image and some constraints on their spatial repartition. We considered an ellipse as our reference object to model flamingos. Indeed, on aerial photographs, incubating flamingos look like ellipses. The back of incubating flamingos is mainly covered with white feathers which gives a feature to evaluate the contrast between the background and the flamingos themselves. The extraction of flamingos on the image then relies on an energy minimization routine, where the energy term is decomposed into a data term to locate flamingos on the image, and a prior term which introduces constraints between the objects of the configuration.

Here, we present the model rationale, its validation, and discuss the minimal image quality required to get reliable estimates from the open-source freeware that we have developed.

MATERIALS AND METHODS

In the Mediterranean basin and West Africa, the size of several Greater Flamingo breeding colonies is monitored annually by aerial surveys at the peak of the laying season (Cézilly et al. Citation1995, Balkız Citation2006, Diawara et al. Citation2007, Béchet & Johnson Citation2008). The proposed image-processing model was developed on a set of aerial photographs from colonies in the Camargue (France), Tuz lake (Turkey) and Kiaone Islands (Mauritania). In France, flamingos breed on an artificial island in a commercial salt pan. Flamingo nests are dense, so that, from the air, incubating birds overlap. In Turkey, Greater Flamingo nests are spread out with no overlap between birds. In Mauritania, flamingos do not erect a nest but lay their single egg on the rocky top of the island. Incubating birds can overlap and there is little contrast between the flamingos and their background. Photographs were taken at 300 m asl either with 35 mm film (100 iso) or digital (5 M pixels) reflex cameras. Basic and high-resolution true 2400 dpi optical scanners were used to digitize the slides from the film cameras as high-resolution scanners were not available to us before 2005 ().

Table 1. Image type, size, spatial resolution and approximate number of pixels covering an incubating flamingo on the photographs used to validate the model.

The marked point process model

Model rationale

We model aerial images composed of flamingos whose positions and attributes are some realization of a marked point process X (see Van Lieshout Citation2000 and the supplementary material, available online via the Supplementary Content tab of the article's online page at dx.doi.org/10.1080/00063657.2011.588195). X is also a random variable whose realizations are random configurations of objects x belonging to a state space. We define an energy U(x) that takes into account some interactions between the geometric objects (the prior energy U p (x)), and the way they fit to the data (the data energy U d (x)):

Extracting flamingos from the image consists in minimizing this energy. In our case, the model used to extract flamingos consists of a marked point process of ellipses (see online supplementary material). As we aim to detect individuals in dense populations, we model flamingos as possibly slightly overlapping ellipses. Then, the prior energy U p (x) that introduces interactions penalizes configurations according to the overlapping objects area (see Perrin et al. Citation2006 and online supplementary material). Each object is penalized depending on the maximal overlapping it exhibits with neighbouring ellipses ().

Figure 1. Variations of the overlapping coefficient used to penalize ellipse configurations resulting in overlapping areas.

Figure 1. Variations of the overlapping coefficient used to penalize ellipse configurations resulting in overlapping areas.

Data energy

On the image, a flamingo can be modelled as a bright ellipse surrounded by a darker background. To evaluate the contrast between the ellipses and the background, we calculate a distance between the reflectance distributions of the object and its boundary. The data energy U d (x) associated with the object x is then defined as a quality function which gives some positive value to small Bhattacharyya distance (weakly contrasted objects) and negative value (well-located objects) otherwise (Bhattacharyya Citation1943; and online supplementary material).

Figure 2. An ellipse and its boundary used to calculate the adjustment of ellipse location by the Bhattacharyya distance.

Figure 2. An ellipse and its boundary used to calculate the adjustment of ellipse location by the Bhattacharyya distance.

Parameter estimation

This quality function depends on a threshold parameter d 0, which defines the minimum contrast between the object and the background for a detected bird. To estimate this parameter, we first consider an initial value, low enough and empirically set to 10, and compute the data term obtained with this value on each pixel for a disk whose radius is the minimal size of a bird. This allows us to compute a predetection map where pixels belonging to birds are favoured because their data term is good (low data energy U d (x); see online supplementary material).

Flamingo colour is often heterogeneous within a given image because of the properties of the camera (focus, focal length, distortion and colour uniformity). Thus, we use a local parameter estimation method to estimate the mode of flamingo colour from the initial image in small squared areas (whose size is proportional to the size of the flamingo on the picture). d 0 is then computed by taking into account this flamingo radiometry estimation (see online supplementary material).

Birth and death dynamics

In order to optimize the model, we consider a simulated annealing based on a birth and death process (Descombes et al. Citation2008). The algorithm simulating the process starts by initializing the temperature parameter and the discretization step and then alternates birth and death steps, by adding new objects to the current configuration or removing objects from the configuration, respectively. The convergence is obtained when all the objects added during the birth step, and only these, have been killed by the death step (see online supplementary material).

The software was developed in C++ and packaged to be executable on GNU Linux or Microsoft windows platforms.

Model validation

The set of images used to validate the model consists of two film photographs from the Camargue colony, one digital photograph from the Kiaone colony and two photographs from the Tuz colony in Turkey (one film and one digital). On the resulting digitized images a flamingo is represented by at least four pixels (). The model was validated by comparing counts from the model to those of an expert (AA) on three square samples, selected randomly over each image. Sample sizes were adjusted for each photograph to contain a sufficient number of flamingos to be counted (). These samples were also counted by five non-experts. We compare the mean difference of these non-expert counts to the count of the expert in order to classify the samples as Easy, Medium or Hard to count. Three measures are used to evaluate the difference between the model results and those of the expert: (i) the percentage of birds missed by the model, (ii) the percentage of false alarms, and (iii) the percentage of difference between the two estimates.

Figure 3. Configuration of the square samples used to validate the models on the Camargue colony (top), the Tuz colony (middle) and the Kiaone colony (bottom).

Figure 3. Configuration of the square samples used to validate the models on the Camargue colony (top), the Tuz colony (middle) and the Kiaone colony (bottom).

Finally, we present the comparison between the counts given by the model and the expert on the whole image for each photograph. We also provide the time required by a computer (Intel® Core duo™ CPU 2.53 GHz) to provide a count of the whole colony, and the time required by an expert to count the same image by hand.

RESULTS

The false alarm rate varied from 0 to 14.7%, and less than 12.9% of the birds were missed by the model (). The overall error was <5% in 11 of 15 samples, and <2% in 9 cases out of 15. The performances of the model were independent of our a-priori classifications of the difficulty to count the image.

Table 2. Counting difficulty (mean difference with expert counts), number counted by the expert, number counted by the model, rate of missed birds, false alarms and overall error of the model compared to the expert.

When considering the whole image, the model performed well in most cases ( & ) and gave counts with good precision compared to manual counts by an expert (<5% difference; ). Computation took between 11 and 35 min on a whole image, depending on both the number of objects to be extracted and the size of the image. Hence, as this approach does not need any supervision of the extraction by an operator, it reduces from >4 h to 20 min on average the processing time required to get the estimate (). Even though the Kione Island photograph was difficult because it had low contrast and was not completely vertical, which decreases the number of pixels per flamingo, the model extracted the ellipses correctly.

Figure 4. Top: initial image of the Camargue colony. Bottom: sample of the extraction.

Figure 4. Top: initial image of the Camargue colony. Bottom: sample of the extraction.

Figure 5. Sample of the extraction on the Kiaone colony. Only the ellipse centre is pointed.

Figure 5. Sample of the extraction on the Kiaone colony. Only the ellipse centre is pointed.

Table 3. Estimated number of birds from the model, time needed by the software to provide an estimate, estimated number of birds from the expert, time required from the expert to provide an estimate, and percentage of difference between the two estimates.

DISCUSSION

Our model performed well in extracting flamingos on several types of aerial photographs and is thus a cost-efficient tool to count aggregations of various bird species rapidly. Differences between counts from the expert and from the model were in the range (<5%) of other image processing methods (i.e. 3–6%; Trathan Citation2004). In most cases, the disagreement between the expert and our extraction in the validation samples corresponds to ambiguous cases where no decision can reasonably be taken from the image alone (). The efficiency of the detection remained good on low-resolution images, where it is even difficult for the human eye to distinguish flamingos one from another.

The major advantage of the extraction model is that no user supervision is needed. In comparison, methods based on colour threshold filters (Gilmer et al. Citation1988, Bajzak & Piatt Citation1990, Trathan Citation2004) need both pre-processing and pre-analysis of bird colour characteristics on the image. Furthermore, this approach does not provide good results when birds overlap. Finally, the execution time to obtain flamingo population extractions is quite reasonable because of the proposed birth and death process, which outperformed classical RJMCMC schemes (Descamps et al. Citation2009). Execution time also outperformed the expert. Furthermore, even if the method had taken longer than a human expert, but did a comparable job, it would still remain extremely useful, as it is very easy to run the computation overnight, or on multiple computers.

The software built upon the model, flamingo, is distributed under the CECILL-C licence (a French derivative of the LGPL; http://www.cecill.info/) and is available for download at http://flamingoatlas.org/dwld_flamingo.php. It does not need any third-party software (e.g. mapinfo, arcgis) to run. Applications of this new tool are numerous. We believe it could be used to make exhaustive counts on photographs of bird aggregations which were previously restrained to samples because of large population sizes (e.g. Flamingo census in the African rift valley; Woodworth et al. Citation1997). The software is very flexible regarding the type of image material provided. It gives reliable results from digital images made by modern, easily affordable high resolution digital cameras as well as from low resolution scans of 35 mm films. It may thus be advantageously used to count black and white photograph archives after they are scanned. Also, as satellite resolution gets better (e.g. QuickBird satellites; Sasamal et al. Citation2008) it should be possible to count large bird colonies directly from these kinds of images. The model is not restricted to nesting flamingos as it has been elaborated for ellipses. Hence, it should perform well for any large aggregations of birds producing this kind of shape on a picture, such as nesting gannets, wintering and moulting ducks or geese. As shown by the Kiaone Island photograph presented here, the picture does not need to be perfectly vertical for the model to provide reliable counts. Nevertheless, we expect results to be better in the case of vertical photos. The model also performs well on images where birds are darker than the background (e.g. flamingo fledglings in a creche; Descamps et al. Citation2009) or show dark bird species such as scoters (Melanitta spp.). In this case, it is necessary to indicate to the software at the start that the background is lighter than the objects to be counted. In both cases, a sufficient contrast between the ellipse and the background is nevertheless required. However, as the algorithm relies on the extraction of ellipses, it provides poor results when attempting to count birds in flight (e.g. large flocks of Snow Geese Chen caerulescens) or large penguin colonies (e.g. King Penguins Aptenodytes patagonicus) photographed from a vantage point. Hence, the software is not suitable for this type of survey. Finally, there should be no problem in counting vertical photographs of large flocks which necessitate several overlapping pictures, as the software allows interactive delineation of the part of the flock to be counted in each picture.

Because integrated modelling promises to make increased used of bird population counts (Besbeas et al. Citation2002, Gauthier et al. Citation2007), we believe this software should be useful for increasing synergies between field ornithologists and scientists in providing accurate count data.

Supplemental material

tbis_a_588195_sup_19673536.pdf

Download PDF (92.6 KB)

ACKNOWLEDGEMENTS

The authors would like to thank Lucie Schmaltz, Mathieu Berson, Benjamin Phéline and Christophe Germain from Tour du Valat for their participation in model validation as non experts. We acknowledge Lisa Ernoul for her revision of the last version of the manuscript. Images used for model validation were provided by Özge Balkız from Doğa Derneği (Turkey) and by Yelli Diawara (Parc National of Banc d'Arguin, Mauritania) through projects funded by Tour du Valat and Mava Foundation as part of the Mediterranean and West Africa Greater Flamingo Network. This work has been partially supported by the COLOR ‘Flamant’ funded by INRIA Sophia Antipolis.

REFERENCES

  • Bajzak , D. and Piatt , J. F. 1990 . Computer-aided procedure for counting waterfowl on aerial photographs . Wildlife Soc. Bull. , 18 : 12 – 129 .
  • Balkız , Ö . 2006 . Dynamique de la metapopulation de flamants roses en Méditerranée: implications pour la conservation , Université Montpellier II Sciences et Techniques du Languedoc .
  • Béchet , A. and Johnson , A. R. 2008 . Anthropogenic and environmental determinants of Greater Flamingo Phoenicopterus roseus breeding numbers and productivity in the Camargue (Rhone delta, southern France) . Ibis , 150 : 69 – 79 .
  • Béchet , A. , Reed , A. , Plante , N. , Giroux , J. F. and Gauthier , G. 2004 . Estimating the size of the greater snow goose population . J. Wildlife Manag. , 68 : 639 – 649 .
  • Besbeas , P. , Freeman , S. N. , Morgan , B. J.T. and Catchpole , E. A. 2002 . Integrating mark–recapture–recovery and census data to estimate animal abundance and demographic parameters . Biometrics , 58 : 540 – 547 .
  • Bhattacharyya , A. 1943 . On a measure of divergence between two statistical populations defined by probability distributions . Bull. Calcutta Math. Soc. , 35 : 99 – 109 .
  • Boyd , W. S. 2000 . Comparison of photo count versus visual estimates for determining the size of Snow Goose flocks . J. Field Ornithol. , 71 : 686 – 690 .
  • Cézilly , F. , Boy , V. , Green , R. E. , Hirons , G. J.M. and Johnson , A. R. 1995 . Interannual variation in greater flamingo breeding success in relation to water levels . Ecology , 76 : 20 – 26 .
  • Descamps , S. , Descombes , X. , Béchet , A. and Zerubia , J. 2009 . Détection de flamants roses par processus ponctuels marqués pour l'estimation de la taille des populations . Traitement du Signal , 26 : 95 – 108 .
  • Descombes , X. , Minlos , R. and Zhizhina , E. 2008 . Object extraction using a stochastic birth-and-death dynamics in continuum . J. Math. Imag. Vis. , 33 : 347 – 359 .
  • Diawara , Y. , Arnaud , A. , Araujo , A. and Béchet , A. 2007 . Nouvelles données sur la reproduction et l'hivernage des flamants roses Phoenicopterus roseus en Mauritanie et confirmation d'échanges avec les populations méditerranéennes . Ostrich , 78 : 469 – 474 .
  • Gauthier , G. , Besbeas , P. , Lebreton , J. D. and Morgan , B. J.T. 2007 . Population growth in snow geese: a modeling approach integrating demographic and survey information . Ecology , 88 : 1420 – 1429 .
  • Gilmer , D. S. , Brass , J. A. , Strong , L. L. and Card , D. H. 1988 . Goose counts from aerial photographs using an optical digitizer . Wildlife Soc. Bull. , 16 : 204 – 206 .
  • Gougeon , F. A. 1995 . A crown-following approach to the automatic delineation of individual tree crowns in high resolution aerial images . Can. J. Remote Sens. , 21 : 274 – 284 .
  • Larsen , M. Individual tree top position estimation by template voting . Proceedings of Fourth International Airbone Remote Sensing Conference and Exhibition/21st Canadian Symposium on Remote Sensing . ERIM International
  • Leonard , R. M. and Fish , E. B. 1974 . An aerial photographic technique for censusing lesser Sandhill Cranes . Wildlife Soc. Bull. , 2 : 191 – 195 .
  • Milton , G. R. , Illsley , P. and MacKinnon , F. M. 2006 . “ An effective survey technique for large groups of moulting sea ducks ” . In Waterbirds Around the World , Edited by: Boere , G. C , Galbraith , C. A. and Stroud , D. A. 756 – 757 . Edinburgh : The Stationery Office .
  • Perrin , G. , Descombes , X. and Zerubia , J. 2d and 3d vegetation resource parameters assessment using marked point processes . International Conference on Pattern Recognition (ICPR) . Hong-Kong
  • Pollock , R. Individual tree recognition based on synthetic tree crowns image modes . Proceedings of the International Forum on Automated Interpretation of High Spatial Resolution Digital Imagery for Forestry . Edited by: Hill , D. A. and Leckie , D. G. pp. 25 – 34 . Natural Resources Canada, Forestry Canada, Pacific Forestry Centre : Victoria BC .
  • Sasamal , S. K. , Chaudhury , S. B. , Samal , R. N. and Pattanaik , A. K. 2008 . QuickBird spots flamingos off Nalabana Island, Chilika Lake, India . Int. J. Remote Sen. , 29 : 4865 – 4870 .
  • Trathan , P. N. 2004 . Image analysis of color aerial photography to estimate penguin population size . Wildlife Soc. Bull. , 32 : 332 – 343 .
  • Van Lieshout , M. N.M. 2000 . Markov Point Processes and Their Applications , London : Imperial College Press .
  • Woodworth , B. L. , Farm , B. P. , Mufungo , C. , Borner , M. and Kuwai , J. O. 1997 . A photographic census of flamingos in the Rift Valley lakes of Tanzania . Afric. J. Ecol. , 35 : 326 – 334 .

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.