Skip to main content

How to predict time dependent variables with the help of neural networks ?

Objective: To predict the probability of rainfall based on monthly mean data of rainfall, runoff and evapotranspiration collected from a single gauge station for the last fifty years

Data Preprocessing : The fifty years mean monthly data of Rainfall,Runoff and Evapotranspiration is available.The data values of the variables is ranked in a descending way where best or minimum rank is assigned to the largest value and worst or maximum rank was given to smallest value of the variable.The probability of each of the data value of the variables can be calculated with the help of the following formula :

P = m/(n+1)

The data thus converted become dimensionless and thus normalization is not followed. If the data values have dimensions it is better to remove the scale from the same. This will make the job of the neural network program faster and easier.

Input Variables of the Present Study : Input to the model will be Probability of Runoff and Evapotranspiration.
Output Variable of the Present Study: Probability of Rainfall

Model Development :

In development of neural network model the following three steps are required to be adopted :

A) Selection of Network Topology

The topology i.e.,the number of hidden layers and nodes are important for development of an error-free model and will also enable the model to repeat its learning process per iteration. The hidden layers are responsible for learning the problem. It is also employed to store whatever it has learned from the previous trainings. The selection of topology depends on the problem type,number of data rows available,number of inputs and outputs etc. Generally trial and error is applied to find an optimal topology but nowadays metaheuristic search algorithms like Genetic Algorithm are widely utilized due to the quality and time taken to identify the optimal topology.

B)Selection of Activation Function

All the input signals are given a random weightage. These weightage is multiplied with the data values of the input and combined for feeding into the activation functions which actually excite/modifies the signal for prediction of the output. There are many kind of activation functions which are utilized according to the purpose and data availability of the model. Some of the examples may include : Step,Pulse,Sigmoidal,Tangential,Hypertan etc.

The selection of activation function is also conducted with the help of either trial and error or by metaheuristic search algorithms like Genetic Algorithm,Particle Swarm Optimization etc.

C) Selection of Training Algorithm

The training algorithms as discussed earlier is the way the weights are updated to learn the inherent problems from the given dataset. Actually in training process weights are randomly updated,combined and fed to the activation function to predict the output.If their are hidden layers then the process is repeated twice or thrice based on the number of hidden layers selected for the model.

The predicted output is compared with the actual output(in this problem data for output variable is available) to find the difference or error between them. Until and unless this difference reduces below the 'desired difference of the user' or maximum iterations allowed by the user is reached the weights are updated and the training procedure is continued. In this present investigations the data for the output is available and thus the training procedure is called as Supervised Learning.

Actually the entire dataset is divided into three parts : for training,testing and validation(generally 70,15 and 15%).

The test data is utilized when training is completed and the trained model is tested for accuracy as when the model is used for real prediction the output data will be absent.

It is found that if test error is less than training error then the model IS said to learn the inherent problem depicted by the datasets of input and output variable.

The weights are updated by various manner and procedures for updating is known as Training Algorithms.

The amount of data available for training,complexity of the problem,availability of computational infrastructures are influential in selecting the ideal training algorithm for a given problem.

Some of the examples : Conjugate Gradient Descent,Quick Propagation,Batch Back Propagation.

After the above three steps are followed the model is tested again with the entire available dataset so that the accuracy of the model can be verified with the help of performance metrics like Mean Square Error,Correlation Coefficient,Coefficient of Efficiency etc.

Parameters

In the development of neural network model a developer has to specify the following to prevent infinite iterations(A and B),generalization losses(D),consumption of time and computational infrastructures(C):

A) Maximum Number of Iterations Allowed
B)Desired MSE Wanted after training and testing
C)Improvement in Error in the las few iterations
D)Maximum generalization loss allowed

In case of the present problem as amount of dataset is adequate and the variables are dimensionless(probability values) thus the chance of generalization loss or undertraining will be minimum.

My ResearchGate Id : Mrinmoy_Majumder
Author of: Lecture Notes on MCDM

Comments

Popular posts from this blog

Five most recommendable workshop for the students pursuing masters or phd in water and energy related subjects

Enter your email address and become a subscriber of Energy in Style powered by TinyLetter The following workshops are scheduled for October 2023 and January 2024: Risk Management in Tunnelling, Numerical Analysis of Dams, Optimization under Uncertainty, Environmental and Water Resources Decision Making Using Information Theory under Climate and Anthropogenic Changes, and 13th International Workshop on Statistical Hydrology at Northeastern University in Boston, USA. Below are the details of the five recommended workshops: 1. Workshops on Risk Management in Tunnelling October 2023, New Delhi Click here to download the Program Schedule and move to Page 8 2. Workshop on Numerical analysis of dams 11-12 January 2024, New Delhi Click here  to download the Program Schedule and move to Page 8 3.Optimization under uncertainty: Theoretical insights and engineering applications at the National Institute of Technology, Silchar Duration : 30-10-2023 to 10-11-2023 Click here to access mor

Opportunity Live : Opportunities from the World of Water Energy and Informatics :Retrieved on 1st April 2024

Job/Internship Opportunities  JRF vacancy for State Specific Action Plan on Water Resource Preparation "I am looking for a JRF to work in a project titled "State Specific Action Plan on Water Sector for Odisha" sponsored by the The North Eastern Regional Institute of Water and Land Management (NERIWALM) and Department of Water Resources, Govt. of Odisha." Link to know more : https://lnkd.in/dNNTKsMY WELL LABS is hiring for the following roles Environmental Economist, Urban Water Programme Senior Project Manager, Bengaluru, Urban Water Programme Senior Project Manager, Odisha, Urban Water Programme  Link to know more : https://lnkd.in/dQTnKPPu Looking for sales engineer for Location:           NOIDA/Sikkim Industry:           Water Industry Experience:       Minimum 2 years Salary:               Best in the industry Email :  hr@fwspl.com   ECourses  Lecture Series: Introduction to Quantum Computing in Fluid Dynamics (Places Limited!) Quantum computing holds immense p

Latest News from Water Energy Nexus 12th June to 19th June 2023

  Brackish Water Can be Used as Power Plant Coolant According to NETL, using brackish water to cool power plants can reduce freshwater consumption by 94% to 100%. Brackish water is water that is not suitable for drinking or irrigation because it contains between 1,000 and 35,000 parts per million of dissolved solids. The study's findings were published online by Nature Portfolio and are available here.  Find more Management of Water and Energy Nexus is crucial for the future of India  India is one of the world's most water-stressed countries, with only 4% of the world's water supply but 18% of the population. And, in recent years, India's rapid economic rise has only increased demand for both energy and water, putting these interconnected resources under increasing stress and making the nexus between them crucial for the country's energy security and transition goals. Agriculture consumes 80% of India's water, but water is also essential to the country's ene