Neural Network Parameter Growth

Interactive demonstration: Two different approaches to solve the same image classification task

🎯 Task: Image Classification

Same input: 224×224 RGB imageSame output: 10 classes
Different approaches: How to process the image?

🏗️Dense Network Design

3
256

🖼️Input Image (Both Networks)

224
3 (RGB)

🧠 Approach 1: Dense Neural Network

Flatten image → Connect every pixel to every neuron

Loading...
Input size: -
Total connections: -

🔍 Approach 2: Convolutional Neural Network

Use local filters → Shared weights → Dense classification

Loading...
Conv layers: 3×3 kernels, 32→64→128 filters
Max pooling after each conv layer
Adaptive dense layer based on feature count
Final dense: -

📊 Efficiency Comparison

Dense Network
-
VS
CNN
1.0×
🎯 CNNs are incredibly parameter-efficient for image processing!
Dense networks connect every input pixel to every neuron, while CNNs use shared weights and local receptive fields.

© 2025 Machine Learning for Health Research Course | Prof. Gennady Roshchupkin

Interactive slides designed for enhanced learning experience