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

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

Five ideas to open startups in water filter industry

  Below are five innovative startup ideas related to water filters: 1. Develop an app or device that can monitor the water filter candles and provide notifications to the user when maintenance or replacement is required. This could help homeowners keep track of the health of their water filter and ensure that it's functioning optimally at all times. 2. Create an in-situ water quality monitoring device and app for home water filters. This device would provide users with real-time information about the quality of their water and identify any potential issues that need to be addressed. This could be especially helpful for homeowners who rely on well water or live in areas with poor water quality. 3. Reuse wastewater from reverse osmosis filters by channeling it through a gravity filter. This would allow homeowners to save money on their water bills and reduce their environmental footprint by reusing water that would otherwise go to waste. 4. Design an in-situ energy monitoring device

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