Analysis Using the Least-Square Fitting

Within DigitalMicrograph® software, the Least-Square Fitting palette provides an interactive way to fit mathematical models into spectral data. You can optimize the model by adjusting model parameters to minimize the deviation from the data in a least-square sense.

To access the Lead-Square Fitting palette, first expand the Data Fit technique. The palette becomes active when suitable spectral data is in the frontmost location on the current workspace. The tool offers two distinct fitting modes: multiple linear least square (MLLS) for reference data and non-linear least square (NLLS) to address model functions such as Gaussian peaks. The buttons toggle the tool's mode at the top of the palette.

NLLS fitting

The non-linear least-square fitting mode is useful for fitting a parameterized model function to the data. During this process, the fitting is performed iteratively by adjusting the parameter values from a starting estimate while minimizing the residual signal's square sum; fitting convergence is not guaranteed. The mode provides different model types to choose from.

Least-Square Fitting palette

The palette contains the following elements:

  • Mode toggle (MLLS/NLLS) – Use this button to toggle between the two modes of fitting
  • Setup – Opens the Least-Square Fitting Options dialog 
  • 1D Fit – When active (blue), enables live-fitting of the spectrum in the frontmost location (only available for spectra)
  • Map – Performs the fit sequentially overall spectra of a spectrum image, producing maps of the fit parameters (only available for spectrum images)
  • Add – Adds a new default model to the fit model list; simultaneously press the ALT key to add a different type item from the Model Type Selection dialog
  • Remove – Removes the current model selection from the list
  • Clear – Removes all model items from the list
  • Rename – Renames the current model selection, or you can click on a list-entry while pressing the ALT button
  • Resort – Shifts the current model selection up or down in the list, or you can click on a list-entry while selecting the CTRL or CTRL + SHIFT buttons
  • Open – Opens a previously saved list of model items
  • Save – Saves the current list of model items
  • Model list – List all the model items in the current model
    • Names in the model list need to be unique; by default, the item type uses a generic name
    • Click an item to select it
    • Click the blue triangle left of the item name to open or close the fit-parameter display of that item
    • Each item type has a different set of parameters
    • The small lock icon indicates whether the parameter is currently at a fixed value during fitting. Clicking the lock-icon toggles its state. You can manually adjust a locked parameter value by clicking on the number field and entering the value.

Single Spectrum

The following describes a typical workflow for performing an NLLS fit on a single spectrum using the default options. To learn about different options, see the NLLS-Fit Map Options.

  1. Select a suitable spectrum display and bring it to the frontmost position in the workspace. Note that if the frontmost data is not suitable, the buttons in the palette will be disabled.

  2. Draw a region of interest (ROI) to designate the area you want to fit.

  1. With the data in the frontmost position and the Least-Square Fitting panel in NLLS mode, click the Add model button.
    This will add the selected default item to the palette model list. The fit range will be taken from the previously made range ROI. If no such ROI is found, the range The feature with the highest intensity (for peak models) or the center of the data (for other models) will be automatically chosen.
    Note that you can add an item of any type by pressing the Add model button while pressing the ALT key. This will prompt a model-type selection dialog from which to choose.

  2. Adding an item to an empty list will automatically enable the live-fit. The data's line plot display will show additional slices presenting the fit results. You can customize the display in the Setup dialog. In addition, you can manually enable or disable the live-fit by pressing the 1D Fit button.

  1. Optional: You can adjust the fitting range by resizing the range ROI labeled by the item's name. The fit will automatically recompute.

  2. Optional: Resort or rename references in the list. The display will automatically update.

  3. Optional: Observe the fit-parameter results by expanding the reference-entries in the model list.

  4. Click the 1D Fit button to output the full fit-results again while pressing the ALT key. The results will appear in the Output window.

  1. Optional: Save the model setup for re-applying to different situations using the Save model button.

Spectrum Image

Non-linear least squares (NLLS) fitting involves fitting models to spectral features to quantify the spectral peak properties. Set up this fitting on the picker spectrum extracted from the spectrum image (SI) using the following workflow:

  1. Select a suitable SI and bring it to the frontmost position in the workspace. Note that if the frontmost data is not suitable, the buttons in the palette will be disabled.

  2. Use the spectrum picker tool to extract a spectrum from the SI and then select the spectrum.

  3. Follow the steps outlined in the Single Spectrum section.

  4. Optional: Move the picker marker to investigate different areas. The live-fit will automatically recompute and adjust the fit display. This can be very useful to locate sample areas where the model does not sufficiently describe the data.

  5. Fit the references to the parent SI data by pressing the Map button.

  6. Choose the fit results you want to generate. See NLLS-Fit Map Options (Output) for details.

  7. Choose how to display the fit results. See NLLS-Fit Map Options (Display) for details.

  8. Press OK to start the fitting procedure. The system will display the progress of the fitting routine. You can stop the fitting at any time using the Abort button.

