LASSO Band Selection
Identify informative wavelengths in hyperspectral images using LASSO (Least Absolute Shrinkage and Selection Operator) and Elastic Net regularized regression, then export selected bands or a reduced datacube.
Overview
The LASSO / Elastic Net Band Selection Studio identifies informative spectral bands using regularized regression. It can compare spectra from two user-selected regions or evaluate spatial patches within an image.
Selected wavelengths correspond to non-zero model coefficients. Results can be inspected and exported for further analysis.
1. Band Selection Modes
ROI Contrast Mode
Compares spectra from two user-selected image regions to identify wavelengths that help distinguish them.
ROI Contrast Workflow
- Select ROI Contrast Mode.
- Start the ROI selection procedure.
- Draw ROI #1 and double-click to finish.
- Draw ROI #2 and double-click to finish.
- Run the analysis to identify wavelengths that distinguish the two regions.
Note: Step 2 was missing from the original documentation; the wording above is a general instruction rather than a verified button name.
Spatial Patch Mode
Automatically divides the image into spatial patches and identifies wavelengths that distinguish the patches. This provides a second approach when manually defined ROIs are not used.
2. Regularization Settings
Alpha: LASSO or Elastic Net
- Alpha = 1.0: Uses LASSO and encourages sparse wavelength selection.
- Alpha < 1.0: Uses Elastic Net, which can retain groups of correlated wavelengths.
Lambda: Regularization Strength
Lambda controls regularization strength. The Auto setting uses cross-validation to determine lambda.
Cross-Validation Folds
The cross-validation folds setting controls the number of folds used when Lambda is set to Auto.
3. Interpreting Coefficients
Non-zero regression coefficients indicate selected wavelengths.
- Positive coefficients: Favor ROI #1 / class 1.
- Negative coefficients: Favor ROI #2 / the opposite class.
The coefficient sign indicates direction within the fitted model; it does not by itself establish a physical or chemical identity for a wavelength.
4. Exporting Results
Reduced Hyperspectral Cube
Creates and saves a reduced hyperspectral cube containing only the selected wavelengths.
CSV Export
Exports wavelength, regression coefficient, and selection information to a CSV file.
5. Clearing Selections and Resetting the Studio
Clear ROIs
Removes the current training regions without deleting the LASSO results.
Reset
Clears ROIs, results, and selected wavelengths, and restores the default settings.
6. Recommended Workflow
- Load a hyperspectral dataset.
- Open LASSO / Elastic Net Band Selection Studio.
- Select ROI Contrast Mode or Spatial Patch Mode.
- Define ROIs if using ROI Contrast Mode.
- Set Alpha and Lambda; configure folds if using Auto Lambda.
- Run band selection.
- Inspect the selected wavelengths and coefficient signs.
- Export the selection table or reduced cube, as needed.
7. Interpretation Notes
Regularized regression selects wavelengths according to the model and data used. Selected bands may be correlated, and their interpretation should be checked against representative spectra and the analysis objective.