Documentation  ›  Documentation Library  ›  MSC
Filtering & Corrections

MSC

Multiplicative Scatter Correction is a reference-based spectral preprocessing method designed to reduce additive offsets and multiplicative scaling differences between spectra.

Multiplicative Scatter Correction (MSC)

IDCubePro 2026 - Multiplicative Scatter Correction (msc)

Overview

Multiplicative Scatter Correction is a reference-based spectral preprocessing method designed to reduce additive offsets and multiplicative scaling differences between spectra.

In this IDCubePro implementation, you select a spatial reference ROI. The mean spectrum of all pixels inside that ROI becomes the reference spectrum for the complete hyperspectral cube.

MSC then models every pixel spectrum relative to that reference.

For each pixel spectrum y, IDCubePro fits the linear model:

Spectrum = a + b x Reference where a is an additive offset and b is a multiplicative slope or scaling factor.

The corrected spectrum is then calculated as:

Corrected = (Spectrum - a) / b The regression is performed independently for every pixel spectrum across all spectral bands.

What Msc Is Trying To Reduce

MSC is commonly used when spectra contain similar underlying spectral features but differ because of baseline offset and multiplicative intensity scaling.

Depending on the experiment, these differences can be associated with scattering, optical path length, particle size, sample thickness, surface geometry, illumination strength, collection efficiency, or other acquisition-related effects.

Important Scientific Limitation

MSC mathematically removes variation that behaves like an additive offset plus multiplicative scaling relative to the chosen reference.

It does not prove that this variation was physically caused by scattering.

Reference Spectrum In This Implementation

IDCubePro does not automatically use the mean spectrum of the entire image.

Instead, you explicitly draw a rectangular reference ROI. The mean spectrum of all ROI pixels is calculated and used as the MSC reference.

This gives you control over which material, tissue region, calibration region, or representative sample defines the reference.

Every spectrum in the cube is fitted relative to the selected reference spectrum.

A poor reference can therefore influence the complete corrected dataset.

Reference selection should be treated as an analytical decision, not simply a GUI step.

Choosing A Good Reference ROI

Choose a region that represents the spectral population against which the rest of the dataset should be corrected.

Prefer a spatially homogeneous region with adequate signal-to-noise ratio and without obvious artifacts.

Avoid saturated pixels, dead pixels, strong shadows, glare, image borders, obvious contamination, and regions containing several very different materials unless that mixture is intentionally your reference.

A very small ROI may produce a noisy or unrepresentative mean spectrum.

A larger homogeneous ROI generally produces a more stable mean reference because random pixel-level noise is averaged.

However, increasing ROI size is not automatically better. Do not enlarge the ROI into heterogeneous regions merely to include more pixels.

Homogeneity Vs Representativeness

The best ROI should be both reasonably homogeneous and scientifically representative.

A perfectly homogeneous region is not useful if it represents a material unrelated to the spectra you intend to correct.

Reference Roi For Biological Tissue

For heterogeneous biological tissue, consider whether one ROI can reasonably represent the population being corrected.

If different tissue types have fundamentally different spectra, using one tissue class as the MSC reference for all classes may change biologically meaningful relationships.

Reference Roi For Materials Or Agriculture

When one material type is used as the reference, choose an area representative of normal variation in that material rather than an extreme bright, dark, wet, dry, or damaged region unless that state is intentionally the reference.

Reference Roi For Calibration Targets

If a calibration or reference target is present, determine whether MSC relative to that target is scientifically meaningful.

MSC is not a replacement for proper dark/white reference calibration or radiometric/reflectance calibration.

Workflow

1. Start Multiplicative Scatter Correction.

2. The current IDCubePro image remains visible.

3. Draw a rectangular reference ROI on the image.

4. Double-click the ROI to confirm it.

5. IDCubePro calculates the mean spectrum of the selected ROI.

6. The reference spectrum is displayed in the spectrum panel.

7. Inspect the reference spectrum.

8. Confirm Apply in the MSC confirmation dialog.

9. IDCubePro fits every pixel spectrum to the reference.

10. The corrected cube replaces the current working cube.

11. Inspect the corrected spectra and images before continuing.

