Pupil Shape in the Animal Kingdom: Difference between revisions
No edit summary |
|||
| Line 80: | Line 80: | ||
===Limitations of using diffraction-limited optics and pupil models in this work=== | ===Limitations of using diffraction-limited optics and pupil models in this work=== | ||
While diffraction can affect optical systems, when it comes to the human or animal | While diffraction can affect optical systems, when it comes to the human or animal eyes, especially regarding how light enters through the pupil, diffraction issue is not the major concern, instead, the chromatic aberration in cornea and lens is. Chromatic aberration occurs when different wavelengths of light are focused at different points, leading to color fringing around objects. This effect is more pronounced in the cornea due to its curved surface and varying refractive indices for different wavelengths. | ||
== Conclusions == | == Conclusions == | ||
Latest revision as of 19:01, 13 December 2024
Introduction
Animals exhibit a wide variety of pupil shapes, unlike the uniform round pupils in humans. These shapes are closely related to the ecological niches of the animals, which refers to their behavioral and environmental needs. In recent times, researchers are looking into biologically inspired artificial vision systems to achieve novel imaging capabilities. Examples include an artificial vision system with a vertically elongated pupil for object detection and recognition under diverse light conditions, inspired by the cat’s eye, and an artificial vision system with a W-shaped pupil for imaging under uneven light conditions, inspired by the cuttlefish eye. A deeper understanding of how vision systems function in animals could inspire the development of advanced optical systems for various applications such as robotics, surveillance and autonomous vehicles. Hence, the goal of our project is to study the impact of different pupil shapes on vision, particularly focusing on the vertical slit pupil, horizontal slit pupil, W-shaped pupil, and multiple slit pupil, using ISETCam and ISETBio in MATLAB.
Background
Point spread function and apertures
Point spread function is a measure of how an imaging system responds to a point source of light. It reflects the blurring of light caused by diffraction, aberrations and other imperfections in the imaging system. A circular aperture results in a pattern called an Airy Disk. A smaller aperture size increases diffraction and the spread of the airy disk, causing more blurring. Non-circular apertures, such as square and triangle, produce unique PSFs compared to circular apertures. When the aperture is elongated in one axis, such as a rectangle, the diffraction pattern is extended in the direction perpendicular to the aperture extension. Most species, including humans, have circular pupils as a circular aperture allows symmetrical distribution of light across the retina. This minimizes distortions and provides consistent image sharpness across the entire visual field, making it optimal for general vision tasks. This suggests that species with non-circular pupils must have evolved them for specialized purposes.
Theories for various pupil shapes
Studies have shown that vertical slit pupils are common in ambush predators, as they enable the predators to keep vertical features in focus across different depths of field, while using the amount of defocus blur of horizontal features to estimate distance accurately. Conversely, horizontal slit pupils help terrestrial prey gain panoramic views of their surroundings, helping them detect predators more effectively. Research has also highlighted the role of pupil dynamics in regulating light entry. For example, many species with vertical pupil shapes are nocturnal, so there is a need to control the amount of light entering during daylight. Another example is the cuttlefish, which lives in shallow waters, a high dynamic range environment with the top surface bright due to sunlight and the bottom sea floor dark. The cuttlefish’s W-shaped pupil is said to help balance out the vertically uneven light field entering its eye. Another intriguing aspect of pupil shape is its connection to color vision. Cephalopods, such as cuttlefish, have only one type of photoreceptor. However, their W-shaped pupil is believed to enhance chromatic aberration, allowing them to perceive color by adjusting the lens-to-retina distance.
Methods
In this project, we utilized ISETCam and ISETBio to simulate the imaging process that occurs within an animal's eye.
Scene
We created two types of scenes for our simulations: sceneCreate.m to generate gridlines and sceneFromFile.m to read an image. The gridlines illustrate the effects along different axes, while the image provides a visualization of what the animal might be seeing.
Aperture
The aperture represents the pupil shape and is modeled as a 201x201 matrix. In this matrix, ones indicate the regions where light can pass through (white), while zeros denote the areas where light is blocked (black). For the single-slit elliptical aperture, we can adjust both the size and the orientation of the ellipse (vertical or horizontal). For the multiple-slit aperture, we can modify the slit length, slit width, and the number of slits. For the w-shaped aperture, we intake the w-shape black and white image to generate the aperture matrix, and are able to change the size of it.
Point spread function and optical image
The point spread function was simulated for each aperture to analyze the impact of aperture shapes on light passing through the aperture. This was achieved by creating a diffraction-limited wavefront structure using wvfCreate.m and computing the point spread function with wvf.Compute.m with the aperture matrix as input. The optical image was generated using oiCompute.m taking in the scene and the aperture matrix as inputs. The simulation process assumes that the optical lens is diffraction-limited.
Cone mosaic and absorptions
To simulate how the eye’s sensor processes the scene, we modeled the human cone mosaic using cMosaic.m in ISETbio, and used cm.compute.m to simulate the cone excitations and absorptions. Due to time constraints, we only tried the human cone distribution, but it would be highly valuable to try incorporating known cone distributions from the literature for various animals in the future.
Results
Horizontal goat pupil and vertical cat pupil
The horizontal slit pupil introduces blurring along the vertical direction, evident in the scene by the horizontal gridlines appearing blurred while the vertical gridlines remain sharply in focus. This effect is also replicated in the cone mosaic plot, confirming the impact on visual perception. Conversely, for the vertical slit pupil, the phenomenon is observed along the opposite axis. The horizontal gridlines remain sharply focused, while the vertical gridlines appear blurred. This demonstrates that a vertical pupil causes blurring in the horizontal direction while maintaining clarity along the vertical axis.
These plots align with our understanding of the functional advantages of pupil shapes in animals. For prey animals with horizontal slit pupils, having sharp focus across the horizontal axis is advantageous, as it allows them to effectively monitor their surroundings for predators. Additionally, the laterally placed eyes of these animals provide a wide field of view, further enhancing their ability to detect threats. On the other hand, predator animals with vertical slit pupils benefit from sharp focus along the vertical axis, which aids in keeping their prey in view. This vertical focus is particularly useful when combined with head or eye movements to track prey's horizontal motion, supporting their hunting strategies.
Slit pupil vs. circular pupil
When comparing a slit pupil to a circular pupil of the same area, we observe that for a smaller aperture, the circular pupil leads to blurring across the entire scene. This occurs because diffraction becomes more pronounced in smaller apertures, causing the loss of sharp focus. In contrast, a slit pupil of the same area can retain focus along one axis. Specifically, for a vertical slit pupil, the image remains sharp along the vertical direction while blurring occurs along the horizontal axis.

