0% found this document useful (0 votes)
3 views9 pages

8-Module-II Introduction

Module II focuses on Convolutional Neural Networks (CNNs) and their application in Computer Vision, transitioning from tabular data learning to visual data interpretation. It highlights the limitations of traditional Artificial Neural Networks (ANNs) with images and explains how CNNs address these challenges through local connectivity, parameter sharing, and hierarchical feature extraction. The module is structured into four levels, progressing from foundational concepts to advanced applications like object detection and semantic segmentation.

Uploaded by

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

8-Module-II Introduction

Module II focuses on Convolutional Neural Networks (CNNs) and their application in Computer Vision, transitioning from tabular data learning to visual data interpretation. It highlights the limitations of traditional Artificial Neural Networks (ANNs) with images and explains how CNNs address these challenges through local connectivity, parameter sharing, and hierarchical feature extraction. The module is structured into four levels, progressing from foundational concepts to advanced applications like object detection and semantic segmentation.

Uploaded by

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

Module – II

Module – II
Convolutional Neural Network
Module 2 Introduction

In Module 1, we began with something that looked like “magic”: ChatGPT writing essays, and image
generators turning a prompt into a picture. Then we pulled the curtain back—it isn’t magic. It’s
“mathematics, patterns, and layers upon layers of simple operations working together.”

You didn’t just hear that idea—you proved it to yourself by building and training an Artificial Neural
Network. You learned the rhythm of deep learning:

data → model → loss → backpropagation → optimization → prediction.

That rhythm stays with us.

But there’s a reason the course roadmap goes: ANNs → CNNs → VAE/GANs → Transformers . The
next step is not “more layers.” The next step is a different kind of data—data that lives in space.

In short:

● In Module 1, we taught a network to learn from tables.

● In Module 2, we teach a network to learn from vision.

And the moment we step into vision, something surprising happens:

The network we used for tabular data suddenly feels… a little blind.

1. From tabular intelligence to visual intelligence

Tabular data is already “pre-explained.” A dataset might tell your model: age, salary, temperature,
blood pressure. Each feature is a human-designed summary of the world.

But an image doesn’t arrive with “features.” It arrives as raw pixel values.

A simple photo is already a dense grid of numbers. A color photo is usually three grids stacked
together.
This is why we begin Module 2 exactly where your slide deck begins: we shift the mind from “tabular
learning” to Computer Vision fundamentals, image handling, and human vision.

Convolutional Neural Networks: Entering the World of Vision


Computer Vision is the part of AI that tries to answer a deceptively simple question:
Can a machine look at an image and understand what a human understands?
For a human, this feels effortless. If you see a sunflower image, you can instantly describe what’s
happening: the sunflower is a crop, there may be mountains in the background, and a leaf just below
the flower—your mind naturally separates foreground and background and turns pixels into
meaning.
A computer does not get this “meaning” for free.
This module begins by entering the vision world slowly and carefully—starting from what images are,
what Computer Vision does, why the neural networks you built in Module 1 are not ideal for images,
and how Convolutional Neural Networks (CNNs) solve that problem.

1. Human vision: understanding without calculation


Human vision is powerful not because our eyes capture high-resolution images, but because our
brain can quickly convert a scene into a structured interpretation:
• What objects are present?
• What is near or far?
• What belongs to the background and what belongs to the foreground?
• What parts belong to the same object?

When you look at the sunflower scene, you do not examine individual pixels. You recognize objects,
relationships, and spatial layout.
This is the benchmark Computer Vision aims to approximate: from raw visual input to scene-level
understanding.

2. Computer Vision: teaching machines to see


Computer vision is an interdisciplinary field that deals with how computers can gain high-level
understanding from images or videos, and how that understanding can be used to automate tasks
the human visual system performs.
From an engineering perspective, this means more than storing and displaying images. It means
extracting information.
A computer starts from a different place than a human:
• To you, an image is “a sunflower in a field.”
• To a computer, an image is a collection of numbers arranged in a grid.
Each image is represented as numerical values describing pixel intensities, and those values must be
processed and interpreted before understanding can emerge.
Computer vision therefore tries to answer questions like:
• What objects are present?
• Where are they located?
• How are different objects related?
• What is happening in the scene?
This naturally leads us into deep learning—because modern vision systems must learn patterns
directly from data rather than rely on hand-crafted rules.

3. What an image really is: data with structure


In Module 1, most of your input was tabular: each sample was a row of features. The ANN you built
learned relationships between
columns and targets.
Images are different. Images
are structured.
An image is a grid, and its
structure matters:
• Nearby pixels usually
belong to the same
region.
• Edges and shapes
emerge from local
neighborhoods.
• Meaning is strongly
tied to spatial
arrangement.
A color image is typically represented as three channels (Red, Green, Blue), forming a tensor-like
structure ((H, W, C)).
This structure is not a detail—it is the core reason CNNs exist.
In real-world applications, images also come in many file formats (JPG, PNG, TIFF, SAR), and must be
read and normalized before they can be used.
Basic image handling is therefore part of Computer Vision literacy: reading, visualizing, resizing,
filtering, and preparing images for learning. Your slides also highlight standard tools for this, such as
matplotlib image functions (e.g., imread, imsave, imshow) and PIL operations (open, save, crop,
resize, rotate, filter).

4. The Computer Vision pipeline: from capture to understanding


