Abstract
Contour-induced afterimages constitute an important class of chromatic visual illusions, in which an illusory color percept emerges post-exposure to a chromatic field. Their striking feature is dual polarity (the perception of both complementary and inducer hues) and the capacity for extending to naive, non-adapted regions, indicating the involvement of neural mechanisms that extend beyond established models of simple neural adaptation. In this work, we realized the perceptual afterimage effect with a biologically plausible spiking neural network. We compared the results with experimental findings with human participants, demonstrating how a complex temporal evolution of a visual illusion can emerge from the dynamics of its constituent spiking dynamics. Our neural design models a wide range of phenomena, including positive, negative, and combined afterimage configurations, as well as the effects of alternating and open contours. By intrinsically incorporating the temporal dimension through its spiking dynamics, the model accurately reproduces the temporal evolution of the perceived color, including the alternating polarity observed with successive contours. We show that a single, unified, and biologically plausible spiking architecture can account for both veridical color and the complex set of contour-induced afterimage phenomena, suggesting that a common, active neural process, chromatic filling-in, is responsible for the different forms of perceived color. From an engineering perspective, our model exemplifies neuromorphic computational processing of event-based representations of visual data without reducing to static frames, and enables systematic analysis of inference error and illusory afterimages through configurable parameters, offering conceptual guidance for designing bio-inspired neuromorphic imaging pipelines.
1 Introduction
Visual illusions have long been instrumental in investigating the neural processes underlying visual perception. One of the most familiar examples is the color afterimage: prolonged fixation on a colored stimulus elicits the perception of a complementary color once the stimulus is replaced with a blank background. In the classical afterimage effect, negative afterimages appear in the regions directly stimulated by color. However, multiple studies have shown that afterimage perception can be modulated by luminance contrast; for instance, afterimages appear stronger when surrounded by luminance edges (; . Contours can induce illusory color filling-in aftereffect also in regions not directly exposed to color, and with hues not limited to the complementary of the inducer. Such illusory filling-in can be elicited both by chromatic contours concurrently with their presentation, as in the watercolor effect ; , and by achromatic contours presented after an initial chromatic stimulus (; ; ; ). For example, ) demonstrated a positive afterimage: following adaptation to a colored field, the gray region it enclosed appeared to take on the inducer's hue. The authors attributed this to a combination of simultaneous contrast induction and adaptation. In simultaneous contrast induction, the perceived chromaticity of a region is shifted toward the complementary hue of its surround, a process thought to be mediated by lateral inhibition (; ).
demonstrated that achromatic test contours can elicit distinct afterimages from the same chromatic stimulus. Their stimulus consisted of two overlapping quadrilateral stars with complementary colored spikes and a gray central overlap (Figure 1, right column). An achromatic contour outlining one of the stars induced a complementary hue of that star within its boundary, including in the overlapping area that had not been exposed to color. The authors showed that the outlined star's chromatic spikes induced a complementary hue inside the contour, whereas the second star's spikes outside the contour induced the same hue inside the contour, albeit more weakly. When the two contours were presented in succession, the perceived afterimage color alternated accordingly. Another example of contour-dependent percepts arising from the same chromatic stimulus was demonstrated (). The authors presented multicolored stimuli followed by a test contour enclosing several regions of different colors. Within a given contour, the colors blended into an averaged afterimage, whereas the colors remained distinct across contours.
Figure 1
Hazenberg and colleagues further investigated afterimage filling-in using thin closed chromatic contours, with an achromatic contour positioned either inside or outside the chromatic stimulus (
Although adaptation is presumed to be involved in contour-induced afterimages, their characteristics differ markedly from those of classical afterimages. In addition to exhibiting dual polarity and spreading into non-adapted regions, contour-induced afterimages emerge after much shorter exposure time and can be triggered even by a thin chromatic contour, whereas classical afterimages typically require relatively long adaptation and large chromatic areas sufficient to counteract involuntary saccadic motion. Additional neural processes, beyond adaptation, must therefore be involved, yet their nature remains unknown. This is unsurprising, given that even the neural mechanism of classical afterimages remains under debate. Proposed mechanisms range from photopigment bleaching in the retina to cortical adaptation (
The neural basis of perceptual filling-in remains uncertain. Two prominent theories have been proposed: (i) the isomorphic theory, which postulates that neural signals spread from edges across the retinotopic map to reconstruct a two-dimensional representation of the visual field, and (ii) the symbolic (or cognitive) theory, which holds that shapes and colors are represented at higher levels of visual processing without requiring an explicit spatial representation (
Computational models attempting to predict these effects are scarce, all following the isomorphic theory. For example, the FACADE model (
In this work, we extend this approach with a biologically inspired spiking implementation. Spiking neural networks (SNNs) provide a framework for simulation of high-level perceptual phenomena grounded in biologically plausible modeling of low-level neural activity (
SNNs inherently model the temporal, event-driven nature of neural signaling. Our model captures the unfolding spatiotemporal dynamics of early visual processing. It spans the entire temporal sequence of the experiment and, crucially, is self-contained: its predictions arise directly from its intrinsic state, driven solely by the time-varying stimuli. These properties allow the model to generate predictions that trace the temporal progression of perception within and across experimental stages, while also supporting the simulation of more complex temporal effects, such as three-stage alternating contours.
2 Methods
Our model was implemented as a spiking neural network (SNN), designed to simulate key functional components of the early visual system and to intrinsically capture both spatial structure and temporal dynamics. An overview of the model architecture is shown in Figure 2. Visual stimuli are encoded into three opponent channels: red/green, blue/yellow, and luminance. These channels reflect the single-opponent organization of retinal ganglion cells and the lateral geniculate nucleus. These opponent channels are processed along separate functional pathways. Single-opponent signals feed into the double-opponent edge-detection component, corresponding to double-opponent neurons in the primary visual cortex that encode visual information as chromatic and spatial boundaries. Chromatic double-opponent signals undergo neural adaptation, and the resulting adapted signals are subsequently modulated by the luminance channel's double-opponent output, which enhances chromatic gradients at the test contour. Each pathway implements diffusion-based filling-in, following the isomorphic theory of perceptual filling-in. The filling-in is driven by modulated edges in the chromatic channels and by luminance edges in the luminance channel. The outputs of all channels are then combined and integrated to yield the final percept. Subsequent sections describe the components in detail.
Figure 2

SNN architecture and illustrative intermediate representations. DO: double opponency; HPF: high-pass filter; : discrete Laplacian; (+) denotes amplification via excitation; (–) denotes inhibition.
2.1 Neural engineering framework
Our SNN model is implemented using the Neural Engineering Framework (NEF) (
The neural activity ai of neuron i, encoding an input vector x, is given by:
where Gi is the neuron model, ei is the neuron's preferred direction (encoder), αi is a gain factor, and is a fixed background current. Gi may be any neuron model that maps input current to activity. In spiking neuron models such as leaky integrate-and-fire (LIF), activity is expressed as a spike train.
This distributed population encoding can be decoded as:
where N is the number of neurons in the population, and di is the decoder vector for neuron i, derived by solving a reconstruction problem via least-squares minimization.
Neuronal ensembles communicate through weighted synaptic connections. An arbitrary transformation f(x) can be implemented by optimizing the decoders to approximate f(x) instead of x.
Although decoding is abstractly framed as a reconstruction process, this formulation is equivalent to embedding the decoders within the synaptic connection weights, computed as the outer product of the decoders and the encoders of the downstream neurons. NEF acts as a neural compiler: given a neuron model, its parameters, and the target values and computations, it optimizes the synaptic weights accordingly.
NEF models biological synapses as filtering operations, with the low-pass filter serving as the default model.
Under this synaptic model, NEF provides a method for implementing dynamical systems of the form:
where x is a state variable represented by the neural activity of an ensemble, u is the input, and f and g are arbitrary functions. This dynamics can be implemented by setting the input connection to compute the function
and the recurrent connection to compute the function
where τ is the time constant of the low-pass synaptic filter of the recurrent connection.
2.2 Model inputs
The input RGB image, representing the visual stimulus, is converted into an opponent-color space comprising two chromatic opponent channels, L/M and S/(L+M), and one achromatic channel, following established biological pathways. The L/M channel captures the opponency between long-wavelength (red) and medium-wavelength (green) light; the S/(L+M) channel represents the opponency between short-wavelength (blue) and the combined response to long- and medium-wavelengths (yellow); and the achromatic channel reflects overall luminance (
We approximate the conversion of the input RGB image into an opponent-color space by the linear transformation M (
where SO(RG), SO(BY) and Lum correspond to the single-opponent channels L/M and S/(L+M), and the luminance channel, respectively. The three resulting channels serve as inputs to the spiking neural network.
2.3 Double-opponency and adaptation
The first stage in each chromatic pathway performs edge detection on the corresponding opponent input using a second-order Laplacian filter. This stage models the behavior of double-opponent cells in V1, which are sensitive to oriented chromatic edges (
where SO(ch) is the signal on the input channel ch∈RG, BY, Lum in the opponent space, and kch is a scaling constant that can be configured per channel for flexibility, and * denotes convolution. The scaling serves to amplify the input for signal stability and carries no biological interpretation.
The detected spatial edges are subject to neural adaptation. To a first approximation, the decay in neural response to a sustained stimulus is exponential, with low-frequency components being suppressed—a fingerprint of a high-pass filter (HPF) (
Concretely, we replace the NEF default low-pass synapse with a high-pass synaptic model on the outgoing connections of double-opponent ensembles. Upon stimulus offset, when the chromatic contour is replaced by an achromatic one, the adapted neurons produce reversed chromatic edges, consistent with the rebound response proposed by
Our synaptic model can be viewed as an abstraction of synaptic depression, and its placement in the network corresponds to cortical rather than retinal adaptation, as argued by
2.4 Chromatic filling-in
Following
2.4.1 Chromatic inducer
The adapted chromatic gradients are modulated by an additive signal, driven by an excitatory input from the luminance double-opponent response and gated by an inhibitory input from the single-opponent chromatic response. Figure 3 illustrates the modulation mechanism. The modulatory signal enhances chromatic gradients that spatially coincide with the achromatic contour. When a chromatic stimulus is physically present, it delivers a strong inhibitory input that suppresses the modulation. This behavior arises naturally from processes that operate locally and uniformly across all pixels.
Figure 3

Chromatic gradient modulation mechanism. +, – denote ensembles tuned to positive and negative values, respectively, that pass those values through unchanged. The values on connections represent linear transformations. C: the modulatory signal; MSO: combined chromatic single-opponent magnitude; α, β: amplification and inhibition factors; 13 × 3: box filter. DO, HPF, Filling-in Inducer correspond to those in Figure 2. L/M channel modulation (not shown) is analogous to the depicted S/L+M channel.
The excitatory input is provided by the luminance double-opponent magnitude mask. The double-opponent response includes both positive and negative values, corresponding to opposite edge polarities. To compute its magnitude, the signal is projected through two neural ensembles: one responsive to positive values and the other to negative values. These outputs are then combined to produce the luminance edge magnitude signal |DO(Lum)|.
The inhibitory signal is derived from additively combined single-opponent magnitude masks of the two chromatic channels. Magnitudes are computed in the same manner as for the luminance edge and then combined into a single mask
Since edges span both sides of a boundary, the single-opponent response is spatially dilated using a simple 3 × 3 box filter, denoted 13 × 3, to ensure sufficient overlap with the edge region. Finally, the signal is scaled by an inhibition factor β, chosen large enough to suppress modulation in the presence of a single-opponent chromatic response (in practice, dilation and scaling are folded into a single transform). The modulatory signal C is represented by a neural ensemble selective to positive values. The described neural computation is approximately equivalent to:
The adapted chromatic gradient is decomposed into positive and negative components. The modulatory signal, scaled by the amplification factor α, is applied to each with the matching sign, and the results are then recombined to yield the final filling-in inducer E(ch). This can be expressed as:
Note that while negative values are not physiologically realistic, in our model, they simply represent neural responses to stimuli of opposite polarity. This allows the system to distinguish between opposing conditions, such as edge direction or color opponency, while still relying on biologically plausible population activity to encode the neural response.
2.4.2 Diffusion-based filling-in
Following our earlier work (
where I is the reconstructed image, Iin is the stimulus, Δ is the Laplacian operator, ∇· is the divergence operator, ∇ is the gradient operator, and cr and ci are the diffusion coefficients.
The term ∇·(∇Iin(x, y)), equal to ΔIin(x, y), corresponds to the edge structure of the stimulus being reconstructed. In our network, the diffusion process operates on the chromatic inducer E(x, y) (Equation 11):
As was described above, the inducer automatically captures both the chromatic gradients of physically present stimulus and the adapted gradients that arise after its offset, which respectively drive the reconstruction of veridical color and the generation of illusory afterimages within a single diffusion process.
The diffusion process described by Equation 13 realizes the general dynamics of Equation 3 and can therefore be implemented following Equations 4–5. Concretely, it is implemented using a recurrent connection with time constant τr, which computes , where denotes a discrete Laplacian, and an input connection that computes τrciE(x, y). Each neuron is connected to its four immediate neighbors through the recurrent connections, realizing horizontal neural connections.
2.5 Luminance filling-in
The luminance output was reconstructed by edge-driven diffusion, implemented as a recurrent connection, similarly to the chromatic channels. Luminance edges, extracted once using a Laplacian filter, served both to trigger filling-in within the luminance channel and to modulate the chromatic channels.
2.6 Perceived image
The spiking network generates dynamic outputs over the course of the simulation. First, we temporally sample the chromatic channels outputs, after filling-in, at different time points using a low-pass probe. When a single-opponent chromatic signal is present, we use it as an anchor to rescale the chromatic outputs back to their original range through a simple affine transformation. Rescaling is performed independently per chromatic channel and per sampled frame. Luminance output is scaled in a similar manner.
Finally, we generate the RGB image representing the model's predicted percept. The rescaled chromatic channels and the luminance channel are combined and converted to RGB using the inverse opponent-color transformation:
where RGout, BYout, and Lumout are the rescaled outputs of the RG, BY, and Lum processing channels, respectively, and M is the opponent-color transformation from Equation 6.
3 Results
3.1 Simulation details
The spiking neural network was implemented in
The model's hyperparameters were tuned using the stimuli shown in Figure 1. Simulations with other stimuli used the same parameters unless stated otherwise. For edge detection, parameters were set to kRG = kBY = 5 and kLum = 2 (Equation 7). The time constant of the chromatic adaptation high-pass filter was set to 1 s. Diffusion coefficients were cr = 2 and ci = 0.25, with a recurrent time constant τr = 0.01s (Equation 12). For the inducer signal parameters were: amplification factor α = 10, and single-opponent inhibition factor β = 100 (Equation 10). Constant factors in convolution operations were folded into the kernels.
Simulations were accelerated using the Nengo OpenCL-based simulator (
3.2 Model predictions and analysis
3.2.1 Closed contours stimuli
We first evaluated our model using stimuli that closely followed the specifications of
Table 1
| Color | CIE xyY | sRGB |
|---|---|---|
| Green | (0.3514, 0.4417), 65.69 | (193, 223, 129) |
| Orange | (0.3774, 0.3694), 58.65 | (236, 193, 157) |
| Blue | (0.2600, 0.3058), 52.90 | (142, 202, 219) |
| Pink | (0.3814, 0.2733), 29.87 | (218, 115, 162) |
| Background | (0.3128, 0.3303), 73.87 | (223, 223, 223) |
| After-contour | (0.3128, 0.3303), 55 | (196, 196, 196) |
| Red star | (0.3768, 0.3285), 41.91 | (221, 156, 157) |
| Cyan star | (0.2597, 0.333), 40.95 | (109, 184, 181) |
| Overlap | (0.3127, 0.329), 42.87 | (175, 175, 175) |
| Background | (0.3127, 0.329), 58.13 | (200, 200, 200) |
Stimuli colors in the CIE xyY color space and the corresponding sRGB values, obtained through a standard transformation.
Contours stimuli after
Figure 4

Simulation results across different configurations. (A–C) Show the stimuli and corresponding predicted percepts. Each simulation result is presented as a two-row panel: the top row shows the input stimuli, and the bottom row shows the predicted percepts. Columns reflect the temporal progression of stimulus presentation, with durations indicated above each column and predictions sampled at the end of each stage. (A) Stimuli based on
Figure 4D shows the predicted colors, averaged over the interior of the achromatic contour, plotted in the a*–b* plane of the CIELAB color space. This space approximates perceptual uniformity, with the a* and b* axes representing the red–green and yellow–blue chromatic dimensions, respectively. In polar coordinates, the angle and the radius represent hue and chroma, respectively. The predicted colors correspond to the same hue in the positive condition and to the opposite hue in the negative condition, with lower chroma in both cases, consistent with
In the destructive combination condition, the predicted colors are located near the origin, as expected. In the constructive combination, the predicted color exhibits a higher chroma than in the positive or negative condition alone. These results are consistent with
We qualitatively compared our model predictions (Figure 4E) with the mean response analysis performed by
We further analyzed the temporal dynamics of our model, presented in Figures 5A, B. The model parameters were tuned to ensure a clearly visible color at the end of the test stage, using the same timings as in the original experiment, with no explicit constraints on the dynamics. The model's dynamics arise from the interaction of two processes: filling-in, implemented as an iterative diffusion that generates perceived colored surfaces, and double-opponent adaptation. Adaptation exerts dual and opposing effects: on one hand, stronger adaptation enhances chromatic gradients and drives more pronounced filling-in; on the other hand, it accelerates the fading of color. Together, these effects produce an initial build-up of chroma that then remains steady for most of the test stage before decaying rapidly. The temporal profile is broadly consistent with perceptual observations: the illusory color typically fades within seconds. However, the percept itself seems to appear instantaneously, whereas in the model, the build-up is slow and gradual. In the negative condition, there is an additional delay between filling-in at the adapted region and in the remaining interior. This can be attributed to the weaker inner chromatic edge (not amplified by the test contour), which drives diffusion in the opposite direction, hindering its spread toward the center.
Figure 5

Temporal dynamics (A–D) and the spiral stimulus (E). (A) Predicted temporal progression of contour-induced afterimage filling-in for the negative (left) and positive (right) conditions. (B) Chromatic evolution of predicted percepts from A in the CIELAB a*–b* plane. (C) Temporal progression under the alternating-contours condition. (D) Effect of adaptation duration on afterimage strength in the null condition. Top row presents the stimuli; lower rows present predicted percepts from runs with different chromatic-stimulus durations. (E) Spiral stimulus with three different test contours. Two chromatic stimulus configurations are shown: I. a light spiral on a red background; II. a red spiral on a light background. In each case, the same chromatic stimulus (first column on the left) is followed by one of three contour variations: full contour (first row), outer edge of the contour (second row), and inner edge of the contour (third row). The corresponding predicted percepts are shown to the right.
3.2.2 Star-like stimuli
We also evaluated the model using stimuli based on the star-shaped configurations introduced by
Simulation results are shown in Figure 4B. The left column displays the star-like stimuli, and the right column presents the same stimulus with an additional inner achromatic contour, as introduced by
3.2.3 Alternating achromatic contours
Next, we evaluated the model's dynamic behavior using a three-stage stimulus, in which a single chromatic stimulus was followed by two alternating achromatic contours (Figure 4C). In the first configuration, a chromatic contour was followed either by an inner contour and then an outer contour (top left), or by an outer contour and then an inner contour (top right), producing alternating positive and negative effects. We also examined the star-like stimuli, in which the alternating contours corresponded to one of the overlapping shapes in the initial chromatic stimulus. The model reproduced all observed outcomes, indicating that its internal state retained sufficient chromatic and spatial information to generate the appropriate response without re-presentation of the chromatic stimulus. Figure 5C shows the temporal progression of the predicted percepts.
3.2.4 Spiral stimuli
We further tested our model on spiral stimuli based on stimuli used by
4 Discussion
In this work, we propose a biologically plausible spiking neural model that implements and integrates core components of the early visual system. Our model successfully predicts contour-induced positive, negative, and combined afterimages, as well as veridical color perception, through a single mechanism. It also reproduces classical afterimages and the effect of adaptation duration on their strength (Figure 5D). These results suggest that filling-in across all of these cases may be mediated by a common neural process.
While the model of
In a broader sense, our work bridges neuroscience and neuromorphic engineering by translating biologically inspired mechanisms of color perception into a unified spiking architecture, in which complex visual percepts emerge from local event-based activity and temporal integration. Our model demonstrates how unconventional visual data, such as that produced by event cameras, can be processed without reducing it to static frames, offering conceptual guidance for the development of principled computational tools for neuromorphic imaging. Furthermore, the illusory afterimage can be interpreted as an inference error of the computational framework: the mismatch between the reconstruction (percept) and the sensory signal (stimulus), which can be evaluated systematically through configurable model parameters. This property can be particularly useful for informing design considerations and exploring potential failure modes in bio-inspired systems. Notably,
While our model is biologically plausible, being based on spiking neural computations that realize biologically grounded functional units, it does not follow neurons' detailed biophysical properties. For computational efficiency, most neural components are implemented using spiking rectified linear neurons, which lack some properties of real neurons, such as membrane leakage and refractory periods. However, this choice does not constitute a conceptual limitation of the model, and we expect the proposed architecture to be fully compatible with more biophysically aligned neuronal models, such as leaky integrate-and-fire (LIF) neurons, which are already used in the diffusion module. In fact, the rectified-linear response behavior implemented here can be well approximated using populations of LIF neurons.
The present work should also be distinguished from large-scale biologically detailed simulators such as Virtual Retina (
The proposed model is limited to visual processing within a retinotopic reference frame without an internal mechanism for generating percepts at different spatial scales. As a consequence, it cannot account for multisensory phenomena such as the Taylor illusion (
Although the overall simulation timeline generally aligns with the perceptual time course (Figures 5A, B), the build-up of filling-in is unrealistically slow. Experimental studies show that filling-in involves neural activity at multiple levels (
Nevertheless, the evolving progression of filling-in may provide relevant insights, particularly for the negative configuration. In this case, the contour interior comprises two distinct zones: a contour-adjacent region that was exposed to the chromatic inducer and a central region that was not. Given that luminance contours are known to enhance afterimages, percepts across these zones cannot be assumed to be identical. This potential difference should be considered when designing experiments and interpreting filling-in within the unexposed region.
Our informal observations tentatively suggest that, under the negative condition, a stronger afterimage in the contour-adjacent region is not uncommon. Moreover, whereas the positive condition consistently yielded a uniform percept, the negative condition appeared more variable: a stronger afterimage could be accompanied by weaker or no filling-in; sometimes it even appeared opposite in hue; in other cases, uniform filling-in could be perceived. Naturally, systematic experiments are required to substantiate these tentative impressions. It also remains possible that the experimental conditions in the original study differed from ours, such that an enhanced afterimage was not a factor in their results. Still, variability across observers and stimulus colors should not be surprising; in fact, the findings reported by
Interestingly, our model predictions (Figures 5A, B) progress through a sequence of perceptual variations that encompass the range of our tentative observations. This could potentially indicate that these variations arise from a common underlying mechanism, modulated by additional processes, that ultimately determines the resulting percept. Such modulation could be dependent on specific stimulus conditions, as well as reflect individual differences. Moreover, in an ideal diffusion process, the presence of the inner adapted edge (not amplified by the test contour) causes weaker filling-in inside it than in the adapted region. It is therefore possible that the strength of this adapted gradient determines the perceived filling-in: if the gradient is sufficiently weak, filling-in spreads unhindered, resulting in a uniform percept; if it is stronger, it may impede spreading, partially or completely, yielding distinct percepts across the two areas.
Statements
Data availability statement
All datasets generated for this study are included in the manuscript. The code supporting the conclusions of this article is available at https://github.com/NBELab/afterimage.
Author contributions
IB: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Validation, Writing – original draft, Writing – review & editing. HC: Conceptualization, Investigation, Supervision, Writing – review & editing, Project administration. EE: Conceptualization, Resources, Supervision, Writing – review & editing, Project administration.
Funding
The author(s) declared that financial support was not received for this work and/or its publication.
Acknowledgments
The authors would like to thank the members of the Neuro-Biomorphic Engineering Lab (NBEL) for the insightful discussions.
Conflict of interest
The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declared that generative AI was not used in the creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
References
1
AnstisS.RogersB.HenryJ. (1978). Interactions between simultaneous contrast and coloured afterimages. Vision Res. 18, 899–911. doi: 10.1016/0042-6989(78)90016-0
2
AnstisS.VergeerM.van LierR. (2012). Luminance contours can gate afterimage colors and “real” colors. J. Vis. 12:2. doi: 10.1167/12.10.2
3
BachmannT.MurdC. (2010). Covert spatial attention in search for the location of a color-afterimage patch speeds up its decay from awareness: Introducing a method useful for the study of neural correlates of visual awareness. Vision Res. 50, 1048–1053. doi: 10.1016/j.visres.2010.03.013
4
BarkanY.SpitzerH. (2017). “The color dove illusion: chromatic filling-in effect following a spatial-temporal edge,” in The Oxford Compendium of Visual Illusions (Oxford University Press), 752–755. doi: 10.1093/acprof:oso/9780199794607.003.0109
5
BekolayT.BergstraJ.HunsbergerE.DewolfT.StewartT.RasmussenD.et al. (2014). Nengo: a python tool for building large-scale functional brain models. Front. Neuroinform. 7:48. doi: 10.3389/fninf.2013.00048
6
BendaJ. (2021). Neural adaptation. Curr. Biol. 31, R110–R116. doi: 10.1016/j.cub.2020.11.054
7
Cohen-DuwekH.ShalumovA.TsurE. E. (2021). “Image reconstruction from neuromorphic event cameras using Laplacian-prediction and Poisson integration with spiking and artificial neural networks,” in 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), 1333–1341. doi: 10.1109/CVPRW53098.2021.00147
8
Cohen-DuwekH.SlovinH.EzraE. (2022). Computational modeling of color perception with biologically plausible spiking neural networks. PLoS Comput. Biol. 18:e1010648. doi: 10.1371/journal.pcbi.1010648
9
Cohen-DuwekH.SpitzerH. (2018). A model for a filling-in process triggered by edges predicts “conflicting” afterimage effects. Front. Neurosci. 12:559. doi: 10.3389/fnins.2018.00559
10
Cohen-DuwekH.TsurE. E. (2021). “Biologically plausible spiking neural networks for perceptual filling-in,” in Proceedings of the Annual Meeting of the Cognitive Science Society, 43.
11
Cohen-DuwekH.TsurE. E. (2022). “Biologically plausible illusionary contrast perception with spiking neural networks,” in 2022 IEEE International Conference on Image Processing (ICIP) (IEEE), 1586–1590. doi: 10.1109/ICIP46576.2022.9897264
12
DawN. (1962). Why after-images are not seen in normal circumstances. Nature196, 1143–1145. doi: 10.1038/1961143a0
13
DevinckF.KnoblauchK. (2019). Central mechanisms of perceptual filling-in. Curr Opin Behav Sci. 30, 135–140. doi: 10.1016/j.cobeha.2019.08.003
14
EliasmithC.AndersonC. H. (2003). Neural Engineering: Computation, Representation, and Dynamics in Neurobiological Systems. London: MIT Press.
15
FrancisG. (2010). Modeling filling-in of afterimages. Attent. Percept. Psychophys. 72, 19–22. doi: 10.3758/APP.72.1.19
16
FrancisG.EricsonJ. (2004). Using afterimages to test neural mechanisms for perceptual filling-in. Neural Netw. 17, 737–752. doi: 10.1016/j.neunet.2004.01.007
17
GrossbergS.MingollaE. (1985). Neural dynamics of perceptual grouping: textures, boundaries, and emergent segmentations. Percept. Psychophys. 38, 141–171. doi: 10.3758/BF03198851
18
GrossbergS.TodorovicD. (1988). Neural dynamics of 1-d and 2-d brightness perception: a unified model of classical and recent phenomena. Percept. Psychophys. 43, 241–277. doi: 10.3758/BF03207869
19
HazenbergS.van LierR. (2013). Afterimage watercolors: an exploration of contour-based afterimage filling-in. Front. Psychol. 4:707. doi: 10.3389/fpsyg.2013.00707
20
HongS. W.TongF. (2017). Neural representation of form-contingent color filling-in in the early visual cortex. J. Vis. 17:10. doi: 10.1167/17.13.10
21
KandelE. R.KoesterJ. D.MackS. H.SiegelbaumS. A. (2021). Principles of Neural Science. Columbus, OH: McGraw Hill, 6 edition.
22
KimJ.FrancisG. (2011). Color selection, color capture, and afterimage filling-in. J. Vis. 11, 1–15. doi: 10.1167/11.3.23
23
KingW. L.WertheimerM. (1963). Induced colors and colors produced by chromatic illumination may have similar physiological bases. Percept. Motor Skills, 17, 379–382. doi: 10.2466/pms.1963.17.2.379
24
KomatsuH. (2006). The neural mechanisms of perceptual filling-in. Nat. Rev. Neurosci. 7, 220–231. doi: 10.1038/nrn1869
25
McIlhaggaW.MullenK. (2018). Evidence for chromatic edge detectors in human vision using classification images. J. Vis. 18:8. doi: 10.1167/18.9.8
26
PinnaB. (2006). “The neon color spreading and the watercolor illusion: phenomenal links and neural mechanisms,” in Perceptual Organization and Visual Cognition, eds. J. Feldman, and M. A. Peterson (Cham: Springer), 235–254. doi: 10.1007/0-387-28898-8_17
27
PinnaB.BrelstaffG.SpillmannL. (2001). Surface color from boundaries: a new “watercolor” illusion. Vision Res. 41, 2669–2676. doi: 10.1016/S0042-6989(01)00105-5
28
PowellG.BompasA.SumnerP. (2012). Making the incredible credible: afterimages are modulated by contextual edges more than real stimuli. J. Vis. 12:17. doi: 10.1167/12.10.17
29
ShapleyR.HawkenM. J. (2011). Color in the cortex: single- and double-opponent cells. Vision Res. 51, 701–717. doi: 10.1016/j.visres.2011.02.012
30
ShapleyR.NúñezV.GordonJ. (2019). Cortical double-opponent cells and human color perception. Curr. Opin. Behav. Sci. 30, 1–7. doi: 10.1016/j.cobeha.2019.04.001
31
ShimojoS.KamitaniY.NishidaS. (2001). Afterimage of perceptually filled-in surface. Science293, 1677–1680. doi: 10.1126/science.1060161
32
ShivelyF. (1973). A new afterimage (colour contrast after-image?). Percept. Psychophys. 13, 525–526. doi: 10.3758/BF03205814
33
SpitzerH.AlmonM.SandlerV. M. (1993). A model for detection of spatial and temporal edges by a single x cell. Vision Res. 33, 1871–1880. doi: 10.1016/0042-6989(93)90178-Y
34
St.ClairR.HongS. W.ShevellS. (2007). Misbinding of color to form in afterimages. J. Vis. 7:366. doi: 10.1167/7.9.366
35
TaylorF. (1941). Change in size of the afterimage induced in total darkness. J. Exp. Psychol. 29, 75–80. doi: 10.1037/h0058125
36
TsurE. E. (2021). Neuromorphic Engineering: The Scientist's, Algorithms Designer's and Computer Architect's Perspectives on Brain-Inspired Computing. New York: CRC Press. doi: 10.1201/9781003143499
37
van BoxtelJ. J. A.TsuchiyaN.KochC. (2010). Opposing effects of attention and consciousness on afterimages. Proc. Nat. Acad. Sci. 107, 8883–8888. doi: 10.1073/pnas.0913292107
38
van de SandeK. E. A.GeversT.SnoekC. G. M. (2010). Evaluating color descriptors for object and scene recognition. IEEE Trans. Pattern Anal. Mach. Intell. 32, 1582–1596. doi: 10.1109/TPAMI.2009.154
39
van LierR.VergeerM. (2009). Filling-in afterimage colors between the lines. Curr. Biol. 19, R323–R324. doi: 10.1016/j.cub.2009.03.010
40
von der HeydtR.FriedmanH. S.ZhouH. (2003). Searching for the neural mechanism of color filling-in,” in Filling-In: From Perceptual Completion to Cortical Reorganization (Oxford University Press), 106–127. doi: 10.1093/acprof:oso/9780195140132.003.0006
41
WebsterM. A. (2015). Visual adaptation. Ann. Rev. Vision Sci. 1, 547–567. doi: 10.1146/annurev-vision-082114-035509
42
WilliamsD. R.MacleodD. I. (1979). Interchangeable backgrounds for cone afterimages. Vision Res. 19, 867–877. doi: 10.1016/0042-6989(79)90020-8
43
WohrerA.KornprobstP. (2009). Virtual retina: A biological retina model and simulator, with contrast gain control. J. Comput. Neurosci. 26, 219–249. doi: 10.1007/s10827-008-0108-4
44
ZaidiQ.EnnisR.CaoD.LeeB. (2012). Neural locus of color afterimages. Curr. Biol. 22, 220–224. doi: 10.1016/j.cub.2011.12.021
45
ZekiS.CheadleS.PepperJ.MylonasD. (2017). The constancy of colored after-images. Front. Hum. Neurosci. 11:229. doi: 10.3389/fnhum.2017.00229
Summary
Keywords
afterimage effects, computational modeling, perceptual filling-in, spatiotemporal dynamics, spiking neural network, visual system mechanisms
Citation
Byzalov I, Cohen Duwek H and Ezra Tsur E (2026) Computational modeling of spatiotemporal afterimage visual perception with spiking neural networks. Front. Neurosci. 20:1780751. doi: 10.3389/fnins.2026.1780751
Received
04 January 2026
Revised
15 February 2026
Accepted
23 February 2026
Published
17 March 2026
Volume
20 - 2026
Edited by
Nimrod Kruger, Western Sydney University, Australia
Reviewed by
Paul Kirkland, Western Sydney University, Australia
Petia D. Koprinkova-Hristova, Institute of Information and Communication Technologies (BAS), Bulgaria
Updates

Check for updates
Copyright
© 2026 Byzalov, Cohen Duwek and Ezra Tsur.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Elishai Ezra Tsur, elishai@nbel-lab.com
Disclaimer
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.