IDCubePro constrains the selected rectangle to valid image coordinates before extracting the reference data.

The final ROI X, Y, width, and height are displayed in the confirmation dialog and stored in processing history.

Review The Reference Before Applying

The reference spectrum is plotted before correction begins.

Use this opportunity to look for unexpected spikes, saturation, missing bands, extreme noise, unusual spectral shape, or evidence that the ROI contains mixed materials.

If the spectrum is not appropriate, cancel and select a better ROI rather than applying MSC and evaluating only afterward.

IDCubePro rejects a reference spectrum containing non-finite values or a spectrum that is entirely zero.

This protects the regression from an obviously invalid reference, but it does not determine whether a mathematically valid reference is scientifically appropriate.

For every spectrum, IDCubePro builds a design matrix containing a constant term and the reference spectrum.

The linear coefficients are solved using MATLAB left-division.

The intercept becomes a and the reference coefficient becomes the MSC slope b.

The corrected spectrum is obtained by subtracting a and dividing by b.

If the fitted slope is non-finite or effectively zero, division would be unstable.

In that case IDCubePro leaves that spectrum uncorrected rather than dividing by an invalid slope.

If an individual spectrum contains NaN or Inf values, the current implementation replaces those values with zero before fitting the MSC model.

This is a computational safeguard.

If many non-finite values exist, investigate the source of the problem rather than relying on zero replacement as the primary data-cleaning strategy.

When MSC Is A Good Candidate

  • Spectra share broadly comparable features but differ in offset and scale.
  • Scatter or path-length effects are believed to obscure spectral comparison.
  • A meaningful representative reference spectrum can be defined.
  • Relative spectral features are more important than raw intensity magnitude.
  • A validated chemometric workflow benefits from scatter correction.
  • Absolute intensity is biologically, chemically, or physically meaningful.
  • Different classes have genuinely different amplitude levels.
  • The cube contains multiple materials with fundamentally different spectral shapes.
  • No scientifically defensible reference ROI can be selected.
  • Spectra have poor signal-to-noise ratio.
  • Strong nonlinear baseline distortions are present.
  • The relationship to the reference is not reasonably approximated by offset plus multiplicative scaling.

MSC Does Not Correct Everything

The MSC model contains one additive coefficient and one multiplicative coefficient for each spectrum.

It therefore cannot directly model arbitrary wavelength-dependent baselines, nonlinear scattering effects, spectral shifts, wavelength calibration errors, fluorescence background curvature, or detector artifacts.

MSC uses a reference spectrum and fits every spectrum relative to that reference.

Standard Normal Variate normalizes each spectrum independently using its own mean and standard deviation.

SNV does not require a reference ROI.

Both can reduce offset and scaling variation, but their assumptions and resulting transformations differ.

WHICH SHOULD I USE - MSC OR SNV?

Use MSC when a meaningful reference spectrum exists and correction relative to that reference is scientifically appropriate.

Use SNV when independent per-spectrum standardization is more appropriate and you do not want the result tied to a selected reference.

The final choice should be based on downstream validation rather than the name or popularity of the method.

Baseline correction estimates and removes a wavelength-dependent background or baseline.

MSC fits a constant additive offset plus multiplicative scaling relative to the reference.

If the unwanted background changes shape across wavelength, a dedicated baseline-correction method may be more appropriate.

Continuum removal estimates a spectral continuum and divides the spectrum by that continuum to emphasize absorption-band depth and shape.

MSC instead fits the entire spectrum to a reference using additive and multiplicative coefficients.

These methods answer different preprocessing needs.

Simple normalization may scale spectra by maximum value, area, vector norm, or another scalar.

MSC additionally estimates an additive offset and explicitly relates each spectrum to a reference.

Msc Vs Flat-field Correction

Flat-field correction primarily addresses spatial nonuniformity in illumination or detector response.

MSC is performed spectrum by spectrum and models spectral offset and scale relative to a reference spectrum.

Do not use MSC merely because an image has an illumination gradient without considering whether flat-field or physical reference correction is more appropriate.

Msc Vs Dark/white Reference Correction

