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.
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
- Python - basic level
- Pandas
- SeaBorn
- Statistics - basic level
- Scikit-learn
- keras
- Intel Scikit-Learn
- Conda-Forge TensorFlow
- Conda-Forge Pycountry (Deprecated in Python 3.10 onwards)
- Conda-Forge keras
- Pandas
- Numpy
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!
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.
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
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
.