Search topics and sections

Scene statistics, also called natural scene statistics, is the study of the statistical regularities in natural visual scenes and of how eyes and brains use them.[1] Natural images are far from random, since dark spots far outnumber bright ones compared with a scene's average brightness. Fine detail carries less contrast than coarse structure, and edges tend to continue along smooth lines.[1]

Researchers measure these regularities in large sets of photographs, color spectra, and depth scans. They then ask whether the visual system is built to exploit them. The question links the field to perception research, cognitive science, neuroscience, and computer vision.[1][2]

Basic ideas

What counts as a natural scene

A natural scene is a real environment, as opposed to a laboratory stimulus.[1] Natural scenes may include human-made objects, but most studies have measured outdoor scenes without them.[1]

Why statistics are needed

Vision must work out the state of the world from images that only hint at it. Cues to an object's shape or size, such as shading, texture, occlusion, motion, and binocular disparity, each depend on that shape or size only in a probabilistic way.[1]

Light absorption in the photoreceptors is also random, so every visual measurement is noisy.[1] For both reasons, natural stimuli are best described with probability distributions.[1]

The central hypothesis

Natural selection ties the design of an animal's senses to the environment it lives in and the tasks it must perform.[1] In humans this tuning comes partly from fixed adaptations present at birth and partly from adjustments made during life.[1] Measuring scene statistics directly can therefore suggest how visual mechanisms should work and why they have the form they do.[1]

Kinds of scene statistics

Scene statistics can be measured at several stages, or domains, on the path from the world to behavior.[1] Wilson Geisler's 2008 review names each domain with a symbol:[1]

Domain Symbol Example property
Environment ω\omega Fraction of light a surface reflects at each wavelength
Retinal image s\mathbf{s} Wavelength spectrum at one image location
Neural response z\mathbf{z} Spike counts of a group of neurons
Behavior r\mathbf{r} Where the eyes fixate during free viewing

The review sorts measurements into two kinds:[1]

  • Within-domain statistics describe the distribution of properties inside one domain, such as p(s)p(\mathbf{s}) for images. They are simpler, more common, and central to questions of neural coding.
  • Across-domain statistics describe the joint distribution of properties in any two domains, such as p(ω,s)p(\omega, \mathbf{s}) or p(ω,z)p(\omega, \mathbf{z}). They are harder to measure but are needed to study how vision infers the world.
Four domains of scene statistics Environment (ω) Retinal image (s) Neural response (z) Behavior (r) across-domain p(ω, s) across-domain p(s, z) across-domain p(z, r) within-domain p(ω) within-domain p(s) within-domain p(z) within-domain p(r) fruit or leaf? color spectrum at a patch
The four domains of scene statistics, after Geisler (2008): environment ω\omega, retinal image ss, neural response zz and behavior rr. Within-domain statistics such as p(s)p(s) describe a single domain, and across-domain statistics link two domains, such as p(ω,s)p(\omega, s); any pair of domains can be linked, though only neighboring pairs are drawn here.

Suppose an animal must decide whether a small image patch shows fruit or leaf from its color spectrum alone.[1] Knowing only how common fruit is, p(ω)p(\omega), and how spectra are spread overall, p(s)p(\mathbf{s}), does not help. The animal needs the distribution of spectra separately for fruit and for leaves, which is an across-domain statistic.[1]

How scenes are measured

Several instruments supply the raw data:[1]

  • Spectrophotometers measure light as a function of wavelength, one small patch at a time. They give reflectance spectra of materials and spectra of light sources.
  • Hyperspectral cameras measure a spectrum at every pixel. They need long exposures, so scenes must hold still.
  • Digital cameras are the most common tool. With calibration they give the approximate luminance, or the light absorbed by each of the three cone types, at each pixel.
  • Laser range finders time a reflected infrared pulse to get the distance to each point. 3D scanners use triangulation for precise measurement at short range.
  • Hand segmentation has people mark which object each pixel belongs to. It gives across-domain data only where human assignments match physical reality.

