Full text
1 Vol.:(0123456789) Scientific RepoRtS | (2020) 10:15294 | https://doi.org/10.1038/s41598-020-72171-8 www.nature.com/scientificreports How levelling and scan line corrections ruin roughness measurement and how to prevent it DavidNečas1,2*,MiroslavValtr2,3 & petr Klapetek2,3 Surfaceroughnessplaysanimportantroleinvariousfieldsofnanoscienceandnanotechnology. However,thepresentpracticesinroughnessmeasurements,typicallybasedonsomeAtomicForce Microscopymeasurementsfornanometricroughnessoropticalormechanicalprofilometryfor largerscaleroughnesssignificantlybiastheresults.Suchbiasedvaluesarepresentinnearlyall thepapersdealingwithsurfaceparameters,intheareasofnanotechnology,thinfilmsormaterial science.Surfaceroughness,mosttypicallyrootmeansquarevalueofirregularitiesSqisoften used parameter that is used to control the technologies or to link the surface properties with other materialfunctionality.Theerrorinestimatedvaluesdependsontheratiobetweenscansizeand roughnesscorrelationlengthandonthewayhowthedataareprocessedandcaneasilybelargerthan 10%withoutusnotinganythingsuspicious.Herewepresentasurveyofhowlargeistheproblem, detailed analysis of its nature and suggest methods to predict the error in roughness measurements andpossiblytocorrectthem.Wealsopresentaguidanceforchoosingsuitablescanareaduringthe measurement. The impact of roughness on interaction of solid bodies with outer world is a long studied problem that can be traced at least to Leonardo da Vinci’s friction experiments1. Surface roughness is related to imperfections in nearly all manufacturing technologies2–7 and as such widely spread phenomenon it had to be addressed many times in past in relation to foundations of modern engineering. With the advent of smaller and smaller devices and their functional parts, the impact of roughness is only increasing8–10, and in the area of nanoscience and nanotechnology, where the typical sizes of objects are comparable to the roughness values naturally coming from different technologies, it can become dominant effect. Surface properties can be then affected more by its texture than by the material composition11,12. In order to get the correct surface function, surface roughness must be controlled, either to be minimal (e.g. for optical thin films, solar cell interfaces) or tuned to have certain statistical properties (e.g. in surface enhanced Raman Spectroscopy13,14, microfluidics15,16, plasmonics17,18 or cell adhesion and migration19,20). Roughness can also be an interesting phenomenon itself—studying its scaling during surface growth and determination of the universality class can provide insight into the physical processes involved21–25. For all this roughness needs to be measured, which is on the nanoscale typically done using Scanning Probe Microscopy (SPM) techniques, such as Atomic Force Microscopy (AFM) and on large scale by a profilometric technique, either optical or tactile. Images of different roughness realizations, accompanied with simple statistical results, are therefore a common content of nanoscience and nanotechnology papers. Frequently, like in the case of electromagnetic field enhancement, the functional properties do not depend on roughness linearly and instead exhibit various exotic dependences, which makes roughness optimization much more challenging. In this work we show that the reported roughness results can be often wrong, which potentially affects also the conclusions taken from them and we suggest remedies to prevent this. All measurement techniques have limitations and surface roughness is never measured in a statistically ideal way, which would mean infinite area with infinite resolution. In contact scanning methods such as AFM or profilometry the resolution is limited by finite probe size, in optical methods by finite wavelength. The measurement open 1CEITEC, Masaryk University, Kamenice 5, 625 00 Brno, Czech Republic. 2CEITEC, Brno University of Technology, Purkyňova 123, 612 00 Brno, Czech Republic. 3Czech Metrology Institute, Okružní 31, 638 00 Brno, Czech Republic. *email: [email protected]
2 Vol:.(1234567890) Scientific RepoRtS | (2020) 10:15294 | https://doi.org/10.1038/s41598-020-72171-8 www.nature.com/scientificreports/ area is even more limited, usually by the measurement device construction, and often it is just a tiny fraction of the surface, even if multiple regions are measured to improve statistical representativeness. In contrast to method-specific artefacts, e.g. tip convolution in the contact methods26 that affect directly the statistical results across different scales27,28, effects related to finite area are universal. They would impact even ideal measurements in which the measured profile perfectly traces the surface topography. Surface roughness is, conceptually, a statistical quantity22,29. Discussing roughness, we can think of an infinite ensemble of surfaces (possibly infinite themselves), usually corresponding formally to a random process, which may or may not be wide-sense stationary. Here we will treat the simplest case, which is roughness generated by stationary processes, and we will focus on the estimation of their parameters using a finite measurement of one of the realizations. In particular, we will study the consequences of finite measurement area and levelling/ background subtraction as these are the most important and widespread deviations from ideal statistical treatment in practice. One consequence of the finite scan size is that the estimated parameter, for example mean square roughness σ , estimated from a profile of length L by is itself a random variable, as we denote with a hat. It has a dispersion, which is possibly large22. Note that expression(1) is equivalent to mean square roughness Rq for profiles30,31 and Sq for images32, as defined by the standards. From N discrete measured values zi ( i=1, 2, ...,N ), Sq is usually realized by the sum The most important problem is that this estimate is also biased. Heights z(x) entering(1) are levelled to have zero mean value. As the scan size is finite, this introduces bias, which is well known and discussed for correlated data in classical signal processing textbooks22,33,34. In a real world the situation is even worse as the subtraction of the mean value is rarely the only preprocessing applied to topographical data before roughness evaluation. Various instrument related imperfections usually need to be considered. Local defects, either coming from the feedback loop faults or unwanted surface contamination are often removed, although this may be unnecessary as roughness evaluation algorithms for irregular regions allow excluding arbitrary image parts from processing35. The misalignment between microscope axes and surface normal is removed by mean plane subtraction. Frequently also scanner bow is removed by higher order polynomial fitting29. Individual profiles misalignment related to mechanical and thermal drifts in the slow scan axis is corrected. Finally, roughness may have to be separated from sample form using frequency-space filtering, wavelet processing or subtraction of specific geometrical shapes such as sphere. All these methods are applied after the measurement, so if it is found that the roughness results are corrupted by them, it is usually late. The analysis and guidance provided in this paper will hopefully help to prevent such situation. As could be guessed, the impact of levelling must somehow depend on characteristic lateral scale of the roughness and its ratio to the scan lengthL. Intuitively, if the scan is very long and the lateral scale of the roughness short, the estimated background will approach the true one and the bias will be minimal. As a measure of the lateral roughness properties we use the correlation lengthT, one of the common parameters quantifying the lateral scale of roughness, defined as the distance at which the autocorrelation function (ACF) decays to 1/e of its maximum. For a real-world illustration of the impact of profile length on roughness quantities, we performed a set of long profile measurements of a randomly rough reference sample from Simetrics (ARS f3). The dependency of measured mean square roughness σ on α=T/L is plotted in Fig.1. The figure shows both the bias and standard deviation of measured σ values. Both are quite large—and while the larger contribution to the uncertainty may come from the dispersion, this part can be reduced by repeated measurement (as is a good practice anyway). The bias, on the other hand, is inherently tied toL and repeated measurement is of no help in combatting it. Theproblem The finite profile length, combined with levelling, is the key aspect of the problem. Ideally, one would take infinitely long profiles that would not need levelling, however this is practically not possible. Some of the steps used to remove background arise from measurement imperfections (scanner bow), some remove real base shape of the measured object. Often they remove both to some degree—and by intentionally removing certain degrees of freedom they also always remove inadvertently a part of the roughness. For instance in the case of the mean value, we subtract it because the measured surface height h(x) is not the roughness signal z(x). It is offset by some background, here a constant base height B: The background B is non-random (at least from the roughness standpoint), but unknown. We estimate it as the mean value of the height because the expected value of h is E[h]=B . However, the subtraction of this estimate removes not just B but also a part of the roughness. Although the expected value of z is zero, the mean value of z(x) over a finite interval is a random variable, not zero—yet we make it zero anyway. The same principle—removing some part of roughness by levelling—applies (1) ˆσ 2 = 1 LL 0 z(x)2 dx (2) Sq = 1 N i=1 z2 i 1/2 . (3) h(x)=z(x)+B.
3 Vol.:(0123456789) Scientific RepoRtS | (2020) 10:15294 | https://doi.org/10.1038/s41598-020-72171-8 www.nature.com/scientificreports/ also for higher order levelling, and is in fact even worse. This is illustrated in Fig.2 for levelling by a second-order polynomialB. The true topography and true background (bow) combine to measured data. Background fitting is greedy and takes away not just the true background, but also roughness components which match it—randomly. The corrected data are then missing these components. The evaluated roughness parameters are therefore biased towards lower values and we will see later this bias can commonly be quite large. As the bias is negative (we always remove some roughness) and proportional to σ2 , it is convenient to introduce the relative bias β 36. For the rest of the paper to simplify notation. If we know β , replacing ˆσ2 with ˆσ2/(1−β) corrects the bias. Our goal is to estimate β for different levelling approaches. (4) E[ˆσ2]=σ2(1−β) Figure1. Measured roughness and its standard deviation as a function of profile length for a Simetrics reference sample, showing the bias evolution for shorter profile lengths and its dependence on the levelling. Figure2. General scheme how background removal distorts the data.
4 Vol:.(1234567890) Scientific RepoRtS | (2020) 10:15294 | https://doi.org/10.1038/s41598-020-72171-8 www.nature.com/scientificreports/ Roughness measurement in the wild We were curious how much real-world roughness results could be biased, or at least what are the typical L/T ratios—and how they compare to what various roughness measurement standards recommend. Starting from the second point, standards and roughness reference samples do come with recommendations for measurement length (or area), although interpreting them in terms of the ratio may not be straightforward. ISO 1960637 recommends measuring 20–50 mean widths of profile elements (RSm). The relation between RSm and T depends on the roughness character. They are of the same order of magnitude, but for instance for Gaussian ACF the RSm is approximately 4× longer, whereas for exponential ACF the two lengths are similar. ASME B46.131 recommendations translate to evaluation length of approximately 10 ×RSm , but only for periodic surfaces which are not relevant here. For non-periodic surfaces the recommended length is based on the value of mean roughness Ra. The same holds for ISO 428838, where evaluation length for non-periodic profiles is again based on amplitude parameters. The evaluation procedures are more complex than discussed here, involving several different lengths that could be consideredL. While the overall form is removed from the entire profile, for roughness parameter evaluation the profile is usually split to several sampling lengths, which are shorter. However, the upper limit of spatial frequencies included in roughness is given by the cut-off wavelength c . Although it is not a perfect match, the question closest to the one considered here is ‘how roughness parameters depend on c/T ?’ For image data the procedures and parameters are given by the complex ISO 2517832. Spatial frequencies remaining in the evaluated surface depend on filtering (L- and S-filters) and form removal (F-operations), as defined by the standard, and the corresponding set of rules cannot be distilled into a simple L/T criterion. We only note that it allows, for instance, the application of F-operations with nesting index five times the scale of the roughest structures—which can translate to removal of relatively high frequencies. Furthermore, even when AFM software evaluates roughness parameters according to a standard, measurement settings and procedures deviate in practice, often a lot. In fact, in fundamental science the instrument, sample and measurement method may all be unusual, idiosyncratic or unique. It would be unreasonable to insist on measuring roughness according to standards in such cases. However, it still should be measured correctly and accurately, given the constraints. This brings us back to the first point. Answering the question what T/L ratios actually occur in practice was in principle easier: it only required a sizeable sample of real-world data. We extracted it from literature, according to the following rules: • Published in selected journals—see Table1—in years 2017 and 2018. • Surface roughness is quantified in the paper and it appears to be random. • Topographical images are included in paper or supplementary information and allow determining L and estimating T. • It is reasonable to assume that the presented images were used to measure roughness. This resulted in a set of 1,629 images from 300 papers covering a range of scales, samples, techniques and journal impact factors (the full list of DOIs is in Supplementary material). Only image data were used because the extraction of profiles from 1D plots was found unreliable and prone to odd artefacts. Even reproductions of images in journals could be quite far from topographical AFM data; a description of how the results were obtained from the images in order to miminize the systematic errors is given in the Methods section. We augmented the extracted images by our own AFM data acquired for roughness measurements over the course of several years—300 topographical images in total. This included measurements of roughness of many different materials from the areas of optics, solar cells, microelectronics, materials science and surface metrology. The results are plotted in Fig.3. Each point in Fig.3a represents one image—distinguishing values extracted from 2D views, 3D views and our own topographical AFM data. Insets show the overall probability density of Table 1. Journals used for the ‘in the wild’ study. Columns 2D, 3D and total summarize how many images were extracted and processed. Journal 2D 3D Total Papers ACS Nano 5 4 9 5 Applied Surface Science 242 132 374 78 Electrochimica Acta 28 23 51 14 International Journal of Advanced Manufacturing Technology 17 64 81 18 Materials Research Express 89 86 175 41 Nanotechnology 42 13 55 14 Surface and Interface Analysis 59 51 110 25 Surface Topography: Metrology and Properties 79 38 117 17 Thin Solid Films 263 1 264 64 Ultramicroscopy 4 0 4 1 Wear 39 50 89 23
5 Vol.:(0123456789) Scientific RepoRtS | (2020) 10:15294 | https://doi.org/10.1038/s41598-020-72171-8 www.nature.com/scientificreports/ log(L/T) , together with the log-normal distribution matching best the data, and the empirical distribution as a percentile plot. The first observation is that the typical L/T=1/α range remains more or less the same over the several orders of magnitude of scale and different techniques. This can be partially explained by analogous measurement speed constraints in scanning techniques. The typical L/T ratio does not increase noticeably in the region where optical techniques become viable (see Fig.3a). Nevertheless, a slight increase can be seen in the plot by L scale (Fig.3c), with Pearson coefficient of 0.13 for log L vs. log(L/T) . Hence, the uniformity over scales probably also follows from experimenters choosing the measurement area to what ‘feels right’—and this factor is scale invariant. In the AFM domain, there is a strong tendency to make scans with nice rounded dimensions (1, 2, 5 or 10 micrometres), whereas at larger scales this is less noticeable. A small random scatter was added to L in the plot to improve visualization of the high-density clusters. An inset in Fig.3a shows the overall distribution of L/T in logarithmic scale. The empirical distribution is likely distorted at both ends. Ratios around 5 and smaller are difficult to observe. The scanned areas become too small to carry information about true T, which is then underestimated based on spatial frequencies actually represented in the image. Conversely, high ratios require high pixel resolutions. The quality of reproduction in the journals could thus lower estimated ratios if they lie in the hundreds range. Anyway, the data can be modelled by a wide log-normal distribution centred around L/T≈43 , with ratios below 20 (and over 100) still quite common. Finally, we remark that the goal of this study was to get an overview, not to criticize published works. No correlation can be seen in Fig.3b between journal impact factor and L/T (disregarding one outlier which had too few relevant papers). There are valid reasons why we measure with small L/T (large α ). Experimental constraints can prevent combination of measurements at different scales, which is otherwise a sound strategy how to combat frequency cut-offs39,40. One common reason is also consistency when studying roughness whose properties vary with external factors41,42. In this case usually L remains constant, but T varies. The variation can be dramatic, for instance when studying a dynamic roughening process22–25,43, resulting inevitably in both large and small mm Figure3. Ratio L/T in real-world roughness measurements: (a) overview of scan area size (along the fast axis) and correlation length of the surface; (b) ratio L/T as a function of journal impact factor (with our data added at 1.0); (c) ratio L/T as a function of scan line length L. Points and bars in (b) and (c) represent medians and upper and lower quartiles.
6 Vol:.(1234567890) Scientific RepoRtS | (2020) 10:15294 | https://doi.org/10.1038/s41598-020-72171-8 www.nature.com/scientificreports/ L/T (note that in Ref.43 the bias was corrected). Yet this is also one of the cases where the bias can be the most problematic as it changes during the roughening, skewing the measured exponents. As we will see, choosing L/T so large that the bias is consistently negligible is a demanding measurement strategy. The required L tends to be exceedingly long. Instead, we should choose a reasonable L/T, then estimate and deal with the bias. How data processing skews roughness results Numerous algorithms are available for the processing of SPM data after measurement and a large class of them deals with surface levelling in some sense. As mentioned in “Introduction”, there are several reasons why data coming from a scanning technique need to be levelled: • Instruments are typically constructed to measure flat samples. However, this does not mean that the z axis of the instrument is exactly perpendicular to the sample surface. In most systems this misalignment is less than 5◦ 44. If the z axis is levelled manually by users much larger misalignment can be easily introduced. Even when the z-axis direction is preserved by instrument construction, a misalignment of about 0.1 ◦ , as practically observed e.g. for Dimension Icon by Bruker, still requires a correction. Otherwise the tilt would increase roughness measured on scan area of 100 μm by 50nm. • Some scanning instruments, typically AFMs, are relatively slow. The presence of thermal and mechanical drifts in the z axis, which is typically by construction the least symmetric one, leads to an apparent sample tilt. The drift rates of the best instruments are in nanometres per hour. On the other hand, in non-optimal conditions or devices not optimized for drift they can easily be the in order of tens of nanometres per minute45. Fine scans of roughness on large areas can take tens of minutes, so the effect is not negligible on any device. Moreover, the drift tends to be non-linear in time, requiring a higher order levelling. • Low frequency noise can lead to shifts between individual scan lines that are used to construct the image; a similar effect can also be attributed to random drift in the z axis44. This can be exacerbated by the use of a mechanical contact in the microscope feedback loop, e.g. in AFM or contact profilometry. We can then observe the impact of scanning direction, which includes friction and/or elastic probe response. The effect is not deeply studied and even when the data come from the same scanning direction and the imaging conditions are excellent, they often do not match perfectly. • Some scanning systems exhibit inherent non-flat backgrounds and can produce bow or other background shapes even for a flat sample. The background shape can be evaluated and removed from the measurement. This again means fitting and levelling (usually by polynomials), unless a complex analysis of the scanner properties is done46. • Further levelling is needed if the sample itself is not flat and its form has to be removed prior to analysis. This is common when surface roughness is measured on fibres, rods or particles. The choice of a particular data preprocessing algorithm is usually on the instrument user. This can lead to significant influence of the human factor and affect the results by errors in the order of several percent47. The variability of pre-processing methods used in practice is also why we are addressing the different types of levelling and estimate for them the roughness bias. Moreover, depending on the software and settings, plane levelling or row alignment (flattening) can be applied automatically during file opening or roughness evaluation, possibly even unnoticed by the user. This does not help understanding of the data processing and makes more difficult to take into account the effect of preprocessing on degrees of freedom or removal of spatial frequencies from the images. It is also important to note that the choice of data processing steps could be optimized for the particular statistical properties acquisition, which is usually not done. It is common to process AFM image data row by row because roughness properties can often be determined more reliably in the direction of the fast scanning axis22,29,35,48. This means that levelling is applied to individual image rows instead of (or in addition to) the entire image. The results for individual rows then may be summed or averaged. The result for each row is biased as if we processed 1D data, not 2D. The same holds if any row-wise preprocessing is applied, such as removal of mean value from each individual row. It is, therefore, quite rare that the bias corresponds to the pure 2D processing case, even for image data. For the elementary case of mean value subtraction from correlated data, the resulting bias is well known and noted in classic signal processing textbooks22,33,34,49. If the square of root mean square roughness σ or Rq is estimated from heights z in a finite region [0,L] as follows where the mean value is estimated then its expected value is (5) ˆσ 2 = 1 LL 0 [ z(x) −ˆ µ ] 2 dx , (6) ˆµ= 1 LL 0 z(x) dx , (7) E[ˆ σ2 ]= σ2 − 2 1 0 (1 − t)G(Lt) dt ,
7 Vol.:(0123456789) Scientific RepoRtS | (2020) 10:15294 | https://doi.org/10.1038/s41598-020-72171-8 www.nature.com/scientificreports/ where the second term gives β by comparing with the definition(4). Symbol G denotes the autocorrelation function (ACF) of the signal (t is a scaled unitless distance). This result can be extended to images and higherdimensional data. For common ACF types we obtain22,36 where D denotes the dimension (1 for profiles, 2 for images, etc.). Numerical factor c is of the order of unity and depends on the ACF type. In other words, the relative systematic error of ˆσ2 due to finite-area bias behaves approximately as α and α2 for 1D and 2D data, respectively. The systematic error does not depend directly on the number of measured values N (provided it is sufficiently large). Increasing N without making the measurement area larger is of no help and Bessel’s correction (replacing 1/N with 1/(N−1) when estimating variance) is ineffective. For correlated data the correction factor is not 1−1/N , but approximately 1−cαD . Polynomiallevelling. The most common background removal method in roughness measurement is polynomial levelling, i.e. subtraction of polynomials, which includes the subtraction of a mean plane. It is a linear method—the polynomials are fitted to the data using linear least squares. We note that not all background removal methods are linear—for instance the subtraction of median or a fitted spherical surface is non-linear, but many common ones are. The procedure for estimation of bias originating from mean value subtraction can be extended also to these cases. Expression (7) then becomes Function C(t), which replaced 1−t in (7), characterizes the autocorrelations in the linear space spanned by the set of basis fitting functions36—for instance powers in the case of polynomial background or sines and cosines in frequency-space filtering. To obtain the relative bias β for one-dimensional polynomial background we need to specify the form of the ACF. Two common models are Gaussian and exponential22,29 Although closed-form expressions for β exists in the case of polynomial levelling36, usually the leading-order approximations for small α are sufficient. In one dimension these are where j denotes the degree of the polynomial. The systematic error of ˆσ2 corresponding to these two ACF types is plotted in Fig.4 as a function of scan line length. Although a careful comparison of bias plots in Fig.4 reveals some differences, the curves for Gaussian and exponential ACF are remarkably similar. The leading terms in (11) differ by factor √π/2≈0.886 , which is relatively close to unity. However, this ratio applies when both corrections are small. The curves are actually even closer for larger α thanks to the higher order terms. For both ACFs the bias is quite high—at least a few percent even for L/T in the range of hundreds. When we consider the median ratio L/T≈45 found in the wild, the bias is approximately 8% for tilt removal. It becomes 25% for rather ordinary bow removal with L/T=20 . Finding more extreme yet still realistic examples is not difficult, for instance 3rd order polynomial removal with L/T=15 , for which the bias becomes approximately 40%. For reference, the plots also include standard deviations of ˆσ2 . The variance of ˆσ2 exhibits the same general behaviour as the bias, i.e. it is proportional to αD . Leading-order asymptotic expressions are known22. Curves in Fig.4 were obtained numerically in order to illustrate the full non-linear behaviour. Nevertheless, they more or less all coincide for small α , matching the asymptotic expressions. A dependence on the polynomial degree only starts to appear for large values. Although the effect of levelling on statistical parameters can be dramatic, in a visual inspection of topographical images it is barely noticeable, as illustrated in Fig.5a. The single topographical image (artificially generated with Gaussian ACF and α=0.025 ) in fact consists of five blocks. In each block the rows were levelled differently as denoted. It is possible to discern the slight deformation present mainly close to image boundaries, in particular for the fifth degree polynomial levelling. However, it requires a careful inspection; even if the removed background is quite different for individual blocks, as seen in Fig.5b (which has a false colour range comparable to Fig.5a). On the other hand, plots of one-dimensional ACF and spectral density are clearly affected as illustrated in Fig.5c,d. We can see the region of negative values developing around the maximum in ACF—while higher degree levelling erases larger and larger portions of the spectral density at low frequencies. Figure5 also helps with intuitive understanding why the bias is proportional to α=T/L instead of 1/N. Spectral density is substantially non-zero only in a region of width approximately 1/(αL) around the zero frequency. Furthermore, it usually attains the largest values at the lowest frequencies. Therefore, even if a single spatial frequency is removed (or suppressed), it erases a disproportionally large part of the roughness. (8) β∼cαD, (9) E[ˆ σ2 ]= σ2 − 2D 1 0 C(t)G(tL) dt . (10) GGauss (x) = σ 2 exp − x 2 /T 2 and G exp (x) = σ 2 exp ( −| x | /T) . (11) βGauss j ∼ j + 1 α √ π − j + 1 α and β exp j∼ 2 j + 1 α 1 − j + 1 α ,
8 Vol:.(1234567890) Scientific RepoRtS | (2020) 10:15294 | https://doi.org/10.1038/s41598-020-72171-8 www.nature.com/scientificreports/ Otherdatalevellingmethods. The approach can be applied to other background removal procedures. An important case is two-dimensional polynomial levelling. For Gaussian and exponential ACFs and total degree of the polynomial j, the leading terms for small α are36 The bias and standard deviation of ˆσ2 are plotted in Fig.6 for these two basic ACF types (including higher order terms). As in the 1D case, the results for exponential ACF are relatively similar, although the factor between the leading terms is now 1/2 and the curve shapes differ more noticeably. (12) β Gauss j ∼ π j+1 j+2 2 α2and βexp j ∼ π j + 1 j + 2 α2 . Figure4. Numerical results for polynomial background removal from profiles with Gaussian and exponential ACFs. Upper: Bias, plotted as measured ˆσ2 divided by true σ2 for several polynomial degrees. Lower: Standard deviation of measured ˆσ2 (for one evaluation length), relative to the value. Figure5. The effect of polynomial levelling of scan lines on topographical images: (a) surface topography after the application of levelling; (b) removed line polynomial background (blue and red indicate negative and positive values, respectively); (c) one-dimensional row-wise ACF; (d) spectral density of spatial frequencies.
9 Vol.:(0123456789) Scientific RepoRtS | (2020) 10:15294 | https://doi.org/10.1038/s41598-020-72171-8 www.nature.com/scientificreports/ Since the leading term is proportional to α2 , the bias is much smaller than for profiles, in particular for small α . When comparing Figs.4 and6, notice the different ranges of α which are [0.002,0.2] and [0.01,0.25], respectively. Even though the curves become steeper for 2D background removal when α is large, the bias remains small compared to 1D for all reasonable image dimensions. Therefore, when both 1D and 2D preprocessing is applied to image data, the bias caused by 2D preprocessing is usually negligible. More so, since the 1D levelling already removes some degrees of freedom the 2D levelling would. Figures4 and6 also include results for median levelling, i.e. subtraction of the median. Median subtraction is available in some AFM software50 as an alternative to mean value subtraction because median is less sensitive to outliers. Median subtraction is a non-linear operation and thus outside the framework for background subtraction by linear fitting. Therefore, the results in Figs.4 and6 were obtained numerically—and they show a behaviour very similar to mean value subtraction. Although the two operations differ markedly with respect to outliers, from the bias standpoint they both essentially remove one degree of freedom. As the final levelling method we consider non-linear form removal by subtracting spherical and cylindrical surfaces fitted to the data. Removal of a base spherical or cylindrical shape is a common levelling operation. Sphere or cylinder fitting is non-linear, whether implemented by ordinary non-linear least squares by means of Levenberg–Marquardt algorithm51, or total least squares, i.e. using orthogonal regression52. However, in a small region of parameter space close to the optimum, the problem can be linearized. In principle, this allows constructing a function C(t) characterizing the corresponding linear function subspace and using it in(9) to estimate the bias β . Or, instead, we can just imagine carrying out all these tedious steps. If the non-linear model has p parameters, the linearized version will also have p parameters. If the form is smooth its subtraction removes the lowest spatial frequencies similarly to polynomial levelling. We can thus expect that the non-linear background removal will behave similarly to linear background removal with the same number of free parameters. The bias will be likely somewhat smaller because the shape is constrained in a manner making it less effective at removal of low spatial frequencies. The upshot is that from the bias standpoint, the subtraction of the base shape should be similar to the subtraction of a polynomial background with a matching number of free parameters. Both spherical and cylindrical surfaces are described by four parameters. For spheres we can choose radius and three coordinates of the centre—and radius, orientation, height and one horizontal coordinate for cylinders. Low-order 2D polynomials with limited total degree have 1, 3, 6, 10, etc. coefficients (triangular numbers). So there is no direct match. However, expressions such as (11) and(12) suggest approximately substituting as an effective polynomial degree j in 1D and 2D, where p is the number of free parameters. The 2D effective degree j2D is not necessarily an integer. However, the formulae (12) do not require integralj. (13) j 1D = p − 1 and j 2D = 8p + 1 − 3 / 2, Figure6. Numerical results for 2D polynomial background removal from image with Gaussian and exponential ACFs. Upper: Bias, plotted as measured ˆσ2 divided by true σ2 for several polynomial degrees. Lower: Standard deviation of measured ˆσ2 (for one image), relative to the value.