Giter Club home page Giter Club logo

particle-force-cnn's Introduction

knitr::opts_knit$set(root.dir = getwd())

CNN-based Reconstruction of Forces for Photoelastic Particles

Abstract

Photoelastic techniques have a long tradition in both qualitative and quantitative analysis of the stresses in granular materials. Over the last two decades, computational methods for reconstructing forces between particles from their photoelastic response have been developed by many different experimental teams. Unfortunately, all of these methods are computationally expensive. This limits their use for processing extensive data sets that capture the time evolution of granular ensembles consisting of a large number of particles. In this repository, we present a novel approach to this problem which leverages the power of convolutional neural networks to recognize complex spatial patterns. The main drawback of using neural networks is that training them usually requires a large labeled data set which is hard to obtain experimentally. Hence, our networks were trained on synthetically generated data. In our paper, we show that a relatively small sample of real data is then needed to adapt models to perform well on the experimantal data. One could find more about how the models were constucted in our paper, currently available on arXiv.

Instructions on using the models

Running the model on the provided test data:

  1. Install Anaconda from here with Tensorflow (guide). Additionally, you may need to install the following packages: numpy, pandas, matplotlib, scikit-learn, and scipy.
  2. Clone our repository to your local machine. Upon request, we can also provide our best-performing trained models, which we do not publish here due to the size of the files.
  3. In your terminal application (inside the conda environment you created) type the following command: python test.py user_input 0.008 2 6 <path to image_data folder> <path to models folder>, where you substitute <> expressions with the appropriate paths.

Running the model on other data:

  1. Apply steps 1-2 above.
  2. In your terminal application (inside the conda environment you created) type the following command: python test.py user_input [radius] [min number of forces] [max number of forces] <path to data folder> <path to models folder>, where you substitute <> expressions with the appropriate paths and [] with the appropriate numbers based on your data (note: our model currently only supports radius = 0.008, min number of forces > 1, max number of forces < 7).

particle-force-cnn's People

Contributors

mrsergazinov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.