These plots support our understanding of the behavior of predator animals. Many predators with vertical slit pupils are also nocturnal. During the day, their pupils constrict to a small area to limit the amount of light entering the eye. If their pupils were circular, the small aperture would cause significant diffraction, leading to a loss of visual clarity. However, the vertical slit pupil allows them to maintain good focus along one axis, despite the reduced aperture size, enabling them to retain functional vision even in bright conditions. This ability is particularly beneficial for nocturnal predators, allowing them to effectively navigate and hunt in varying lighting conditions.
Effect of W-shaped pupil on chromatic aberration
Cuttlefish are an interesting case in the animal kingdom. They are famous for their colorful displays and ability to dynamically camouflage themselves, yet they are actually monochromats, effectively colorblind. One paper [10] suggests they make use of chromatic aberration to distinguish between colours using their single photoreceptor type (at the cost of requiring more processing power behind their visual system).

To test the theory that their unique W-shaped pupil produced chromatic aberrations, a custom aperture mask was created and resulting optical image generated with a gridline scene. In the case of a larger pupil size, clear vertical lines and slightly blurred horizontal lines are seen, as expected given its overall horizontal slit-like aspect ratio. Additionally, clear red colour fringing is seen in the vertical lines, supporting this theory that one purpose of their unique pupil shape is to produce chromatic aberrations on their cone mosaic.
Interestingly, once the pupil size was reduced by 17% whilst preserving aspect ratio, the resulting optical image loses almost all contrast and becomes overly blurred, suggesting this pupil shape effectively only works for the animal at larger aspect ratios. Indeed in brighter light, the cuttlefish eye becomes more of a U-shaped slit than a 'W'.
Furthermore, in 3D the W/U shape has the effect of being a vertical slit when viewed from the front, and a horizontal slit from the side. Potentially this could help the cuttlefish as an ambush predator, whilst still being able to scan for threats in the periphery.

