About the client
The client needed to identify PCBs quickly and reliably from images. Those images came from a diverse dataset in which the same board could appear at different angles, at different scales and under different environmental conditions. Predictions had to arrive in real time or near real time to be useful in operations.
The same board never looks the same twice
- Image variability. Angle, scale and lighting or background changes make the same board look different from one image to the next.
- Practical accuracy. The model had to be accurate enough to rely on in real use.
- Speed. Computation time had to support real-time or near-real-time predictions.
What FiftyFive built
FiftyFive built and deployed a PCB identification model and its user interface: a transfer-learning model that uses VGG16, with pre-trained weights, for feature extraction; image preparation with OpenCV and preprocessing and evaluation with scikit-learn; orchestration and deployment with Kubeflow on Google Cloud Platform; a Flask web interface for submitting images and viewing results.
How the solution works
Image preparation
- Incoming images are processed with OpenCV, and scikit-learn supports data preprocessing before the model sees them.
Feature extraction with transfer learning
- Rather than training a network from scratch, the model starts from VGG16 with pre-trained weights and uses it to extract visual features from each board image.
- This reuses what the network already knows about shapes and edges, which improves accuracy and reduces training effort on a specialised dataset.
Training, evaluation and deployment
- The model is built in Keras and evaluated with scikit-learn.
- Kubeflow on Google Cloud Platform orchestrates the pipeline and deploys the model.
User interface
- A Flask application lets users submit images and receive the identification.
Technology stack
What the solution enabled
Business transformation
Identification accuracy across varied angles, scale and conditions
Predictions, meeting the real-time requirement
Deployed model with a Flask interface
Over 85% identification accuracy
Across images that varied in angle, scale and conditions.
Predictions in under 2 seconds
Meeting the real-time requirement.
A deployed model on Google Cloud
With a Flask interface.
Transfer learning on VGG16
Reuses pre-trained weights, which improves accuracy and reduces training effort on a specialised dataset.
FiftyFive Technologies built an image recognition model that identifies printed circuit boards (PCBs) from photographs taken at different angles and scales and in different conditions. The model uses transfer learning on the VGG16 convolutional neural network, written in Python with Keras, and is orchestrated and deployed with Kubeflow on Google Cloud Platform, with a Flask interface for users. It identified PCBs with over 85% accuracy and returned predictions in under 2 seconds.
Technical questions
Why use transfer learning for PCB identification?
In this project, FiftyFive Technologies started from the VGG16 network with pre-trained weights and used it to extract features from PCB images. Reusing a trained network made the model more robust to changes in angle, scale and conditions, and it identified boards with over 85% accuracy and returned predictions in under 2 seconds.
How is the PCB identification model built and deployed?
Incoming images are processed with OpenCV, and scikit-learn supports data preprocessing before the model sees them. The model is built in Keras and evaluated with scikit-learn. Kubeflow on Google Cloud Platform orchestrates the pipeline and deploys the model. A Flask application lets users submit images and receive the identification.