The number of samples needed to estimate a distribution grows exponentially with the number of properties measured.[1] This "curse of dimensionality" is why most studies measure only one or a few properties at a time.[1]

Regularities in natural images

Brightness and contrast

Luminance (the amount of light coming from each point) within natural images has a distribution that is roughly symmetric on a logarithmic axis. On a linear axis it is therefore skewed, with many more dark pixels than bright ones relative to the mean.[1] Local contrast is often measured as the standard deviation of luminance divided by the mean luminance in a small neighborhood.[1]

Local luminance and local contrast vary widely and are nearly independent of each other. Across whole images their correlation is slightly negative (r=−0.2r = -0.2), mainly because sky is both bright and low in contrast. Within foliage alone it is slightly positive (r=0.15r = 0.15).[1]

Color

The spectra of natural light sources and the reflectance spectra of natural materials can each be described with just a few numbers.[1] Principal component analysis (PCA), which finds the directions along which data vary most, shows that the first few components account for most of the variance.[1] Natural images can therefore be coded fairly accurately with a few cone types, though three cone types (the human number) are somewhat short of optimal.[1]

The logarithms of the three cone responses in natural images have a joint distribution that is approximately Gaussian (a normal distribution).[1] Ruderman, Cronin and Chiao (1998) measured this in foliage-dominated scenes with a hyperspectral camera.[1]

Spatial structure and the 1/f spectrum

The Fourier amplitude spectrum is one spatial statistic that is fairly consistent across scenes.[1] It describes how much contrast an image holds at each spatial frequency, that is, at each scale of detail. Averaged over orientation, amplitude falls roughly as a power law:[1]

A(f)∝1f n,n≈1A(f) \propto \frac{1}{f^{\,n}}, \qquad n \approx 1

Here f>0f > 0 is spatial frequency and A(f)A(f) is amplitude at that frequency. Equivalently, the power spectrum falls roughly as 1/f21/f^2.[2] Studies reporting this include Burton and Moorehead (1987), Field (1987), and Ruderman and Bialek (1994).[1]

Amplitude spectrum of natural images on log-log axes slope −1, A ∝ 1/f images offset vertically 1 10 100 Spatial frequency f (cycles per image) Amplitude A(f)
On log-log axes, the Fourier amplitude spectra of natural images fall along nearly straight lines with slope close to −1-1, so amplitude falls roughly as A(f)∝1/fA(f) \propto 1/f and power falls as 1/f21/f^2. The spectra of different images are shifted vertically so they can be compared.

A power-law spectrum keeps its shape when an image is rescaled. Rescaling image coordinates by a factor α\alpha rescales the frequency axes by 1/α1/\alpha, and only a power law keeps its shape under that change.[2] As a result, moving toward or away from a scene has little effect on the shape of its amplitude spectrum, a form of scale invariance.[1]

The cause of the power law is debated.[2] Proposals include:

  • scale invariance of the visual world itself;
  • the presence of edges, which themselves have a 1/f21/f^2 power spectrum;
  • the distribution of object sizes and distances, as argued by Ruderman (1997) and by Lee and Mumford (1999).[2]

Sparse, heavy-tailed responses

The spectrum alone does not capture what natural images look like. An image built from a 1/f1/f amplitude spectrum with random phases is filtered Gaussian noise, often called 1/f noise. It contains complex random features but no recognizable objects or regions.[1]

The difference shows up in the responses of oriented filters. Such a filter computes a weighted sum over a small image patch, much like the receptive field of an orientation-selective neuron in visual cortex.[1] Its responses to 1/f noise are Gaussian, but its responses to natural images are sharply peaked at zero with heavy tails, meaning it responds rarely but strongly when it does (Field 1987; Olshausen and Field 1997).[1]

