Automated Optical Inspection (AOI) with PyTorch (CosmosIQ)
Build practical Artificial Intelligence & ML skills through Industry Projects in optical defect inspection with PyTorch.
Key Skills & Focus Areas
About this program
This intermediate CosmosIQ program is for learners who know basic Python and want to apply Artificial Intelligence & ML to visual quality inspection. You will learn how optical inspection images are collected, labelled and analysed, then build PyTorch workflows for defect classification, segmentation and anomaly detection. No prior AOI experience is required.
Live sessions explain core concepts and demonstrate implementation, while self-paced lessons let you practise at a steady pace. Guided labs use realistic manufacturing scenarios to develop data preparation, model training and evaluation skills. Industry Projects connect these techniques to inspection challenges such as class imbalance, changing lighting and rare defects.
Mentorship supports project reviews, technical questions and feedback on your problem-solving approach. The final capstone brings the workflow together, from defining an inspection task to presenting results and limitations. Job Readiness activities help you communicate project decisions and prepare for relevant technical interviews. Learners who complete the program receive a CosmosIQ completion certificate.
Why learn Automated Optical Inspection (AOI) with PyTorch (CosmosIQ) with CosmosIQ
- Apply Artificial Intelligence & ML methods to practical optical inspection problems.
- Build Industry Projects around defect classification, segmentation and anomaly detection.
- Practise image preparation and model training through guided PyTorch labs.
- Receive Mentorship through project reviews, feedback and technical question sessions.
- Strengthen Job Readiness by explaining model choices, metrics and limitations.
- Learn evaluation practices for imbalanced data and realistic inspection conditions.
What you will be able to do
- Explain how Artificial Intelligence & ML can support automated optical inspection workflows.
- Prepare inspection image datasets with appropriate labels, splits and preprocessing.
- Train PyTorch models for defect classification, segmentation and anomaly detection.
- Evaluate Industry Projects using suitable metrics and error analysis.
- Present project findings clearly with Mentorship-informed feedback and technical reasoning.
- Demonstrate Job Readiness by discussing inspection trade-offs and model limitations.
Tools & technologies covered
Course syllabus — 8 modules
32 topics across 8 modules, about 65 learning hours. Open any module to see its objectives and topics.
Module 1AOI Foundations and Use Cases
4 topics · 8.1 hrs
Explore how automated optical inspection fits into manufacturing quality workflows. Connect Artificial Intelligence & ML concepts to inspection tasks, image characteristics and practical constraints before choosing a suitable modelling approach.
Learning objectives
- Describe common AOI stages and their role in quality control.
- Distinguish classification, segmentation and anomaly detection tasks.
- Relate Artificial Intelligence & ML methods to inspection requirements.
Topics covered
- AOI Stations, Cameras and Lighting
- Inspection Tasks and Defect Taxonomies
- Image Variation in Production Lines
- Choosing a Baseline Vision Approach
Module 2Image Data and Labelling
4 topics · 8.1 hrs
Learn to organise inspection images and create usable labels for model development. Examine dataset quality, class balance and leakage risks so Industry Projects begin with evidence-aware data decisions.
Learning objectives
- Inspect image collections for quality and label consistency.
- Create train, validation and test splits without leakage.
- Plan labelling rules for Industry Projects.
Topics covered
- Folder Structures and Image Metadata
- Bounding Boxes, Masks and Class Labels
- Stratified Splits for Defect Data
- Auditing Duplicates and Label Errors
Module 3Preprocessing and Augmentation
4 topics · 8.1 hrs
Prepare images for repeatable training and inference with Python tools. Compare resizing, normalization and carefully chosen augmentation while considering how transformations affect small defects and real inspection conditions.
Learning objectives
- Implement image loading and preprocessing pipelines.
- Select augmentations that preserve defect meaning.
- Explain how input preparation affects model performance.
Topics covered
- OpenCV Image Loading and Color Channels
- Resizing and Normalization Strategies
- Augmentation for Lighting and Orientation
- PyTorch Datasets and DataLoaders
Module 4PyTorch Models for Defect Classification
4 topics · 8.1 hrs
Build a supervised image classifier using PyTorch and a transfer-learning baseline. Practise training loops, loss monitoring and error review, then connect Artificial Intelligence & ML decisions to the needs of an inspection task.
Learning objectives
- Construct a classification pipeline with PyTorch.
- Train and tune a transfer-learning model.
- Interpret confusion patterns and model errors.
Topics covered
- Tensor Shapes and Model Batches
- Transfer Learning with Convolutional Networks
- Loss Functions and Training Loops
- Confusion Matrices for Defect Classes
Module 5Segmentation and Anomaly Detection
4 topics · 8.1 hrs
Extend beyond image-level labels to pixel-level defect regions and unusual-sample detection. Compare supervised and limited-label strategies, noting when each method is appropriate for industrial inspection data.
Learning objectives
- Train a segmentation model for defect localisation.
- Compare anomaly detection with supervised classification.
- Assess predictions for small or rare defects.
Topics covered
- Mask Preparation and Segmentation Targets
- U-Net Style Architectures in PyTorch
- Anomaly Scores from Normal Samples
- Visual Review of Defect Localisation
Module 6Evaluation and Inspection Reliability
4 topics · 8.1 hrs
Evaluate models with metrics suited to imbalanced defect data and review failures that matter in production. Use Mentorship feedback to refine analysis and communicate uncertainty rather than relying on a single score.
Learning objectives
- Choose metrics aligned with inspection costs and goals.
- Analyse false positives, false negatives and threshold effects.
- Use Mentorship feedback to improve evaluation reasoning.
Topics covered
- Precision, Recall and F1 for Defect Classes
- ROC and Precision-Recall Curve Reading
- Threshold Selection and Error Costs
- Robustness Checks Across Image Conditions
Module 7Deployment Thinking and Job Readiness
4 topics · 8.1 hrs
Translate a trained model into a clear inspection workflow, considering inference inputs, output review and operational limits. Build Job Readiness by documenting choices and practising explanations of trade-offs common to Industry Projects.
Learning objectives
- Outline a repeatable image-to-prediction workflow.
- Document model constraints and monitoring considerations.
- Practise Job Readiness through project explanations.
Topics covered
- Batch Inference and Prediction Outputs
- Saving PyTorch Models and Configurations
- Inspection Review and Human Escalation
- Technical Project Walkthrough Practice
Module 8Hands-on AOI Capstone Project
4 topics · 8.1 hrs
Complete a hands-on capstone using a defined inspection problem and a documented dataset workflow. Apply Artificial Intelligence & ML methods, present evaluation evidence and limitations, and use Mentorship feedback to refine the final project review.
Learning objectives
- Plan an end-to-end AOI capstone with clear evaluation criteria.
- Implement and assess a PyTorch inspection solution.
- Present project results, limitations and next steps.
Topics covered
- Capstone Scope and Dataset Review
- Model Development and Experiment Tracking
- Evaluation Report and Error Gallery
- Final Demonstration and Reflection
Hands-on projects & labs
- Surface Defect Classification Lab — Prepare a labelled image dataset and train a PyTorch classifier to distinguish acceptable products from common surface defects.
- Small-Defect Segmentation Workflow — Build and evaluate a segmentation workflow that highlights defect regions, then review predictions against labelled inspection images.
- Rare Defect Anomaly Detection — Develop an anomaly detection experiment using mostly normal product images and assess how well it flags unusual samples.
Who is this course for?
- Python learners seeking an applied computer vision program at intermediate level.
- Engineering and science graduates interested in manufacturing quality inspection.
- Data and AI practitioners looking to extend skills into visual inspection.
- Working professionals exploring practical PyTorch applications in industrial settings.
Requirements
- Basic Python programming, including functions, lists and working with libraries.
- Familiarity with basic machine learning concepts such as training and validation.
- A computer able to run Python notebooks; GPU access is helpful but not required.
Roles this course prepares you for
Roles listed are areas where these skills apply. Job outcomes depend on your effort, experience and the market; CosmosIQ does not guarantee placement.
Certificate & credential
On successful completion of this Intermediate level program in Artificial Intelligence & ML you receive a CosmosIQ completion certificate. Credential type: Certification / Program.
Frequently asked questions
What prerequisites do I need for this AOI program?
You should be comfortable with basic Python and have a working understanding of machine learning ideas such as training and validation. Prior manufacturing or AOI experience is not necessary. The program develops computer vision concepts step by step and uses practical labs to build confidence with PyTorch.
How deep does the syllabus go?
The syllabus covers image data preparation, classification, segmentation, anomaly detection, evaluation and deployment thinking at an intermediate level. It emphasises practical Artificial Intelligence & ML decisions, including imbalanced defects, image variation and model limitations, rather than advanced mathematical proofs or production-system certification.
What projects will I complete?
You will complete three hands-on labs: surface defect classification, small-defect segmentation and rare-defect anomaly detection. These Industry Projects use realistic inspection scenarios and ask you to review predictions and metrics. The capstone combines the workflow, with Mentorship feedback helping you strengthen the final presentation.
What certificate will I receive?
Learners who complete the program receive a CosmosIQ completion certificate. It recognises completion of this CosmosIQ course and its learning activities; it is not a third-party credential or a claim of external accreditation. Your project work can also help demonstrate Job Readiness when discussing relevant skills.
How long is the program and how are sessions scheduled?
The program is designed to run over 2 to 4 months. Learning combines live sessions with self-paced study and project work, allowing time to practise between topics. The exact session calendar and pacing are shared with learners for the relevant cohort; Mentorship supports progress through the projects.
How can this course support my career?
The course develops applied skills relevant to computer vision, machine learning and industrial inspection roles. You will practise explaining model choices, evaluation results and limitations through project reviews. These experiences can support Job Readiness, but employment outcomes depend on individual background, effort and opportunities.