The Wayback Machine - https://web.archive.org/web/20241001182009/https://www.geeksforgeeks.org/backpropagation-in-data-mining/
Open In App

Backpropagation in Data Mining

Last Updated : 05 Jan, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Backpropagation is an algorithm that backpropagates the errors from the output nodes to the input nodes. Therefore, it is simply referred to as the backward propagation of errors. It uses in the vast applications of neural networks in data mining like Character recognition, Signature verification, etc.

Neural Network:

Neural networks are an information processing paradigm inspired by the human nervous system. Just like in the human nervous system, we have biological neurons in the same way in neural networks we have artificial neurons, artificial neurons are mathematical functions derived from biological neurons. The human brain is estimated to have about 10 billion neurons, each connected to an average of 10,000 other neurons. Each neuron receives a signal through a synapse, which controls the effect of the signconcerning on the neuron.

Artificial Neural Network Structure

 

Backpropagation:

Backpropagation is a widely used algorithm for training feedforward neural networks. It computes the gradient of the loss function with respect to the network weights. It is very efficient, rather than naively directly computing the gradient concerning each weight. This efficiency makes it possible to use gradient methods to train multi-layer networks and update weights to minimize loss; variants such as gradient descent or stochastic gradient descent are often used.

The backpropagation algorithm works by computing the gradient of the loss function with respect to each weight via the chain rule, computing the gradient layer by layer, and iterating backward from the last layer to avoid redundant computation of intermediate terms in the chain rule.

Features of Backpropagation:

  1. it is the gradient descent method as used in the case of simple perceptron network with the differentiable unit.
  2. it is different from other networks in respect to the process by which the weights are calculated during the learning period of the network.
  3. training is done in the three stages : 
    • the feed-forward of input training pattern
    • the calculation and backpropagation of the error
    • updation of the weight

Working of Backpropagation:

Neural networks use supervised learning to generate output vectors from input vectors that the network operates on. It Compares generated output to the desired output and generates an error report if the result does not match the generated output vector. Then it adjusts the weights according to the bug report to get your desired output.

Backpropagation Algorithm:

Step 1: Inputs X, arrive through the preconnected path.

Step 2: The input is modeled using true weights W. Weights are usually chosen randomly.

Step 3: Calculate the output of each neuron from the input layer to the hidden layer to the output layer.

Step 4: Calculate the error in the outputs

Backpropagation Error= Actual Output – Desired Output

Step 5: From the output layer, go back to the hidden layer to adjust the weights to reduce the error.

Step 6: Repeat the process until the desired output is achieved.

 

 

Parameters :

  • x = inputs training vector x=(x1,x2,…………xn).
  • t = target vector t=(t1,t2……………tn).
  • δk = error at output unit.
  • δj  = error at hidden layer.
  • α = learning rate.
  • V0j = bias of hidden unit j.

Training Algorithm :

Step 1: Initialize weight to small random values.

Step 2: While the stepsstopping condition is to be false do step 3 to 10.

Step 3: For each training pair do step 4 to 9 (Feed-Forward).

Step 4: Each input unit receives the signal unit and transmitsthe signal xi signal to all the units.

Step 5 : Each hidden unit Zj (z=1 to a) sums its weighted input signal to calculate its net input 

                     zinj = v0j + Σxivij     ( i=1 to n)

           Applying activation function zj = f(zinj) and sends this signals to all units in the layer about i.e output units

           For each output l=unit yk = (k=1 to m) sums its weighted input signals.

                     yink = w0k + Σ ziwjk    (j=1 to a)

           and applies its activation function to calculate the output signals.

                     yk = f(yink)

Backpropagation Error :

Step 6: Each output unit yk (k=1 to n)  receives a target pattern corresponding to an input pattern then error is calculated as:

                   δk = ( tk – yk ) + yink 

Step 7: Each hidden unit Zj (j=1 to a) sums its input from all units in the layer above 

                  δinj = Σ δj wjk 

              The error information term is calculated as :

                  δj = δinj + zinj

Updation of weight and bias :

Step 8: Each output unit yk (k=1 to m) updates its bias and weight (j=1 to a). The weight correction term is given by :

                                        Δ wjk = α δk zj

                   and the bias correction term is given by  Δwk = α δk.

                   therefore    wjk(new) = wjk(old) + Δ wjk

                                          w0k(new) = wok(old) + Δ wok

                  for each hidden unit zj (j=1 to a) update its bias and weights (i=0 to n) the weight connection term 

                                 Δ vij = α δj xi

                and the bias connection on term 

                                 Δ v0j = α δj

              Therefore vij(new) = vij(old) +   Δvij

                                   v0j(new) = v0j(old) +  Δv0j

Step 9: Test the stopping condition. The stopping condition can be the minimization of error, number of epochs.

Need for Backpropagation:

Backpropagation is “backpropagation of errors” and is very useful for training neural networks. It’s fast, easy to implement, and simple. Backpropagation does not require any parameters to be set, except the number of inputs. Backpropagation is a flexible method because no prior knowledge of the network is required.

Types of Backpropagation