Note: The map-fit is performed on single-position spectra, which may have significantly lower SNR than an integrated picker-spectrum. In particular, in low-intensity or high-noise data, checking fitting quality in the live-fit may be advisable by shrinking the picker region of interest to a single pixel.

NLLS Models

Below are the most common models that researchers use to analyze cathodoluminescence spectra.

The Least-Square Fitting tool supports multiple models for NLLS fitting that can be combined into a single fit. This section describes the various models in detail.

Gaussian

Peak-function is characterized by a maximum position and intensity as well as the peak-width measured as the full width at half-maximum.

Non-Negative Gaussian – Limits the amplitude to positive values.

Lorentzian

Peak-function characterized by a maximum position and intensity and the peak- width measured as the full width at half-maximum.

NLLS Setup Palette

Least-Square Fit Setup

NLLS Options

Fit multiple items – Choose the fit behavior when multiple items are in the model list. This is useful for various applications since it profoundly impacts the results and different modes.

  • Combined – Uses all items together as a single parameterized model that is optimized simultaneously over all specified fit-ranges
  • Sequential – Fits each item on the list one after the other

The first item is fitted to the original data. Each additional item is fitted to the residual data of the previous fitting. The user may choose to optimize each fit over an individual or all specified fit-ranges.

  • Independent – Each item is independently fit, and its parameters are optimized only over its fit-range

Defaults – Click the ... button to set the default model

Live display – Defines what options are shown as an overlay during live-fitting. These options are best explored by simultaneously observing a running live-fit.

  • Total fit – Shows a slice that constitutes the sum of all references weighted by its fit coefficients
  • Residual (misfit) signal – Displays a slice that represents the difference of the total fit (see above) and the actual data
  • Individual fits  – Presents a slice for each reference
    • Colorize individually – Assigns a different color to each slice and is only available when you select the Individual fits checkbox 

NLLS-Fit Map Options

After pressing the NLLS Fitting button, the map options are automatically shown at the start of a non-linear least squares (NLLS) map computation. 

Output

Fit parameter output

  • Fit parameter values – Creates a map for each fit-parameter
    • Show constant parameter values – When the checkbox is not selected, any fit-parameter that is locked to a fixed value will not produce a map; therefore, the map would be a constant value for all pixels

Fit model output

  • Total fit model – Produces an additional spectrum image (SI) dataset that shows the entire fit model – The sum of all individual models
  • Individual fit models – Creates additional SI data sets for each model item; the option is not available if there is only one item in the list

Additional output

  • Reduced chi-squared – Generates additional maps that show the reduced chi-squared value (the root of the squared sum overall differences between model and data)
  • Residual signal – Produces an additional SI dataset that displays the residual signal (the difference between model and data)

Display

The display options depend on the type of spectrum image and the number of model items in the list. For line scan data, maps become profiles.

  • Show on new Workspace – Shows the mapping results on a separate workspace
    • When not checked, arranges the mapping results on the largest free area of the current workspace
  • Colorize maps – Colorizes the fit-parameter maps using black-to-color gradients (the same color is used either for all parameters of each model item or all parameters of the same name)
  • Add map labels – Adds label annotations to all maps – Use the color-picker button to specify the color of the annotation
  • Add intensity scale – Includes an intensity scale annotation on all maps 
  • Stack profiles – For line scan data, maps become profiles

When checked, this option compiles all profile data into a single line-plot display showing multiple slices. All parameters of each model item or the same name are stacked into a single display.

Tips and Tricks

Analyzing luminescence spectra

