Skip to main content

Bayesian estimation of empirical seismic fragility functions

Project description

BayesFrag: Bayesian estimation of empirical seismic fragility functions

DOI

BayesFrag is an open-source Python library to perform Bayesian parameter estimation of empirical seismic fragility models. The methodology is presented in

Bodenmann L., Baker J.W. , Stojadinović B. (2023): "Accounting for ground motion uncertainty in empirical seismic fragility modeling", Engineering Archive [preprint], doi:10.31224/3336.

Seismic fragility functions provide a relationship between damage and a ground motion intensity measure (IM). Empirical fragility functions are estimated from damage survey data collected after past earthquakes. This is challenging, because the IM values that caused the observed damage are uncertain. BayesFrag computes the joint posterior distribution of fragility function parameters and IM values at the sites of the surveyed buildings.

schema schema

To avoid any additional dependency on a specific library of ground motion models (GMMs), the GMM estimates are computed prior and separate to the fragility parameter estimation.

Getting started

To allow for a smooth start, we offer three tutorials that can be opened on a hosted Jupyter notebook service (e.g., Google Colab).

  • The first tutorial reproduces the results of the one-dimensional example from the manuscript and explains the implementation of the proposed estimation approach: Open In Colab
  • The second tutorial shows how the Bayesian approach can be applied to a realistic damage survey data set. The notebook can easily be modified and extended such that analysts can apply BayesFrag to their data sets of interest: Open In Colab
  • The third tutorial explains the computation of the GMM estimates, which is done prior and separate to the fragility parameter estimation: Open In Colab

Structure

The folder bayesfrag contains the main codebase of the BayesFrag package.

The folder data contains the data used in the two tutorials.

The folder results contains the results illustrated in the manuscript.

The notebook figures.ipynb reproduces the figures shown in the manuscript using utility functions from utils_plotting.py.

The script main_aquila_casestudy.py performs all computations - from parameter estimation to post-processing - to reproduce the results presented in the paper (and stored in the folder results). This script is computationally expensive and causes high memory demand. The computations were performed on a NVIDIA V100 tensor core GPU with 25 GB of RAM and we do not recommend to run this script on a standard personal computer.

Installation

BayesFrag can be installed as

pip install bayesfrag

It is good practice to do the installation in a new virtual environment, for example with venv or with miniconda. BayesFrag was tested with Python >= v3.10.

Contact

BayesFrag is an open-source software. If you are interested in contributing to the project or have any questions, comments, or suggestions, please contact Lukas Bodenmann at bodenmann (at) ibk.baug.ethz.ch.

Acknowledgments

We gratefully acknowledge support from the ETH Risk Center ("DynaRisk", Grant Nr. 395 2018-FE-213) and from the Chair of Earthquake Engineering and Structural Dynamics at ETH Zurich.

Licence

BayesFrag is released under the BSD-3-Clause license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bayesfrag-0.1.0.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

bayesfrag-0.1.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file bayesfrag-0.1.0.tar.gz.

File metadata

  • Download URL: bayesfrag-0.1.0.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for bayesfrag-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62584f03df0270012b9d2ef93413a16696e0eefef55aa07f44fcf90925959ac2
MD5 8fae5ef9ccc71c806149511300f5adc7
BLAKE2b-256 2f434dcd66922c8053795d7163f705cbd10fd1822cbda795d5eac068f40093c5

See more details on using hashes here.

File details

Details for the file bayesfrag-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bayesfrag-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for bayesfrag-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aeeb1bc83068741479fdde08b7206ff600ec1aea9510b9f46d47a34c6b967dc9
MD5 7d16d0ef9ada0ed6efc005d3e8888ed1
BLAKE2b-256 a320dc4da5b6b114c5373eb288f9e635a4bc194f2ca7a0c956cbe14dfcfb962b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page