Detailed case study of implementing a real-time defect detection system for a manufacturing company.
Case Study: Defect Detection in a Production Line
This case study presents the implementation of an automatic defect detection system for a manufacturing company using Techsolut's computer vision tools. The system identifies various types of anomalies on industrial products in real-time, thereby improving quality and reducing costs related to undetected defects.
Context and Challenges
Company Profile
A consumer electronics manufacturing company producing approximately 5,000 units per day across multiple assembly lines.
Initial Issues
- 1.2% defect rate escaping manual quality control
- High costs of customer returns and warranty repairs
- Slow visual inspection process subject to operator fatigue
- Wide variety of potential defects: defective soldering, missing components, scratches, etc.
Project Objectives
- Reduce the rate of defective products shipped to less than 0.1%
- Increase inspection speed to keep pace with production
- Collect data on defect types to improve upstream processes
- System capable of operating 24/7 without performance degradation
Implemented Solution
Hardware Configuration
- 8 high-resolution industrial cameras (12MP) positioned at strategic points
- Controlled LED lighting to ensure consistent light conditions
- 2 GPU servers for real-time image processing
- Automated rejection system to remove defective products from the flow
Software Architecture
- Techsolut interface for centralized management
- Specific anomaly detection models for each type of defect
- Real-time processing pipeline with latency < 300ms
- Feedback system for continuous model improvement
Development Approach
Phase 1: Data Collection and Preparation
- Collection of over 50,000 product images (defective and compliant)
- Meticulous annotation of 8 different types of defects
- Data augmentation for rare defects (rotation, brightness, etc.)
- Division into training (70%), validation (15%), and test (15%) sets
Phase 2: Model Development
- Use of a hybrid approach combining:
- Object detection for localized defects (YOLOv8)
- Semantic segmentation for surface defects (U-Net)
- Unsupervised anomaly detection for unknown defects
- Training on GPU infrastructure for 2 weeks
- Model optimization for real-time inference
Phase 3: Deployment and Integration
- Gradual implementation on a pilot line
- Fine calibration of the system with operator feedback
- Integration with the factory's MES (Manufacturing Execution System)
- Training of maintenance staff and quality operators
Results and Impact
Technical Performance
- Precision: 98.7% correct defect detection
- Recall: 99.3% of defects actually detected
- Speed: Processing of 6 units per minute (higher than production rate)
- False positive rate: 0.4% (compliant products incorrectly rejected)
Business Benefits
- 87% reduction in customer returns for defective products
- Estimated annual savings of 1.2 million euros
- ROI achieved in 7 months
- Reassignment of 60% of inspection staff to higher value-added tasks
Process Improvements
- Identification of root causes through analysis of collected data
- 23% reduction in defects at source through corrective actions
- Complete defect traceability and improved quality documentation
Challenges and Solutions
Challenges Encountered
Lighting Variability
- Problem: Brightness changes affecting detection
- Solution: Installation of a controlled lighting system and image normalization
New Types of Defects
- Problem: Appearance of defects not present in training data
- Solution: Implementation of a generic anomaly detection system and continuous feedback
Integration with Existing Systems
- Problem: Legacy proprietary systems difficult to interface with
- Solution: Development of an adaptive API layer and joint work sessions with the IT team
Resistance to Change
- Problem: Operator concerns about automation
- Solution: Early team involvement, training, and repositioning towards system supervision roles
Lessons Learned and Best Practices
Key Success Factors
- Data Quality: Investment in meticulous collection and annotation was decisive
- Hybrid Approach: The combination of several techniques allowed coverage of all defect types
- Progressive Deployment: The pilot phase allowed system adjustment without disrupting production
- User Involvement: Collaboration with operators improved acceptance and efficiency
Recommendations
- Allow time for fine calibration in real conditions
- Build a continuous feedback system from the beginning
- Precisely document image acquisition conditions
- Train an internal team capable of maintaining and evolving the system
Future Developments
The next phase of the project plans for:
- Extension of the system to all production lines
- Addition of predictive capabilities to anticipate quality drifts
- Implementation of continuous learning to adapt models to product evolutions
- Integration with cobots for automatic correction of certain defects
Conclusion
This project illustrates how a well-designed computer vision solution can transform a critical industrial process. Beyond simple detection, the system has become a continuous improvement tool generating valuable data for manufacturing process optimization.
The key to success was the holistic approach combining adapted hardware, sophisticated AI models, and careful integration with existing processes, all accompanied by effective change management.