Krishu K Thapa, Supriya Savalkar, Bhupinderjeet Singh, Trong Nghia Hoang, Kirti Rajagopalan, Ananth Kalyanaraman
Model implementation used Pytorch(v2.0.1) (LSTM and Attention models), GPyTorch (v1.12) (Gaussian process) packages. Data processing and visualization used multiple Python packages. We assume conda has been installed on the device running this code.
bash daily_gp_run.sh --base_url /path/to/SWE-Forecasting --env_name <your_choice_conda_env_name>
bash weekly_gp_run.sh --base_url /path/to/SWE-Forecasting --env_name <your_choice_conda_env_name>
bash att_daily_run.sh --base_url /path/to/SWE-Forecasting --env_name <your_choice_conda_att_env_name>
After training the spatio-temporal attention model, the representations from the model are further used to train the GP model in the output head and make predictions.
bash daily_foreswe_gp_run.sh --base_url /path/to/SWE-Forecasting --env_name <your_choice_conda_att_env_name>
bash att_weekly_run.sh --base_url /path/to/SWE-Forecasting --env_name <your_choice_conda_att_env_name>
After training the spatio-temporal attention model, the representations from the model are further used to train the GP model in the output head and make a prediction.
bash weekly_foreswe_gp_run.sh --base_url /path/to/SWE-Forecasting --env_name <your_choice_conda_att_env_name>
All the prediced SWE values are stored as .pkl files and can be found here corresponding to a model.
All the actual SWE values are stored as .pkl files and can be found here corresponding to a model.
If you use our idea in your research, please cite:
Thapa, Krishu K., et al. "ForeSWE: Forecasting Snow-Water Equivalent with an Uncertainty-Aware Attention Model." Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 40. No. 46. 2026.