Neural Network Surrogate and Projected Gradient Descent for Fast and Reliable Finite Element Model Calibration: a Case Study on an Intervertebral Disc
Accurate calibration of finite element (FE) models is essential across various biomechanical applications, including human intervertebral discs (IVDs), to ensure their reliability and use in diagnosing and planning treatments. However, traditional calibration methods are computationally intensive, requiring iterative, derivative-free optimization algorithms that often take days to converge.
This study addresses these challenges by introducing a novel, efficient, and effective calibration method demonstrated on a human L4-L5 IVD FE model as a case study using a neural network (NN) surrogate. The NN surrogate predicts simulation outcomes with high accuracy, outperforming other machine learning models, and significantly reduces the computational cost associated with traditional FE simulations. Next, a Projected Gradient Descent (PGD) approach guided by gradients of the NN surrogate is proposed to efficiently calibrate FE models. Our method explicitly enforces feasibility with a projection step, thus maintaining material bounds throughout the optimization process.
The proposed method is evaluated against state-of-the-art Genetic Algorithm (GA) and inverse model baselines on synthetic and in vitro experimental datasets. Our approach demonstrates superior performance on synthetic data, achieving a Mean Absolute Error (MAE) of 0.06 compared to the baselines' MAE of 0.18 and 0.54, respectively. On experimental specimens, our method outperforms the baseline in 5 out of 6 cases. While our approach requires initial dataset generation and surrogate training, these steps are performed only once, and the actual calibration takes under three seconds. In contrast, traditional calibration time scales linearly with the number of specimens, taking up to 8 days in the worst-case. Such efficiency paves the way for applying more complex FE models, potentially extending beyond IVDs, and enabling accurate patient-specific simulations.
Our developed method for calibrating an L4-L5 IVD FE model to match in vitro Range-of-Motion (RoM) measurements follows these steps:
- Create a dataset by sampling material parameters within feasible bounds and obtaining corresponding RoM values with FE simulations.
- Train a neural network (NN) surrogate to minimize the Mean Absolute Error (MAE) between the predicted and simulated RoM.
- Freeze the network weights and optimize the NN input parameters to match the predicted RoM to the experimental measurements. Projected Gradient Descent (PGD) ensures that the calibrated parameters remain within feasible bounds.
To set up the environment, please follow these steps:
- Install Python 3.10.13 or a compatible version.
- Install conda.
To create the conda environment, execute the following commands:
conda env create -f IVD-CALIBNN.yml
conda activate IVD-CALIBNN
Here are the steps to use this repository:
- Dataset: The training set used to train our surrogate models and the synthetic test data can be found in the
/datasets
directory. - Model Checkpoint: A checkpoint of the trained surrogate neural network is available in the
/trained_models
directory. - Model Training: To train the surrogate models, refer to the
model_training.ipynb
notebook for the code and hyperparameters. - FE Model Calibration: For an example code on how to calibrate experimental data, check out the
pgd_calibration.ipynb
notebook.
If you use this code or find it helpful in your research, please consider citing our paper:
@article{atad2025,
title = {Neural network surrogate and projected gradient descent for fast and reliable finite element model calibration: A case study on an intervertebral disc},
journal = {Computers in Biology and Medicine},
volume = {186},
pages = {109646},
year = {2025},
issn = {0010-4825},
doi = {https://doi.org/10.1016/j.compbiomed.2024.109646},
author = {Matan Atad and Gabriel Gruber and Marx Ribeiro and Luis Fernando Nicolini and Robert Graf and Hendrik Möller and Kati Nispel and Ivan Ezhov and Daniel Rueckert and Jan S. Kirschke},
keywords = {Finite element model, Calibration, Surrogate, Neural network, Intervertebral disc},
}
This project is licensed under the MIT License.