0% found this document useful (0 votes)
2 views5 pages

Dlaa Notes

Uploaded by

irineclara
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views5 pages

Dlaa Notes

Uploaded by

irineclara
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Neural networks are computational models inspired by the structure and function of the human

brain. This introduction covers their core components, architecture, and the processes used for
training.
A Neural Network (NN) is a computational model inspired by the human brain, designed to
recognize patterns and learn from data. It consists of interconnected processing units called
neurons.
Neural networks are widely used in:
 Image recognition
 Speech processing
 Natural language processing
 Medical diagnosis
 Financial prediction
A neural network is a set of neurons (activation functions) in layers that are processed
sequentially to relate an input to an output. This example implements a multi-layer perceptron
(MLP) algorithm that trains using Backpropagation.

I. Biological vs. Artificial Neurons


 Biological Neurons: The fundamental units of the brain that transmit information through
electrochemical signals. They consist of dendrites (receive signals), a cell body (processes
signals), and an axon (transmits signals) .
 Artificial Neurons: Mathematical functions designed to mimic biological neurons. They receive
numerical inputs, apply a weighted sum, pass the result through an activation function, and
produce an output .

Biological Neuron

 Dendrites receive signals


 Cell body processes signals
 Axon sends signals
 Synapse connects neurons

Artificial Neuron

 Inputs → features
 Weights → strength of connections
 Weighted sum → computation
 Activation function → output decision

 Neural Networks (Artificial):

o Nodes/Neurons: Represent units of computation.


o Layers: Input, hidden, and output layers process data hierarchically.
o Weights and Biases: Parameters that adjust during training to optimize
performance.
o Activation Functions: Mathematical functions that determine the output of a
node.
o Learning Algorithms: Methods like backpropagation and gradient descent for
training.
 Biological Neural Networks:
o Neurons: Biological cells that transmit information.
o Synapses: Connections between neurons where signal transmission occurs.
o Neurotransmitters: Chemicals that facilitate communication between neurons.
o Plasticity: The brain's ability to adapt and rewire itself based on experience.
o Energy Efficiency: Biological networks operate with remarkable energy
efficiency compared to artificial systems.

Real-World Use Cases of Neural Networks


1. Healthcare: AI-powered diagnostic tools use neural networks to analyze medical images
and detect diseases like cancer.
2. Finance: Neural networks predict stock market trends and detect fraudulent transactions.
3. Autonomous Vehicles: Self-driving cars rely on neural networks for object detection and
decision-making.
Real-World Insights from Biological Neural Networks
1. Neuroprosthetics: Understanding biological neural networks has led to the development
of brain-computer interfaces that restore mobility to paralyzed individuals.
2. Cognitive Computing: Insights from neuroscience inspire the design of more efficient
and adaptive AI systems.
3. Mental Health: Research on biological networks informs treatments for conditions like
depression and anxiety.
Emerging Trends in Neural Networks and Biological Neural Networks
 Neuromorphic Computing: Combining principles from both fields to create energy-
efficient AI systems.
 Explainable AI: Making neural networks more interpretable by studying the brain's
decision-making processes.
 Brain Simulation: Using AI to model and understand complex brain functions.

Challenges and limitations of neural networks vs biological neural networks


Common Issues in Neural Network Implementation
 Data Dependency: Neural networks require vast amounts of labeled data for training.
 Computational Costs: Training deep networks demands significant computational
resources.
 Black Box Nature: The decision-making process of neural networks is often opaque.
Challenges in Understanding Biological Neural Networks
 Complexity: The human brain contains approximately 86 billion neurons, making it
incredibly challenging to study.
 Ethical Concerns: Research involving human or animal brains raises ethical questions.
 Limited Understanding: Despite advances, many aspects of brain function remain a
mystery.
Overcoming Barriers in Neural Networks and Biological Neural Networks
 Interdisciplinary Collaboration: Bridging AI and neuroscience to address shared
challenges.
 Advances in Hardware: Developing specialized chips for efficient neural network
