Stavness, Ian2021-01-272021-01-272020-112021-01-27November 2http://hdl.handle.net/10388/13235Supervised learning is a common approach for counting objects in images, but for counting small, densely located objects, the required image annotations are burdensome to collect. Counting plant organs for image-based plant phenotyping and crowd counting fall within this category. Object counting in plant images is further challenged by having plant image datasets with significant domain shift due to different experimental conditions, e.g. applying an annotated dataset of indoor plant images for use on outdoor images, or on a different plant species. Learning to count from synthetic data to apply the knowledge in real-world data is also another important domain shift addressed in crowd counting tasks where getting annotations for real-world images, especially for highly crowded images, is tedious and potentially inaccurate. In this thesis, we propose a domain-adversarial learning approach for domain adaptation of density map estimation for the purposes of object counting. We took a fully convolutional network --- initially designed for image segmentation --- and trained it to count objects via density estimation from images sampled from a distribution and in parallel adapted the knowledge to a related counting task without the need of annotations. The proposed approach does not assume perfectly aligned distributions between the source and target datasets, which makes it more broadly applicable within general object counting and plant organ counting tasks. Evaluation on three diverse object counting tasks (wheat spikelets, leaves, crowd) demonstrate consistent performance on the target datasets across different classes of domain shift: from indoor-to-outdoor images, from species-to-species, and from synthetic-to-real.application/pdfObject countingUnsupervised Domain AdaptationDensity-based countingDeep learningTransfer learningindoor-to-outdoor domain adaptationspecies-to-species domain adaptationsynthetic-to-real domain adaptationUnsupervised Domain Adaptation for Object CountingThesis2021-01-27