π Inspiration
Manufacturing quality control is stuck in the pastβmanual inspections miss defects, causing recalls, waste, and safety risks. Inspired by Formula 1's (or road legals) obsession with zero-tolerance engineering (where a single faulty bolt can end a race), we asked: What if every part, from the smallest bolt to a full engine, was verified by AI before advancing?
The TrackShift challenge to build a visual difference engine for manufacturing pushed us to tackle the entire production lifecycle; not just final assembly, but every single stage where defects can hide.
π‘ What We Learned
- Multimodal fusion is essential: Visual inspection alone misses internal cracks, thermal hotspots, and electrical faults. Combining RGB, IR thermal, acoustic ringing tests, and electrical telemetry catches what eyes cannot see.
- Temporal tracking matters: Defects evolve, a minor scratch on a bolt becomes a stress fracture in a sub-assembly. Tracking parts across stations reveals patterns.
- Explainability drives adoption: Operators don't trust "black box" rejections. Heatmaps, side-by-side difference views, and root-cause hints make AI decisions transparent.
- Sustainability is measurable: Every intercepted defect = avoided scrap, rework energy, and warranty failures. We quantify ESG impact in real-time.
π§ How We are Going to Build It
1. Architecture Overview
Single Part β Sub-Assembly β Full Assembly β Post-Assembly Tests β Gate Decision
β β β β β
Vision AI Object Detection Change Detect Multimodal Fusion Pass/Rework/Reject
2. Stage-by-Stage Pipeline
π© Single Part Inspection
- Goal: Catch surface defects (scratches, corrosion, thread damage) before assembly
- Models:
- Siamese CNN for pairwise comparison vs. golden samples
- U-Net segmentation for defect localization
- Hardware: Fixed RGB cameras, controlled lighting, QR/RFID readers for unique IDs
βοΈ Sub-Assembly Inspection
- Goal: Verify correct placement, orientation, torque application
- Models:
- YOLOv12 for presence/absence detection
- Keypoint detection for bolt/connector orientation
- Hardware: Multi-camera rig (top/side), torque tool telemetry integration
π Full Assembly Visual Inspection
- Goal: Ensure complete conformity to CAD/golden reference
- Models:
- Vision Transformer (Swin Transformer) for global scoring
- ChangeFormer for pixel-level difference detection
- Hardware: High-res RGB cameras, structured light for 3D geometry
π₯ Post-Assembly Multimodal Testing (Our Innovation Edge)
- Thermal (IR): Detect hot spots, asymmetry, abnormal heat-rise rates during run-in cycle
- Model: Autoencoder for anomaly detection in thermal sequences
- Acoustic Ringing (Novel Addition):
- Setup: Solenoid/pneumatic tap actuator strikes critical points; high-SNR microphones + contact piezo sensors capture waveforms
- Features: Spectrograms, MFCCs, wavelets from bandpass-filtered audio
- Models: CRNN + Temporal Transformer hybrid for resonance shift detection (cracks, looseness, bearing defects)
- Electrical/Electronic:
- HIL test bench: continuity, insulation resistance, sensor response, ECU DTC scan
- Model: ConvLSTM for time-series anomaly detection (phase imbalance, ripple, sensor drift)
- Multimodal Fusion:
- Early fusion: Concatenate embeddings (thermal + acoustic + electrical) β MLP classifier
- Late fusion: Per-modality anomaly scores β weighted voting β final verdict + root cause hint
3. Traceability & Decision Gates
- Unique ID per part (laser-etched micro-QR/RFID) tracked through hierarchy:
PartID β SubAssemblyID β AssemblyID - Zero-defect gates: Defects cannot advance; automatic line stops for critical findings
- Rework loop: Digital work instructions generated; verify-after-rework checkpoints
4. Data & Continuous Learning
- Active learning pipeline: Operator validation of edge cases feeds new defect types back to model
- Audit trail: Immutable logs for compliance; defect genealogy for root-cause analysis
- Sustainability dashboard: Real-time metrics on scrap avoided, energy saved, rework reduction
π§ Challenges That Can Be Faced
1. Multimodal Synchronization
Problem: IR thermal frames, electrical telemetry, and acoustic waveforms run at different sampling rates.
Solution: Hardware-triggered timestamping; interpolation for alignment; windowing to isolate signal from line noise.
2. Dataset Scarcity
Problem: Real manufacturing defect data is proprietary and imbalanced (far more "good" than "defect" samples).
Solution: Synthetic defect augmentation (scratch overlays, rotation misalignments, missing bolt simulations); semi-supervised learning; MVTec AD + DAGM public datasets for pre-training.
3. Explainability vs. Accuracy Trade-off
Problem: Deep ensembles are accurate but opaque; operators need to understand why a part failed.
Solution: Grad-CAM heatmaps + rule-based fallback layer that maps anomalies to known root causes (e.g., "thermal imbalance β coolant blockage").
4. Edge Deployment Latency
Problem: Assembly lines demand <300ms inference per station; full models are too slow.
Solution: ONNX + TensorRT optimization; quantization (INT8); model distillation for lightweight deployments.
5. False Positive Management
Problem: Overly sensitive thresholds halt production; too lenient lets defects through.
Solution: Station-specific risk-weighted thresholds; critical vs. non-critical classification; human-in-the-loop validation for borderline cases.
Optional Enhancements
π Ultrasonic Crack Detection (if hardware available)
- Method: Piezoelectric transducers emit high-frequency pulses (2-10 MHz); analyze reflected waveforms
- Use Case: Internal cracks in castings, welds, composite structures (invisible to vision/IR)
- Model: 1D CNN on time-of-flight + amplitude data; classify crack depth/orientation
- Integration: Runs parallel to acoustic ringing test; fusion layer combines both signals
π© Augmentation for Missing Bolts
- Synthetic Generation:
- Remove bolts from golden images programmatically (via segmentation masks)
- Vary removal patterns (single bolt, multiple bolts, corner vs. center)
- Apply realistic lighting/shadow adjustments
- Purpose: Handle data scarcity for rare "missing bolt" defects
- Implementation: Albumentations library + custom bounding-box-aware transforms
- Validation: Trained on synthetic + real; tested on held-out real missing-bolt cases
This is more than a hackathon project; it's a production blueprint for Industry 4.0 quality control. Just like F1 teams or road brands trust nothing to chance, we build systems that ship perfection. π
π Impact & F1 Connection
Why This Matters for TrackShift:
- F1 Racing Parallel: Like F1 teams inspecting every component before a race (where failure = disaster), our system ensures zero defects reach customers.
- Racetrack β Factory Integration: Real-time quality data flows from factory to track engineers (mentioned in TrackShift's file transfer theme).
- Sustainability: Every defect caught = avoided scrap, rework emissions, and warranty returnsβquantified in our dashboard for ESG reporting.
Built With
- autoencoder
- c++
- convlstm
- crnn+temporaltransformer
- dagm
- flir-thermal-dataset
- javascript
- maskr-cnn
- mvtec-ad
- postgresql
- python
- react
- siamesecnn
- t-less
- timescaledb
- visiontransformer
- yolov12
Log in or sign up for Devpost to join the conversation.