training.
 Ethical Frameworks: Establishing guidelines for responsible research and application.

Artificial Neuron Equation:

y=f(∑wixi+b)y = f(\sum w_i x_i + b)y=f(∑wixi+b)

Where:

 xix_ixi = inputs
 wiw_iwi = weights
 bbb = bias
 fff = activation function

Neural Network Architecture & Components


A neural network is organized into layers:
 Input Layer: Receives the initial data [1].
 Hidden Layers: Intermediate layers where complex computations occur. Deep learning
networks have multiple hidden layers [1].
 Output Layer: Produces the final result of the network's processing [1].
Key components include:
 Weights: Parameters that determine the strength of the connection between neurons. They are
adjusted during training [1].
 Biases: Additional parameters that shift the activation function, allowing the network to better fit
data [1].

Components

1. Input Layer – receives data


2. Hidden Layer(s) – performs computation
3. Output Layer – produces result
4. Weights – learnable parameters
5. Bias – improves model flexibility
Architecture Types

 Single-layer Perceptron
 Multi-layer Perceptron (MLP)
 Deep Neural Networks (DNNs)

Activation Functions
Activation functions introduce non-linearity into the network, enabling it to learn complex
patterns. Common types include:
 ReLU (Rectified Linear Unit): Outputs the input directly if positive, otherwise outputs zero. It
is widely used due to its computational efficiency [1].
 Sigmoid: Maps input to a value between 0 and 1, often used in output layers for binary
classification [1].
 Tanh (Hyperbolic Tangent): Maps input to a value between -1 and 1, similar to sigmoid but
with a wider range [1].
Function Formula Use Case
ReLU max(0, x) Hidden layers
Sigmoid 1 / (1 + e⁻ˣ) Binary classification
Tanh (eˣ − e⁻ˣ)/(eˣ + e⁻ˣ) Centered data
Softmax eˣᵢ / Σeˣ Multi-class output

Loss Functions
Loss (or cost) functions measure the difference between the network's predicted output and the
actual target values. The goal of training is to minimize this loss.
 MSE (Mean Squared Error): Commonly used for regression tasks, it calculates the average of
the squared differences between predictions and actual values [1].
 Cross-Entropy: Used for classification tasks, it measures the performance of a classification
model whose output is a probability value between 0 and 1 [1].
Loss Function Used For
Mean Squared Error (MSE) Regression
Binary Cross-Entropy Binary classification
Categorical Cross-Entropy Multi-class classification

Training Neural Networks


The training process involves two main steps:
Forward Propagation
Input data moves forward through the network layers. Each neuron processes its inputs and
passes the result to the next layer, eventually generating an output prediction [1].

Backpropagation Algorithm
This is the core training mechanism. The error (calculated by the loss function) is propagated
backward through the network, allowing the algorithm to determine how much each weight and
bias contributed to the error. This information is then used to update the parameters [1].

Gradient Descent & Optimization Basics


Gradient descent is an optimization algorithm used to minimize the loss function. It iteratively
adjusts the network's parameters in the direction of the steepest descent of the loss function's
gradient [1].
Hyperparameters
Hyperparameters are settings defined before the training process begins and remain constant
during training:
 Learning Rate: Determines the step size at each iteration while moving toward a minimum of
the loss function [1].
 Batch Size: The number of training examples utilized in one iteration [1].
 Epochs: The number of complete passes through the entire training dataset [1].
Hyperparameter Description
Learning Rate Step size for weight update
Batch Size Samples per training step
Epochs Number of passes over data
Hidden Layers Model depth
Neurons Model capacity

Overfitting & Underfitting Concepts


These terms describe common problems during training:
 Overfitting: Occurs when the model learns the training data too well, including its noise and
random fluctuations, resulting in poor performance on new, unseen data [1].
 Underfitting: Occurs when the model is too simple to capture the underlying patterns in the
data, leading to poor performance on both training and new data [1].

You might also like