A Fortran–Python interface for integrating machine learning parameterization into earth system models

Abstract. Parameterizations in earth system models (ESMs) are subject to biases and uncertainties arising from subjective empirical assumptions and incomplete understanding of the underlying physical processes. Recently, the growing representational capability of machine learning (ML) in solving complex problems has spawned immense interests in climate science applications. Specifically, ML-based parameterizations have been developed to represent convection, radiation, and microphysics processes in ESMs by learning from observations or high-resolution simulations, which have the potential to improve the accuracies and alleviate the uncertainties. Previous works have developed some surrogate models for these processes using ML. These surrogate models need to be coupled with the dynamical core of ESMs to investigate the effectiveness and their performance in a coupled system. In this study, we present a novel Fortran–Python interface designed to seamlessly integrate ML parameterizations into ESMs. This interface showcases high versatility by supporting popular ML frameworks like PyTorch, TensorFlow, and scikit-learn. We demonstrate the interface's modularity and reusability through two cases: an ML trigger function for convection parameterization and an ML wildfire model. We conduct a comprehensive evaluation of memory usage and computational overhead resulting from the integration of Python codes into the Fortran ESMs. By leveraging this flexible interface, ML parameterizations can be effectively developed, tested, and integrated into ESMs.

Authors

Institutions

Publication Details

Journal
Geoscientific model development
Published
2025-03-24
DOI
https://doi.org/10.5194/gmd-18-1917-2025
Citations
1
Primary Topic
Climate variability and models
Type
article
Field-Weighted Citation Impact
1.11

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Fortran–Python interface for integrating machine learning parameterization into earth system models

Cyril Morcrette, Shaocheng Xie, Wuyin Lin, Kwinten Van Weverberg et al.
1 citations
Geoscientific model development
Climate variability and models
1.11
article

A Fortran–Python interface for integrating machine learning parameterization into earth system models

Cyril Morcrette, Shaocheng Xie, Wuyin Lin, Kwinten Van Weverberg, Tao Zhang, Ye Liu, Meng Zhang, Joana Rodrigues
article en
1 citations

Abstract

Abstract. Parameterizations in earth system models (ESMs) are subject to biases and uncertainties arising from subjective empirical assumptions and incomplete understanding of the underlying physical processes. Recently, the growing representational capability of machine learning (ML) in solving complex problems has spawned immense interests in climate science applications. Specifically, ML-based parameterizations have been developed to represent convection, radiation, and microphysics processes in ESMs by learning from observations or high-resolution simulations, which have the potential to improve the accuracies and alleviate the uncertainties. Previous works have developed some surrogate models for these processes using ML. These surrogate models need to be coupled with the dynamical core of ESMs to investigate the effectiveness and their performance in a coupled system. In this study, we present a novel Fortran–Python interface designed to seamlessly integrate ML parameterizations into ESMs. This interface showcases high versatility by supporting popular ML frameworks like PyTorch, TensorFlow, and scikit-learn. We demonstrate the interface's modularity and reusability through two cases: an ML trigger function for convection parameterization and an ML wildfire model. We conduct a comprehensive evaluation of memory usage and computational overhead resulting from the integration of Python codes into the Fortran ESMs. By leveraging this flexible interface, ML parameterizations can be effectively developed, tested, and integrated into ESMs.

Geoscientific model developmentVol. 18(6)
Royal Meteorological Institute of Belgium (BE), Lawrence Livermore National Laboratory (US), Met Office (GB), Pacific Northwest National Laboratory (US), Brookhaven National Laboratory (US), University of Exeter (GB), Ghent University (BE)
U.S. Department of Energy, Battelle, National Energy Research Scientific Computing Center, European Geosciences Union, Office of Science, Biological and Environmental Research, Lawrence Livermore National Laboratory, Brookhaven National Laboratory, Pacific Northwest National Laboratory
Openalex Percentile: Top 26%
Climate variability and models
1.11
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.