This repository contains the codebase and results for our paper entitled Exploring Solar Granulation: from IMaX/SUNRISE to DKIST presented at the 38th Florida Artificial Intelligence Research Society (FLAIRS) Conference. We explored semantic segmentation of solar granulation—small convection-driven patterns on the Sun’s surface—using U-Net, U-Net++, and BT-UNet architectures.
We trained on annotated IMaX/SUNRISE images and applied the best models to high-resolution DKIST imagery, producing the first set of pre-annotations for this dataset.
- Multi-class pixel-wise segmentation of solar granulation patterns
- Evaluation of U-Net, U-Net++, and BT-UNet models across multiple architectural complexities
- Use of mIoU and Lovász-Softmax loss functions for handling class imbalance
- Pre-training using Barlow Twins redundancy reduction
- Domain transfer from IMaX to DKIST with histogram and spatial alignment
├── configs/ # Model configuration files (U-Net, U-Net++, BT-UNet)
├── data/ # IMaX dataset (original + augmented)
├── models/ # U-Net and U-Net++ implementations
├── results/ # Saved metrics, confusion matrices, and model outputs
├── train.py # Training entry point
├── dkist_pred.py # DKIST prediction pipeline
├── imax_pred.py # IMaX inference script
├── losses.py, metrics.py # Custom loss functions and metrics
└── utils.py # Helper functions
- Clone the repo:
git clone https://github.com/yourusername/imax-to-dkist.git
cd imax-to-dkist
- Install dependencies:
pip install torch numpy Pillow matplotlib
- Train a model:
python train.py configs/unet/miou/64_512_miou.json
- Predict on IMaX frames:
python imax_pred.py results/unet_64_512_miou/.../best.pth
If you use this code or dataset, please cite our work:
@article{Mansouri_Angryk_Reardon_2025,
title = {Exploring Solar Granulation: from IMaX/SUNRISE to DKIST},
author = {Mansouri, Reza and Angryk, Rafal and Reardon, Kevin},
journal = {The International FLAIRS Conference Proceedings},
volume = {38},
number = {1},
year = {2025},
month = {May},
url = {https://journals.flvc.org/FLAIRS/article/view/138987},
DOI = {10.32473/flairs.38.1.138987}
}
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.