Multiple-slit pupil: Mantis Shrimp
The mantis shrimp is a case in of an animal from the same biome with a completely opposing approach to colour vision. It has an incredibly complex visual system with up to 16 different photoreceptor types, and an eye split into 3 bands capable of detecting even UV and circularly polarized light. However it has limited brain processing power behind this visual system, unlike the cuttlefish.

The midband of the mantis shrimp eye is the only portion with multiple photoreceptor types. One study [9] showed that although they have a huge resolution in terms of sampled wavelengths, they are only effectively able to distinguish colours up to 25nm apart in the visible light spectrum. In order to investigate whether chromatic aberration plays a part in their colour vision like the cuttlefish, the triple-slit pupil was simulated in the same way as above. Also, a triple parallel slit pupil was simulated out of academic interest, although no animal is known to us to have this pupil shape.

It can be seen that for the multiple slit colinear pupil, there is actually not much difference to the single horizontal slit. No significant chromatic aberrations can be seen, suggesting that it does not use chromatic aberration for colour vision like the cuttlefish; it instead relies on the multiple photoreceptor types.
This does raise the question of when the mantis shrimp makes use of the multiple-slit pupil, instead of a single pupil (it can indeed change between the two). Watching a video of them shows the typical saccade-fixation eye movement pattern. In the scanning phase of its eye movements is when the multiple-slit pupil can be seen. Furthermore, the mantis shrimp is rather unique in its ability to yaw its eyeball in a third degree of freedom. Perhaps it makes use of the multiple slit to detect general oriented edges in the scene, yawing to adjust for orientation, before fixating with a single pupil in the outer hemisphere of its vision.
Following is a link to a video taken of a Mantis shrimp in Monad Shoal, Malapascua, Philippines. The eye movements can be seen: https://www.youtube.com/watch?v=WnkQmnUcKyA
Limitations of using diffraction-limited optics and pupil models in this work
While diffraction can affect optical systems, when it comes to the human or animal eyes, especially regarding how light enters through the pupil, diffraction issue is not the major concern, instead, the chromatic aberration in cornea and lens is. Chromatic aberration occurs when different wavelengths of light are focused at different points, leading to color fringing around objects. This effect is more pronounced in the cornea due to its curved surface and varying refractive indices for different wavelengths.
Conclusions
- Our results support the theory that a vertical slit is used for the predators like cats to focus the vertical direction when hunting; we see the vertical gridlines across the horizontal axis blurring.
- For a horizontal slit, improved horizontal contrast is perhaps beneficial to prey animals that need to constantly scan left/right for threats whilst grazing.
- For smaller pupil areas (bright lighting conditions) a vertical slit is superior in providing more general scene contrast compared to a circular pupil of the same area
- For a horizontal slit, this could have the added benefit of reducing glare from sunlight above
- In the case of a ‘W’ shaped pupil, chromatic aberration with neat colour fringing is seen whilst preserving horizontal contrast, supporting the theory that chromatic aberration is used to perceive colour in the monochromat
- Reducing the size of a ‘W’ pupil greatly reduces contrast and blends colours too much, hence the cuttlefish needs to employ a more slit-like pupil at brighter conditions
- The mantis shrimp split pupil does not produce significant chromatic aberration, it is very close to a single slit but with the added ability to control the orientation.
- When combined with the fact that it uses the multiple slit in the saccadic phase of eye movements (with yaw control), perhaps this is used to detect oriented edges.
Future work could include:
- Using ISET3D to simulate the depth of field effect for all the asymmetrical pupils
- incorporate various lighting conditions into the simulations
- Adapt the coded in ISETbio to replicate the cone mosaic of specific animals for simulation instead of using human mosaic for all.
- Treating the optics in a non diffraction-limited way to closer emulate a real biological visual system.
- Indeed some papers explored produced differing results to ours for the vertical pupil, notably when taking into account depth of field effects.
References
[1]M. S. Banks, W. W. Sprague, J. Schmoll, J. A. Q. Parnell, and G. D. Love, “Why do animal eyes have pupils of different shapes?,” Science Advances, vol. 1, no. 7, p. e1500391, Aug. 2015, doi: https://doi.org/10.1126/sciadv.1500391.
[2]Min Su Kim et al., “Feline eye–inspired artificial vision for enhanced camouflage breaking under diverse light conditions,” Science Advances, vol. 10, no. 38, Sep. 2024, doi: https://doi.org/10.1126/sciadv.adp2809.
[3]M. Kim et al., “Cuttlefish eye–inspired artificial vision for high-quality imaging under uneven illumination conditions,” Science Robotics, vol. 8, no. 75, Feb. 2023, doi: https://doi.org/10.1126/scirobotics.ade4698.
[4]S. Chang, D.-J. Kong, and Young Min Song, “Advanced visual components inspired by animal eyes,” Nanophotonics, vol. 0, no. 0, Mar. 2024, doi: https://doi.org/10.1515/nanoph-2024-0014.
[5]“The Science Behind Cat Eyes,” Small Cat Advocacy and Research (SCAR), Sep. 28, 2021. https://scar.lk/the-science-behind-cat-eyes/ (accessed Dec. 11, 2024).
[6]“Diversity in Pupil Dimensions across the Animal Kingdom – An Aesthetic Creation with Visual Significance,” Vision Science Academy, Oct. 01, 2020. https://visionscienceacademy.org/diversity-in-pupil-dimensions-across-the-animal-kingdom-an-aesthetic-creation-with-visual-significance/
[7]L. M. Mäthger, R. T. Hanlon, J. Håkansson, and D.-E. Nilsson, “The W-shaped pupil in cuttlefish (Sepia officinalis): Functions for improving horizontal vision,” Vision Research, vol. 83, pp. 19–24, May 2013, doi: https://doi.org/10.1016/j.visres.2013.02.016.
[8]T. W. Cronin, M. J. Bok, N. J. Marshall, and R. L. Caldwell, “Filtering and polychromatic vision in mantis shrimps: themes in visible and ultraviolet vision,” Philosophical Transactions of the Royal Society B: Biological Sciences, vol. 369, no. 1636, Feb. 2014, doi: https://doi.org/10.1098/rstb.2013.0032.
[9]J. Morrison, “Mantis shrimp’s super colour vision debunked,” Nature, Jan. 2014, doi: https://doi.org/10.1038/nature.2014.14578.
[10]A. L. Stubbs and C. W. Stubbs, “Spectral discrimination in color blind animals via chromatic aberration and pupil shape,” Proceedings of the National Academy of Sciences, vol. 113, no. 29, pp. 8206–8211, Jul. 2016, doi: https://doi.org/10.1073/pnas.1524578113.
[11]“How mantis shrimp make sense of the world | NSF - National Science Foundation,” new.nsf.gov, Dec. 04, 2019. https://new.nsf.gov/news/how-mantis-shrimp-make-sense-world
Appendix I
Diffraction effect from pupil size
Source codes
MATLAB codes and data file: https://github.com/riannehere/pupil-project
Appendix II
Work breakdown
Wei Lin Puah: In-person liaising with mentor, MATLAB code for vertical and horizontal pupil, literature review for validating accuracy of simulations, written report and presentation
Lei Yu: MATLAB code for vertical, horizontal and multiple slit pupil, generation of PSF plots, optical images and cone mosaic, email liaising with mentor, written report and presentation
Rahul Swaminathan: MATLAB code for vertical and horizontal pupil, MATLAB code for W-shaped pupil, literature review for the Mantis shrimp, written report and presentation