Code Monkey home page Code Monkey logo

cropdamagedetection's Introduction

Sugar Beet Leaf Damage Regression Model for Smart Plant Monitoring

Introduction

We propose a computer vision and deep learning-based method of detecting sugar beet leaf damage rates using a convolutional neural network that can be incorporated into a smartphone application. We adopt a transfer learning mechanism by pre-training the model on plant-related images for plant classification task to improve the performance of the damage regression model. We visualize the learned features of our trained model to see how it recognizes the pattern of the damaged sugar beets. Our trained model achieves a RMSE of 1.71 on our held-out test set, hence demonstrating the feasibility of a deep learning-based approach. Our work can play an important role in providing a clear path toward automated and efficient crop damage detection system which can bring lots of benefits to both farmers and agriculture insurers.

Setup

Create conda environment with packages to be installed.

conda env create --file=idp_yoonha.yaml

Usage

Pre-training

To pre-train the plant classification model:

python pretrain_plant.py --epochs NUM_OF_EPOCHS

Training

To train the damage regression model:

python train_regression.py --epochs NUME_OF_EPOCHS

Linear model fitting

To fit the linear damage regression model:

python linear_generate_training_test.py
python linear_fitting.py

Evaluation

To evaluate the trained damage regression model:

python test_regression.py

To evaluate the linear damage regression model:

python test_linear.py

To visualize the learned feature map of damage regression model:

python featurevisualizer.py

cropdamagedetection's People

Contributors

yoonhachoe avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

karthikeyan49

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.