Researchers use many luminescence techniques as qualitative, exploratory tools and frequently analyze data variations from different laboratories. However, it is essential to distinguish between differences that arise from sample variations or treatments and signal collection and processing artifacts. Below are the steps we recommend following when analyzing and reporting spectral data.

  1. Perform measurements under known scanning electron microscope conditions, e.g., electron dose and power density.

  2. Collect the raw data (in wavelength, I(λ)dλ versus λ) and verify that the data is repeatable.

  3. Process the data.

    1. Removal of dark current (if any).

    2. Correct for any non-linearities in the efficiency of the detection system.

    3. Convert spectra from wavelength (nm) dispersive units to energy (eV).

    4. Use linear least-squares fitting to deconvolve spectral features.

  4. Publish the data and ensure that the factors above are included.

Unfortunately, not all researchers follow these steps, and a range of systematic errors make their way into the published literature. The following section explains why each step is important and the potential issues you may encounter.

Power density

It is important to characterize the power density in many specimens since most luminescence processes exhibit a strong variation in the intensity of cathodoluminescence (CL) emission with electron beam current, size of interaction volume, and scanning area. Failure to investigate or account for this effect can lead to drawing incorrect conclusions. However, this effect is useful for investigating the nature of a luminescence signal and revealing details of the recombination mechanism by plotting the CL intensity versus power density.

The power density versus emission intensity can be written as follows:\(Intensity_{CL} ∝Dose^m\)

Plotting the intensity versus dose relationship using \(log[Intensity_{CL}]∝m.log[Dose]\) allows m to be determined.

When m ≤1, the mechanism is via deep levels (impurities) or free-bound and donor-acceptor pairs; when m ≥1, it corresponds to near band edge emission, and for excitonic processes, 1≥ m ≤2 with m = 1 for free exciton and m = 1.5 for bound excitons.

Increasing electron dose (power density) can also lead to a peak shift in materials exhibiting a piezoelectric field, e.g., nitride semiconductors with the wurtzite crystal structure.

Verify the data is repeatable

It is often assumed that capturing luminescence signal(s) is a passive process; in some cases, this is correct. However, the act of sample stimulation by an electron beam can modify the intensity and emission spectra. For example, radiation damage may occur to the sample and track with changes to the electron microscope's beam exposure. Several noticeable examples include:

  • Quenching of emission from covalently bonded molecules
  • Creation of new point defects when using electrons with energies greater than the knock-on damage threshold—particularly important in the analysis of semiconductors in the TEM
  • Rearrangements into new defect complexes and/or charges that are transferred between sites

These effects can modify the processes' intensity, spectrum, and associated excited-state lifetimes. Therefore, it is prudent to minimize the electron dose and acquire the spectra with minimal beam-induced effects. When studying new materials, it is often valuable to investigate these effects before drawing conclusions.

Luminescence spectroscopy also offers insight into these dynamic processes and techniques, which may include simultaneous excitation methods to follow transient events.

Process the data

A raw spectrum is typically captured and plotted as a 1D plot displaying intensity versus wavelength. However, accurate analysis and processing of the data require several steps and careful consideration of any system contributions to the data.

Removal of the dark current

Most luminescence detectors (e.g., CCDs and photomultiplier tubes (PMTs)) exhibit a dark current that needs to be removed to prevent errors in subsequent processing. The dark current is a relatively small electric current that flows through photosensitive devices even when no photons are entering them. Dark (frame) subtraction can remove an estimate of the mean fixed pattern, but sometimes, this must be performed as a post-processing step.

Correct for change(s) in the detection system

Many detection systems are available to measure luminescence spectra, including commercially supplied detectors and home-built setups. These detectors may incorporate various elements in both cases, including optical components (mirrors, lenses, spectrometers) and detectors (PMTs and cameras). Individual components' performance (reflectivity, transmission, or sensitivity)will vary by wavelength (and polarization). These components may be combined within a system to deliver a unique response by wavelength (and polarization) that can vary by several orders of magnitude across the wavelength range. This correction may be essential when comparing a measured spectrum to the literature or the intensity ratio of peaks in a spectrum. Be mindful that the literature does not always clarify whether raw or corrected data is being presented.

With modern equipment, it is often possible to correct the system response. Within DigitalMicrograph® software, right-click the mouse on a CL spectrum to access this correction.

Below are key components of a standard luminescence system and where you typically observe significant changes in performance:

Focusing optics

Many detection systems utilize focusing optics to couple the collected light into the spectrograph. However, the transmission lenses or mirror reflection efficiencies can vary significantly with wavelength. For example, many mirror components use protected aluminum that has a reflectivity of ~96% at visible wavelengths but falls to <70% at 200 nm. In transmission lenses, one must also consider the effect of chromatic aberration—the change in focal length of an optical component by wavelength—which can reduce the light coupling efficiency by a factor of >1000 compared to visible wavelengths.

