This repository implements Landslide-SSMoE, a novel adaptation of the EEGMoE (Specific and Shared Mixture-of-Experts) architecture for 2D geospatial landslide mask prediction. By decoupling domain-specific and domain-shared representations, the model enhances the segmentation of landslides from multi-channel satellite data (Sentinel-1, Sentinel-2, rainfall, and soil moisture).
The core contribution is the SSMoE Bottleneck, which translates 1D signal-processing mechanisms (from the EEGMoE paper) into 2D spatial feature map processing:
- Specific Expert Groups: Utilizing Top-K sparse routing (Top-2) to handle domain-specific features related to distinct geographical regions or terrain types.
- Shared Expert Groups: Implementing soft-routing to extract universal spectral signatures and common landslide features across all domains.
- 2D Adaptation: Replaced 1D Linear experts with 3x3 Convolutional layers and Linear routers with 1x1 Convolutional router maps for spatially-variant selection.
| Directory | Description |
|---|---|
architecture/ |
Core PyTorch implementation of Adapted_SSMoE_UNet and SSMoE_ConvBlock. |
evaluation/ |
A/B testing framework, deconstruction reports, and training loops. |
pipeline/ |
Data ingestion and preprocessing (Sentinel-1/2, Rainfall, Soil Moisture). |
results/ |
Comparative plots and training metrics. |
graph TD
Input[Input Raster: 16 Channels, 256x256] --> Encoder[U-Net Encoder]
Encoder --> SSMoE[SSMoE Bottleneck]
SSMoE --> Decoder[U-Net Decoder]
Decoder --> Output[Binary Mask: 1 Channel, 256x256]
subgraph "SSMoE Bottleneck"
SpecificRouter[Specific Router: 1x1 Conv] --> TopK[Top-K Sparse Experts]
SharedRouter[Shared Router: GAP + MLP] --> Shared[Shared Soft Experts]
TopK --> Fusion[Weighted Fusion]
Shared --> Fusion
end
We conducted an A/B test comparing the Adapted SSMoE U-Net against a Vanilla U-Net baseline. Using identical seeds and hyperparameters, the results demonstrate the superior convergence and accuracy of the MoE-adapted architecture:
The model was evaluated on real-world regions (Wayanad, Puthumala) to assess landslide susceptibility:
- Wayanad: Max Predicted Risk: 0.1140
- Puthumala: Max Predicted Risk: 0.0559
- Python 3.10+
- PyTorch 2.0+
- Rasterio
- Matplotlib, Numpy
pip install torch rasterio matplotlib numpyTo reproduce the A/B test results:
python evaluation/repro_experiment.py- EEGMoE: A Domain-Decoupled Mixture-of-Experts Model for Self-Supervised EEG Representation Learning.
- Landslide Atlas of India, 2023 (ISRO/NRSC).
© 2026 Team Rocket (nothariharan)
