Giter Site home page Giter Site logo

lucadellalib / bdl-rul-svgd Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 0.0 11.88 MB

Bayesian deep learning for remaining useful life estimation via Stein variational gradient descent

License: Apache License 2.0

Python 100.00%
bayes-by-backprop bayesian-deep-learning bayesian-inference bayesian-neural-networks c-mapss deep-learning machine-learning predictive-maintenance python pytorch

bdl-rul-svgd's Introduction

Bayesian Deep Learning for Remaining Useful Life Estimation via Stein Variational Gradient Descent

This is the official code accompanying the paper Bayesian Deep Learning for Remaining Useful Life Estimation via Stein Variational Gradient Descent.

In this work, we explore the use of Stein variational gradient descent (SVGD) for training Bayesian deep learning models for remaining useful life (RUL) estimation. In particular, we investigate whether Bayesian deep learning models trained via SVGD can outperform in terms of convergence speed and predictive performance both the same models trained via Bayes by Backprop (BBB), which is the de-facto standard for training large scale Bayesian neural networks, and their frequentist counterparts trained via backpropagation (BP). For the experimental evaluation, we use the popular Commercial Modular Aero-Propulsion System Simulation (C-MAPSS) dataset.


🛠️️ Installation

First of all, install Miniconda. Clone or download and extract the repository, navigate to <path-to-repository>, open a terminal and run:

conda env create -f environment.yml

Project dependencies (pinned to a specific version to reduce compatibility and reproducibility issues) will be installed in a Conda virtual environment named bdl-rul-svgd.

To activate it, run:

conda activate bdl-rul-svgd

To deactivate it, run:

conda deactivate

To permanently delete it, run:

conda remove -n bdl-rul-svgd --all -y

▶️ Quickstart

Running an experiment

To train one of the available deep learning model (d3 or c2p2) on a subset of the C-MAPSS dataset (fd001, fd002, fd003 or fd004) using one of the available training algorithms (bp, bbb or svgd), open a terminal and run:

conda activate bdl-rul-svgd
python train_<algorithm>.py <model> <subset>

Results (logs, metrics, checkpoints, etc.) can be found in the auto-generated experiments directory.

Reproducing the experimental results

The experiments were run on an Ubuntu 20.04.5 LTS machine with an Intel i7-10875H CPU with 8 cores @ 2.30 GHz, 32 GB RAM and an NVIDIA GeForce RTX 3070 GPU @ 8 GB with CUDA Toolkit 11.3.1. To reproduce the experimental results, open a terminal and run:

conda activate bdl-rul-svgd
python run_experiments.py

@ Citing

@article{dellalibera2024bayesian,
  author = {Luca Della Libera and Jacopo Andreoli and Davide Dalle Pezze and Mirco Ravanelli and Gian Antonio Susto},
  title = {Bayesian Deep Learning for Remaining Useful Life Estimation via {S}tein Variational Gradient Descent},
  journal = {arXiv preprint arXiv:2402.01098},
  year = {2024},
  url = {https://arxiv.org/abs/2402.01098},
}

📧 Contact

[email protected]


bdl-rul-svgd's People

Contributors

lucadellalib avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.