Filter response distributions for natural images and a GaussianNatural images:sharp peak at 0, heavy tailsBest-fitting Gaussian(also responses to 1/f noise)Rare but large responsesRare but large responsesProbability0Filter response
An oriented filter's responses to natural images have a sharp peak at zero and heavy tails. A Gaussian with the best fit, which also describes responses to 1/f1/f noise, has a lower, rounder peak and thinner tails.

Methods that search small image patches for structure point the same way. PCA needs many components to capture much of the variance in natural image patches, so it gives no compact summary.[1]

Independent component analysis (ICA) looks for statistically independent sources instead. It yields filters that resemble the receptive fields of simple cells in mammalian visual cortex (Bell and Sejnowski 1997; van Hateren and van der Schaaf 1998).[1]

Dependencies between neighboring features

Responses of nearby filters are linked. When one oriented edge filter responds strongly, a neighbor that is collinear (in line) or cocircular (on a shared circle) is also likely to respond strongly, because natural contours tend to be smooth and extended.[1] Parallel neighbors also tend to respond together, because natural images contain much parallel structure, such as branches.[1]

Some dependencies remain even when responses are uncorrelated. For two nearby, non-overlapping filters, the spread of one filter's response grows with the size of the other's, even though the two are roughly uncorrelated.[1][3] No linear transformation can remove this dependency.[2]

Strong features thus cluster together in natural images, while the sign of each response stays random.[1]

Variance dependence of filter responses before and after divisive normalization Linear responses After divisive normalization spread grows with |L1| (dependent) spread roughly constant mean of L2 ≈ 0 (uncorrelated) L2 L1 N2 N1 0 0 0 0 divide by weighted sum of neighbors' squared responses + constant
In the left panel, a filter response L2L_2 has a mean near zero at every value of a nearby filter's response L1L_1, but its spread grows with ∣L1∣|L_1| and forms a bow tie. After each response is divided by a weighted sum of its neighbors' squared responses plus a constant, the spread of N2N_2 stays roughly constant across N1N_1.

Depth and motion

Range statistics describe how far away things are. In forest scenes, average distance falls quickly below the line of sight because of the ground. It falls more slowly above the line of sight, presumably because of the leaf canopy (Yang and Purves 2003).[1] Huang, Lee and Mumford (2000) found that range in forest scenes can be approximated by a flat ground plane scattered at random with cylinders standing in for trees.[1]

Range data combined with where people look while walking through forests gives the distribution of binocular disparity, the difference between the two eyes' views. Most disparities fall within plus or minus 1.5 degrees.[1]

Image motion is harder to measure, because the eyes, head, and body almost always move.[1] Analyses of movie and handheld video clips (Dong and Atick 1995) show contrast power falling smoothly as either spatial or temporal frequency rises.[1] The pattern fits a model of the world as patches of 1/f noise, each moving at a random velocity.[1]

Efficient coding

The efficient coding hypothesis holds that early visual stages carry as much information about images as possible with limited resources.[1] Attneave (1954) and Barlow (1961) proposed that information theory links environmental statistics to neural responses through this idea of coding efficiency.[2]

The limited resources include the number of neurons, spikes per neuron, synapses per neuron, and each neuron's range of responses.[1] To work out what code would be efficient, one must first know the distribution of the image properties being coded. That makes within-domain statistics central to testing the hypothesis.[1]

Using the full response range

A neuron can respond only within a limited range, so it should spread that range across the inputs it actually meets.[1] One way is histogram equalization, which shapes the response function so that every response level occurs equally often under natural conditions.[1] The response curve then rises fastest where inputs are most common.

Histogram equalization coding of input contrast how often response 0 max input contrast each response level used equally often
Laughlin (1981) found that the contrast responses of blowfly large monopolar cells are consistent with histogram equalization. Equal steps in response cut the input distribution into slices of equal area, so each response level is used equally often.

Simon Laughlin (1981) gave the classic test. He compared the distribution of local contrast in natural scenes with the response functions of large monopolar neurons in the blowfly eye. The responses were consistent with histogram equalization.[1]

