Git Product home page Git Product logo

probablyabdullah / prognostication-in-agriculture-using-neural-networks Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 381 KB

A forecasting study based on BigData methods through the example of pesticide sales. Predictions are based on linear regression and two neural networks frameworks, to obtain statistics and compare results.

License: GNU General Public License v3.0

Jupyter Notebook 100.00%
artificial-neural-networks jupyter-notebooks keras numpy pandas scikit-learn tensorflow

prognostication-in-agriculture-using-neural-networks's Introduction

Prognostication in Agriculture using Neural Networks

A forecasting study based on BigData methods through the example of pesticide sales. Predictions are based on linear regression and two neural networks frameworks, to obtain statistics and compare results.

PythonJupyter NotebookTensorFlowscikit-learnNumPyPandasKeras

The basic methods of forecasting using Linear Regression and Neural Networks were used. This consists of three stages:

  • Download and preliminary analysis of data
  • Forecasting
  • Artificial Neural Networks

The first stage downloads data and pre-prepares it for the analysis:

  • downloading data
  • changing the data types of columns
  • grouping data
  • DataSet transformation

At the stage of forecasting, begins the building and fitting of models, as well as the automation of statistical information calculation, in particular:

  • hypothesis creation
  • splitting the DataSet into training and test sets
  • creating a linear model using sklearn
  • calculation of basic statistical indicators
  • creating a linear model using statsmodels

At the stage of Artificial Neural Networks, begins the building and fitting of models based on Artificial Intelligence:

  • creating a linear model using Scikit-learn
  • creating a linear model using keras

Basic Tools


Libraries Used

  • Intel Scikit-Learn
  • Conda-Forge TensorFlow
  • Conda-Forge Pycountry (Deprecated in Python 3.10 onwards)
  • Conda-Forge keras
  • Pandas
  • Numpy

Dataset

The Dataset being used here is Pesticide sales, referring to sales of pesticides in Europe between 2011-2012 on the Eurostat website. Eurostat has a policy of encouraging the free re-use of its data, both for non-commercial and commercial purposes. Check out the dataset!


Takeaways

In my project, I observed that the Artificial Neural Network (ANN) produced superior results compared to other models. The ANN demonstrated higher accuracy and better performance in forecasting Fungicides and bactericides sales.

The success of the ANN can be attributed to its ability to capture complex non-linear relationships within the data, which proved beneficial in this scenario where the dependence between variables was non-linear. This allowed the ANN to make more accurate predictions and outperform other models.

By leveraging the power of neural networks, I was able to enhance the forecasting capabilities of my project and achieve more reliable and precise predictions for agricultural sales data. The improved results of the ANN reaffirmed its effectiveness in handling complex data patterns and underlined its value in the field of agricultural prognostication.


Final Plots and Graphs

Loss and Validation loss dynamics

image

Predictions of the training set and the test set using the fitted Neural Network. After inverse normalisation of data and linear regression, we get the following

image

image

Screenshot (1151)


Credits

This project was created in a guided project form with the framework created by Dr.Yaroslav Vyklyuk, prof., PhD., DrSc.
Find more such guided projects on cognitiveclass.ai.
Copyright © 2020 IBM Corporation. This notebook and its source code are released under the terms of the MIT License.

prognostication-in-agriculture-using-neural-networks's People

Contributors

probablyabdullah avatar

Stargazers

Nick Imanzi 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.