Showing posts with label geometric. Show all posts
Showing posts with label geometric. Show all posts

20110929

The origin and properties of flicker-induced geometric phosphenes

A Model for the Origin and Properties of Flicker-Induced Geometric Phosphenes (PDF).

Many people see geometric patterns when looking at flickering lights. The patterns depend on the frequency, color, and intensity of the flickering. Different people report seeing similar shapes, which are called “form constants”. 

Flicker hallucinations are best induced using a Ganzfeld (German for “entire field”): an immersive, full-field, uniform visual stimulation. Frequencies ranging from 8 to 30 Hz are most effective. 

This effect is used by numerous sound-and-light machines sold for entertainment purposes. Some of these devices claim to alter the frequency of brain waves. There is no scientific evidence for this. However, the flickering stimulus may increase the amplitude of oscillations that are already present in the brain, to the point where geometric visual hallucinations can occur.

Figure 1. Illustrations of basic phosphene patterns (form constants) as they appear subjectively (left), and their transformation to planar waves in cortical coordinates (right).

How do flickering lights cause geometric visual hallucinations? Roughly, flickering lights confuse the eye and the brain, causing them to see geometric shapes that aren't there. The phenomenon is related to how bold patterns can create optical illusions, but in this case the pattern varies in time, rather than space.

Our hypothesis is that the flickering interacts with natural ongoing oscillations in visual cortex, exciting a specific frequency of brain waves. This increases the activity in visual cortex. This increase in excitability is similar to what occurs on some hallucinogens

The simpler patterns, like ripples and spots, are mathematically related to the Turing patterns in animal coat patterns. More complex patterns occur when these instabilities interact with the brain's pattern recognition circuits. For more information, including the mathematical details of the model, head over and check out the paper.

The theory predicts that low frequencies (8-12 Hz) are more likely to induce spot-like patterns, and that high frequencies (12-30 Hz) are more likely to induce striped or ripple patterns. Anecdotally, I have tested this on myself and find it to be approximately correct for a white flicker Ganzfeld stimulus. I also find that low-frequency red-green flicker reliably induces checkerboard patterns, and that red-blue flicker reliably induces an almost quasicrystaline pattern of triangles and hexagons.

Many thanks to Matt Stoffregen and Bard Ermentrout for making this possible, as well as the CNBC undergraduate training program. The paper can be cited as

Rule, M., Stoffregen, M. and Ermentrout, B., 2011. A model for the origin and properties of flicker-induced geometric phosphenes. PLoS Comput Biol, 7(9), p.e1002158.

 


 

Extras that didn't make it into the final paper:

Below is a variant of Figure 6 inspired by Robert Munafo's visualization of the parameter space of the Gray-Scott reaction-diffusion model. It shows how the evoked patterns vary depending on the flicker frequency (horizontal axis) and amplitude (vertical axis). Activity levels of excitatory and inhibitory cells are colored in yellow and blue, respectively.

It's computed by integrating the periodically-driven 2D Wilson-Cowan on the GPU. We drive the system with a uniform periodic stimulus, but vary the integration time step $\Delta t$ so that each location perceives a different frequency. The continuous simulation causes patterns to "spill over" into the nearby areas (where patterns are not spontaneously stable), so we didn't include this version in the paper.

Primary visual cortex isn't a perfectly square, periodic domain, and we also simulated patches resembling the shape of this brain area. Here, it was important to create a soft absorbing boundary, otherwise the sharp boundary itself promotes pattern formation. Horizontal and vertical stripes are stable, and this may account for why radial and tunnel-like patterns are slightly more common.


Videos of simulation:

Here is a video of the striped patterns emerging on a rectangular domain

 

 

And the hexagonal patterns:

 

Here is the stripe pattern again, transformed into perceptual coordinates:

 

Emerging patterns are associated with a "critical wavenumber", which sets the spatial scale of the instabilities in the model.  If you visualize the amplitude of the Fourier coefficients of the 2D system as patterns emerge, you see that isolated peaks in spatial frequency appear (along with their harmonics). The example below is for a striped pattern:





20100529

Do it Yourself : Trip Visor

Thanks to a dumpster diving friend I had come into possesion of a pair of welding goggles, as well as some white translucent plexiglass. So, the old hallucination goggles project was adapted for this new, awesome, rugged, form factor.

Step 1 : electronics :
I chose to use an Arduino Pro-mini, two RGB LEDs for the goggles, and a 4 character multiplexed 7 segment display.

Step 2 : draw a circuit board. I like to use a generic drawing program so I can put graphics in the copper pattern. Some PCB drawing software will also allow this, although not all PCB fabrication services will do custom graphics. I skipped out on the current limiting resistors for the blue and green channels, since the supply voltage is actually lower than the LED driving voltage. I still needed them for the red though. This kind of design is very general, as you just need to get some LEDs to blink in a controlled manner. The circuit looks like this :



Next, transfer pattern, etch, drill, clean. It is easier to wire this up on a breadboard and then transfer it to a radioshack protoboard, to save on the hassle of making your own board. Here is a tutorial that I loosely followed, and here is a previous post where I practiced the technique, and below is the finished result. I made the traces from the Arduino to the LED display a too narrow, and unless you're careful this design requires clean up after etching.


I was wrong to try to drive this circuit from coin cell batteries. These batteries do not put out enough current to drive the LEDs. I worked around this by adding a 2xAAA battery pack to the interior of the goggles. If you copy my design, bear this in mind and adjust accordingly.


My friend laser cut white plexiglass to replace the tinted glass of the welding goggles. This is a square cut that could also be accomplished with a saw. These goggles have a slot for a piece of plexiglass on the inside, and another piece on the outside, with 7mm clearance in-between, so it is straightforward to sandwich the LEDs between two sheets of plexiglass to create diffused light. Position the LEDs approximately in the center of the visual field in each eye, so that when you look at them through a pane of the white plexiglass, they line up as if they were one diffuse source. I used standard connectors for indicator lights and power buttons in PC cases to connect the LEDs, and a rocker switch from an old Ikea lamp, to finish off the connections.


This is more durable than past designs, since it doesn't have a separate part for the driving hardware and the goggles, connected by a failure prone cable. Reminds me of this. I can actually toss this one around without breaking it.