Dark and white reference correction is an acquisition or calibration procedure used to convert raw detector measurements toward meaningful reflectance or related quantities.

MSC is a subsequent statistical spectral transformation.

MSC should not be considered a substitute for missing physical calibration.

There is no universal order appropriate for every hyperspectral experiment.

Typically, necessary physical calibration, invalid-band handling, and major acquisition artifact correction should be considered before statistical scatter correction.

Whether MSC should occur before or after denoising, derivatives, baseline correction, or other transformations depends on the measurement and downstream model.

SHOULD I REMOVE BAD BANDS FIRST?

Known invalid or artifact-dominated bands can distort both the reference spectrum and every regression.

When appropriate, remove clearly unusable bands before defining the MSC reference.

A noisy reference spectrum can affect every fitted spectrum.

Reasonable denoising may improve stability when detector noise is substantial, but excessive smoothing can remove real spectral features.

If denoising is used, apply a reproducible and validated procedure.

IDCubePro remains in Ready status while you draw and review the ROI.

This is intentional because the numerical MSC correction has not yet started.

After you confirm Apply, IDCubePro changes to Processing while the cube is corrected.

The status returns to Ready after completion or cleanup.

The progress window reports the approximate fraction of spectra processed.

GUI updates are intentionally limited rather than performed after every spectrum, which reduces unnecessary interface overhead.

MSC processing can be canceled from the progress window.

The code checks the cancellation state repeatedly during spectrum processing.

If cancellation occurs before the corrected cube is committed, the working dataset is not replaced by the partially calculated cube.

The current implementation processes spectra individually because each pixel requires a separate regression against the reference.

Large hyperspectral cubes can therefore require noticeably more time than fully vectorized normalization methods such as SNV.

The corrected cube preserves the original number of rows, columns, spectral bands, and wavelength vector.

The corrected data replace myData.Images as the active working cube.

Non-finite values remaining in the reconstructed corrected cube are set to zero.

myDataOriginal is not overwritten by MSC.

The broader IDCubePro Reset Preprocessing workflow can therefore restore the preserved original dataset when it is available.

IDCubePro records Multiplicative Scatter Correction in the processing history.

The stored information includes the method, interface, ROI coordinates, ROI dimensions, output cube dimensions, wavelength range, and the fact that the data were changed.

The reference ROI determines the mean reference spectrum and therefore materially affects the correction.

Recording its location and dimensions improves reproducibility and helps explain differences between processing runs.

Before applying MSC, inspect the plotted reference spectrum.

Ask whether it is representative, sufficiently smooth for the measurement, free of obvious artifacts, and scientifically appropriate for the spectra being corrected.

Quality Control - After Correction

Inspect representative corrected spectra from several spatial regions.

Do not evaluate only the reference ROI.

Check whether unwanted offset and scaling variation decreased while meaningful absorption, reflectance, fluorescence, or other spectral features remained interpretable.

Compare Raw And Corrected Data

When possible, compare representative raw and MSC-corrected spectra side by side.

If important group differences disappear, determine whether MSC removed nuisance scatter or meaningful signal.

Inspect several wavelength images or derived maps after MSC.

Unexpected boundaries, extreme values, loss of contrast, or spatial patterns aligned with material classes can indicate that one reference is not suitable for the complete cube.

MSC is often used before PCA when additive and multiplicative scatter effects would otherwise dominate principal components.

Compare PCA score patterns and loadings before and after MSC to determine whether correction reveals useful spectral structure or removes meaningful variance.

MSC can help clustering focus on spectral shape rather than simple intensity scaling.

However, if brightness or amplitude defines meaningful classes, MSC can reduce class separation.

For Supervised Classification

MSC can improve classification when nuisance scatter differs among samples but the underlying spectral class signatures remain comparable.

It can also reduce performance if the reference is inappropriate or absolute intensity is predictive.

Select preprocessing using cross-validation or independent validation.

MSC is widely used in chemometric regression to reduce scatter-related variation.

Its value should be demonstrated by improved validation performance, lower prediction error, better residual behavior, or improved model stability.

Do not assume that preprocessing improves a regression merely because calibration fit improves.

Training And Prediction Consistency

