1. Home
  2. Explore
  3. Biology
  4. Evolution of Plant Shapes

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Evolution of Plant Shapes

Fern Shape Diversity, Biodiversity, and Computer Vision

Biodiversity varies with latitude

The latitudinal diversity gradient is the broad pattern that species richness is generally higher in tropical regions near the Equator than in temperate or polar regions. This pattern occurs across many groups of organisms, including plants and animals. For example, maps of vertebrate species and counts of flowering tree species show more species in equatorial regions than at higher latitudes.

Climate can help explain some differences in species richness. A tropical rainforest and a desert differ greatly in the environmental conditions they can support. However, climate alone does not explain the full pattern: even environments that appear similarly lush, such as forests in tropical Peru and British Columbia, may contain very different numbers of species.

Species counts also do not fully describe biodiversity. A location can contain many species that perform similar ecological roles, or fewer species that occupy a wide range of ecological roles. This distinction motivates the study of morphological diversity: variation in organisms’ forms and shapes that may relate to the ecological functions they perform.

Species richness versus ecological diversity

  • Species richness is the number of species in a location or group.

  • Ecological diversity concerns the range of ecological roles or ways of using resources represented by organisms.

  • Species that are similar in shape and size may perform similar ecological functions. Therefore, a high species count does not necessarily mean an equally high count of distinct ecological strategies.

A bird example illustrates the distinction: several species of white-eyes may be taxonomically distinct yet look and function similarly to a casual observer. The same issue arises when researchers ask whether tropical regions contain more species and more kinds of ecological forms.

Two connected questions follow:

  1. How does shape diversity vary with latitude?

  2. Do species at different latitudes differ in how finely they divide ecological space—for example, are tropical species more narrowly specialized?


Leaf shape and latitude

Plant leaves vary substantially in size and shape, and their appearance can also change during development. One familiar pattern concerns leaf edges:

  • Toothed margins have projections or teeth along the edge and are more commonly associated with high-latitude temperate environments.

  • Entire margins have smooth edges without teeth and are commonly associated with tropical environments.

These categories capture a broad pattern, but they simplify a much more complex range of shapes. A central challenge is to measure that complexity consistently across many species rather than reducing each leaf to a small number of traits.


Why study ferns?

Ferns provide a useful group for investigating plant shape at large scale. They include roughly 12,000 species distributed around the world and vary widely in both size and form. Their global distribution also follows the broad biodiversity pattern: fern species richness is higher in the tropics than in many other regions.

A few specimens make the challenge clear: two fern species can have visibly different and complex forms, while a large collection may contain thousands of additional variations. Comparing such shapes manually is difficult, so the study used computer vision to extract patterns from digitized herbarium specimens.

Digitized herbarium specimens

Herbarium collections contain preserved, pressed plant specimens. Digitization turns these specimens into images that can be analyzed computationally. The fern analysis drew on digitized images from the US National Herbarium and the Integrated Digitized Biocollections (iDigBio), an international collaborative resource.

Occurrence records from the Global Biodiversity Information Facility (GBIF) were also used to estimate and map where ferns occur. Records with latitude and longitude coordinates made it possible to relate geographic distribution to the locations in which species were found.


Building image-classification models

The researchers trained convolutional neural networks to classify fern images. A convolutional neural network (CNN) learns visual patterns from images and uses them to make predictions, such as assigning an image to a plant genus or species.

The study developed models at different levels of taxonomic detail:

  • A genus model began with genera that had at least 500 occurrences in the dataset.

  • The researchers then tested a more demanding genus model using about 50 specimens per genus, eventually including 269 genera.

  • A species-level model included 1,425 species, with at least 50 specimens per species.

These models differed in difficulty. As the number of possible labels increases and the number of examples per label decreases, the task of distinguishing among categories becomes more challenging. The number and distribution of available specimens also reflect where botanists have collected plants. Rare species may be underrepresented because they occur in places that are visited less often or are otherwise difficult to collect.

Training, validation, and loss

To assess performance, the image data were divided into:

  • Training data: 80% of the images, used to teach the model.

  • Validation data: 20% of the images, withheld from training and used to test predictions on unseen examples.

During training, the model makes predictions and compares them with known labels. The resulting prediction error is called loss. Training adjusts the model’s internal parameters to reduce that loss. Loss is tracked for both training and validation data.

Training loss usually falls as the model learns patterns in the examples it has seen. Validation loss indicates how well those learned patterns generalize to images that were not used for training. Training is generally stopped when the learning process plateaus rather than continuing after meaningful improvement has ceased.

