Pillar 1 · Model Selection — family deep dive

Types of CNNs & Vision Models

Papers say "feed-forward convolutional network"; vendors say "AI vision". Both hide the decision that actually matters to you: which variant — classification, detection, segmentation, pose, anomaly — because the variant is set by what output the business needs.

Decoding the jargon: "feed-forward", "convolutional"

Two independent adjectives. Feed-forward describes the flow: data moves one way, input → layers → output, no loops, no memory between inputs. Convolutional describes the layer type: learned image filters. A CNN is simply a feed-forward network built from convolution layers — not a separate exotic family.

Feed-forward vs recurrent — the one architectural distinction worth knowing

Feed-forward — one-way flow Input Layers Layers Output No loops, no memory of previous inputs. CNNs are feed-forward nets made of convolution layers; Transformers are feed-forward too — attention instead of convolution. Recurrent (RNN · LSTM) — loops back Input Hidden state Output The hidden state feeds back — memory across a sequence. Formerly the default for text and time series; today largely replaced by Transformers.
Architect's takeaway: "feed-forward" is a property, not a product. If a vendor's "sequence model" is an RNN/LSTM, ask why it isn't a Transformer.

One backbone, different heads

The CNN variants you choose between differ by what the output head produces, not by exotic internals. A backbone (ResNet, EfficientNet, MobileNet, ConvNeXt) extracts visual features; a task-specific head turns them into a label, boxes, or masks. That's why requirements map so cleanly onto variants.

The CNN variants by output

Image / frame pixels CNN backbone learned visual features ResNet · EfficientNet · MobileNet Classification head → one label "defective / OK" — ResNet, EfficientNet Detection head → boxes + labels where the defects are — YOLO, Faster R-CNN Segmentation head → pixel masks exact shape & area — U-Net, Mask R-CNN
The requirement tells you the head: "is it defective?" → classification · "where is it?" → detection · "how big exactly?" → segmentation.

The vision variants, with named models

VariantOutputNamed modelsChoose it when
Image classificationOne label per imageResNet-50, EfficientNet, MobileNetV3, ConvNeXt"What is this?" — pass/fail inspection, sorting; MobileNet-class for edge devices
Object detection — one-stageBoxes + labels, real-timeYOLOv8 / YOLO11, SSD, RetinaNetLive video at line speed — counting, locating defects; the factory-pipe example
Object detection — two-stageBoxes + labels, higher accuracyFaster R-CNN, Cascade R-CNNAccuracy beats speed — offline analysis, small or crowded objects
SegmentationPer-pixel masksU-Net, Mask R-CNN, DeepLabv3+, SAM (promptable)Exact shape or area matters — medical imaging, measuring defect size, background removal
Pose / keypointsSkeleton joint coordinatesOpenPose, MediaPipe Pose, YOLO-poseErgonomics, sports analysis, gesture control, fall detection
Object trackingIdentities across framesByteTrack, DeepSORT (on top of a detector)Counting unique objects/people over time, trajectories, dwell time
Face recognitionIdentity embedding + matchArcFace, FaceNetAccess control, deduplication — mind biometric-data regulation (GDPR/AI Act)
Visual anomaly detectionAnomaly score / heatmap, no defect labels neededPatchCore, PaDiM, autoencoder approachesDefects are rare or unknown upfront — train on "good" samples only
Vision Transformer (ViT)Same tasks, attention-based backboneViT, DINOv2, Swin TransformerLarge datasets, global context; powers most hosted vision APIs — you rarely pick it explicitly
OCR pipelineText read from imagesPaddleOCR, Tesseract, TrOCR; cloud: Azure AI Vision, Google Document AIDocuments, labels, license plates — usually a pre-built pipeline, not a model you train
Buying, not building: in practice you choose a variant and a pre-trained model, then the ML team fine-tunes it on your labeled images. The variant decision (this table) is yours; squeezing accuracy out of it is theirs.
Sizing note (ties to pillar 2): vision models are tiny next to LLMs — YOLO variants run 2–70M parameters and hit real-time frame rates on an edge GPU like a Jetson, which is why "camera + small box on the factory wall" is a realistic architecture, no data center required.
← LLM typesDecoder vs encoder, MoE, reasoning