There are two types of backpropagation networks.

  • Static backpropagation: Static backpropagation is a network designed to map static inputs for static outputs. These types of networks are capable of solving static classification problems such as OCR (Optical Character Recognition).
  • Recurrent backpropagation: Recursive backpropagation is another network used for fixed-point learning. Activation in recurrent backpropagation is feed-forward until a fixed value is reached. Static backpropagation provides an instant mapping, while recurrent backpropagation does not provide an instant mapping.

Advantages:

  • It is simple, fast, and easy to program.
  • Only numbers of the input are tuned, not any other parameter.
  • It is Flexible and efficient.
  • No need for users to learn any special functions.

Disadvantages:

  • It is sensitive to noisy data and irregularities. Noisy data can lead to inaccurate results.
  • Performance is highly dependent on input data.
  • Spending too much time training.
  • The matrix-based approach is preferred over a mini-batch.


Similar Reads

Frequent Pattern Mining in Data Mining
Frequent pattern mining in data mining is the process of identifying patterns or associations within a dataset that occur frequently. This is typically done by analyzing large datasets to find items or sets of items that appear together frequently. Frequent pattern extraction is an essential mission in data mining that intends to uncover repetitive
10 min read
Mining Collective Outliers Data Mining
A database may contain data objects that do not comply with the general behavior or model of the data. These data objects are Outliers. The investigation of OUTLIER data is known as OUTLIER MINING. An outlier may be detected using statistical tests which assume a distribution or probability model for the data, or using distance measures where objec
5 min read
Generalized Sequential Pattern (GSP) Mining in Data Mining
GSP is a very important algorithm in data mining. It is used in sequence mining from large databases. Almost all sequence mining algorithms are basically based on a prior algorithm. GSP uses a level-wise paradigm for finding all the sequence patterns in the data. It starts with finding the frequent items of size one and then passes that as input to
7 min read
Text Mining in Data Mining
In this article, we will learn about the main process or we should say the basic building block of any NLP-related tasks starting from this stage of basically Text Mining. What is Text Mining?Text mining is a component of data mining that deals specifically with unstructured text data. It involves the use of natural language processing (NLP) techni
10 min read
Different Types of Data in Data Mining
Introduction : In general terms, “Mining” is the process of extraction. In the context of computer science, Data Mining can be referred to as knowledge mining from data, knowledge extraction, data/pattern analysis, data archaeology, and data dredging. There are other kinds of data like semi-structured or unstructured data which includes spatial dat
7 min read
Data Cube or OLAP approach in Data Mining
What is OLAP?OLAP stands for Online Analytical Processing, which is a technology that enables multi-dimensional analysis of business data. It provides interactive access to large amounts of data and supports complex calculations and data aggregation. OLAP is used to support business intelligence and decision-making processes. Grouping of data in a
4 min read
Difference between Data Profiling and Data Mining
1. Data Mining :Data mining can be defined as the process of identifying the patterns in a prebuilt database. It extracts aberrant patterns, interconnection between the huge datasets to get the correct outcomes.Data mining, sometimes known as “Knowledge discovery in databases”. We can say that it is a combination of three scientific disciplines i.e
5 min read
Data Mining - Time-Series, Symbolic and Biological Sequences Data
Data mining refers to extracting or mining knowledge from large amounts of data. In other words, Data mining is the science, art, and technology of discovering large and complex bodies of data in order to discover useful patterns. Theoreticians and practitioners are continually seeking improved techniques to make the process more efficient, cost-ef
3 min read
Data Mining For Financial Data Analysis
Data Mining is a quite strong field to execute advanced examination of data as well as it carries off techniques and mechanisms from statistics and machine learning. Business intelligence and advanced analytics applications use the information which is generated by it which involves the analysis of verified data. Financial analysis of data is very
3 min read
Clustering High-Dimensional Data in Data Mining
Clustering is basically a type of unsupervised learning method. An unsupervised learning method is a method in which we draw references from datasets consisting of input data without labeled responses. Clustering is the task of dividing the population or data points into a number of groups such that data points in the same groups are more similar t
3 min read
Complex Data Types in Data Mining
The Complex data types require advanced data mining techniques. Some of the Complex data types are sequence Data which includes the Time-Series, Symbolic Sequences, and Biological Sequences. The additional preprocessing steps are needed for data mining of these complex data types. 1. Time-Series Data Mining: In time-series data, data is measured as
7 min read
Data Replication Methods in Data Mining
Data replication is the process of copying or transferring the data from a database from one server of a database to a database of another server. It helps to improve data availability and accessibility. This process also facilitates data recovery and data sharing. Data replication is performed in order to provide duplication of the whole data in c
5 min read
Outlier Detection in High-Dimensional Data in Data Mining
An outlier is a data object that deviates significantly from the rest of the data objects and behaves in a different manner. An outlier is an object that deviates significantly from the rest of the objects. They can be caused by measurement or execution errors. The analysis of outlier data is referred to as outlier analysis or outlier mining. Outli
6 min read
General Strategies for Data Cube computation in Data Mining
Pre-requisites: Data mining Data Mining can be referred to as knowledge mining from data, knowledge extraction, data/pattern analysis, data archaeology, and data dredging. In data mining, a data cube is a multi-dimensional array of data that is used for online analytical processing (OLAP). Here are a few strategies for data cube computation in data
4 min read
Techniques To Evaluate Accuracy of Classifier in Data Mining
Pre-requisites: Data Mining Data Mining can be referred to as knowledge mining from data, knowledge extraction, data/pattern analysis, data archaeology, and data dredging. In this article, we will see techniques to evaluate the accuracy of classifiers. HoldOutIn the holdout method, the largest dataset is randomly divided into three subsets: A train
3 min read
Associative Classification in Data Mining
Data mining is the process of discovering and extracting hidden patterns from different types of data to help decision-makers make decisions. Associative classification is a common classification learning method in data mining, which applies association rule detection methods and classification to create classification models. Association Rule lear
7 min read
Statistical Methods in Data Mining
Data mining refers to extracting or mining knowledge from large amounts of data. In other words, data mining is the science, art, and technology of discovering large and complex bodies of data in order to discover useful patterns. Theoreticians and practitioners are continually seeking improved techniques to make the process more efficient, cost-ef
6 min read
Data Mining Techniques
Data mining refers to extracting or mining knowledge from large amounts of data. In other words, Data mining is the science, art, and technology of discovering large and complex bodies of data in order to discover useful patterns. Theoreticians and practitioners are continually seeking improved techniques to make the process more efficient, cost-ef
15+ min read
Graph Clustering Methods in Data Mining
Technological advancement has made data analysis and visualization easy. These include the development of software and hardware technologies. According to Big Data, 90% of global data has doubled after 1.2 years since 2014. In every decade we live, we can attest that data analysis is becoming more straightforward and quick. This shows that the data
5 min read
Discovery Driven Cube Space Exploration in Data Mining
Discovery-driven cube space exploration is a technique used in data mining to identify and analyze patterns and trends in data. It involves using data mining algorithms and techniques to explore a data cube (a multidimensional data structure used in data warehousing and business intelligence) and identify patterns and trends that may not be immedia
3 min read
Introduction to Data Mining
Data mining is the process of extracting useful information from large sets of data. It involves using various techniques from statistics, machine learning, and database systems to identify patterns, relationships, and trends in the data. This information can then be used to make data-driven decisions, solve business problems, and uncover hidden in
5 min read
Advantages and Disadvantages of ANN in Data Mining
Neural networks are a series of algorithms that act like a human brain to recognize patterns and among vast amounts of data. An artificial neural network (ANN) also referred to as simply a "Neural Network" (NN), could be a process model supported by biological neural networks. It consists of an interconnected collection of artificial neurons. A neu
3 min read
Determining the Number of Clusters in Data Mining
In Clustering algorithms like K-Means clustering, we have to determine the right number of clusters for our dataset. This ensures that the data is properly and efficiently divided. An appropriate value of 'k' i.e. the number of clusters helps in ensuring proper granularity of clusters and helps in maintaining a good balance between compressibility
6 min read
Data Mining and Recommender Systems
Data mining makes use of various methodologies in statistics and different algorithms, like classification models, clustering, and regression models to exploit the insights which are present in the large set of data. It helps us to predict the outcome based on the history of events that have taken place. For example, the amount a person spends on a
5 min read
Classification-Based Approaches in Data Mining
Classification is that the processing of finding a group of models (or functions) that describe and distinguish data classes or concepts, for the aim of having the ability to use the model to predict the category of objects whose class label is unknown. The determined model depends on the investigation of a set of training data information (i.e. da
5 min read
Clustering-Based approaches for outlier detection in data mining
Clustering Analysis is the process of dividing a set of data objects into subsets. Each subset is a cluster such that objects are similar to each other. The set of clusters obtained from clustering analysis can be referred to as Clustering. For example: Segregating customers in a Retail market as a frequent customer, new customer. Basic approaches
6 min read
Data Mining For Intrusion Detection and Prevention
The security of our computer systems and data is at continual risk. The extensive growth of the Internet and the increasing availability of tools and tricks for intruding and attacking networks have prompted intrusion detection and prevention to become a critical component of networked systems. Intrusion Unauthorized access by an intruder involves
6 min read
Data Mining for Retail and Telecommunication Industries
Data Mining plays a major role in segregating useful data from a heap of big data. By analyzing the patterns and peculiarities, it enables us to find the relationship between data sets. When the unprocessed raw data is processed into useful information, it can be applied to enhance the growth of many fields we depend on in our day-to-day life. This
12 min read
Ubiquitous and Invisible Data Mining
Data Analytics is one of the most emerging technologies in the present-day world. With the increase in the demand for portable and remote devices like mobile phones and personal digital assistants (PDAs), the need for extracting data from these devices for analysis plays a crucial role in order to perform data analysis. Therefore, accessing data fr
4 min read
Predictive Analysis in Data Mining
Predictive analysis is a form of data analysis that uses statistical algorithms and machine learning techniques to identify the likelihood of future outcomes based on historical data. This method of analysis is used to make informed decisions, forecast future trends, and mitigate risks by predicting the likelihood of various outcomes. Predictive an
4 min read
Article Tags :