Later tests on contrast responses of neurons in the lateral geniculate nucleus (LGN) and visual cortex of cats and primates found a rough match. The result depends somewhat on how contrast is defined.[1] A population version also appears in depth coding: the distribution of disparities met while walking in forests matches reasonably well the preferred disparities of neurons in macaque area MT, a motion-processing region of visual cortex.[1]

Removing redundancy

Another way to save resources is to remove signals that neurons share. The L and M cones have strongly overlapping spectral sensitivities, so their responses are highly correlated.[1] Transforming cone responses to make them statistically independent predicts color channels similar to the opponent mechanisms found in psychophysical studies (Buchsbaum and Gottschalk 1983; Ruderman and colleagues 1998).[1]

Removing correlations across space and time is called whitening. It predicts receptive field shapes similar to those in the retina and LGN.[1] Srinivasan, Laughlin and Dubs (1982) gave the first quantitative evidence for such decorrelation, using first-stage nerve cells behind the photoreceptors in the fly's compound eye.[2]

Atick and Redlich (1991, 1992) added photoreceptor noise to the analysis. Physiology and human contrast sensitivity were consistent with a whitening filter combined with an optimal low-pass filter, which passes coarse structure and blocks fine-scale noise.[2]

Sparse codes in V1

The evidence for efficient coding is less clear in primary visual cortex (V1). V1 has hundreds of neurons for each output neuron of the retina, so it could hold many different representations of the image.[1] One hypothesis is that V1 forms a sparse code, in which any one image strongly drives only a small subset of neurons.[1]

Bruno Olshausen and David Field (1996) trained a learning algorithm to find sparse linear codes for natural images. It developed a complete family of receptive fields that are localized, oriented, and bandpass (tuned to a band of scales), like those of V1 simple cells.[4] Vinje and Gallant (2000) later found that V1 responses were sparser during natural scene stimuli.[2]

Geisler (2008) treated the benefit of a sparse code as an open question. Suggested benefits include a representation that later stages can interpret more directly, less sensitivity to noise in later cortical areas, and lower energy use.[1]

Divisive normalization

Divisive normalization is a nonlinear step that largely removes the variance dependency between neighboring filters described above.[1][3] Each filter's squared response is divided by a weighted sum of the squared responses of neighboring filters plus a constant:[3]

Ni=Li2∑jwij Lj2+σ2N_i = \frac{L_i^2}{\sum_{j} w_{ij}\, L_j^2 + \sigma^2}

Here LiL_i is the linear response of filter ii, the sum runs over neighboring filters jj, wijw_{ij} are weights, σ2\sigma^2 is a constant, and NiN_i is the normalized response. Schwartz and Simoncelli (2001) chose the weights to make responses to natural images and sounds as independent as possible.[3] The resulting model accounted for a range of nonlinear behaviors of neurons in V1 and of auditory nerve fibers.[3]

Earlier normalization models used equal weights and were built to explain V1 physiology.[3] Normalization also has benefits not obviously tied to efficient coding, such as feature tuning that does not change with contrast.[1]

Inference about the world

Most visual tasks require inferring properties of the world, not just coding the image. Examples include classifying materials, telling object edges from shadows, and estimating shape, distance, or self-motion.[1] These tasks depend on across-domain statistics.[1]

Bayes' rule and the ideal observer

Bayes' rule turns across-domain statistics into the probability of each world state given the image:[1]

p(ω∣s)=p(s∣ω) p(ω)p(s),p(s)>0p(\omega \mid \mathbf{s}) = \frac{p(\mathbf{s} \mid \omega)\, p(\omega)}{p(\mathbf{s})}, \qquad p(\mathbf{s}) > 0

Here p(ω)p(\omega) is the prior, or how common each world state is. p(s∣ω)p(\mathbf{s} \mid \omega) is the likelihood of the image given that state, and p(ω∣s)p(\omega \mid \mathbf{s}) is the posterior. This approach is a form of Bayesian inference.