Before we talk about CNNs, it helps to see where they fit in the larger system.
A typical Computer Vision pipeline can be summarized as five stages:
Capture in Digital Format → Process the image for Algorithms → Apply the Algorithm →
Predict/Generate → Possible Analysis
This pipeline matters because it prevents a common misunderstanding:
CNNs are not the entire system. CNNs are the core learning component inside a larger process.
For example:
• The system captures an image (camera/sensor).
• It preprocesses it (resize, normalize, reduce noise).
• A CNN is applied to learn visual features and produce outputs.
• The outputs are evaluated, visualized, and used for decisions.
(Suggested figure placeholder: A clean 5-stage vision pipeline diagram.)
5. The ladder of Computer Vision tasks
Once a computer can process an image, what should it do with it?
Computer Vision tasks form a natural progression—from simple predictions to full scene
understanding:
• Classification: What is in the image?
• Localization / Detection: Where are the object(s)?
• Semantic Segmentation: What is where at the pixel level?
• Generation: Can we create new images?
This progression also explains why “image AI” is not one skill. As tasks become richer, models must
preserve and use spatial structure more deeply.
Your slides capture the key turning point clearly: classification gives labels like “car/road/tree,” but
something is missing—where is/are the object(s)?
When the scene has multiple objects, the problem becomes detection.
When we need a complete understanding for driving (not just boxes), we move toward semantic
segmentation, often with CNN architectures like U-Net.
(Suggested figure placeholder: One scene shown as classification output, detection output, and
segmentation output.)
Autoencoders and Advanced Models (to be covered in next modules)

6. Where Module 1 fits: ANNs are the learning engine you already own
By completing Module 1, you already learned the heart of deep learning: how a model learns from
data by minimizing loss and improving through training.
Module 1 was designed with progressive mastery: reaching Level 1 meant you could build and train a
functional neural network and proceed to the CNN module.
That learning engine does not change here.
What changes is the nature of the input.
• In tabular data, the input is already feature-engineered.
• In images, the input is raw pixels arranged in space.
So the question becomes:
Can the ANN architecture from Module 1 handle images efficiently?

7. Why ANNs struggle with images


At first glance, an image is “just numbers,” so an ANN should work. But in practice, traditional fully
connected ANNs face fundamental limitations with images:
7.1 Parameter explosion
As image size increases, the number of
input values becomes huge. In a fully
connected network, parameters grow
extremely fast, and even modest hidden
layers can produce millions of
parameters, making the model slow,
memory-intensive, and prone to
overfitting.
7.2 Loss of spatial structure
Images are structured grids where local
neighborhoods matter. Flattening
destroys spatial relationships, forcing the
network to relearn locality without any built-in support.
7.3 No built-in translation awareness
Humans recognize an object regardless of where it appears. A standard ANN does not naturally have
this property; shifting an object changes many input values and the network treats it as a different
pattern.
7.4 Redundant feature learning
Common visual patterns (edges, textures, simple shapes) repeat across the image. Traditional ANNs
learn separate parameters for each position and do not efficiently reuse learned patterns.
These are not small issues—they are architectural limitations.
So we need a neural architecture that:
• respects spatial structure,
• focuses on local patterns first,
• reuses learned features across the image,
• and reduces parameter count without losing expressive power.
That is exactly what Convolutional Neural Networks provide.

8. CNNs: the architecture designed for vision


A CNN is a neural network specialized for images. It keeps the learning principles of ANNs (training
loops, loss minimization, optimization), but changes how features are extracted.
Instead of connecting every pixel to every neuron, CNNs learn with:
• local connectivity (small receptive fields),
• parameter sharing (the same filter is reused across locations),
• feature maps that build a hierarchy of patterns.
This is the key idea that allows a network to learn visual structure efficiently—and it is why CNNs
became central to modern Computer Vision systems.

9. What you will learn in this CNN module (Level-wise map)


This module is structured in four progressive levels, moving from fundamentals to advanced
applications.
Level 1: Foundations of CNNs
You will learn why CNNs exist and how they work at a basic level: images as numerical matrices,
limitations of ANNs for images, convolution/filters/feature maps, pooling, and the structure of a
basic CNN—ending with building and training a simple LeNet/AlexNet-style CNN.
Level 2: CNN Architectures and Transfer Learning
You will study standard architectures such as AlexNet and VGG, understand the value of pre-trained
models, and learn feature extraction vs fine-tuning, along with practical architecture comparison for
real tasks.
Level 3: Modern CNN Design Principles
You will explore why very deep CNNs are hard to train, and how modern design solves this through
concepts like vanishing gradients, residual connections (ResNet), and multi-scale design ideas—along
with feature visualization and architectural analysis.
Level 4: Object Detection and Semantic Segmentation
Object Detection and Semantic Segmentation You will move beyond classification into spatial vision
tasks. First, you'll learn object detection—how to answer "where are the objects?" using bounding
boxes, anchor mechanisms, IoU metrics, and architectures like YOLO and R-CNN. You'll understand
mAP evaluation and train YOLOv8 on real datasets. Then you'll advance to semantic segmentation—
answering "which exact pixels belong to what?" using encoder-decoder architectures like U-Net with
skip connections. You'll master task-specific losses, proper data augmentation (including mask
handling), and end-to-end deployment considerations for both detection and segmentation systems.

Closing perspective
Module 1 taught you how neural networks learn from structured features.
Module 2 teaches you how neural networks learn from visual structure—how they learn to see.
By the end of this module, CNNs will not feel like a list of layers to memorize. They will feel like a
design that became necessary once we tried to make neural networks work with images.

If you want, I can now do the next step in a clean way:


write Level 1 opening section (“Images as matrices → traditional filters → why ANN fails →
convolution insight”) as the first part of the learning chapter, continuing seamlessly from this
introduction.

You might also like