Giter VIP home page Giter VIP logo

sfd-cnn-tl's Introduction

This page is available as an executable or viewable Jupyter Notebook: Binder NbViwer

This code allows to reproduce results of our article:

Seismic fault detection in real data using Transfer Learning from a Convolutional Neural Network pre-trained with synthetic seismic data

Notebook visualization

We provide two option to easily open and see our ipython notebooks:

We strongly recommend using NbViwer to visualize our notebooks instead open in GitHub, because you will see the interactive plots.

Dependencies

environment.yml

To install all requirements in the environment use:

conda env create -f environment.yml

Sometimes is needed to create a kernel of the environment to jupyter notebooks:

python -m ipykernel install --user --name sfd --display-name "SFD-CNN-TL"

Our F3 Block pre-trained model can be found in:

base_model/model.json
base_model/model.h5

Our F3 Block slice manualy interpreted dataset can be found in:

dataset/fault
dataset/nonfault

Transfer learning methods:

ft.py : full fine tuning (FFT)
mlp.py : feature extractor with Multi Layer Perceptron (FE-MLP)
svm.py : feature extractor with Support Vector Machine (FE-SVM)

Default parameters are set to produce the results presented in the article.

Generated models can be saved by setting the boolean value save=true in functions create_model(). they will be save in the output/ directory.

Classification results:

classify.py : generates a classification file for models saved as .json and .h5
classify_with_SVM.py : generates a classification file for models saved as .pkl

Classification files is saved in directiry classification/output/ It contains patches coordinates associated to a class value (1 for fault, 0 otherwise)

We provide a region of a real section where a fault is clearly visible as demo in the classification/ directory. Other sections can be classified modifying the classify.py and classify_with_SVM.py files.

Metrics:

metrics.py : computes quality metrics (accuracy, sensitivity, specificity = recall, F1-score, ROC AUC and we added precision)

Interactive examples:

classifyAndViewF3.ipynb: Classify selected sections of F3 seismic data with all pretrained methods and show the results
classifyAndViewGSB.ipynb: Classify selected sections of GSB seismic data with all pretrained methods and show the results
TrainAndSave.ipynb: Train all methods with one interpreted section of a real data and save network weights

sfd-cnn-tl's People

Contributors

augustoicaro avatar

Watchers

James Cloos 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.