This repository contains our complete solution for the GLOFeagles '26 Challenge β Automated Detection of Glacial Lakes from Multi-Temporal Satellite Imagery, organized under NCVPRIPG 2026.
The objective of this project is to accurately identify and segment glacial lakes from satellite imagery while minimizing false detections caused by snow, ice, terrain shadows, debris-covered glaciers, and other visually similar features.
Our approach utilizes a U-Net++ semantic segmentation architecture with an EfficientNet-B3 encoder, enhanced with extensive data augmentation, weighted sampling, custom loss functions, threshold optimization, and multi-scale Test-Time Augmentation (TTA) to achieve robust and reliable glacial lake segmentation.
ICE_KATTI_GLOF_Challenge/
βββ 00_Validation/
β βββ Validation_Old_Model/
β β βββ Comparison Masks/
β β β βββ 1001_final.png
β β β βββ 1002_final.png
β β β βββ ...
β β β
β β βββ Masks/
β β β βββ Cloud Cover/
β β β β βββ 10_mask.png
β β β β βββ 168_mask.png
β β β β βββ ...
β β β βββ Debris Cover/
β β β βββ Moraine Dammed/
β β β βββ Snow Cover/
β β β βββ Terrain Shadow/
β β β βββ Varying Turbidity/
β β β
β β βββ GLOFEagles_Validation Producing Masks _Old.ipynb
β β βββ GLOFEagles_Validation_Result _Old.ipynb
β β βββ comparison_samples.png
β β βββ coverage_histogram.png
β β βββ model_comparison.png
β β βββ results_gallery.png
β β βββ sanity_check_preview.png
β β
β βββ Validation_Retrained_Model/
β β βββ Comparison Masks/
β β β βββ comparison_001.png
β β β βββ comparison_002.png
β β β βββ ...
β β β
β β βββ Masks/
β β β βββ Cloud Cover/
β β β β βββ 10_mask.png
β β β β βββ 168_mask.png
β β β β βββ ...
β β β βββ Debris Cover/
β β β βββ Moraine Dammed/
β β β βββ Snow Cover/
β β β βββ Terrain Shadow/
β β β βββ Varying Turbidity/
β β β βββ final_comparisons/
β β β
β β βββ Model_Retraining_and_Mask_Generation.ipynb
β β βββ Retrained_Model_Validation_and_GT_Comparison.ipynb
β β βββ metrics_per_image_partial.csv
β β
β βββ Validation_Report_GLOFeagles_26.pdf
β
βββ Trained model files/
β βββ glacier_lake_model_final.pth
β βββ glacier_lake_checkpoint.pth
β
βββ Source Code/
β βββ train.py
β βββ inference.py
β βββ model_architecture.py
β βββ utils.py
β βββ Lake_Glacier_Detection_full_source_code/
β
βββ Python Notebook/
β βββ Glacier_Lake_Detection.ipynb
β
βββ SNU GLOF 2026 Dataset/
β βββ Label_Subset/
β βββ Class_Labels/
β βββ Ground_Truth/
β βββ 1.png
β βββ 2.png
β βββ ...
β
βββ Segmentation masks for all images/
β βββ 1_mask.png
β βββ 2_mask.png
β βββ ...
β
βββ Sample Outputs after masking/
β βββ Sample_1/
β βββ Sample_2/
β βββ ...
β
βββ Youtube_Link/
β βββ demo_video_link.txt
β
βββ Justification of Key Design Choices.md
βββ REPORT.pdf
βββ README.md
βββ requirements.txt
Glacial lakes are rapidly expanding due to glacier retreat caused by climate change. These lakes can trigger catastrophic Glacial Lake Outburst Floods (GLOFs), posing serious risks to downstream communities and infrastructure.
The primary goal of this challenge is to automatically detect glacial lakes from satellite imagery and generate accurate segmentation masks that can support GLOF risk assessment, hazard monitoring, and early warning systems.
Our solution is based on a semantic segmentation pipeline designed specifically for glacial lake extraction from high-altitude satellite imagery.
- U-Net++ Decoder
- EfficientNet-B3 Encoder (ImageNet Pretrained)
- Advanced Data Augmentation
- Weighted Sampling Strategy
- Focal + Dice + Boundary Loss
- Threshold Optimization
- Multi-Scale Test-Time Augmentation
- Morphological Post Processing
The complete workflow follows the steps below:
- Dataset Preparation
- Data Augmentation
- Model Training
- Validation
- Threshold Optimization
- Test-Time Augmentation
- Post Processing
- Segmentation Mask Generation
The provided challenge dataset consists of satellite images and corresponding ground-truth segmentation masks for glacial lake segmentation. The dataset was divided into training and validation subsets using stratified sampling to maintain a balanced representation of different glacial lake categories.
| Dataset Split | Percentage | Number of Images |
|---|---|---|
| Training Set | 80% | 48 |
| Validation Set | 20% | 12 |
The dataset is organized into six label subsets representing different environmental conditions and challenges commonly encountered in glacial lake detection:
- Cloud Cover
- Debris Cover
- Moraine
- Snow Cover
- Terrain Shadow
- Turbidity
For each label subset, the challenge organizers provided:
- Original Satellite Images β Remote sensing images containing glacial lakes under varying environmental conditions.
- Ground-Truth Segmentation Masks β Pixel-wise annotated masks identifying the exact boundaries of glacial lakes.
The original images are used as inputs to the segmentation model, while the corresponding masks serve as ground-truth labels during training and validation. This image-mask pairing enables supervised learning for accurate glacial lake segmentation.
The inclusion of diverse label subsets such as cloud-covered, debris-covered, snow-covered, and turbid lakes ensures that the trained model can generalize effectively across a wide range of real-world glacial lake scenarios.
To improve robustness against varying environmental conditions, extensive augmentation techniques were applied.
- Horizontal Flip
- Vertical Flip
- Random Rotation
- Shift Scale Rotate
- Elastic Transform
- Grid Distortion
- Random Brightness and Contrast
- Hue-Saturation Adjustment
- CLAHE Enhancement
- Random Gamma
- Gaussian Noise
- Random Shadow Simulation
- Coarse Dropout
ImageNet Mean and Standard Deviation Normalization
| Component | Configuration |
|---|---|
| Architecture | U-Net++ |
| Encoder | EfficientNet-B3 |
| Input Size | 512 Γ 512 |
| Output | Binary Segmentation Mask |
| Framework | PyTorch |
- Better feature fusion
- Dense skip connections
- Improved segmentation accuracy
- Better localization of small glacial lakes
- Efficient feature extraction
- Strong transfer learning capability
- Improved performance on satellite imagery
To improve segmentation performance and boundary detection, a custom hybrid loss function was used.
Loss Function:
Focal Loss (40%) + Dice Loss (40%) + Boundary Loss (20%)
Handles class imbalance and difficult samples.
Improves overlap between prediction and ground truth masks.
Improves segmentation around lake boundaries.
| Parameter | Value |
|---|---|
| Image Size | 512 Γ 512 |
| Batch Size | 4 |
| Epochs | 100 |
| Learning Rate | 0.001 |
| Optimizer | AdamW |
| Scheduler | Cosine Annealing Learning Rate |
| Encoder Weights | ImageNet |
Certain glacial lake categories, especially debris-covered lakes, contained fewer samples.
To address this challenge:
- Weighted Random Sampling was used.
- Debris-related classes were oversampled.
- Class-frequency-based weighting was incorporated during training.
This improved learning for underrepresented categories.
To improve robustness during inference, predictions were generated using:
- Original Image
- Horizontal Flip
- Vertical Flip
- 90Β° Rotation
- 180Β° Rotation
- 270Β° Rotation
- 384 Γ 384
- 512 Γ 512
- 640 Γ 640
Predictions from all scales and augmentations were averaged to generate the final probability map.
After inference, the probability maps undergo:
- Threshold Optimization
- Morphological Opening
- Morphological Closing
- Connected Component Filtering
This removes noise and improves final segmentation quality.
The following metrics were used for evaluation:
- Intersection over Union (IoU)
- Precision
- Recall
- F1 Score
- Dice Score
- Specificity
- Cohenβs Kappa
Figure A. Quantitative performance metrics of the proposed glacial lake segmentation model evaluated on the validation dataset.
| Metric | Score (%) |
|---|---|
| IoU | 59.35 |
| Precision | 72.39 |
| Recall | 76.72 |
| F1 Score | 74.49 |
| Dice Score | 74.49 |
| Specificity | 99.31 |
| Cohen's Kappa | 73.87 |
The model achieved an Intersection over Union (IoU) of 59.35%, which serves as the primary evaluation metric for the challenge. Precision and Recall values remain well balanced, resulting in an F1 Score of 68.08%. The high specificity of 99.52% indicates strong discrimination between glacial lakes and background regions, while a Cohen's Kappa score of 67.58% demonstrates substantial agreement between predictions and ground-truth annotations.
Figure B. Pixel-level confusion matrix evaluated on the validation dataset at a probability threshold of 0.4.
| Metric | Count |
|---|---|
| True Positive (TP) | 32,920 |
| False Positive (FP) | 14,794 |
| False Negative (FN) | 16,076 |
| True Negative (TN) | 3,081,938 |
- True Positives (32,920): Lake pixels correctly identified as glacial lakes.
- True Negatives (3,081,938): Background pixels correctly classified as non-lake regions.
- False Positives (14,794): Background pixels incorrectly classified as lakes.
- False Negatives (16,076): Actual lake pixels missed by the model.
The confusion matrix indicates that the model successfully captures the majority of glacial lake pixels while maintaining a very low false positive rate relative to the large background class. This behavior is particularly important for operational glacial lake monitoring, where minimizing false alarms while preserving detection capability is critical.
The proposed framework successfully detects glacial lakes across a variety of challenging environments.
β Small Lakes
β Large Lakes
β Terrain Shadows
β Snow-Covered Areas
β Debris-Covered Surfaces
β Complex Mountain Terrain
The combination of advanced augmentation, weighted sampling, boundary-aware loss functions, and test-time augmentation significantly improves robustness and reduces false detections.
git clone https://github.com/YOUR_USERNAME/TeamName_GLOF_Challenge.git
cd TeamName_GLOF_Challengepython -m venv venv
venv\Scripts\activatepython3 -m venv venv
source venv/bin/activatepip install -r requirements.txtPlace the challenge dataset as:
Dataset/
βββ Class_Labels/
βββ Ground_truth/
βββ Test_Images/
Open the source files and update the following paths according to your system.
BASE_PATH = "YOUR_DATASET_PATH"
IMG_BASE = BASE_PATH + "/Class_Labels"
GT_BASE = BASE_PATH + "/Ground_truth"
MODEL_SAVE_PATH = "YOUR_MODEL_SAVE_PATH"
OUTPUT_DIR = "YOUR_OUTPUT_DIRECTORY"python train.pypython inference.pyGenerated masks will automatically be saved inside:
Segmentation masks for all images/
To reproduce our results:
- Use the provided trained weights.
- Use only the official challenge dataset.
- Maintain the same image resolution.
- Use the optimized threshold value.
- Follow the provided folder structure.
YouTube Link: https://youtu.be/WzjRic_fPHM
During the validation phase of the GLOFeagles '26 Challenge, we conducted two separate evaluation strategies to assess and improve our model performance.
In the first approach, we directly used the model trained in the previous round and evaluated it on the newly provided validation dataset without any additional training.
This allowed us to measure the generalization capability of our original model on unseen data.
Results:
- Mean IoU: 0.4211
- Max IoU: 0.9677
This experiment demonstrated that the model retained strong performance on certain samples (high Max IoU).
In the second approach, we retrained the model using the validation images and their corresponding ground-truth labels provided by the organizers.
This allowed the model to better adapt to the specific distribution and characteristics of the validation dataset.
Final Metrics (Threshold = 0.5):
- IoU: 0.6933
- Precision: 0.8602
- Recall: 0.7813
- F1 Score: 0.8189
- Dice Score: 0.8189
- Specificity: 0.9974
- Cohenβs Kappa: 0.8154
Confusion Matrix Values:
- True Positives (TP): 2,704,849
- False Positives (FP): 439,682
- False Negatives (FN): 756,950
- True Negatives (TN): 170,686,423
| Name | GitHub π | LinkedIn πΌ |
|---|---|---|
| Santosh S (Team Lead) | GitHub | |
| Rashmika | GitHub | |
| Visweshwaran K | GitHub |
This work was developed as part of the GLOFeagles '26 Challenge under NCVPRIPG 2026, organized by Shiv Nadar University Chennai.
We thank the organizers for providing the dataset, evaluation protocol, and challenge platform that enabled this work.
We would also like to express out sincere gratitude to Dr. Sasithradevi A. (VIT Chennai) for bringing this challenge to our attention and guiding us towards this oppurtunity.
Team ICE KATTI
Automated Detection of Glacial Lakes from Multi-Temporal Satellite Imagery
NCVPRIPG 2026