An ideal observer is a theoretical device that performs a task as well as possible with the available information.[1] Given an image S\mathbf{S}, it picks the response that maximizes the average utility:[1]

ropt(S)=arg⁡max⁡r∑ωγ(r,ω) p(S∣ω) p(ω)\mathbf{r}_{\text{opt}}(\mathbf{S}) = \arg\max_{\mathbf{r}} \sum_{\omega} \gamma(\mathbf{r}, \omega)\, p(\mathbf{S} \mid \omega)\, p(\omega)

Here γ(r,ω)\gamma(\mathbf{r}, \omega) is the gain or loss from response r\mathbf{r} when the true state is ω\omega. In the fruit-or-leaf task, setting γ=1\gamma = 1 for correct answers and γ=−1\gamma = -1 for errors gives a decision rule with no free parameters.[1] Ideal observers give a benchmark for human performance and often reduce to simple rules that can serve as hypotheses about real mechanisms.[1]

Grouping contours

Contour grouping is a well-studied case. Geisler and colleagues (2001) had observers assign automatically detected edge elements in natural images to physical contours.[1] For each pair of elements they measured the distance, direction, orientation difference, and contrast polarity (whether both edges change from dark to light in the same direction).[1]

They then computed a likelihood ratio, how much more often a given pair occurs on the same contour than on different contours.[1] Pairs that are cocircular (which includes collinear) and share the same polarity are more likely to belong to the same contour.[1]

Edge co-occurrence around a reference edge φ d θ reference edge likely same contour likely different contours same contrast polarity raises the chance of same contour
Edge elements around a reference edge, after Geisler and colleagues (2001). Collinear and cocircular elements (green) tend to belong to the same contour, while elements at clashing orientations (red) tend to belong to different contours; one pair is described by distance dd, direction ϕ\phi, and orientation difference θ\theta.

A one-parameter model used these statistics, averaged over contrast polarity, and grouped elements whenever the likelihood ratio passed a threshold.[1] Tested on random contour-element displays, it predicted human contour grouping over a wide range of conditions.[1]

Geisler and Perry (2006) later built a parameter-free ideal observer from the same statistics. It was for a task in which contours pass behind an occluding surface, and humans performed only slightly below it.[1]

Priors and illusions

When image information is poor, a rational system leans more on its prior.[1] Weiss, Simoncelli and Adelson (2002) showed that several motion illusions follow if the prior probability of a local speed falls as speed rises.[1] Yang and Purves (2003) used range-finder statistics to account qualitatively for several reported biases in perceived distance.[1]

Bayesian speed estimation with a slow-speed priorProbabilityPriorPosteriorLikelihood0EstimateMeasured speedSpeedBias toward slowWeak image information gives a broad likelihood and a larger bias
In Bayesian speed estimation, a prior that favors slow speeds multiplies a broad likelihood centered on the measured speed. The result is a narrower posterior whose peak, the estimate, is shifted toward slower speeds (Weiss, Simoncelli and Adelson 2002).

Identifying materials and light

Cone types may be placed to suit specific tasks. In trichromatic primates the L and M cones are often well placed for picking out fruit among foliage (Osorio and Vorobyev 1996; Regan and colleagues 2001; Parraga and colleagues 2002).[1]

Ing and Geisler (2006) hand-segmented close-up foliage images into leaf edges, shadow edges, and surface markings. An ideal classifier using simple local color and brightness differences told any two of these apart with 85 to 90 percent accuracy for moderate-length contours.[1]

Maloney and Wandell (1986) studied images built from natural light sources and natural surfaces. They showed that both the light and the surface spectra could be estimated with about four receptor classes, which bears on color constancy.[1] Humans can also judge the reflectance of natural materials from grayscale images. The shape of the luminance histogram varies with reflectance, and people use it (Sharan and colleagues 2005; Motoyoshi and colleagues 2007).[1]