Diffraction gratings

Diffraction gratings form the dispersive element of a spectrometer or spectrograph, producing a signal on a linear wavelength axis. The ruling density (also known as groove- or line-density) determines the dispersion (different levels of spectral resolution) and the blaze wavelength (λBlaze), the wavelength at which it operates most efficiently. The response efficiency usually falls to less than 10 – 20% of the peak value by ∼½λBlaze and ∼2λBlaze; this defines the useful spectral range of the grating. Careful selection of the appropriate diffraction grating blaze for a given experiment is needed, and when covering a significant wavelength range, the change in response must be considered.

Diffraction gratings also exhibit higher-order diffraction (dsinq = where q is the diffraction angle and n an integer). When a spectrum covers a wide spectral range, you may observe second-order peaks unless order sorting blocking filters are used. For example, you may use a grating blazed at 300 nm to capture a spectrum spanning 200 – 700 nm, and, at a wavelength setting of the spectrometer of 600 nm, one will also detect the second-order light of 300 nm and the third-order light of 200 nm.

Detectors

A CL system may employ several detectors, including PMTs, photodiodes, cameras (CCD or CMOS), and linear diode arrays. You can record a change in sensitivity across the wavelength range that each detector type exhibits during a CL experiment. For instance, when you use a scientific-grade camera with a nominal operating range of 200 – 1100 nm, the efficiency fluctuates by almost two orders of magnitude. There also exists a significant variation within each type of detector, and it may change with age. These limitations must be recognized.

We recommend that published data clearly states whether the correction for the total system response is applied. However, please note that publications do not always include this information.

In contrast, it is unnecessary to apply this correction during some experiments, e.g., when performing initial analyses or analyzing a very limited wavelength range. However, for peaks with a broad full width at half maximum, this becomes almost essential as the system response often leads to an apparent change between the peak position in raw and corrected data.

Convert spectra from dispersive units of wavelength (nm) to energy (eV)

The intrinsic shapes of luminescence emission bands are symmetrical peaks (often Lorentzian- or Gaussian-shaped) when displayed in energy (E, eV) as the unit of dispersion. This shape is due to the broadening of the electronic energy levels, which drive the electron transitions that generate photon emissions. Most hardware for luminescence spectrum acquisition records the data dispersed by wavelength (λ, nm) using a fixed wavelength bandwidth (dλ), e.g., a spectrum is plotted as (I(λ)dλ versus λ). However, due to the inverse relationship of energy and wavelength, dλ versus dE is not a constant, and therefore, spectral features displayed in wavelength as the dispersive units are not symmetrical. This leads to several possible issues:

  • Deconvolution using the non-linear least squares (NLLS) fitting has no physical meaning in spectra with wavelength as the units of dispersion
  • An apparent difference in peak positions of wavelength and energy data
  • When a spectrum consists of more than one spectral feature, the relative intensity of the peaks will alter

The reason for these difficulties is that in the transformation from wavelength(λ) signals (I(λ)dλ versus λ) into the energy plot (I(E)dE versus E), the transformation of the wavelength axis into terms of energy is obvious (i.e. using \(E ∝ hc/λ\)). However, for the intensity axis, the transformation requires an intensity correction from wavelength to the energy of (I(E) dE) and a change from the fixed wavelength bandwidth to a fixed energy bandwidth, related by dE = -hc/λ2dλ. Particularly for broader luminescence features, the (1/λ2) term significantly distorts the curve shapes.

Deconvolve spectral features 

Please refer to the NLLS Models section.

Spectral calibration

The central wavelength of a peak in a spectrum is often reported with high precision (two decimal places or more), but the error in this measurement is rarely stated. In many systems with a manual grating selection, the accuracy of spectral calibration may be as much as ±0.2 nm and the precision ±2 nm unless a spectral calibration is performed immediately before measurement.

Thus, comparing measured data to that in the literature is important. Fortunately, in many CL experiments that occur at room temperature, the wavelength shift is often more important than the accuracy of a single measurement.

Summary

The section highlights the need to process luminescence spectra meaningfully, calibrate accurately, and recognize that this is done to varying degrees in the literature. This is true for all luminescence methods, regardless of the excitation source. The intention here is to provide sufficient information so a researcher may understand which methods are important when drawing conclusions from an experimental result.