Abstract
Shadow detection and removal is a challenging problem in the analysis of hyperspectral images. Yet, this step is crucial for analyzing data for remote sensing applications like methane detection. In this work, we develop a shadow detection and removal method only based on the spectrum of each pixel and the overall distribution of spectral values. We first introduce Iterative Logistic Regression (ILR) to learn a spectral basis in which shadows can be linearly classified. We then model the joint distribution of the mean radiance and the projection coefficients of the spectra onto the above basis as a parametric linear combination of Gaussians. We can then extract the maximum likelihood mixing parameter of the Gaussians to estimate the shadow coverage and to correct the shadowed spectra. Our correction scheme reduces correction artefacts at shadow borders. The shadow detection and removal method is applied to hyperspectral images from MethaneAIR, a precursor to the satellite MethaneSAT.
Introduction
Hyperspectral imaging (HSI) is a powerful tool for climate monitoring, allowing scientists to identify the unique spectral "fingerprints" of greenhouse gases like methane ($CH_4$). However, the presence of shadows—cast by clouds or terrain—introduces significant spectral distortions. A shadow is not merely a darker version of the ground; it possesses a distinct spectral shape due to indirect "sky-glow" (diffuse Rayleigh scattering). Standard correction methods often fail to account for these shape changes, leading to artifacts at shadow boundaries and errors in gas retrieval.
This paper introduces a novel two-stage pipeline to detect and remove shadows by learning a low-dimensional spectral basis and modeling pixels as a continuous blend of sunlit and shadowed states.
Methodology
Iterative Logistic Regression (ILR)
To handle the high dimensionality of hyperspectral data (often over 1000 bands), the authors propose Iterative Logistic Regression (ILR). Unlike standard logistic regression, ILR iteratively identifies the spectral weights that best separate "sunlit" from "shadowed" pixels. By projecting out these components, the method learns a $k$-dimensional basis (where $k=23$) that captures the essential spectral variance caused by shadowing. This dimensionality reduction allows the model to focus on the "shape" of the spectrum rather than just its intensity.
Parametric Linear Combination of Gaussians (PLCG)
To address the "border problem" where pixels are partially shadowed, the authors move beyond binary classification. They employ a Parametric Linear Combination of Gaussians (PLCG). In this framework, each pixel is modeled as a mixture of sunlit and shadowed states, defined by a continuous mixing parameter $\alpha \in [0, 1]$.
Using Maximum Likelihood Estimation (MLE), the model determines the most likely $\alpha$ for every pixel. The correction process then shifts and scales shadowed spectra back toward the ground distribution. A key innovation is the use of a scaling matrix to ensure that the corrected regions maintain the natural variance and contrast of the original terrain, rather than just matching the average brightness.
Results and Discussion
The method was evaluated using data from MethaneAIR, an airborne precursor to the MethaneSAT satellite. Key findings include:
- Classification Accuracy: The ILR basis successfully captured shadow-related variance, with shadow detection performance (F1-score) dropping to negligible levels after 23 iterations, indicating the basis was exhaustive.
- Radiance Analysis: The model identified that sunlit spectra are approximately 4.5 times brighter than shadowed ones in the MethaneAIR dataset.
- Qualitative Improvement: The PLCG approach significantly outperformed simple mean-based corrections, particularly at shadow edges where it eliminated typical over-correction artifacts.
Conclusion
By treating shadow coverage as a continuous latent variable and learning a specialized spectral basis, this method provides a robust solution for hyperspectral data cleaning. While currently spatially agnostic, future work integrating spatial priors could further refine border estimation. This framework is vital for improving the accuracy of methane tracking missions, ensuring that cloud shadows do not obscure critical greenhouse gas signals.
Summary updated