Sunday, June 29, 2025
News PouroverAI
Visit PourOver.AI
No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
News PouroverAI
No Result
View All Result

Defect detection in high-resolution imagery using two-stage Amazon Rekognition Custom Labels models

October 19, 2023
in Data Science & ML
Reading Time: 3 mins read
0 0
A A
0
Share on FacebookShare on Twitter



HTML tags are preserved.

High-resolution Imagery and Defect Detection

High-resolution imagery is widely used today, with applications ranging from satellite imagery to drones and DSLR cameras. This type of imagery allows us to capture various types of damage and defects, such as those caused by natural disasters or manufacturing anomalies. However, building anomaly detection models using high-resolution imagery can be challenging due to the need to resize images to lower resolutions for training and inference. This reduction in resolution can result in the loss or degradation of important visual information.

One approach to overcome these challenges is to use a two-stage model. In this approach, the first stage of the model detects a region of interest, while the second stage focuses on detecting defects within the cropped region of interest. By using this two-stage approach, we can maintain sufficient resolution for detecting small defects.

In this post, we will discuss how to build an effective two-stage defect detection system using Amazon Rekognition Custom Labels. We will also compare the results of this approach with one-stage models that are commonly used. It is important to note that some one-stage models are effective even at lower resolutions, while others can handle large images in smaller batches.

Solution Overview

For our specific use case, we will be using a dataset of images of printed circuit boards (PCBs) with synthetically generated missing hole pins. The goal is to detect these missing hole defects using our models. The training process for the Rekognition Custom Labels model consists of several steps:

  1. The image data is stored in Amazon Simple Storage Service (Amazon S3).
  2. The data is ingested into Amazon Sagemaker Jupyter notebooks, where data scientists inspect and preprocess the images.
  3. The data is split into training and test sets, and Amazon SageMaker Ground Truth labeling jobs are used to label the images.
  4. The labeled data is used to train the Rekognition Custom Labels model.

One-stage Model Approach

In the first approach, we train an object detection model to identify the missing hole defects on the PCBs. However, the results of this model show subpar detection performance, with high precision but low recall. This means that while the model correctly identifies the regions with missing holes most of the time, it misses a significant number of actual missing holes on the PCBs.

To improve the model’s performance, we explore splitting the image into multiple crops and labeling both healthy pins and missing holes. By training the model with zoomed-in cropped images and a reference to the model for healthy pins, we are able to significantly improve both precision and recall. However, recall is still not perfect, with a small percentage of missing holes being missed by the model.

Two-stage Model Approach

In the two-stage model approach, we train two separate models: one for detecting pins and another for detecting if a pin has a missing hole. The first model successfully detects the pins, while the second model accurately classifies the cropped images to identify pins with missing holes. By combining these two models, we can build a defect detection system that outperforms any single-stage model.

Inference Pipeline

To deploy the models described in this post, we can use an inference pipeline with the following components:

  • For one-stage models, an input image is sent to an API Gateway endpoint, processed by a Lambda function for image preprocessing, and then routed to the Rekognition Custom Labels trained model endpoint.
  • For two-stage models, the image is also sent to an API Gateway endpoint and processed by a Lambda function acting as an orchestrator. The function first calls the object detection model to generate the region of interest, crops the original image, and then sends each cropped image to another Rekognition Custom Labels model for defect detection.

Conclusion

In this post, we have explored the use of one- and two-stage models for defect detection in PCBs using Amazon Rekognition Custom Labels. Our experiments showed that the two-stage models outperformed other variants, achieving perfect precision and recall on synthetic datasets. This demonstrates the effectiveness of the two-stage approach in maintaining resolution and improving defect detection performance.



Source link

Tags: AmazonCustomDefectDetectionhighresolutionimageryLabelsmodelsRekognitiontwostage
Previous Post

Data Science Roadmap 2023 | Learn Data Science Skills in 6 Months

Next Post

First Trade: Zee Business Live | Share Market Live Updates | Stock Market News | 4th September 2023

Related Posts

AI Compared: Which Assistant Is the Best?
Data Science & ML

AI Compared: Which Assistant Is the Best?

June 10, 2024
5 Machine Learning Models Explained in 5 Minutes
Data Science & ML

5 Machine Learning Models Explained in 5 Minutes

June 7, 2024
Cohere Picks Enterprise AI Needs Over ‘Abstract Concepts Like AGI’
Data Science & ML

Cohere Picks Enterprise AI Needs Over ‘Abstract Concepts Like AGI’

June 7, 2024
How to Learn Data Analytics – Dataquest
Data Science & ML

How to Learn Data Analytics – Dataquest

June 6, 2024
Adobe Terms Of Service Update Privacy Concerns
Data Science & ML

Adobe Terms Of Service Update Privacy Concerns

June 6, 2024
Build RAG applications using Jina Embeddings v2 on Amazon SageMaker JumpStart
Data Science & ML

Build RAG applications using Jina Embeddings v2 on Amazon SageMaker JumpStart

June 6, 2024
Next Post
First Trade: Zee Business Live | Share Market Live Updates | Stock Market News | 4th September 2023

First Trade: Zee Business Live | Share Market Live Updates | Stock Market News | 4th September 2023

Crypto News: PEPE, ETH Burn, Tron, Debt Limit, Coinbase & MORE!

Crypto News: PEPE, ETH Burn, Tron, Debt Limit, Coinbase & MORE!

L’Oreal Q3 sales rise over robust demand in Europe and North America (OTCMKTS:LRLCY)

L'Oreal Q3 sales rise over robust demand in Europe and North America (OTCMKTS:LRLCY)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
23 Plagiarism Facts and Statistics to Analyze Latest Trends

23 Plagiarism Facts and Statistics to Analyze Latest Trends

June 4, 2024
How ‘Chain of Thought’ Makes Transformers Smarter

How ‘Chain of Thought’ Makes Transformers Smarter

May 13, 2024
Amazon’s Bedrock and Titan Generative AI Services Enter General Availability

Amazon’s Bedrock and Titan Generative AI Services Enter General Availability

October 2, 2023
The Importance of Choosing a Reliable Affiliate Network and Why Olavivo is Your Ideal Partner

The Importance of Choosing a Reliable Affiliate Network and Why Olavivo is Your Ideal Partner

October 30, 2023
Is C.AI Down? Here Is What To Do Now

Is C.AI Down? Here Is What To Do Now

January 10, 2024
Managing PDFs in Node.js with pdf-lib

Managing PDFs in Node.js with pdf-lib

November 16, 2023
Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

June 10, 2024
AI Compared: Which Assistant Is the Best?

AI Compared: Which Assistant Is the Best?

June 10, 2024
How insurance companies can use synthetic data to fight bias

How insurance companies can use synthetic data to fight bias

June 10, 2024
5 SLA metrics you should be monitoring

5 SLA metrics you should be monitoring

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

June 10, 2024
Facebook Twitter LinkedIn Pinterest RSS
News PouroverAI

The latest news and updates about the AI Technology and Latest Tech Updates around the world... PouroverAI keeps you in the loop.

CATEGORIES

  • AI Technology
  • Automation
  • Blockchain
  • Business
  • Cloud & Programming
  • Data Science & ML
  • Digital Marketing
  • Front-Tech
  • Uncategorized

SITEMAP

  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2023 PouroverAI News.
PouroverAI News

No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing

Copyright © 2023 PouroverAI News.
PouroverAI News

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In