AI Assignment 5
AI Assignment 5
An Artificial Neural Network (ANN) is a computational model inspired by the structure and
function of the human brain. It is used for pattern recognition, data classification, and machine
learning.
ANNs consist of neurons (nodes) connected by weights, where each neuron processes
an input and passes it to the next layer.
Component Description
Neurons (Nodes) Basic units that process information, similar to biological neurons.
Activation Function Determines the output of a neuron (e.g., Sigmoid, ReLU, Softmax).
Loss Function Measures the difference between predicted and actual values.
Example of an ANN
✅ ANNs are widely used in deep learning, natural language processing (NLP), and robotics.
A Feedforward Neural Network (FNN) is a type of ANN where information flows in one
direction (forward), from input to output, without loops or cycles.
1. Input Layer
2. Hidden Layers
o Each neuron receives input, processes it, and passes it to the next layer.
3. Output Layer
What is Backpropagation?
1. Forward Propagation
o Compare predicted output with actual value using Mean Squared Error (MSE).
Example of Backpropagation
Neural Networks are widely used in AI and machine learning for solving complex problems.
Example: Google Assistant & Siri use deep neural networks for understanding speech.
3. Financial Forecasting
Final Summary
Concept Explanation
Artificial Neural Network (ANN) A computing model inspired by the human brain.
Feedforward Neural Networks Information moves in one direction; used for classification &
(FNNs) regression.
Applications of Neural Networks Used in vision, speech recognition, finance, healthcare, and
Concept Explanation
robotics.
Neural computation refers to the mathematical and algorithmic modeling of neural networks
used for AI and machine learning tasks.
Issue Description
Computational Training deep neural networks requires high processing power and
Complexity large datasets.
The model learns the training data too well, resulting in poor
Overfitting
generalization to new data.
Local Minima in Backpropagation uses gradient descent, which may get stuck in local
Optimization minima instead of finding the best solution.
Vanishing & Exploding In deep networks, gradients become too small or too large, making
Gradients learning unstable.
✅ Solution Approaches:
Use better activation functions (ReLU, Leaky ReLU) to avoid vanishing gradients.
Transfer learning & pre-trained models to reduce the need for large datasets.
6) Basic Components of Artificial Neural Networks (ANNs)
An ANN is a machine learning model inspired by the structure of the human brain. It is used for
pattern recognition, classification, and decision-making tasks.
Component Description
Neurons (Nodes) Basic processing unit that applies activation functions to inputs.
Input Layer Receives raw input data (features like pixels in images).
Hidden Layers Intermediate layers that transform data using activation functions.
Bias (b) Adds flexibility to learning, preventing outputs from being zero.
Activation Function Converts inputs into meaningful outputs (e.g., ReLU, Sigmoid).
Loss Function Measures the difference between actual and predicted outputs.
📌 Example:
For handwritten digit recognition, an ANN would take pixel values as input, process them in
hidden layers, and classify the number in the output layer.
ANNs are widely used in AI-powered systems for solving complex real-world problems.
Natural Language Processing (NLP) Chatbots, speech recognition (Google Assistant, Siri).
Example:
Used in: Identifying diseases from X-rays, MRI scans, blood tests.
Example:
What is Backpropagation?
1. Forward Propagation
o Compare predicted output vs actual output using loss functions like Mean
Squared Error (MSE).
Final Summary
Concept Explanation
What is an ANN?
An Artificial Neural Network (ANN) is a machine learning model inspired by the structure of
the human brain. It is used for pattern recognition, classification, and regression tasks.
Basic processing unit that receives input, applies activation, and generates
Neurons (Nodes)
output.
Input Layer Receives raw input data (features like images, text, numbers).
Hidden Layers Intermediate layers that process information using activation functions.
Activation
Decides neuron output (e.g., ReLU, Sigmoid, Tanh, Softmax).
Function
Measures the difference between actual and predicted outputs (e.g., Mean
Loss Function
Squared Error, Cross-Entropy).
Optimizer Adjusts weights to minimize the loss function (e.g., Gradient Descent, Adam).
📌 Example: In image recognition, ANN receives pixel values (input), applies hidden layer
transformations, and predicts output (cat/dog).
✅ ANNs are widely used in AI-powered applications such as speech recognition and medical
diagnostics.
10) What is a Feedforward Neural Network (FNN)?
Definition of FNN
A Feedforward Neural Network (FNN) is a type of ANN where information flows in one
direction (from input → hidden → output layers) without loops or feedback.
📌 Example:
Formula:
Y=Activation(WX+b)Y = Activation(WX + b)
📌 Example:
Uses activation functions ReLU (hidden layers) & Softmax (output layer).
What is Backpropagation?
1. Forward Propagation
o Measure the difference between predicted and actual output using Mean
Squared Error (MSE).
Example of Backpropagation
Neural Networks (ANNs) are used in real-world AI systems for automation, prediction, and
decision-making.
Example:
Example:
o Google Assistant, Siri, and Alexa use deep neural networks for speech
understanding.
Example:
o Tesla's Autopilot uses CNNs for detecting lanes, traffic lights, and objects.
Example:
Final Summary
Concept Explanation
Main Components of ANN Neurons, Layers, Weights, Bias, Activation, Loss Functions.