Evolution of Plant Shapes


Evolution of Plant Shapes

Anna
Today we’re looking at a question that connects biodiversity, evolution, and computer vision: does the diversity of plant shapes change with latitude, just as the number of species does? The research we’ll discuss uses digitized fern specimens and neural networks to turn complicated leaf shapes into something that can be compared at a large scale.

Michael
Let’s begin with the broad pattern. Across Earth, species are not evenly distributed: maps of vertebrate species show many more species in tropical regions than in temperate or polar regions. Plants follow a similar latitudinal diversity gradient, with flowering trees also showing more species near the Equator.

Anna
Climate could explain some of that pattern. A desert and a lush tropical forest are very different environments, so it makes sense that they might support different numbers of species. But climate alone does not tell the whole story: even places that look similarly lush, such as a forest in British Columbia and forests in Peru, can have very different species counts.

Michael
And counting species is not quite the same as counting ecological roles. Six species might be very similar in how they look and what they do. The speaker gives the example of white-eye birds: to a casual observer, several species in the genus Zosterops can look much alike, so six species need not mean six distinct ecological functions.

Anna
That distinction motivates two related questions. First, how does shape diversity vary with latitude? Second, do species at different latitudes differ in how they occupy ecological space? One possibility is that tropical regions contain species that are more finely specialized for particular ecological functions, but that is a question to investigate, not an assumption to make.

Michael
Leaf shape offers a familiar starting point. One well-known pattern is that leaves in high-latitude temperate locations are more likely to have toothed edges, while tropical leaves more often have entire, or untoothed, margins. But the project is interested in more than a simple toothed-versus-untoothed label. It asks whether models can capture more complex differences in shape.

Anna
The researchers focus on ferns, a group with about 12,000 species distributed around the world. Ferns show the same broad pattern of greater species richness in the tropics. The team used occurrence records from GBIF, the Global Biodiversity Information Facility, and mapped fern records that had decimal latitude and longitude.

Michael
Ferns are also a useful group because their forms vary so much. Two herbarium specimens can look strikingly different, and even a set of eight species can show a lot of visual complexity. Measuring all those differences by hand would be difficult, which is why computer vision is useful here.

Anna
The specimens came from digitized collections, including the US National Herbarium at the Smithsonian and the broader iDigBio collaboration, the Integrated Digitized Biocollections. Herbarium sheets are usually stored in cabinets, but digitizing them makes the specimens available as images. That large image resource is what made an analysis across many fern groups possible.

Michael
The team trained three kinds of classification model, increasing the difficulty as they went. They began with a genus model using genera that had at least 500 specimens in the dataset. They then tested a version with about 50 specimens per genus, and ultimately built a species model covering 1,425 species, each with at least 50 specimens.

Anna
Why vary the number of examples? A model generally has a harder time learning a category when it has fewer training images. The team also had to work with the way botanists’ collecting efforts shaped the available data: some places and species are represented more heavily than others, while rare species can come from places that botanists visit less often.

Michael
To assess the models, they held back 20 percent of the images for testing and trained on the other 80 percent. The model had not seen those test images during training, so its predictions could be compared with the known labels. A confusion matrix summarizes that comparison: for each actual group, it shows how often the model predicted each possible group.

Anna
The ideal pattern is a strong diagonal in that matrix, meaning images are assigned to their correct genus. The model was not perfect, but its errors often occurred between closely related genera, including genera within a family of tree ferns. That kind of confusion is more understandable than mistakes scattered randomly across unrelated groups.

Michael
Overall, the genus model reached 97 percent accuracy in the 86-genus version, and performance did not change much in the 269-genus version. The confusion was concentrated among related groups. That suggests the model was learning distinctions in a biologically plausible way, rather than making arbitrary errors.

Anna
Some of the traits that distinguish fern genera are difficult for people to see without tools such as a hand lens. So the model’s ability to learn patterns from the specimen images is notable: it may use visual differences that are not obvious to someone making a quick identification in the field.

Michael
The species-level task was more challenging, but the model still performed well. Its exact-match accuracy was about 81.5 percent, while the correct species appeared among its top five predictions 95.6 percent of the time. That distinction matters: a model can fail to choose the single correct label while still narrowing the possibilities to a very short list.

Anna
The talk also explains why some species are hard to distinguish from images alone. Some are separated mainly by genetic markers, so their visible shape differences may be extremely small. Given that limitation, the reported species-level accuracy was considered a strong result.

Michael
The researchers checked what parts of an image influenced the model using activation maps. These highlight the pixels that were most relevant to a prediction. In the examples shown, the highlighted areas fell on the fern itself, rather than on the specimen label—a useful check that the network was responding to the plant instead of learning to read the label.

Anna
They also examined feature maps, which show patterns associated with particular layers in the network. Earlier layers in image-recognition models tend to respond to simpler shapes and patterns, while later layers can support more specific distinctions, such as between species. To visualize a layer, the researchers began with an image of colors and optimized it to activate that layer as strongly as possible.

Michael
Those visualizations look very bright and abstract, but the particular colors are not the point. The researchers found that the model’s features were largely invariant to color and were more about shape. Some of the later patterns even resemble complex fern fronds, suggesting that the network was representing forms relevant to the task.

Anna
The next step was to use the network not just to name specimens, but to compare their shapes. Just before the model turns its results into probabilities for 1,425 species, it produces a 496-value feature vector for an image. That vector summarizes features the model learned while distinguishing fern species.

Michael
The team projected those 496-dimensional vectors into a two-dimensional space using a method like the visual projections discussed earlier in the presentation. Each point represents an image of a specimen. The point’s position gives a way to explore similarities and differences among the images in a space built from the model’s learned shape features.

Anna
In that projection, the researchers could inspect individual specimens and compare their positions. The distance between points was used as an indication of shape similarity or dissimilarity, while recognizing that the two-dimensional view is a projection of a much richer set of features.

Michael
They then colored the points according to four broad geographic climate groupings: tropical, mountain desert, temperate, and polar. The projection showed some clustering by those groups. Temperate specimens formed a cluster that partly surrounded another cluster of tropical specimens, while tropical specimens also appeared widely scattered through the space.

Anna
That pattern suggests a possible connection between where ferns occur and the shapes they have—not only a difference in the number of species, but potentially a difference in shape or ecological diversity as well. It is an initial indication, not a complete statistical answer to how fern shapes evolve or vary with latitude.

Michael
Exactly. This analysis is a first step toward testing whether morphological diversity changes along the same broad gradient as species richness. The researchers are working to combine the shape-space results with analyses of species numbers and to examine the pattern more deeply and statistically.

Anna
So the key takeaway is that digitized natural-history collections can make large-scale questions about evolution and form approachable. A neural network can classify fern specimens with high accuracy, reveal which parts of images it uses, and create a feature-based space for comparing shapes across regions.

Michael
And the broader biological question remains exciting: when the tropics contain more species, do they also contain a wider range of shapes and ecological roles? The fern analysis offers tools and an early view of that possibility, while leaving the deeper statistical test as an important next step.

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