Dietrich O, Raya JG, Reiser MF MR measurements at very low noise levels

MR noise measurements and signal-quantization effects at very low noise levels

Olaf Dietrich, José G. Raya, Maximilian F. Reiser Josef Lissner Laboratory for Biomedical Imaging, Department of Clinical Radiology – Grosshadern, LMU Ludwig Maximilian University of Munich, Munich, Germany

ELECTRONIC PREPRINT VERSION: Not for commercial sale or for any systematic external distribution by a third party

Final version: Magn Reson Med 2008; 60(6): 1477–1487.

Abstract

The well-known noise distributions of MRI data quantization error can be accurately estimated (Rayleigh, Rician, or non-central chi-distribution) with the proposed maximum-likelihood ap- describe the probability density of real-valued proach. (i.e. floating-point) signal intensities. MR image data, however, is typically quantized to integers before visualization or archiving. Depending on Keywords: the scaling factors applied before the quantiza- Magnetic resonance imaging, Signal quantization, tion and the signal-to-noise ratio (SNR), very low Statistical noise distribution, Signal-to-noise ratio noise levels with substantial artifacts due to the quantization process can occur. The purpose of Corresponding author: this study was to analyze the consequences of Olaf Dietrich, PhD the signal quantization, to determine the theo- Josef Lissner Laboratory for Biomedical Imaging retical absolute lower limit for noise measure- Department of Clinical Radiology – Grosshadern ments in discrete data, and to evaluate an im- LMU Ludwig Maximilian University of Munich proved method for noise and SNR measurements Marchioninistr. 15 in the presence of very low noise levels. Image 81377 Munich data were simulated with original noise levels Germany between 0.02 and 2.00. Noise measurements Phone: +49 89 7095-3623 were performed based on the properties of back- Fax: +49 89 7095-4627 ground and foreground data using the conven- E-mail: [email protected] tional approach, which exploits the standard de- viation or mean value of the signal, and a maxi- mum-likelihood approach based on the relative (Parts of this study were presented on the ISMRM frequencies of the observed discrete signal in- annual meeting 2008, abstract #1529.) tensities. Substantial deviations were found for the conventionally determined noise levels, while noise levels comparable to or lower than the

Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 1 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels zation of the signal intensity is ignored. Conse- Introduction quently, the original noise standard deviation as well as the SNR determined from these parameters The properties of the MR signal intensity in the with the methods mentioned above will be over- or presence of noise, such as the statistical distribu- underestimated. The purpose of this study was to tion, mean value, and standard deviation, have analyze the consequences of the signal quantization been extensively discussed in several publica- and to evaluate an improved method for the exact tions (1–11). It is commonly assumed that noise in determination of very low noise levels in discrete MRI raw data is normally distributed in each re- image data. ceiver channel. The statistical signal distribution in the final image depends on the reconstruction and channel-combination technique. Signal statistics Theory are described, e.g., by the Rayleigh or Rician dis- tribution for single-channel magnitude data after Continuous signal distributions conventional Fourier-transform reconstruction (1– If we assume normally distributed noise superim- 8) and by the non-central χ-distribution in the case posed on the signal of the real and imaginary part of a root-sum-of-squares (RSS) reconstruction of of raw data in each receiver channel, then real and multi-channel data (9,12,13). These statistical dis- imaginary part of the complex image data of each tributions play an important role for the measure- channel reconstructed by Fourier transform are ment of the signal-to-noise ratio (SNR) or the con- also superimposed by white (3,4). trast-to-noise ratio (CNR) in MR images, both of The statistical distribution of the signal, x, is de- which are based on the exact determination of the scribed by the probability density level. Several methods for noise meas- 1 − ()x − µ 2 urements have been proposed depending on the PGauss ()x;µ,σ = exp [1] 2π σ 2σ 2 noise properties. If a spatially uniform noise distri- with original standard deviation σ and mean value µ bution can be assumed, then the noise level can be (the mean values, µ, of the real and imaginary part determined by analyzing the (i.e. will in general be different; in background areas, the MR signal in air) of an MR image (2,14,15). If this mean value is zero). We call σ the “original” the noise level is variable over the image (e.g., as a standard deviation, since the actual standard devia- consequence of parallel-imaging reconstruction), tion measured in the final (e.g., magnitude) image then the noise level should be determined at the will be different from σ, in general. same location of the image foreground as the sig- nal, for instance by analyzing the signal in a differ- MR images are usually presented as magni- ence image (10,15–17) or by pixelwise evaluation tude data. The most important probability densities of the signal time-course in a large number of re- for magnitude image signals in MRI are the Rician peated acquisitions (10,15,17). distribution (2,3,7), which describes signal statis- tics after magnitude calculation of complex data, The statistical distributions mentioned above P x;µ,σ = describe the probability density of real-valued sig- Rice ( ) nal intensities, i.e. signal intensities represented by 1  − x 2 + µ 2   xµ  , [2] x exp ()I   2  2  0  2  floating-point numbers. Image data, however, are σ  2σ   σ  commonly quantized to integers before visualiza- and the non-central χ-distribution of signal intensi- tion or archiving in the DICOM format (18). De- ties after RSS reconstruction of n channels (9), pending on the signal-to-noise ratio and the scaling Pncχ (x; µ,σ ,n) = factors applied before the quantization, very low n noise levels with substantial artifacts due to the µ  x   − x 2 + µ 2   xµ  , [3]   exp ()I   2    2  n−1 2  quantization process can occur. In this case, the σ  µ   2σ  σ  evaluation of the signal mean value or the standard where In(z) is the modified Bessel function of the deviation in a background region, in subtraction first kind of nth order. In the image background data, or in a pixel time-course will lead to inaccu- with zero original signal, µ = 0, Eq. [2] simplifies to rate estimations of the true noise level if the quanti- Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 2 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels the Rayleigh distribution (1): difference between the original value, x, and the 1 − x 2 quantized value, k, i.e., e = x − Q()x ; for truncation, PRayleigh ()x;σ = PRice (x;0,σ )= x exp [4] σ 2 2σ 2 the quantization error is between 0 and 1; and for and Eq. [3] can be simplified to (9) symmetric rounding, it is between –0.5 and 0.5. It is also useful to define quantization boundaries, bk, Pncχ ()x;0,σ ,n = which separate intervals that are quantized to dif- n−1 1  x  − x 2 , [5] ferent values, i.e., two real numbers x , x are quan-   x n exp 1 2 2  2  2 Γ()n σ  2σ  2σ tized to the same value k = Q(x1) = Q(x2), if and only where (n) is the gamma function. If, on the other if they lie between two successive quantization hand, the signal-to-noise ratio is sufficiently high, boundaries, bk ≤ x1,x 2 < bk+1. For instance, the then both the Rician and the non-central χ- quantization boundaries for truncation of non- distribution can be well approximated by Gaussian negative numbers are 0, 1, 2, 3, …, while the quan- distributions with the original standard deviation, σ tization boundaries for arithmetic rounding are 0, (Eq. [1]). This is important for noise measurements 0.5, 1.5, 2.5, … based on the pixel time-course in repeated acquisi- If the original image noise level, σ, is suffi- tions or on data of a difference image. In both ciently large in comparison to the quantization er- cases, the SNR in the analyzed region should be ror, i.e. σ >> 1, then quantized MR image data are sufficiently high to provide approximately normally well described by the continuous probability den- distributed signal intensities. The standard devia- sity, P(x; µ, σ, r); here, r shall denote any other pa- tions of the considered data are either the original rameters such as number of channels. However, standard deviation, σ, if a single pixel time-course the continuous description by P(x; µ, σ, r) is not is considered or the original standard deviation longer appropriate if σ is in the order of 1 or below, increased by a factor of 2 if a region of subtrac- i.e. if image noise and quantization noise become tion data is evaluated. comparable. In this case, the signal intensity cannot longer be considered as (almost) continuous quan- Discrete signal distributions tity. Instead of characterization by a probability The last step of the image reconstruction com- density, the distribution of the discrete signal in- monly includes the transition from floating-point to tensities, k, is much better described by the relative (non-negative) integer signal intensities, i.e. the frequency, F(k; µ, σ, r), i.e. we use a histogram quantization (also called digitalization or discretiza- (with natural bin size 1) for data characterization tion) of the intensity data, in order to map signal instead of a continuous density function. intensities to the, e.g., 12-bit integer range from 0 If the mathematical expression of F(k; µ, σ, r) to 4095, which is frequently used in DICOM data. for the relative frequency of the signal k is known, Prior to the quantization, the floating-point intensi- then the original noise level, σ, can be estimated by ties will generally be scaled to an appropriate comparing F(k; µ, σ, r) regarded as a function of σ range; however, we will subsequently assume with- with the observed counts, n , or the relative fre- out loss of generality that all floating-point data are k quencies, f , of pixels with the discrete intensity, k. already in an appropriate range for quantization, k These counts, n , or relative frequencies, f , can be i.e., the original noise level, σ, and image intensity, k k determined either in an image region of interest µ, refer to the data directly before the quantization (ROI) or for a single pixel over the signal time- process. course in a series of repeated acquisitions, i.e.

For real numbers, x, the corresponding quan- nk = “# pixels with intensity k” found in either a ROI tized integer value, k, is obtained by applying the or over the measured time-course. The relative quantization function, Q, i.e., k = Q(x). Different frequencies, fk, are obtained by dividing nk by the functions, Q(x), are available for quantization such total number, N, of pixels in the ROI or of acquired as simple truncation of the fractional part, repetitions, i.e. fk = nk / N. This is done for k = Q(x) = trunc(x), or symmetric arithmetic round- k = 0,1,2,3,K,kmax , where kmax is the maximum ing (i.e., rounding to the nearest integer), pixel intensity in the considered sample. We can k = Q(x) = round(x). The quantization error, e, is the then estimate an approximation of the original Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 3 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels standard deviation, σ, using a least-squares fit, FRayleigh (k;σ ) = kmax b 2 bk +1 2 k +1 [10] σ = argmin ∑ ()F()k;µ,σ ,r − fk . [6] − x σ PRayleigh ()x;σ dx = − exp k=0 ∫ 2σ 2 bk bk Mathematically more rigid than this least- bk+1 squares approach is the maximization of the corre- Fncχ ()k;0,σ ,n = ∫Pncχ ()x;0,σ ,n dx sponding likelihood function. This approach was bk b [11] recently proposed by Sijbers et al. for the estima- l k +1  − x 2  n−1 1  x 2  tion of the noise variance of Rayleigh-distributed = − exp     2  ∑  2  MR data (8). The general likelihood function for  2σ  l=0 l!  2σ  bk multinomially distributed counts, {nk}, is given by kmax If the signal intensities are evaluated in the im- N! nk L()σ , µ;{}nk ,r = F()k; µ,σ ,r . [7] kmax ∏ age foreground, then the situation is slightly more n ! k=0 ∏k=0 k complex since the discrete frequencies also depend and is typically maximized by minimizing −lnL . on the original signal, µ, (and not only on the stan- Thus, the original standard deviation, σ, can be dard deviation). If, for instance, the pixel time- determined as course is analyzed in repeated acquisitions, then σ = argmin the relative frequencies are: σ FGauss (k; µ,σ ) =   k  max b   N! n  bk +1 k +1 − ln F()k; µ,σ ,r k  . [8] 1 x − µ , [12]  kmax ∏  P x; µ,σ dx = erf  n ! k=0  ∫ Gauss ()   ∏k=0 k  2 2σ bk bk k  max  where erf(z) is the error function. The dependence = argmin− ∑nk lnF()k; µ,σ ,r  σ  k=0  on µ becomes obvious, if we consider a very small standard deviation, σ << 1. If µ is somewhere in the In order to apply this approach to image data, middle between two quantization boundaries, e.g., we must derive expressions for the relative fre- µ = (bk + bk+1)/2, then almost all signal intensities quency, F(k; µ, σ, r), for different situations, e.g. in will be quantized to k. If on the other hand, the the background noise of single-channel or RSS mean value is very close to a quantization bound- multi-channel data, in the foreground signal of MR ary, e.g., µ = bk, then about half of all signal intensi- image data, or in the signal of subtraction images. ties will be quantized to k – 1 and the other half to A general expression of the relative frequency, k. In order to estimate the noise level, σ, based on F(k; µ, σ, r), of quantized image data is the integral Eq. [12], one can either determine the values of σ of the probability density with lower and upper and µ that minimize the bracketed expression in integral limits, bk and bk+1: Eq. [8] or one can first estimate µ from the original bk +1 data such that only a one-dimensional minimization F()()k; µ,σ ,r = P x; µ,σ ,r dx . [9] ∫ is required to find σ. A reasonable estimate of µ in b k the case of arithmetic rounding is the mean value Hence, the relative frequencies of signal inten- of all pixel intensities in a series of repeated acqui- sities, k, can be calculated from the cumulative sitions. If data is quantized by truncation then the distribution function of the considered probability mean value must be increased by an offset of 0.5 to density. The relative frequencies for the evaluation obtain an estimate for µ. of background noise are derived from Eqs. [4] and If foreground data of difference images are [5], i.e. analyzed, it is useful to restrict the analysis to suffi- ciently large regions, in which the original (noise- free) signal intensity, µ, is approximately uniformly (or normally) distributed and covers an intensity range that is greater than the quantization distance (these are reasonable assumptions in typical MR

Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 4 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels images, in which the signal always varies to a cer- most frequently found background intensity, k0, tain extent due to e.g. spatially variable coil sensi- may be greater than 0 even for very low noise lev- tivities). In this case, the distribution of the sub- els in the case of a large number of channels. tracted discrete intensities does not longer depend In the case of symmetric intensity distributions on the original signal intensity, µ, due to averaging such as the Gaussian distribution of foreground over all values of µ. Thus, µ does not appear in the data, a sample with at least three different signal final expression for the relative frequencies of the intensities may be required to accurately estimate signal intensities, which is (independently of the the noise level. If, for instance, the mean value, µ, quantization method) given by of the normally distributed signal intensity is very k close to a quantization boundary, then the intensi- FSubt ()k;σ = ∫PGauss ()x;0, 2σ ()1− k + x dx k−1 ties are approximately equally distributed to two k+1 discrete values k0 and k1, independently of the + ∫PGauss ()x;0, 2σ ()1− x + k dx standard deviation, σ. Thus the condition in Eq. [14] k [13] must be modified to k k+1 σ − x 2 σ − x 2 N F (k; µ,σ ) = 1. [17] = exp − exp ∑ Gauss min 2 2 k≠k0,k1 π 4σ k−1 π 4σ k Using Eq. [12] and setting k = k +1 = k , this is k k+1 0 1 ()1− k x ()1+ k x + erf + erf equivalent to 2 2σ 2 2σ k−1 k  bk +1    for k = 0, ±1, ±2, ±3, … as derived in the Appendix. 1 = N 1− PGauss ()x; µ,σ min dx  ∫   bk −1  Minimal detectable noise level . [18]  bk+1   1 x − µ  Based on Eqs. [10] to [13], it is possible to deter- = N1− erf   2 2σ min  mine the minimum noise level, σmin, that can be  bk−1  estimated from a sample of size, N, of discrete im- The solution, σmin, of this equation depends strongly age data. Obviously, if all signal intensities in a on the original signal, µ. Since the original signal is sample are quantized to the same value, k0, (e.g., typically continuously distributed and not exactly k0 = 0 in the background), then the standard devia- known, a practical approach for the determination tion cannot be estimated. In the case of asymmetric of σmin is to calculate the maximum over all possible distributions, the sample must include at least one values of µ, i.e. σ min = max()σ min ()µ . pixel with an intensity, k1, different from the most µ frequently found intensity, k , i.e. 0 In foreground data of difference images, it can N ∑F()k;µ,σ min ,r = 1. [14] be assumed that the analyzed region of interest k≠k 0 contains a sufficiently broad uniform (or normal) If background noise is evaluated and the most fre- distribution of (real-valued) signals prior to the quently found intensity, k0, is 0, then Eq. [14] can superposition of noise as discussed above. Thus, be transformed to there are always original signals very close to quan- ∞ ∞ tization boundaries resulting in a non-trivial distri- N F()()k;σ ,r = N P x;σ ,r dx = 1. [15] ∑ min ∫ min bution (i.e. a distribution containing more than a k=1 b1 single signal intensity) even for extremely low noise For Rayleigh-distributed noise, this is equivalent to levels. This distribution can be exploited to esti- ∞  − x 2  − b 2 mate the standard deviation of noise for practically N− exp  = N exp 1 = 1, [16]  2  2 all values of σ, i.e., σmin = 0.  2σ min  2σ min b1 i.e., σ = b 2lnN . A similar calculation is pos- min 1 Methods sible for multi-channel RSS data; however, the polynomial expression in Eq. [11] will generally Four typical experiments corresponding to the require a numerical approach to determine σmin. In most frequently used techniques for SNR meas- addition, it must be taken into account that that the urements were simulated to analyze the conse- Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 5 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels quences of signal quantization for the determina- varying N from 16 to 25 600. These simulations tion of the noise level (and thus eventually for SNR were performed with a fixed original noise level of measurements): The noise level was estimated σ = 0.6 and were repeated 100 times in order to based on the statistical properties of (a) the back- calculate the mean value and the standard deviation ground signal in single-channel data, (b) the back- of the ratio σest/σ. In addition to the maximum- ground signal in RSS multi-channel data, (c) the likelihood approach, we used also the least-squares time-course of a single pixel in the image fore- fit (Eq. [6]) in these simulations in order to compare ground evaluated over a large number of repeated both techniques. identical acquisitions, and (d) a foreground region These two series of simulations were per- in a difference image of two repeated (identical) formed for the two most frequently applied quanti- acquisitions. The details of the simulations used for zation techniques: simple truncation of the frac- these four different experiments are described be- tional part and symmetric arithmetic rounding. low. We compared the conventional approaches, which exploit the standard deviation or mean value In all performed simulations, the noise was es- of the simulated data to estimate the original noise timated using the conventional approaches and the level, σ, with the proposed maximum-likelihood proposed maximum-likelihood technique. To ana- method (Eqs. [8] and [10] – [13]), which estimates lyze the noise-estimation approaches based on the original noise level, σ, from the counted fre- background data of single-channel (experiment a) quencies, nk, of signal intensities. The relative de- and RSS 16-channel measurements (experiment b), viation of the estimated noise level, σest, and the we generated synthetic complex background data actual original noise level, σ, was assessed as the with Gaussian noise and mean value µ = 0. We then ratio σest/σ. This ratio was evaluated and compared simulated a single-channel magnitude and a 16- in all simulations for the conventional and the pro- channel RSS reconstruction followed by the quanti- posed maximum-likelihood technique. zation to integer values. We calculated the mean value, m, and standard deviation, s, of the quan- In a first series of simulations, we analyzed the tized data and estimated the originally applied relative deviation, σest/σ, for different original noise noise level, σest, using levels, σ, ranging from 0.02 to 2.00 based on a rela- σ est (m) = 2 π m and tively large sample size of N = 25 000 in order to [19] minimize statistical errors. The ratios, σest/σ, were σ est ()s = 2 (4 − π )s plotted over the originally applied noise level, σ, to for single-channel data (2) and demonstrate the deviation from the ideal ratio of 1. σ est (m) = m β (n) and We then determined for all noise-estimation meth- [20] σ ()s = s 2n − β ()n 2 ods the minimal noise level, σ5%, for which the ab- est n−1 solute value of the relative deviation ()σ est σ − 1 is with β (n) = π 2 (1⋅ 3 ⋅ 5L()2n − 1 ) (2 (n − 1)!) and lower than 5 % for all σ > σ5%. I.e., the considered n = 16 for 16-channel RSS data (9). These results noise-estimation method is accurate within a 5-% were compared with the noise estimations based on range for all σ > σ5%. We compared these results the maximum-likelihood approach proposed in with the theoretical minimum, σmin, that can be es- Eq. [8] together with Eqs. [10] and [11]. timated from a sample of size N = 25 000 of dis- To analyze the pixelwise determination of the crete image data according to Eqs. [14] to [18]. noise level (experiment c), the signal time-course of Finally, we averaged the deviation ()σ est σ − 1 a single pixel in N repeated single-channel acquisi- over the interval between σmin and 2.0 in order to tions was simulated. In this case, the results of the compare the mean deviations obtained by the dif- noise estimations depend on the signal mean value, ferent noise-estimation methods. µ. Thus, we generated 20 data sets with signal mean values (over the time-course) varying linearly In a second series of simulations, we analyzed between µ = 100 in data set #1 and µ = 100.95 in the dependence of the noise estimation on the data set #20. The SNR of the pixel time-courses sample size, N, (i.e. the number of pixels in the varied between about 50 (for σ = 2.0) and 5050 (for considered region or in the pixel time-course) by σ = 0.02). After quantization, the originally applied

Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 6 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels noise level was estimated from the standard devia- ble 1), σ5% varies between 0.89 and 2.00 for con- tion, s, of the N repetitions as σ est ()s = s and from ventional noise measurements, and between 0.02 the counts of signal intensities applying the maxi- and 0.23 for noise estimations with the maximum- mum-likelihood approach based on Eqs. [8] and likelihood approach. After symmetric rounding [12] with a two-parameter fit for σ and µ. Finally, (Table 2), σ5% varies between 0.26 and 1.41 for the results of all 20 data sets (with varying µ) were conventional noise measurements, and between averaged. 0.02 and 0.24 for noise estimations with the maxi- mum-likelihood approach. We found a very good To analyze the noise-level measurements in agreement between σ5% determined with the subtraction data (experiment d), we simulated pairs maximum-likelihood approach and the theoretical of single-channel magnitude data sets with a fore- lower limit of noise estimations, σmin. The corre- ground signal (before adding the noise) of 100+R, sponding deviations, (σ σ ) − 1 , averaged over where R was randomly and uniformly distributed est between 0 and 1, but identical in both data sets to the interval between σmin and 2.0, vary between be subtracted, resulting again in SNRs between 3.39 % and 45.45 % for conventionally estimated about 50 and 5050. The data sets were first quan- noise levels and between 0.08 % and 0.58 % for tized to integer values and then subtracted. We noise estimations using the maximum-likelihood calculated the standard deviation, s, of the subtrac- approach (Tables 1 and 2). tion data and estimated the originally applied noise Particularly large deviations even for relatively level as σ est ()s = 1 2 s . This result was compared large noise levels greater than 1.0 are observed for with the noise level estimated from the counts of the noise levels estimated from the mean value of pixel intensities in the subtraction data based on background noise in the single-channel data after Eqs. [8] and [13]. truncation (Fig. 1a, dash-dotted line). In 16-channel RSS data (Figs. 1b and 2b), the deviations show Finally, we evaluated an image example taken characteristic oscillations for small original noise from our MR image archive: we determined the levels, σ < 0.6. The most obvious difference be- noise level in the background of a T1-weighted MR tween noise estimations after truncation and after mammography image (quantized by truncation) symmetric rounding is the considerably better acquired with a 2-channel mammography coil and noise estimation based on the mean value of back- a routine protocol (Magnetom Symphony, Siemens ground noise if symmetric rounding was used Medical Sol., Erlangen, Germany) using the con- (Figs. 2a and 2b, dash-dotted line). ventional and the proposed maximum-likelihood approach. The dependence of the noise estimations on the sample size (i.e. the size of the used ROI or the number of repeated acquisitions) is shown in Fig. 3 Results for data quantization by truncation. The mean val- ues of the noise estimations remain approximately The deviations of the noise level, σest/σ, plotted over constant even for relatively small samples, while the original noise level in the range between 0.02 the associated standard deviations increase with and 2 are shown in Figs. 1 and 2. Generally, all decreasing sample size. The standard deviation of noise estimations approach the true value with in- noise estimations based on single-channel back- creasing noise level, while larger deviations be- ground data is similar for all four noise-estimation tween σest and σ occur for smaller noise levels. The methods (Fig. 3a). For very small sample sizes be- deviations of the conventionally estimated noise low about 100, a certain systematic deviation was levels are substantially larger than those of the found for the results of the maximum-likelihood maximum-likelihood estimations, for which the approach. Based on 16-channel RSS data, a sub- ratio, σest/σ, remains very close to 1 for all but very stantially larger standard deviation is observed for small values of σ. This behavior is illustrated by the noise estimations using the standard deviation of values of σ5% in Tables 1 and 2, i.e., by the lower background data than for those using the alterna- limits for acceptable noise estimations with the tive approaches (Fig. 3b). For noise measurements different evaluated methods: after truncation (Ta- based on difference images (Fig. 3d), the standard

Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 7 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels deviation of the least-squares approach is slightly The application in original MRI data is demon- larger (by a factor of about 1.5) than the standard strated in Fig. 4. With the maximum-likelihood ap- deviation of the conventional and the maximum- proach, the determined noise level is 0.67 in con- likelihood approaches. Similar results as just de- trast to 0.41 and 0.86 derived conventionally from scribed were obtained for the dependence of the the mean value and standard deviation, respec- noise estimations on the sample size after quantiza- tively; this corresponds to deviations of the conven- tion by arithmetic rounding. tionally determined noise levels of about 39 % and 28 %.

Figure 1: Relative deviation of the estimated noise, σest/σ, in noise measurements after data quantization by truncation; sample size N = 25 000. The ratio, σest/σ, is plotted over the true noise level, σ, for four different noise-measurement experiments (a–d) and different noise-estimation techniques. The solid line represents the proposed maximum-likelihood approach, while the dashed and dash-dotted lines represent the conventional approaches based on the standard deviation or the mean value of the analyzed data sample, respectively.

Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 8 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels

Figure 2: Relative deviation of the estimated noise, σest/σ, in noise measurements after data quantization by symmetric arith- metic rounding; sample size N = 25 000. The ratio, σest/σ, is plotted over the true noise level, σ, for four different noise- measurement experiments (a–d) and different noise-estimation techniques. The solid line represents the proposed maximum- likelihood approach, while the dashed and dash-dotted lines represent the conventional approaches based on the standard deviation or the mean value of the analyzed data sample, respectively.

Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 9 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels

Table 1: Noise measurements after quantization by truncation; sample size N = 25 000

σmin Noise estimation based on

standard deviation mean value max. likelihood

a a a rel. dev. (%) σ5% rel. dev. (%) σ5% rel. dev. (%) σ5%

Single-channel data, 0.222 12.05 (18.15) 1.26 45.45 (24.81) 2.00 0.313 (0.317) 0.21 background

RSS 16-channel data, 0.117 21.90 (44.92) 1.24 13.95 (16.02) 1.77 0.083 (0.086) 0.11 background

Multiple-acquisition 0.243 7.44 (9.56) 0.89 – – 0.124 (0.245) 0.23 data, foreground

Subtraction data, fore- 0 23.26 (54.92) 0.89 – – 0.486 (0.439) 0.02 ground a Given are the mean value and the standard deviation in parentheses of the relative deviation, ()σ est σ − 1 , averaged over the interval σ min ≤ σ ≤ 2.0 and expressed in percent.

Table 2: Noise measurements after quantization by symmetric arithmetic rounding; sample size N = 25 000

σmin Noise estimation based on

standard deviation mean value max. likelihood

a a a rel. dev. (%) σ5% rel. dev. (%) σ5% rel. dev. (%) σ5%

Single-channel data, 0.111 25.53 (33.59) 1.41 8.80 (23.22) 0.42 0.338 (0.288) 0.11 background

RSS 16-channel data, 0.0583 29.35 (77.92) 1.30 3.39 (12.65) 0.26 0.100 (0.138) 0.05 background

Multiple-acquisition 0.243 7.45 (9.57) 0.90 – – 0.100 (0.097) 0.24 data, foreground

Subtraction data, 0 23.13 (54.28) 0.88 – – 0.581 (0.727) 0.02 foreground a Given are the mean value and the standard deviation in parentheses of the relative deviation, ()σ est σ − 1 , averaged over the interval σ min ≤ σ ≤ 2.0 and expressed in percent.

Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 10 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels

Figure 3: Accuracy and precision of noise measurements after data quantization by truncation; original noise level σ = 0.6. The mean relative deviation, σest/σ, and the corresponding standard deviation (gray area) are plotted over the sample size, N, for four different noise-measurement experiments (a–d) and different noise-estimation techniques. In the bottom plot of each experiment, the ratio of the standard deviations of the maximum-likelihood approach and the alternative approaches is shown (open circles: least-squares fit, black filled circles: standard deviation, gray filled circles: mean value).

Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 11 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels

Figure 4: Image example, demonstrating the occurrence of a very low noise level in clinical routine MRI. (a) T1-weighted MR mammography, (b) magnified view of the 64×64-pixel background region shown in (a), a very narrow intensity window is used to visualize the noise distribution (black pixels: intensity 0, gray pixels: intensity 1, white pixels: intensity 2 and 3). (c) The relative frequencies of the signal intensities in (b); the filled circles indicate the relative frequencies of the fitted distribution.

tensity to intermediate values will, at the same Discussion time, decrease the noise level to rather low values. Even the improved approach for noise meas- The results demonstrate that the conventional ap- urements, however, requires a certain minimum proaches for noise measurements should not be noise level. If the original noise level is too small applied in quantized image data with noise levels (σ < σmin) then the noise level cannot longer be es- that are comparable to or lower than the quantiza- timated accurately from the existing data. This is tion errors, i.e., if the noise level, σ, is approxi- illustrated by the remaining deviations of the noise mately equal to or lower than 1. Noise estimations estimation using the maximum-likelihood approach based on the standard deviation of the noisy fore- for noise levels between 0 and about 0.2 in Figs. 1 ground or background data tend to overestimate and 2. the true noise level, σ, while noise estimations based on the mean value of background data rather We used truncation and symmetric arithmetic underestimate σ. The accuracy of the noise estima- rounding in this study to quantize the floating-point tion can be substantially improved with a maxi- data to integer values. These approaches are by far mum-likelihood approach, which exploits the the most frequently applied quantization tech- counted frequencies of the quantized signal intensi- niques. However, the proposed technique for noise ties and the analytically determined distributions measurements can also be applied for other quanti- derived in Eqs. [10] – [13]. This is important for zation techniques such as, e.g., the ceil-function; many typical applications of SNR measurements the only difference to our presented work is that such as the comparison of different pulse se- the integration boundaries, bk, in Eqs. [10] – [12] quences or protocols for a certain diagnostic ques- must be chosen differently. Comparing the results tion. While, e.g. in technical comparisons of differ- of truncation and symmetric rounding, a relatively ent RF coils, sequence parameters could easily be similar behavior is generally observed with respect changed in order to avoid very low signal or noise to the deviations of the estimated noise levels. The levels, this option is generally not available for a most obvious differences are found in the evalua- clinical protocol that has already been optimized in tion of background data, for which the estimations terms of contrast or spatial resolution. It is also based on the signal mean value are much more noteworthy that particularly high-SNR applications accurate after rounding than after truncation. This are influenced by the described noise quantization is explained by the systematic bias (an offset of – effects. Scaling factors are generally chosen de- 0.5) of the mean value of truncated floating-point pending on the maximum signal intensity in an data distributed around a quantization boundary. image; thus, scaling the originally high image in- Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 12 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels The evaluation of the standard deviations of such as rawdata-based noise-reduction filters or the estimated noise levels in dependence on the intensity-normalization filters, which compensate sample size demonstrates that the precision of the for coil-sensitivity or B1 effects, are applied before proposed noise-estimation technique is generally signal quantization. If, however, image data are comparable to the conventional techniques (which, post-processed after archiving in an integer format, however, provide a substantially lower accuracy as then quantization effects may influence the ob- indicated by the deviations of the mean value from tained results. This could be the case e.g. in fMRI 1.0 in Fig. 3). The standard deviations of all evalu- analyses of the time-course of a single pixel, for ated approaches decrease with the expected de- which statistical properties such as the autocorrela- pendence on the square root of the sample size, tion of the signal-time curve may be significantly 1 N . The evaluation of samples with 400 to 1000 influenced by data quantization. data points (corresponding to relatively small re- gions with about 20 to 35 pixels diameter) should Conclusions be sufficient to estimate the noise level with an error below 5 %. The maximum-likelihood and At very low noise levels, the quantization of float- least-squares approaches gave very similar results ing-point image data can bias the measurement of in most cases. In some of our simulated experi- image noise and, consequently, the accurate de- ments, the precision of the maximum-likelihood termination of SNR or CNR in MR images. This approach was better (by about 50 %) than the one effect is observed when using conventional tech- of the least-squares fit. On the other hand, the niques for noise estimation based on the assump- maximum-likelihood technique resulted in slightly tion of a continuous distribution of signal intensi- biased (increased) noise estimations at very small ties. We extended and evaluated a recently sug- sample sizes, e.g. for the single-channel back- gested maximum-likelihood approach for noise ground experiment (Fig. 3a). measurements that takes the discrete distribution of signal intensities into account. Our results dem- Although somewhat surprising, we found a onstrate that noise levels that are comparable to or certain number of datasets in our clinical image lower than the quantization errors can be accu- archive with very low quantized signal intensities, rately estimated with the proposed approach. i.e. data sets in which the standard deviation of noise becomes comparable to the magnitude of quantization errors. The image shown in Fig. 4 is Appendix: Signal frequencies in representative for several data sets acquired in dif- ferent patients with the identical protocol and RF subtracted integer image data coil configuration, all of which exhibit similarly low Consider two real-valued image data sets of identi- noise levels. If possible, such low signal intensities cal acquisitions and a foreground region with suffi- should be avoided, but typically the scaling factors ciently high SNR. Then the signal statistics of each used for the image reconstruction cannot easily be acquisition can be approximated by a Gaussian modified by the user. Of course, it would be gener- distribution with standard deviation, σ, and the sta- ally desirable that the image reconstruction system tistics of the difference, x, of the signal intensities checks the absolute signal intensities before quan- (for each pixel) is also described by a Gaussian tization and applies appropriate scaling factors if distribution with a standard deviation increased by necessary. a factor of 2 (due to the subtraction operation). If Generally, the effects of signal quantization we calculated the quantized signal intensities after should be considered not only for noise measure- subtraction, then it would be described by ments, but also for other image post-processing F (k; 0, 2 σ), i.e. by Eq. [12]. steps or data evaluation procedures. As long as Gauss filters are applied by the scanner itself during im- However, quite often image data is first quan- age reconstruction, they should not be affected by tized and subtracted only afterwards (e.g., during quantization effects. Signal quantization is typically retrospective data analysis based on archived data), the last step of image reconstruction, and all filters resulting in very different signal statistics. In this

Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 13 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels case, the condition for an integer pixel intensity, k, pendent of the chosen quantization procedure, i.e. in the final subtraction is that there are exactly k it is the same for symmetric rounding or truncation; quantization boundaries between both original only the distance of quantization boundaries must floating-point values. This is possible for signal be 1. By rearrangement of the terms and subse- differences, x, that lie between (k – 1) and (k + 1) as quent integration, Eq. [21] can be expressed as: visualized in Fig. 5. The probability density for the k FSubt ()k;σ = xPGauss ()x;0, 2σ dx difference x itself is PGauss(x; 0, 2 σ). If we now ∫ k−1 employ the assumption that the original signal in- k+1 tensities, µ, in the evaluated sample (region) are − ∫ xPGauss ()x;0, 2σ dx approximately uniformly distributed over a range k greater than the quantization interval, then we can k obtain a second expression that describes the + ()1− k ∫PGauss ()x;0, 2σ dx k−1 probability to find exactly k boundaries (with unit [22] k+1 distance) for a given difference interval, x. This + ()1+ k ∫ xPGauss ()x;0, 2σ dx expression is directly connected to the geometrical k relation between the interval size and the difference k k+1 − σ − x 2 σ − x 2 between x and k as illustrated in Fig. 5, and is given = exp + exp π 2 π 2 by: 1 – |x – k|, i.e. 1 – (k – x) for (k–1) < x < k and 4σ k−1 4σ k k k+1 1 – (x – k) for k < x < (k+1). Thus, the overall prob- ()1− k x ()1+ k x ability (i.e. the relative frequency) for the integer + erf + erf . 2 2σ k−1 2 2σ k pixel intensity, k, in the final subtraction data set is k The same expression can be derived alterna- FSubt ()k;σ = ∫PGauss ()x;0, 2σ ()1− k + x dx tively based on the relative frequencies of the quan- k−1 [21] tized Gaussian distributions, FGauss(k; µ, σ), prior to k+1 the subtraction and on the probability distribution + P x;0, 2σ ()1− x + k dx ∫ Gauss () of the mean value, P(µ), by a direct (but lengthy) k transformation of: for k = 0, ±1, ±2, ±3, … By introducing the term that describes the probability to find k quantization FSubt (k;σ ) = ∫P(µ) boundaries, the result is already implicitly averaged  ∞  [23]  F k'; µ,σ F k'−k; µ,σ dµ. over all possible original mean values, µ, and, thus,  ∑ Gauss ()(Gauss ) k'=−∞  does not longer depend on µ. It is also interesting to note that the expression for FSubt(k; σ) is inde-

Figure 5: Calculation of the relative frequencies of signal intensities in difference images that were subtracted after quantiza- tion. To obtain a final integer pixel intensity of, e.g., k = 5, exactly 5 quantization boundaries (numbered from 1 to 5 in this example) are required between the two original floating-point values, which are assumed to lie in the light-gray-shaded inter- vals. The difference, x, (before quantization) between these two values can vary between 4 and 6 as indicated by the black horizontal brackets. Obviously, the probability to find exactly 5 boundaries between the two values is close to zero if x is ap- proximately 4 or 6, since most configurations with x ≈ 4 or x ≈ 6 will spread over either only 4 or over 6 quantization bounda- ries as shown by the gray brackets. The probability increases to one if the distance, x, approaches 5. The probability to find exactly 5 boundaries for a given distance, x, is visualized by the ratio of the number of black and gray brackets in the example, and is expressed by 1 – |x – 5|.

Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 14 of 15 Dietrich O, Raya JG, Reiser MF MR noise measurements at very low noise levels

10. Kellman P, McVeigh ER. Image reconstruction in SNR units: a general method for SNR measurement. Magn Reson Med References 2005;54:1439–1447. 11. Dietrich O, Raya JG, Reeder SB, Ingrisch M, Reiser MF, 1. Edelstein WA, Bottomley PA, Pfeifer LM. A signal-to-noise Schoenberg SO. Influence of multi-channel combination, par- calibration procedure for NMR imaging systems. Med Phys allel imaging, and other reconstruction techniques on MRI 1984;11:180–185. noise characteristics. Magn Reson Imaging 2008;26:754–762. 2. Henkelman RM. Measurement of signal intensities in the 12. Roemer PB, Edelstein WA, Hayes CE, Souza SP, Mueller OM. presence of noise in MR images. Med Phys 1985;12:232–233. The NMR phased array. Magn Reson Med 1990;16:192–225. 3. Holden JE, Halama JR, Hasegawa BH. The propagation of 13. Larsson EG, Erdogmus D, Yan R, Principe JC, Fitzsimmons JR. stochastic pixel noise into magnitude and phase values in the SNR-optimality of sum-of-squares reconstruction for phased- Fourier analysis of digital images. Phys Med Biol 1986;31:383– array magnetic resonance imaging. J Magn Reson 396. 2003;163:121–123. 4. Bernstein MA, Thomasson DM, Perman WH. Improved detect- 14. Kaufman L, Kramer DM, Crooks LE, Ortendahl DA. Measuring ability in low signal-to-noise ratio magnetic resonance images signal-to-noise ratios in MR imaging. Radiology 1989;173:265– by means of a phase-corrected real reconstruction. Med Phys 267. 1989;16:813–817. 15. Dietrich O, Raya JG. Reeder SB, Reiser MF, Schoenberg SO. 5. Miller AJ, Joseph PM. The use of power images to perform Measurement of signal-to-noise ratios in MR images: Influence quantitative analysis on low SNR MR images. of multichannel coils, parallel imaging, and reconstruction fil- Magn Reson Imaging 1993;11:1051–1056. ters. J Magn Reson Imaging 2007;26:375–385. 6. McGibney G, Smith MR. An unbiased signal-to-noise ratio 16. Murphy BW, Carson PL, Ellis JH, Zhang YT, Hyde RJ, Chenev- measure for magnetic resonance images. Med Phys ert TL. Signal-to-noise measures for magnetic resonance 1993;20:1077–1078. imagers. Magn Reson Imaging 1993:11:425–428. 7. Gudbjartsson H, Patz S. The Rician distribution of noisy MRI 17. Reeder SB, Wintersperger BJ, Dietrich O, Lanz T, Greiser A, data. Magn Reson Med 1995;34:910–914. (Erratum in: Reiser MF, Glazer GM, Schoenberg SO. Practical approaches Magn Reson Med 1996;36:332.) to the evaluation of signal-to-noise ratio performance with 8. Sijbers J, Poot D, den Dekker AJ, Pintjens W. Automatic esti- parallel imaging: application with cardiac imaging and a 32- mation of the noise variance from the histogram of a magnetic channel cardiac coil. Magn Reson Med 2005:54:748–754. resonance image. Phys Med Biol 2007;52:1335–1348. 18. National Electrical Manufacturers Association (NEMA). Digital 9. Constantinides CD, Atalar E, McVeigh ER. Signal-to-noise Imaging and Communication in Medicine (DICOM). Rosslyn: measurements in magnitude images from NMR phased arrays. National Electrical Manufacturers Association (NEMA); 2007. Magn Reson Med 1997;38:852–857. (Erratum in: Magn Reson Med 2004;52:219.)

Magn Reson Med 2008; 60(6): 1477–1487 (accepted 21 July 2008) Page 15 of 15