DL Notes-Merged
DL Notes-Merged
What is a CNN?
A Convolutional Neural Network is a deep learning model that is highly effective for processing grid-
like data, such as images. It excels in image classification, object detection, and facial recognition.
CNNs consist of several layers, including:
• Convolutional Layers: Detect features like edges and textures using filters.
CNNs are trained via supervised learning, using labeled datasets. During training, a loss function
measures performance, and an optimizer updates the model to minimize errors through
backpropagation. Evaluation on test sets is measured with metrics like accuracy, precision, recall,
and F1 score.
1. LeNet: Early CNN, designed for handwritten digit recognition (e.g., MNIST).
3. ResNet: Known for deep networks, introducing residual connections to solve vanishing
gradients.
4. GoogleNet (Inception): Efficient model with Inception modules that learn features at multiple
scales.
6. VGG: Simple architecture known for its deep layers and effectiveness in image recognition.
Applications of CNN
• Image Classification: Classifying images into categories like cats, dogs, or vehicles.
• Image Segmentation: Labeling different parts of an image for medical or robotics applications.
Advantages of CNNs
Disadvantages of CNNs
• Training Complexity: Requires significant computational resources and large labeled datasets.
CNNs are used in medical imaging, such as detecting diabetic retinopathy, a leading cause of
blindness. By analyzing retinal images, CNNs help diagnose and monitor the disease, showcasing
their capability in life-saving applications.
In conclusion, CNNs are a powerful class of neural networks, pivotal in image recognition, with far-
reaching applications across industries.
Artificial Neural Networks (ANNs) are computer systems designed to mimic how the human brain
works, specifically how it processes information through neurons (nerve cells). Just like our brain has
neurons that send signals, ANNs have artificial neurons (called units) that pass data between them in
layers. These layers help the network learn and make decisions.
• Input Layer: This is where the ANN receives data, like images or text.
• Hidden Layers: These layers process the input data, transforming it into useful information.
• Output Layer: After processing, this layer gives the final result, such as classifying whether an
image contains a cat or not.
How It Works:
Each neuron in one layer is connected to neurons in the next layer. These connections have weights,
which determine how much influence one neuron has on another. As data moves through the
network, the system learns by adjusting these weights to improve accuracy. This process is similar to
how neurons in the brain strengthen or weaken connections to learn new information.
Learning Process:
ANNs learn through a method called backpropagation. If the network makes a mistake (e.g.,
misidentifying a cat), it adjusts its weights based on the error. This learning continues until the
network can accurately perform tasks like recognizing objects or making predictions.
1. Feedforward Neural Network: The simplest form, where data moves in one direction from
input to output.
2. Convolutional Neural Network (CNN): Specializes in tasks like image processing. It uses a
technique called convolution to analyze data.
3. Modular Neural Network: Multiple independent networks work together, each handling a
different part of a task.
4. Radial Basis Function (RBF) Network: Uses functions that measure the distance between
input and a center point to make predictions.
5. Recurrent Neural Network (RNN): Has memory, meaning it uses previous outputs as inputs to
make better predictions over time.
Applications of ANNs:
• Social Media: ANNs help platforms like Facebook suggest people you might know or recognize
faces in photos.
• Marketing: E-commerce sites like Amazon use ANNs to recommend products based on your
shopping history.
• Healthcare: ANNs can analyze medical data to detect cancer or rare diseases, aiding in early
diagnosis.
• Personal Assistants: AI tools like Siri and Alexa use ANNs to understand speech and respond
to user commands.
In short, ANNs are powerful tools that can learn patterns from data and make smart predictions,
helping in everything from social media to healthcare.