Signal-to-noise ratio 41706 223111618 2008-07-02T16:56:51Z 152.3.157.88 /* Image processing and interferometry */ '''Signal-to-noise ratio''' (often abbreviated '''SNR''' or '''S/N''') is an [[electrical engineering]] concept, also used in other fields (such as scientific [[measurement]]s, biological [[cell signaling]]), defined as the ratio of a signal power to the noise power corrupting the signal. In less technical terms, signal-to-noise ratio compares the level of a desired signal (such as music) to the level of background noise. The higher the ratio, the less obtrusive the background noise is. == Technical sense == In engineering, signal-to-noise ratio is a term for the [[power (physics)|power]] ratio between a [[Signal (information theory)|signal]] (meaningful information) and the background [[Signal noise|noise]]: :<math> \mathrm{SNR} = {P_\mathrm{signal} \over P_\mathrm{noise}} = \left ( {A_\mathrm{signal} \over A_\mathrm{noise} } \right )^2 </math> where ''P'' is average power and ''A'' is [[Root mean square|RMS]] amplitude. Both signal and noise power (or amplitude) must be measured at the same or equivalent points in a system, and within the same system [[bandwidth (signal processing)|bandwidth]]. Because many signals have a very wide dynamic range, SNRs are usually expressed in terms of the [[logarithm]]ic [[decibel]] scale. In decibels, the SNR is, by definition, 10 times the logarithm of the power ratio. If the signal and the noise is measured across the same impedance then the SNR can be obtained by calculating 20 times the [[base-10]] [[logarithm]] of the [[amplitude]] ratio: :<math> \mathrm{SNR (dB)} = 10 \log_{10} \left ( {P_\mathrm{signal} \over P_\mathrm{noise}} \right ) = 20 \log_{10} \left ( {A_\mathrm{signal} \over A_\mathrm{noise}} \right ) </math> === Electrical SNR and acoustics === Often the signals being compared are [[electromagnetic]] in nature, though it is also possible to apply the term to [[sound]] stimuli. Due to the definition of [[decibel]], the SNR gives the same result independent of the type of signal which is evaluated (such as power, current, or voltage). Signal-to-noise ratio is closely related to the concept of [[dynamic range]], where dynamic range measures the ratio between noise and the greatest un-[[distortion|distorted]] signal on a [[Channel (communications)|channel]]. SNR measures the ratio between noise and an arbitrary signal on the channel, not necessarily the most powerful signal possible. Because of this, measuring signal-to-noise ratios requires the selection of a representative or ''reference'' signal. In [[sound|audio]] [[engineering]], this reference signal is usually a [[sine wave]], sounding a [[pitch (music)|tone]], at a recognized and standardized [[nominal level]] or [[alignment level]], such as 1 kHz at +4 [[dBu]] (1.228 V<sub>RMS</sub>). SNR is usually taken to indicate an ''average'' signal-to-noise ratio, as it is possible that (near) instantaneous signal-to-noise ratios will be considerably different. The concept can be understood as normalizing the noise level to 1 (0 dB) and measuring how far the signal 'stands out'. In general, higher signal to noise is better; the signal is 'cleaner'. === Image processing and interferometry === In image processing, the SNR of an [[image]] is usually defined as the ratio of the [[mean]] pixel value to the [[standard deviation]] of the pixel values. Related measures are the [[Contrast ratio|"contrast ratio"]] and the "contrast-to-noise ratio".<br> The connection between [[optical power]] and [[voltage]] in an imaging system is linear. This usually means that the SNR of the electrical signal is calculated by the ''10 log'' rule. With an [[interferometer|interferometric]] system, however, where interest lies in the signal from one arm only, the field of the electromagnetic wave is proportional to the voltage (assuming that the intensity in the second, the reference arm is constant). Therefore the optical power of the measurement arm is directly proportional to the electrical power and electrical signals from optical interferometry are following the ''20 log'' rule.<ref>Michael A. Choma, Marinko V. Sarunic, Changhuei Yang, Joseph A. Izatt. Sensitivity advantage of swept source and Fourier domain optical coherence tomography. Optics Express, 11(18). Sept 2003. </ref> The ''Rose criterion'' (named after [[Albert Rose]]) states that an SNR of at least 5 is needed to be able to distinguish image features at 100% certainty. An SNR less than 5 means less than 100% certainty in identifying image details.<ref>Bushberg, J. T., et al., ''[http://books.google.com/books?id=VZvqqaQ5DvoC&pg=PA280&dq=intitle:%22essential+physics+of+medical+imaging%22+rose&lr=&as_brr=0&ei=Su0ASN2hHJHwsgPc2JSICw&sig=wKFSeZsseYweWfzlbrbnqLd-FB4 The Essential Physics of Medical Imaging,]'' (2e). Philadelphia: Lippincott Williams & Wilkins, 2006, p.280.</ref> === For measurement devices in general === [[Image:Analyse thermo gravimetrique bruit.png|thumb|Recording of the noise of a [[thermogravimetric analysis]] device that is poorly isolated from a mechanical point of view; the middle of the curve shows a lower noise, due to a lesser surrounding human activity at night.]] Any measurement device is disturbed by parasitic phenomena. This includes the electronic noise as described above, but also any external event that affects the measured phenomenon — wind, vibrations, gravitational attraction of the moon, variations of temperature, variations of humidity etc. depending on what is measured and of the sensitivity of the device. It is often possible to reduce the noise by controlling the environment. Otherwise, when the characteristics of the noise are known and are different from the signal's, it is possible to filter it or to process the signal. When the noise is a random perturbation and the signal is a constant value, it is possible to enhance the SNR by increasing the measurement time. == Digital signals == When using digital storage the number of bits of each value determines the maximum signal-to-noise ratio. In this case the [[noise]] is the [[error]] signal caused by the [[Quantization (signal processing)|quantization]] of the signal, taking place in the [[analog-to-digital converter|analog-to-digital conversion]]. The noise level is non-linear and signal-dependent; different calculations exist for different signal models. The noise is modeled as an analog error signal being summed with the signal before quantization ("additive noise"). The modulation error ratio (MER) is a measure of the SNR in a digitally modulated signal. Like SNR, MER can be expressed in dB. === Fixed point === {{seealso|Fixed point arithmetic}} For ''n''-bit integers with equal distance between quantization levels ([[Quantization (signal processing)|uniform quantization]]) the [[dynamic range]] (DR) is also determined. Assuming a uniform distribution of input signal values, the quantization noise is a uniformly-distributed random signal with a peak-to-peak amplitude of one quantization level, making the amplitude ratio 2<sup>''n''</sup>/1. The formula is then: :<math> \mathrm{DR (dB)} = \mathrm{SNR (dB)} = 20 \log_{10}(2^n) \approx 6.02 \cdot n </math> This relationship is the origin of statements like "[[16-bit]] audio has a dynamic range of 96 dB". Each extra quantization bit increases the dynamic range by roughly 6 dB. Assuming a [[full-scale]] [[sine wave]] signal (that is, the quantizer is designed such that it has the same minimum and maximum values as the input signal), the quantization noise approximates a [[sawtooth wave]] with peak-to-peak amplitude of one quantization level<ref name="maxim 728">[http://www.maxim-ic.com/appnotes.cfm/appnote_number/728 Defining and Testing Dynamic Parameters in High-Speed ADCs] — [[Maxim Integrated Products]] Application note 728</ref> and uniform distribution. In this case, the SNR is approximately :<math> \mathrm{SNR (dB)} \approx 20 \log_{10} (2^n \sqrt {3/2}) \approx 6.02 \cdot n + 1.761 </math> === Floating point === [[Floating point|Floating-point]] numbers provide a way to trade off signal-to-noise ratio for an increase in dynamic range. For n bit floating-point numbers, with n-m bits in the [[mantissa]] and m bits in the [[exponent]]: :<math> \mathrm{DR (dB)} = 6.02 \cdot 2^m </math> :<math> \mathrm{SNR (dB)} = 6.02 \cdot (n-m) </math> Note that the dynamic range is much larger than fixed-point, but at a cost of a worse signal-to-noise ratio. This makes floating-point preferable in situations where the dynamic range is large or unpredictable. Fixed-point's simpler implementations can be used with no signal quality disadvantage in systems where dynamic range is less than 6.02m. The very large dynamic range of floating-point can be a disadvantage, since it requires more forethought in designing algorithms.<ref name="rane fixed vs floating">[http://www.rane.com/note153.html Fixed-Point vs. Floating-Point DSP for Superior Audio] — [[Rane Corporation]] technical library</ref> === Notes === *[[Analog-to-digital converter]]s have other sources of noise that decrease the SNR compared to the theoretical maximum from the idealized quantization noise. *Often special filters are used to weight the noise: DIN-A, DIN-B, DIN-C, DIN-D, CCIR-601; for video, special filters such as [[comb filter]]s may be used. *Maximum possible full scale signal can be charged as peak-to-peak or as RMS. Audio uses RMS, Video P-P, which gave +9 dB more SNR for video. *It is more common to express SNR in digital systems using [[Eb/N0|E<sub>b</sub>/N<sub>o</sub>]] - the energy per bit per noise power spectral density. {{further|[[Quantization noise]], [[Bit resolution]]}} == Informal use == Informally, "signal-to-noise ratio" refers to the ratio of useful information to false or irrelevant data. In [[internet forum|online discussion forums]] such as [[Usenet]], [[off-topic]] posts and [[spamming|spam]] are regarded as "noise" that interferes with the "signal" of appropriate discussion. Another example is [[Bugzilla]], where "please fix this" comments clutter up the discussion without helping to solve the bug.[https://bugzilla.mozilla.org/page.cgi?id=etiquette.html] A system of [[moderation system|moderation]] may improve the SNR by filtering out irrelevant posts. The [[wiki]] collaboration model addresses the same problem in a different way, by permitting users to "moderate" content, ideally adding signal while removing noise. == See also == <div style="-moz-column-count:3; column-count:3;"> *[[Audio system measurements]] *[[Video quality]] *[[Subjective video quality]] *[[Near-far problem]] *[[Peak signal-to-noise ratio]] *[[SINAD]] (ratio of signal-including-noise-and-distortion to noise-and-distortion only) *[[ENOB]] *[[Eb/N0]] *[[Es/N0]] *[[Carrier to Noise Ratio]] (CNR or C/N) *[[Carrier-to-receiver noise density]] (C/N0) *[[Carrier-to-Interference Ratio]] (CIR or C/I) *[[Carrier-to-Noise-and-Interference Ratio]] (CIR or C/I) *[[CNR (imaging)|Contrast to Noise Ratio]] *[[SQNR]] (Signal-to-Quantization Noise Ratio) *[[Total harmonic distortion]] *[[Noise figure]] *[[Noise margin]] </div> ==References== <references/> ==External links== *[http://www.maxim-ic.com/appnotes.cfm/appnote_number/641 ADC and DAC Glossary] - [[Maxim Integrated Products]] *[http://www.analog.com/en/content/0,2886,760%255F788%255F91250,00.html Understand SINAD, ENOB, SNR, THD, THD + N, and SFDR so you don't get lost in the noise floor] - [[Analog Devices]] *[http://www.techonline.com/community/related_content/20771 The Relationship of dynamic range to data word size in digital audio processing] *[http://www.sengpielaudio.com/calculator-noise.htm Calculation of signal-to-noise ratio, noise voltage, and noise level] * [http://www.vias.org/simulations/simusoft_spectaccu.html Learning by simulations - a simulation showing the improvement of the SNR by time averaging] * [http://focus.ti.com/lit/an/sbaa055/sbaa055.pdf Dynamic Performance Testing of Digital Audio D/A Converters] [[Category:Electronics terms]] [[Category:Noise]] [[Category:Digital audio]] [[Category:Engineering ratios]] [[Category:measurement]] [[de:Signal-Rausch-Verhältnis]] [[es:Relación señal/ruido]] [[fr:Rapport signal sur bruit]] [[ko:신호 대 잡음비]] [[it:Rapporto segnale/rumore]] [[he:יחס אות לרעש]] [[hu:Jel-zaj viszony]] [[nl:Signaal-ruisverhouding]] [[nn:SNR]] [[pl:SNR]] [[pt:Relação sinal-ruído]] [[ro:Raport semnal/zgomot]] [[ru:Отношение сигнал/шум]] [[sv:Brusvärde]] [[zh:信噪比]]