Beyond vision

The same methods apply to other senses. Many natural sounds show some self-similarity in their power spectra, much as natural images do (Attias and Schreiner 1997).[2] Divisive normalization can serve as a nonlinear whitening step for natural sounds, and the same model explains some nonlinear responses of auditory nerve fibers.[2][3]

History

The approach grew out of physics and the study of noise in vision.[1]

  • 1942 onward: studies such as Hecht, Shlaer and Pirenne (1942) showed that in some conditions, visual performance is limited by the random arrival of light quanta plus internal noise. With parallel work in hearing, this led to signal detection theory and Bayesian ideal observer theory.[1]
  • 1953 and 1956: Egon Brunswik argued that the link between objects and their images is inherently statistical. With Kamiya he analyzed natural images to show that the Gestalt rule of proximity has a statistical basis in natural scenes.[1]
  • 1954 and 1961: Attneave and Barlow proposed coding efficiency as the link between environmental statistics and neural responses.[2]
  • 1964 to 1986: studies found that natural light and reflectance spectra can be described with a few numbers, which stimulated interest in scene statistics.[1]
  • 1981 and 1987: Laughlin's blowfly study and Field's analysis of image spectra and filter responses.[1]
  • 1996 and 2001: Olshausen and Field's sparse coding model, then Schwartz and Simoncelli's normalization model and Geisler and colleagues' edge co-occurrence study.[4][3][1]

In his 2008 review, Geisler argued that combining measured scene statistics with Bayesian ideal observer analysis is an important new approach to the study of perception.[1]

Uses in image engineering

Scene statistics also guide software that judges image quality. Distortions make an image depart from natural statistics, so a program can rate quality without an undistorted reference image.[5]

BRISQUE (blind/referenceless image spatial quality evaluator) was published by Mittal, Moorthy and Bovik in 2012. It uses the distribution of locally normalized luminance values, and of products of neighboring values, to measure an image's loss of "naturalness".[5] Its authors reported that it is statistically better than the reference-based measures peak signal-to-noise ratio and the structural similarity index, and fast enough for real-time use.[5]

Limits and open questions

Several problems remain open:

  • High dimensions. Perceptual mechanisms may exploit regularities that only appear in joint distributions over many properties, which the curse of dimensionality makes hard to measure.[1]
  • Natural eye motion. As of 2008, no one had moved a camera along the paths that human eyes take, though this had been done for a flying insect.[1]
  • Ground truth. Hand segmentation is valid only where people can tell which object each pixel belongs to, which fails in cases such as distant foliage.[1]
  • Coding in V1. Eichhorn, Sinz and Bethge found that ICA filters remove surprisingly little more redundancy than PCA-like decorrelation. They argued that orientation selectivity is unlikely to play a critical role in redundancy reduction.[6]
  • Responses to natural images. Receptive fields estimated with linear methods do not accurately predict neural responses to natural images.[1]

References

  1. Visual Perception and the Statistical Properties of Natural Scenes, Annual Review of Psychology (Wilson S. Geisler), 2008.
  2. Natural Image Statistics and Neural Representation, Annual Review of Neuroscience (Eero P. Simoncelli and Bruno A. Olshausen), 2001.
  3. Natural signal statistics and sensory gain control, Nature Neuroscience (Odelia Schwartz and Eero P. Simoncelli), 2001.
  4. Emergence of simple-cell receptive field properties by learning a sparse code for natural images, Nature (Bruno A. Olshausen and David J. Field), 1996.
  5. No-Reference Image Quality Assessment in the Spatial Domain, IEEE Transactions on Image Processing (Anish Mittal, Anush K. Moorthy and Alan C. Bovik), 2012.
  6. Natural Image Coding in V1: How Much Use is Orientation Selectivity?, arXiv (J. Eichhorn, F. Sinz and M. Bethge), 2008.

Figure