Abstract
The evolution of colour vision is captivating, as it reveals the adaptive strategies of extinct species while simultaneously inspiring innovations in modern imaging technology. In this study, we present a simplified model of visual transduction in the retina, introducing a novel opsin layer. We quantify evolutionary pressures by measuring machine vision recognition accuracy on colour images shaped by specific opsins. Building on this, we develop an evolutionary conservation optimisation algorithm to reconstruct the spectral sensitivity of opsins, enabling mutation-driven adaptations to more effectively spot fruits or predators. This model condenses millions of years of evolution within seconds on GPU, providing an experimental framework to test long-standing hypotheses in evolutionary biology, such as vision of early mammals, primate trichromacy from gene duplication, retention of colour blindness, blue-shift of fish rod and multiple rod opsins with bioluminescence. Moreover, the model enables speculative explorations of hypothetical species, such as organisms with eyes adapted to the conditions on Mars. Our findings suggest a minimalist yet effective approach to task-specific camera filter design, optimising the spectral response function to meet application-driven demands. The code will be made publicly available upon acceptance.
Introduction
Traditional camera design is predominantly "human-centric," often mimicking the trichromatic (RGB) vision of primates. However, biological evolution demonstrates that spectral sensitivity is not a one-size-fits-all solution; rather, it is an adaptive response to specific environmental demands, from the prehistoric forest floor to the deep sea. Biologists have long debated why certain visual traits evolved—such as the loss of color vision in early mammals (dichromacy) or the retention of "color blindness" in some primate populations—but testing these hypotheses across geological timescales has been historically impossible.
This paper introduces a "paleoinspired" vision framework that bridges the gap between evolutionary biology and computer vision engineering. By simulating millions of years of evolution on a GPU, we can explore how specific environmental pressures shape visual sensors and apply these biological principles to design optimized, task-specific camera filters for modern challenges like Mars exploration and medical diagnostics.
Methodology
The core of our framework is the Evolutionary Conservation Optimization algorithm. We model the retinal visual pigments as a specialized Opsin Layer within a deep learning architecture. Unlike standard convolutional layers, this layer uses 1×1 kernels parameterized by Gaussian functions to mimic the spectral sensitivity of opsins.
To simulate biological constraints, we employ Conservative Regularization. The model is restricted to small shifts in peak sensitivity wavelength ($λ_{max}$), mimicking the slow pace of genetic mutation. The "evolutionary pressure" is represented by a machine learning task, such as semantic segmentation. If a specific opsin configuration improves the model's ability to detect fruit or avoid predators (measured by mean Intersection over Union, or mIoU), those "genes" are preserved and passed to the next iteration. The architecture consists of the opsin layer, a noise layer for low-light simulation, a Mix Transformer (MiT) encoder, and a segmentation decoder.
Evolutionary Insights
The model successfully replicated several key biological phenomena:
- Primate Trichromacy: The simulation quantitatively confirmed that the transition from two to three opsins significantly improved fruit detection. In the MinneApple dataset, mIoU increased from ~0.22 to ~0.32, supporting the "frugivory hypothesis."
- Deep-Sea Adaptation: In simulations of squirrelfish evolution, the model's predicted $λ_{max}$ shifts closely tracked the 481nm–502nm range observed in nature, demonstrating a natural "blue-shift" to maximize light capture in deep water.
- The Dichromacy Advantage: Interestingly, the model found that in dim light or when identifying objects against "khaki" backgrounds (like rocks), dichromatic vision (color blindness) can outperform trichromatic vision. This provides a quantitative explanation for the persistence of these traits in certain species.
Engineering Applications: Task-Specific Camera Design
Beyond biology, this framework serves as a powerful tool for engineering. By allowing the model to "evolve" for non-human environments, we can design superior optical filters:
- Mars Exploration: When evolved for the Martian landscape using Curiosity rover data, the model converged on a dichromatic system as the most efficient solution. An optimized 3-filter design achieved an mIoU of 39.20, outperforming standard Gaussian filters.
- Cancer Detection: Using the MHSI Choledoch dataset, the "evolved" filters for medical imaging improved bile duct cancer segmentation performance to 53.55% mIoU, compared to 53.17% for standard designs.
Conclusion
While this model is a simplification of the complex neural processing found in biological systems, it demonstrates that a minimalist, task-driven approach to sensor design can yield significant performance gains. By treating camera filters as evolving biological sensors, we can move beyond human-centric design toward high-efficiency, application-specific optical systems. Future work will explore more complex environmental variables and the physical prototyping of these evolved filter designs.
Summary updated