SpectraQuant Filtering: Difference between revisions
imported>Jeremy |
imported>Jeremy |
||
Line 52: | Line 52: | ||
==Regions/Baselines== | ==Regions/Baselines== | ||
By default, all spectral regions marked as "included" in the X-block data will be used in the calibration model. However, the Regions/Baselines option of the CPSA panel allows selection of specific spectral regions to include (and, conversely, to discard other regions). In addition, the selected regions can also be detrended (i.e. baselined across the entire selected region). | |||
To select one or more specific sub-regions, click the '''Edit''' button next to the Regions/Baselines option on the CPSA panel. This will bring up the Regions and Baselines GUI. Initially, no regions will be selected and you will see the mean of all the calibration spectra and an empty table at the bottom of the GUI (see figure below.) | |||
[[Image:Cpsa_regions_empty.png]] | |||
To begin selecting regions, either enter the starting and ending frequencies in an empty line in the table at the bottom of the GUI or click the [+] toolbar button and click-and-drag a new region on the interface. In the figure below, the user has manually entered a starting and ending value creating the first region (shown as shaded blue region in the plot.) | |||
[[Image:Cpsa_regions_first.png]] | |||
In addition to specifying the included spectral range, the table also allows specifying the order of polynomial to use as the baseline. Note that although the terminology here is "baseline", the calculation is, in fact, a "detrend" in which the polynomial is fit to the entire range of windowed intensities. | |||
In the example above, the specified window will be baselined using a 2nd order polynomial. | |||
To remove a region, either select the corresponding row in the table at the bottom of the GUI and press the [-] toolbar button, or right-click the region to delete and select '''Remove Region''' from the menu. | |||
[[Image:Cpsa_regions_delete.png]] | |||
==Thickness Correction== | ==Thickness Correction== |
Revision as of 16:03, 27 August 2009
CPSA is a preprocessing method used to remove interferences from data prior to building a regression model. The CPSA filter includes one or more of the following corrections:
- multivariate filtering of components defined by a set of clutter or "correction" spectra.
- detrending (aka baselining) of the input data in windows of variables.
- an integrated thickness/pathlength correction.
CPSA Panel
The CPSA tools are accessed through the CPSA panel of Analysis (click on the "CPSA Settings" button just below the top status panel). The CPSA settings panel is only available when using the PCR or PLS Analysis methods and only enabled when calibration data has already been loaded. The default settings for the panel are shown below.
Four different options categories are available on the panel:
- Correction Spectra - Allows selecting correction spectra which describe background components which should be removed from the spectra prior to analysis.
- Regions/Baselines - Defines regions of the spectra and the baseline order to apply to each region.
- Thickness Correction - Determines whether or not to use thickness/pathlength correction (requires thickness/pathlength reference in calibration data)
- Force PC80 Compatible Preprocessing - Determines whether to enforce strict preprocessing rules on the created model.
Correction Spectra
The list on the left of this option shows the file(s) which have been selected by the user as correction spectra (aka background or clutter spectra) which should be removed from all calibration and test spectra. To perform the filter, the correction spectra are first decomposed using a Principal Component Analysis (PCA) model containing a user-specified number of principal components or "factors". The resulting factors are then used as the filter.
Adding Correction Spectra
To add correction spectra to the filter, click on the Add button and select the file type to read (e.g. "Hamilton Sundstrand ASF files") and click OK.
Browse to the folder containing the file(s) to load, select one or more files (using shift-click or control-click to select multiple files), and click "Open".
The files will be loaded and added to the list. You will be advised if the spectral axis of the loaded files appears to be incompatible with the currently loaded x-block data. Any incompatible spectra will not be loaded.
Removing Correction Spectra
Any file that has been loaded as a correction spectrum can be removed from the filter by simply clicking on the filename in the list on the left, and then clicking on the Remove button. The file will be discarded. Note that after discarding any spectra from the filter, any currently-loaded model will be cleared and have to be recalculated because the filter has now changed and the model is no longer current.
Choosing Number of Factors
The CPSA filter calculates a PCA model from the correction spectra and keeps some number of factors. The edit box on the right of the control specifies the number of factors to use in the filter. The higher the number, the more degrees of freedom the filter will remove (and the increased chance of removing useful signal). In general, a lower number of factors is recommended unless the filter is not performing sufficiently for a given application.
Viewing the Correction Spectra
The selected correction spectra can be viewed in a plot by clicking the Plot button. The spectra selected on the left will be displayed, but all loaded correction spectra can be viewed using the Plot Controls which will appear along with the plot of the spectra. Regions of these spectra can be excluded using the Select button and Edit/Exclude or Include menu options in the Plot Controls.
Regions/Baselines
By default, all spectral regions marked as "included" in the X-block data will be used in the calibration model. However, the Regions/Baselines option of the CPSA panel allows selection of specific spectral regions to include (and, conversely, to discard other regions). In addition, the selected regions can also be detrended (i.e. baselined across the entire selected region).
To select one or more specific sub-regions, click the Edit button next to the Regions/Baselines option on the CPSA panel. This will bring up the Regions and Baselines GUI. Initially, no regions will be selected and you will see the mean of all the calibration spectra and an empty table at the bottom of the GUI (see figure below.)
To begin selecting regions, either enter the starting and ending frequencies in an empty line in the table at the bottom of the GUI or click the [+] toolbar button and click-and-drag a new region on the interface. In the figure below, the user has manually entered a starting and ending value creating the first region (shown as shaded blue region in the plot.)
In addition to specifying the included spectral range, the table also allows specifying the order of polynomial to use as the baseline. Note that although the terminology here is "baseline", the calculation is, in fact, a "detrend" in which the polynomial is fit to the entire range of windowed intensities.
In the example above, the specified window will be baselined using a 2nd order polynomial.
To remove a region, either select the corresponding row in the table at the bottom of the GUI and press the [-] toolbar button, or right-click the region to delete and select Remove Region from the menu.
Thickness Correction
The thickness / pathlength correction option allows automatic detection and correction of pathlength errors. To make this correction, the calibration data must be loaded with pathlength values in the sample axisscale of the X-block (note that the name of the axisscale must be "pathlength"). The values supplied will be used to calculate a correction model which, when applied to future data, will attempt to correct any pathlength variations detected in that data.
To enable this feature, check the Use Thickness Correction checkbox. If no pathlength data was supplied with the calibration X-block spectra, you will be prompted to specify a default value to assign to all spectra. These default values, or any values supplied when importing the spectra, can be modified by clicking the Edit button to the right of this option.
Editing the pathlength will open a DataSet editor for the X-block with the Row Labels tab selected. The Axis Scale column of this interface contains the pathlength values. These values can be manually corrected, or copied and/or pasted from another application. To copy the current values or paste in new values, click on the Axis Scale button at the top of the interface, then select the menu: Edit/Copy or Edit/Paste.
Uncheck the checkbox to disable the thickness correction feature.
Force PC80 Compatible Preprocessing
If this option is unchecked, the user may use any preprocessing available in the custom preprocesing interface. The model created will be compatible with Eigenvector Research software such as Solo_Predictor, Solo, and PLS_Toolbox but may not be compatible with the Hamilton Sundstrand PC80 and CPSA32 applications.
When checked, the preprocessing selected in the pull-down menu to the right of the option (including: None, Mean Centering, Autoscaling) will be used and any other preprocessing manually selected from the Custom preprocessing GUI or the preprocessing menus will be removed. This mode assures that the model created will be as compatible as possible with the PC80 and CPSA32 applications.