A predictive model must receive data processed in a manner consistent with its training data.

If MSC reference selection changes between datasets, the transformed feature space can also change.

For deployment, define how the reference spectrum will be reproduced for new samples.

Important For Machine Learning

An interactively selected ROI can introduce operator-dependent preprocessing.

For exploratory work this may be acceptable, but production or validation workflows should define an objective reference-selection procedure whenever possible.

Decide whether every sample will use its own internal reference or whether a common reference will be used across samples.

These approaches are not equivalent.

Using a different reference for every image can normalize within-image variability but can also alter between-image comparability.

Using a common reference improves consistency but requires a reference that is valid across the study.

For Biological And Medical Imaging

Tissue composition, blood content, scattering, thickness, hydration, fluorophore concentration, and pathology can all influence intensity.

Some of those differences may be the biological signal of interest.

Use MSC only when the variation being removed can reasonably be treated as nuisance variation for the intended endpoint.

For Reflectance Hyperspectral Imaging

MSC is especially common in reflectance and near-infrared spectroscopy where scattering and path-length effects can strongly alter spectral magnitude.

Even in reflectance data, proper acquisition calibration should precede statistical scatter correction when calibration references are available.

For Fluorescence Hyperspectral Imaging

Use additional caution because fluorescence amplitude can encode fluorophore abundance, excitation efficiency, quantum yield, photobleaching, optical attenuation, and tissue geometry.

MSC may be useful when spectral shape is the target, but it can remove amplitude information relevant to concentration or physiology.

Common Problem - Reference Looks Noisy

Increase ROI size only if a larger homogeneous region is available.

Also inspect whether the relevant spectral bands have adequate signal-to-noise ratio and whether bad bands should be removed.

Common Problem - Corrected Spectra Are Extreme

Inspect fitted slopes conceptually: spectra that relate poorly to the reference can produce unstable scaling.

This can occur when the selected reference is not representative of some materials in the image.

Common Problem - Different ROIs Gives Different Results

That behavior is expected because the reference spectrum defines the MSC regression.

Use a scientifically justified and reproducible ROI-selection rule rather than selecting whichever ROI produces the most visually attractive result.

Common Problem - Class Differences Disappear

Determine whether those differences were caused by nuisance offset/scaling or were genuine class information.

MSC cannot make that scientific distinction automatically.

Common Problem - Heterogeneous Image

A single reference spectrum may be insufficient for a cube containing several materials with substantially different spectral shapes.

Consider whether class-specific preprocessing, a common external reference, another normalization strategy, or no MSC is more defensible.

Common Problem - Processing Is Slow

The current implementation performs a regression for each pixel spectrum and periodically updates the progress interface.

Large spatial images can therefore take time. Cancellation is available if the selected reference or operation needs to be reconsidered.

1. Load and inspect the hyperspectral cube.

2. Perform required physical calibration and reference correction.

3. Remove clearly invalid bands when appropriate.

4. Inspect representative spectra from multiple regions.

5. Decide whether additive/multiplicative scatter variation is a meaningful preprocessing target.

7. Draw a homogeneous, representative reference ROI.

8. Double-click to confirm the ROI.

9. Inspect the displayed mean reference spectrum.

10. Cancel and reselect if the reference is poor.

12. Allow correction to complete.

13. Inspect corrected spectra from the reference region and other regions.

14. Compare raw and corrected data.

15. Continue downstream analysis only after confirming that meaningful information has been preserved.

16. Validate the effect of MSC on the final scientific or predictive endpoint.

Document that MSC was performed using the mean spectrum of a user-selected ROI.

Record the ROI coordinates and dimensions, wavelength range, prior preprocessing, bad-band handling, and whether the same reference-selection strategy was used across all datasets.

For publication or deployed analysis, describe how the reference was chosen rather than simply stating that MSC was applied.

The most important decision in this implementation is not the regression equation; it is the choice of reference ROI.

A mathematically valid reference is not necessarily a scientifically appropriate reference.

Use MSC when the selected reference and the additive-plus-multiplicative model match the intended interpretation of the data.

Multiplicative Scatter Correction Close Multiplicative Scatter Correction help.