10/14/26: Lect-07 (cont.)
Overview
Joseph Zambreno explains CNNs as feature extractors followed by dense task-specific layers, then traces LeNet’s MNIST design and its adaptations for classifying bearing faults from spectrograms. He also outlines a four-and-a-half-week team project and previews how ImageNet, GPUs, and advances such as ReLU enabled the progression from LeNet toward modern CNNs.
Key takeaways
- LeNet’s 28 × 28 MNIST input becomes 16 feature maps of size 5 × 5, yielding 400 flattened features before its 400→120→84→10 classification layers.
- CNNs can classify non-image inputs when preprocessing creates meaningful spatial structure; spectrograms of bearing vibration data are a plausible case, while arbitrarily ordered spreadsheet columns are not.
- For four bearing-fault classes, 25% accuracy is chance-level, and 100% accuracy on synthetic data with fixed patterns should prompt checks for leakage or an unrealistically simple task.
- The course mini-project is worth 200 points and requires a feasible proposal, a runnable Jupyter notebook, and a roughly 10-minute prerecorded presentation.
- Two stacked 3 × 3 convolutions have an effective 5 × 5 receptive field, offering broader visual context with fewer per-layer weights than a single 5 × 5 convolution.
- The shift from LeNet to modern CNNs depended on ImageNet-scale data, programmable GPU acceleration, and later techniques such as ReLU and dropout, not simply adding more layers.
Chapters
- A CNN typically stacks convolution and activation layers, sometimes interleaved with pooling, before a final MLP.
- Early convolutions can learn edge-like patterns; deeper layers learn increasingly complex features.
- Convolutional feature extraction is shared across tasks, while the dense layers produce the final classification or regression output.
- Yann LeCun designed LeNet for recognizing MNIST’s handwritten digits, with 10 output classes.
- LeCun’s key contribution was making convolutional networks trainable by backpropagation in practice, not inventing convolution itself.
- Understanding an architecture means tracing its data dimensions and engineering choices, not treating its layer diagram as magic.
- LeNet starts with a 28 × 28 grayscale image and applies six 5 × 5 filters with padding 2, preserving the 28 × 28 resolution.
- A 2 × 2 average-pooling layer with stride 2 reduces the feature maps to 14 × 14; the next 5 × 5 convolution maps six channels to 16 and reduces spatial size to 10 × 10.
- A second pooling stage produces 16 maps of size 5 × 5, or 400 flattened inputs, followed by fully connected layers of 400→120→84→10.
- PyTorch layer summaries can verify output shapes and help debug models against hand calculations.
- A spectrogram converts motor-accelerometer time-series data into a time-frequency representation that can be treated as an image.
- Frequency bands and bursts may reveal normal operation or bearing faults in the inner ring, outer ring, or ball.
- A CNN is appropriate when the representation has meaningful spatial structure; arbitrary spreadsheet columns generally do not.
- For tabular data, swapping columns can test whether a CNN’s apparent spatial relationships are meaningful or merely artifacts.
- The original LeNet uses sigmoid activations and average pooling, which can cause vanishing gradients or smooth away the sharp bursts relevant to bearing faults.
- The adapted model uses newer techniques including ReLU and dropout, which randomly zeroes a fraction of neurons during training to reduce overfitting.
- On a four-class fault task, accuracy near 0.25 is roughly random guessing; metrics must be interpreted relative to the number of classes.
- The adapted model reached 100% on synthetic data with fixed, easily separable patterns, a result that calls for checks for leakage and task simplicity rather than automatic celebration.
- The semester project runs about four and a half weeks after Labs 5 and 6, with a proposal, informal progress check-in, and final demo during the exam-week slot.
- Teams should have two to four students and preferably share a lab section; teams need to notify the TA before proposal submission so Canvas groups can be set up.
- Teams reserve topics by posting a one- or two-sentence idea in the mini-project Discord channel, with priority based on posting order.
- The project should extend course material rather than begin as a fully open-ended, from-scratch assignment.
- A project can be interesting by introducing a new relevant dataset, a new application domain, or a new modeling method; one strong axis can be enough.
- A project that exactly reproduces an existing Kaggle or GitHub example should be differentiated rather than copied.
- A proposal should balance meaningful design work against the four-and-a-half-week schedule and available computing resources.
- Using a pretrained object-detection model such as YOLO can be viable when the dataset or application is distinctive, even if the model itself is established.
- The proposal should be one to two pages and include team members, specific goals, an end-of-project mock-up, a rough timeline, team responsibilities, a rubric, and a brief search for similar work.
- Final submissions include a readable Jupyter notebook that runs end to end in the lab’s Python environment and a roughly 10-minute prerecorded presentation.
- A short initial coding prototype can reveal whether an idea is feasible more quickly than hours of discussion alone.
- Data collection is discouraged unless the team can manage it, because obtaining a suitable dataset can itself consume significant project time.
- The project is worth 200 points, twice the value of a lab, and the rubric should distinguish unsatisfactory, accomplished, and exemplary work.
- Teams define project-specific criteria for conceptual exploration, implementation, and data visualization or analysis.
- Documentation and presentation use a shared criterion covering the runnable notebook and the 10-minute video; live exam-slot presentations may earn bonus points.
- The instructor grades against the team’s proposed rubric, so teams should define achievable commitments rather than inflate the project’s scope.
- Suggested directions include printed circuit board defect detection and radio-signal classification from IQ captures converted into spectrograms.
- Training a detection model from scratch can require far more data and compute than the lab environment provides; transfer learning from a pretrained model is a practical alternative.
- A small custom dataset, such as images of 10 friends, risks overfitting unless its size is appropriate for the model and task.
- Teams are not graded on accuracy unless they explicitly make a performance target part of their rubric; random-level performance can still indicate a broken training setup.
- LeNet was initially a specialized solution, while computer vision innovation in the 1990s still relied heavily on hand-engineered features such as SIFT and HOG.
- ImageNet supplied substantially more images and classes than MNIST, creating motivation to train deeper models on realistic recognition tasks.
- Programmable GPUs accelerated matrix and vector operations, making them useful for neural-network training as well as graphics.
- Methods such as ReLU and dropout were later developments; their absence from original LeNet reflects the technologies available at the time.
- Successive convolutional layers apply filters to earlier feature maps, enabling progression from edges to more complex structures such as corners and blobs.
- Two stacked 3 × 3 convolutions cover an effective 5 × 5 receptive field, while using fewer per-layer weights than a single 5 × 5 filter.
- Larger receptive fields let CNNs analyze more of an image without the parameter cost of a fully connected layer over every input pixel.
- More depth is not automatically better: deeper models increase compute and data requirements and can worsen numerical stability.
- ImageNet was developed alongside the ImageNet Large Scale Visual Recognition Challenge, or ILSVRC.
- The original collection included about 1.28 million images across 1,000 specific WordNet noun categories, with human labeling; the broader dataset later grew beyond 14 million images.
- The challenge reported top-1 accuracy and top-5 accuracy, where a prediction counted as correct if the true class appeared among the five highest-scoring classes.
- Full ImageNet can require roughly 50 GB of image data, making it demanding for ordinary course hardware.
- ImageNette, from fast.ai, is a reduced ImageNet subset designed to make image-recognition experiments more manageable on consumer hardware.
- Its 10 selected classes include examples such as cassette player, parachute, church, English Springer, and tench.
- The next lecture will compare CNN developments from LeNet through AlexNet and later models, followed by other computer-vision applications.
Transcript excerpt
0:00 where we left off on Monday, uh we're basically talking about convolutions, the actual discrete sort of operator, uh more of the motivation for them, and and a little bit of the mechanics, both mathematically as well as in practice in terms of the input-output relationship with our data. And we just started to get to what does it mean to build a network out of those convolutional operators, um both in terms of sort of original uh version, and then how they've evolved over time is what we'll start to get to today. This is a very generic version of a convolutional network structure. And the idea is that you're going to have a series of stages. You're going to have a series of these convolutional layers, the same exact operators we were talking about. Each of those convolutional layers are also going to have their activation function. We didn't didn't uh formally prove that, but for effectively the same reason that applying two linear
0:50 operations subsequent without some nonlinear activation can collapse down to an equivalent singular layer. So, it'll be convolution, activation, convolution, activation, sometimes uh that type of pooling operator in between those as well to to group our individual outputs. And then at some point there is a division of labor that this figure doesn't really show, but when we look at LeNet and others, it becomes a little bit more explicit. You have the convolutional layers are acting as your feature extractors, right? They They don't know or really care what the actual application or final task are, or what the final classes you're trying to do classification are. They are just trying to learn those those useful uh and and increasingly useful um translation-location-invariant uh patterns, right? So, there we looked
1:39 at like our hand-designed versions where
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Joseph Zambreno.