Confusion matrices

A confusion matrix compares actual categories with the categories predicted by a model. For each actual genus or species, it shows how often the model assigned each possible label.

  • Predictions concentrated along the diagonal indicate correct classifications.

  • Off-diagonal values show which categories the model confused.

Some genus-level errors occurred among closely related genera, especially within the same family. This pattern is biologically plausible: related groups may share visible characteristics and may be difficult even for human observers to distinguish. The model’s errors therefore often resembled the kinds of mistakes a botanist might make without close examination.


Classification performance

The genus models achieved high accuracy. One reported genus model reached 97% accuracy across 86 genera, and performance remained high when the model was expanded to 269 genera. Confusion was more common among related groups than among distantly related ones.

The species-level model achieved:

  • 81.5% exact-match accuracy: the correct species was the model’s top prediction.

  • 95.6% top-five accuracy: the correct species appeared somewhere among the model’s five highest-ranked predictions.

Top-five accuracy is useful when species are extremely similar. Some fern species are separated largely by genetic markers and show little visible shape difference, so image-based classification cannot always distinguish them with certainty. In that context, a correct answer among the model’s top five predictions indicates that it has narrowed the possibilities effectively, even when its first choice is not exact.


What visual information did the model use?

High classification accuracy does not by itself show that a model learned biologically meaningful features. To investigate what it used, the study examined activation maps and feature maps.

Activation maps

An activation map highlights the image regions that most influenced a prediction. In the fern examples, the strongest activations appeared over the plant itself rather than over specimen labels. This is important because a model could otherwise exploit irrelevant shortcuts—for instance, reading a written label instead of recognizing the plant’s form.

Feature maps

Feature maps show the visual patterns that activate particular layers in the network. They can be created by starting with a random image and adjusting it to maximally activate a chosen layer.

  • Earlier layers tend to respond to relatively simple visual patterns, such as edges, shapes, or textures.

  • Later layers tend to represent more complex features that help distinguish among categories.

The feature maps suggested that the network learned patterns related to fern form. Their colors are not biologically meaningful: the model’s learned representations were described as relatively invariant to color, with shape playing a more important role. Some high-level features appeared to resemble complex fern fronds, consistent with the idea that the network was capturing plant structure.


From image classification to a space of shapes

A classification model produces an internal representation of each image before it generates its final category probabilities. In this study, a layer with 496 values was used as a feature representation, or embedding, for each image. The final classification layer then produced probabilities across the 1,425 species categories.

The 496-value representation was useful for studying shape because it came from a model trained specifically to distinguish fern species. A model trained on an unrelated general-image dataset might focus on visual features that are not especially relevant to fern differences. The fern-trained model was expected to encode distinctions useful for this group.

To visualize relationships among specimens, the high-dimensional representations were projected into a two-dimensional space using UMAP. This creates a shape space:

  • Each point represents one fern image.

  • Images with similar learned representations tend to be positioned near one another.

  • Images that are far apart in the projection are treated as more dissimilar in the learned feature space.

The two-dimensional map makes it possible to inspect specimens individually and to compare broad groupings of forms. The projection also offers a way to study shape variation alongside geographic patterns.


Geographic patterns in fern shape space

The specimens in the shape space were labeled by broad climate or geographic categories: tropical, mountain-desert, temperate, and polar. The resulting projection showed some clustering by category. Temperate specimens formed a recognizable group, while tropical specimens appeared across a wider and more scattered region of the shape space.

This pattern suggests that geographic differences in fern biodiversity may involve more than species counts. Tropical regions may be associated not only with greater species richness, but also with greater variation in shape, and potentially in the ecological functions associated with different forms.

The results are an initial step rather than a complete statistical explanation of how fern shape evolves with latitude. Further analysis is needed to combine measurements of shape variation with species numbers and geographic patterns, and to test whether apparent differences are statistically robust.


Key takeaways

  • Species richness is generally higher in tropical regions, but species counts alone do not reveal how much ecological or morphological diversity those species represent.

  • Ferns are globally distributed, highly diverse in form, and suitable for large-scale image analysis using digitized herbarium specimens.

  • CNNs can classify fern genera and species with high accuracy, with most confusion occurring among closely related categories.

  • Activation and feature maps help assess whether a model is learning relevant plant features rather than relying on artifacts such as labels.

  • A model’s internal image representations can be projected into a visual shape space, where geographic categories may show patterns of clustering.

  • The initial results suggest that tropical fern diversity may include greater variation in shape as well as a greater number of species.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent