Figure: A pseudosection model for a Primitive Upper Mantle composition (PUM, from Sun & McDonough, 1989) estimated by Perple_X (Connolly, 2009) showing density (a), the gradient of density highlighting phase transitions (b), and density depth profiles along a range of hypothetical mantle geotherms (c). A total of 128
This work was published in JGR: Machine Learning and Computation as of 23 October 2024. You can find the paper here.
This repository provides all materials for the manuscript RocMLMs: Predicting Rock Properties through Machine Learning Models (Kerswell et al., 2024; JGR:MLC).
This repository includes:
- All datasets required to compile the study
- python scripts to reproduce all results and figures
- A Makefile to compile the study
- The complete manuscript written in Rmarkdown
This repository is self-contained but requires the following software (all open-source).
This study is written in python. For most users, I recommend installing the anaconda, miniconda, or miniforge python distributions. These distributions include at least a minimal installation of python (plus some dependencies) and the package manager conda, which is required to build the necessary python environment for this study. Any of these distributions will work to compile and run the study, and any can be installed (for macOS users) with homebrew.
Follow the instructions at Hombrew's homepage to download and install Homebrew on your machine. Once Homebrew is installed, use any of the following to install python and conda:
# Run one of the following
brew install anaconda
brew install miniconda
brew install miniforge
To save time building the RocMLMs from scratch, please download the pre-built training dataset (results_17_july_2024/gfems), the pre-trained RocMLMs (results_17_july_2024/rocmlms), and the corresponding performance data (results_17_july_2024/assets) from here, and then follow these steps:
# Clone this repository
git clone https://github.com/buchanankerswell/kerswell_et_al_rocmlm.git
# Change into the directory
cd kerswell_et_al_rocmlm
# Copy training data and RocMLMs into directory
cp -r ~/path/to/downloaded_and_unzipped/results_17_july_2024/assets .
cp -r ~/path/to/downloaded_and_unzipped/results_17_july_2024/gfems .
cp -r ~/path/to/downloaded_and_unzipped/results_17_july_2024/rocmlms .
# Use Makefile to compile
make
To build the training dataset and train RocMLMs from scratch, please follow these steps:
# Clone this repository
git clone https://github.com/buchanankerswell/kerswell_et_al_rocmlm.git
# Change into the directory
cd kerswell_et_al_rocmlm
# Use Makefile to compile
make
This will build the required python environment and proceed to run the study. Building the RocMLM training dataset from scratch takes > 10 hours to run on my MacBook Pro (M2 16GB, 2022) with an additional number of hours for training.
- Nestor Cerpa (CNRS & Géosciences Montpellier)
- Andréa Tommasi (CNRS & Géosciences Montpellier)
- Marguerite Godard (CNRS & Géosciences Montpellier)
- José Alberto Padrón-Navarta (Instituto Andaluz de Ciencias de la Tierra)
This work was supported by the Tremplin-ERC grant LEARNING awarded to Nestor Cerpa by the I-SITE excellence program at the Université de Montpellier. We thank Maurine Montagnat, Fernando Carazo, Nicolas Berlie, and many researchers and students at Géosciences Montpellier for their thoughtful feedback during the development of this work. We gratefully acknowledge additional support from the European Research Council (ERC) under the European Union Horizon 2020 Research and Innovation program grant agreement No. 882450 (ERC RhEoVOLUTION) awarded to Andréa Tommasi.
All data, code, and relevant information for reproducing this work can be found at https://github.com/buchanankerswell/kerswell_et_al_rocmlm, and at https://doi.org/10.17605/OSF.IO/K23TB, the official Open Science Framework data repository. All code is MIT Licensed and free for use and distribution (see license details). Reference models PREM and STW105 are freely available from the Incorporated Research Institutions for Seismology Earth Model Collaboration (IRIS EMC, doi: 10.17611/DP/EMC.1, Trabant et al., 2012). All computations were made using CPUs of a Macbook Pro (2022; M2 chip) with macOS 13.4 and using Python 3.11.4.
Mineral phase transformations significantly alter the bulk density and elastic properties of mantle rocks and consequently have profound effects on mantle dynamics and seismic wave propagation. These changes in the physical properties of mantle rocks result from evolution in the equilibrium mineralogical composition, which can be predicted by the minimization of the Gibbs Free Energy with respect to pressure (P), temperature (T), and chemical composition (X). Thus, numerical models that simulate mantle convection and/or probe the elastic structure of the Earth’s mantle must account for varying mineralogical compositions to be self-consistent. Yet coupling Gibbs Free Energy minimization (GFEM) approaches with numerical geodynamic models is currently intractable for high-resolution simulations because execution speeds of widely-used GFEM programs (10
MIT License
Copyright (c) 2023 Buchanan Kerswell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
