Skip to content

This open source plant disease forecasting API and Dashboard opens new opportunities for proactive and data-driven decision-making in agriculture.

License

Notifications You must be signed in to change notification settings

UW-Madison-DSI/corn_disease_forecast_api

Repository files navigation

R-CMD-check

Forecasting Model Tools: API and Dashboard

This open-source plant disease forecasting API and Dashboard enables proactive and data-driven decision-making in agriculture. By leveraging weather data, disease models, and historical disease spread patterns, the tool empowers farmers, agronomists, and plant pathologists to monitor and predict disease outbreaks with accuracy and timeliness. The insights provided help in taking preventive actions, potentially reducing the impact of diseases on crops.

Shiny APP

Visit our dashboard here

API

Method: GET Response: A JSON object containing the predicted probability and underlying variables.

API to our models in top of Wisconet and IBM:

  • Our API provides the prediction of a number of crop diseases based on historical data sourced from 1) Wisconet and 2) IBM-source. Our API is defided to retrieve the historical data and provide the forecasting risk estimates on such locations. LINK Endpoints

Endpoints to the pre-trained disease models:

Base URL: Forecast Crop Disease API

  • /predict_tarspot_risk
    Predicts the probability and risk level for Tarspot.

  • /predict_gray_leaf_spot_risk
    Predicts the probability and risk level for Gray Leaf Spot.

  • /predict_sporecaster_risk
    Predicts the probability and risk level for Spore.

  • /predict_frogeye_leaf_spot_risk
    Predicts the probability and risk level for Frogeye.

Usage

See example of how to do an api call on this tool in the materials section of the repository HERE

For Developers

To install

git clone https://github.com/UW-Madison-DSI/corn_disease_forecast_api.git
cd corn_disease_forecast_api

Project Structure

├── LICENSE
├── README.md                       <- The top-level README for developers using this project.
├── plumber.R                       <- Logic to create API
├── R                               <- Main functionalities for API
│   ├── crop_mangm_validations.R      <- Crop management validations
│   ├── logit_functions.R              <- Core functions for forecasting disease api
├── materials                     <- Examples of API calls and plug in with Wisconet
│   ├── call_wisconet                 <- Wisconet call example
│   ├── docs                          <- Documentation of the schema
│   ├── example                       <- Examples to call the API
├── app                           <- Shinny dashboard code.
│   ├── app.R                         <- app logic, ui and server
│   ├── server.R                      <- app logic, ui and server
│   ├── ui.R                          <- app logic, ui and server
│   ├── report_template.Rmd         <- markdown for pdf report
│   ├── www                         <- web styles and pages
│   ├── logos                       <- logos
│   ├── functions                   <- APP functions
│   │   ├── api_calls_logic.R         <- Logic to call the Wisconet Station weather data and call the forecasting models on the preparation of the inputs
│   │   ├── auxiliar_functions.R      <- List of stations currently active from Wisconet  
│   │   ├── instructions.R            <- List of stations currently active from Wisconet  
│   │   ├── punctual_estimates.R      <- TBD 
├── test                            <- Code Testing modules
│   ├── testthat.R    

Plant disease models

Selected field crops and vegetable disease model outputs are provided. These models are subject to change. The calculations used to generate each model prediction can be viewed in the source code.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Mantainer: Maria Oros, [email protected]

About

This open source plant disease forecasting API and Dashboard opens new opportunities for proactive and data-driven decision-making in agriculture.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published