IP Library Granted Patent US 12,333,705
Granted Patent B2
US 12,333,705 · App. 17/868,044 · Granted Jun 17, 2025

Method and apparatus for analyzing a product, training method, system, computer program, and computer-readable storage medium

Inventors: Felix Rothmund (Munich, DE); Simran Agarwal (Munich, DE); Leslie Casas (Munich, DE); Keng Chai (Munich, DE); Markus Bößl (Munich, DE); Shweta Mahajan (Munich, DE); Jonathan Pirnay (Munich, DE); Jochen Riedisser (Munich, DE)
Assignee: Fujitsu Technology Solutions GmbH
G06T7/0008G06T7/0012G06V10/26G06V10/764G06V10/7747G06V10/82G06T2207/20081G06T2207/20084G06T2207/30004G06T2207/30108G06V2201/06
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,333,705
App. No.
17/868,044
Granted
Jun 17, 2025
Kind
B2
Abstract

A method of analyzing a product includes performing an anomaly detection on a received image using an autoencoder, wherein the autoencoder includes at least one first neural network trained based on a first set of training images, and the first set of training images includes a plurality of training images each showing a corresponding defect-free product; determining, using a binary classifier, whether or not a defect is present based on a result of the anomaly detection; performing defect detection on the received image using a defect detector, wherein the defect detector includes a third neural network trained based on a one third set of training images, and the third set of training images includes a plurality of training images each showing a corresponding defective product; and evaluating a result based on a weighting of the results of the anomaly detection, the defect detection, and the binary classifier.

Claims (34)

1. A method of analyzing a product, the method comprising:

receiving an image of the product;

performing an anomaly detection on the received image using an inpainting autoencoder, wherein the inpainting autoencoder comprises at least one first neural network trained based on a first set of training images, and the first set of training images comprises a plurality of training images each showing a corresponding defect-free product;

determining, using a binary classifier, whether or not a defect is present based on a result of the anomaly detection;

performing defect detection on the received image using a defect detector, wherein the defect detector comprises at least one third neural network trained based on at least one third set of training images, and the at least one third set of training images comprises a plurality of training images each showing a corresponding defective product; and

evaluating a result of the analysis of the received image based on a weighting of the results of the anomaly detection, the defect detection, and the binary classifier.

2. The method according to claim 1 , wherein to perform the anomaly detection, the received image is divided into at least two sub-images, the anomaly detection is performed on the individual sub-images, and the binary classifier is applied to the results of the anomaly detection of the individual sub-images.

3. The method according to claim 1 , wherein the defect detection further comprises determining a location of a detected defect in the received image and/or a type of the detected defect and/or a defect probability.

4. The method according to claim 1 , wherein, in determining, using the binary classifier, whether or not a defect is present based on a result of the anomaly detection, the binary classifier evaluates, based on a reconstruction error of a version of the received image reconstructed by means of the inpainting autoencoder, whether the product represented in the received image is to be evaluated as defective or defect-free.

5. The method according to claim 1 , wherein the binary classifier comprises at least a second neural network trained based on a second set of training images, and the second set of training images comprises results of the inpainting autoencoder; and

the method further comprises: generating an attention map of the at least one second neural network when applying the binary classifier.

6. A method of training an apparatus for analyzing a product, the method comprising:

creating a first set of training images, the first set of training images comprising a plurality of training images each showing a defect-free product;

training at least a first neural network of an inpainting autoencoder based on the first set of training images;

creating a binary classifier configured to identify whether or not a defect is present based on a result of an anomaly detection using the inpainting autoencoder;

creating at least one third set of training images, wherein the at least one third set of training images comprises a plurality of training images each showing a defective product, and further at least one defect is marked in each training image of the third set of training images;

training at least one third neural network of a defect identifier based on the at least one third set of training images; and

determining a weighting by which to evaluate results of an anomaly detection by the inpainting autoencoder, a defect detection by the defect detector, and an application of the binary classifier.

7. The method to according claim 6 , wherein creating the binary classifier comprises:

creating a second set of training images, wherein the second set of training images comprises results of the inpainting autoencoder; and

training at least a second neural network of the binary classifier based on the second set of training images.

8. The method according to claim 6 , further comprising:

creating a further third set of training images, wherein the further third set of training images comprises both a plurality of training images each showing a defective product and a plurality of training images each showing a defect-free product, and training the at least one third neural network is additionally performed based on the further third set of training images.

9. The method according to claim 6 , further comprising:

creating a still further third set of training images, wherein the still further third set of training images comprises a plurality of training images each showing a defect-free product detected as defective by the previously trained at least one third neural network, and wherein the training of the at least one third neural network is additionally performed based on the still further third set of training images.

10. The method according to claim 6 , wherein training the at least one first neural network of the inpainting autoencoder based on the first set of training images further comprises:

patchwise reconstructing a training image of the first set of training images;

adding, for a plurality of reconstructed patches, an edge region from a corresponding portion of the original training image; and

training the at least one first neural network of the inpainting autoencoder using the reconstructed patches of the training image, taking into account the added edge regions.

11. The method according to claim 1 , wherein the product is a medical product.

12. The method according to claim 6 , wherein the product is a medical product.

13. An apparatus that analyzes a product, wherein the apparatus is adapted to perform the method according to claim 1 .

14. The apparatus according to claim 13 , wherein the apparatus further comprises an imaging device that captures the image of the product; and/or the apparatus further comprises a control device adapted to cause a sorting out of a product detected as defective.

15. The apparatus according to claim 13 , adapted to be retrofitted to a semi-automatic inspection device.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 9, 2026
From: FSAS TECHNOLOGIES GMBH
To: FUJITSU GERMANY GMBH
Reel/Frame 073418/0143 →
CHANGE OF NAME Recorded Jan 9, 2026
From: FUJITSU TECHNOLOGY SOLUTIONS GMBH
To: FSAS TECHNOLOGIES GMBH
Reel/Frame 074293/0428 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 29, 2022
From: ROTHMUND, FELIX; AGARWAL, SIMRAN; CASAS, LESLIE; CHAI, KENG; BÖSSL, MARKUS; MAHAJAN, SHWETA; PIRNAY, JONATHAN; RIEDISSER, JOCHEN
To: FUJITSU TECHNOLOGY SOLUTIONS GMBH
Reel/Frame 060928/0329 →
Priority Claims (1)
DE 102021118711.7 · Jul 20, 2021 · national
Continuity (1)
Related Publication 20230022631A1 · Jan 26, 2023
References Cited (35)
US 11501195B2 · Rose · 2022 [cited by examiner]
US 20100111396A1 · Boucheron · 2010 [cited by examiner]
US 20180322623A1 · Memo · 2018 [cited by examiner]
US 20190244513A1 · Niculescu-Mizil · 2019 [cited by examiner]
US 20190378012A1 · Tripodi · 2019 [cited by examiner]
US 20200074622A1 · Yang · 2020 [cited by examiner]
US 20200126210A1 · Li · 2020 [cited by examiner]
US 20200211189A1 · Yip · 2020 [cited by examiner]
US 20200364842A1 · Chaton · 2020 [cited by examiner]
US 20200394458A1 · Yu · 2020 [cited by examiner]
US 20210081676A1 · Kim · 2021 [cited by examiner]
US 20210118165A1 · Strong · 2021 [cited by examiner]
US 20210118166A1 · Tremblay · 2021 [cited by examiner]
US 20210304389A1 · Li · 2021 [cited by examiner]
CN 108229561A · 2018 [cited by applicant]
CN 209271946U · 2019 [cited by applicant]
JP 2008145226 · 2008 [cited by applicant]
JP 2020181333 · 2020 [cited by applicant]
JP 2020181532 · 2020 [cited by applicant]
Vitjan Zavrtanik et al. , “Reconstruction by inpainting for visual anomaly detection,” Oct. 17, 2020, Pattern Recognition 112 (2021) 107706,pp. 1-7. [cited by examiner]
Loek Tonnaer et al., “Anomaly Detection for Visual Quality Control of 3D-Printed Products,” Sep. 30, 2019, 2019 International Joint Conference on Neural Networks (IJCNN), Budapest, Hungary. Jul. 14-19, 2019, pp. 1-7. [cited by examiner]
M. Haselmann et al., “Anomaly Detection using Deep Learning based Image Completion,” Oct. 15, 2018, 2018 17th IEEE International Conference on Machine Learning and Applications,pp. 1237-1241. [cited by examiner]
Jonathan Pirnay et al., “Inpainting Transformer for Anomaly Detection,” May 17, 2022, Image Analysis and Processing—ICIAP 2022, pp. 394-402. [cited by examiner]
Deepak Pathak et al., “Context Encoders: Feature Learning by Inpainting,” Jun. 2016, Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016, pp. 2536-2542. [cited by examiner]
Ramprasaath R. Selvaraju et al., “Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization,” Oct. 2017,Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017, pp. 618-62… [cited by examiner]
Decision to Grant dated Nov. 21, 2023, of counterpart Japanese Patent Application No. 2022-115009, along with an English translation. [cited by applicant]
Japanese Examination Report dated Aug. 1, 2023, of counterpart Japanese Application No. 2022-115009, along with an English translation. [cited by applicant]
Anand Bhattad et al., “Detecting Anomalous Faces with ‘No Peeking’ Autoencoders,” arXiv: 1802.05798v1 [cs.CV] Feb. 15, 2018. [cited by applicant]
M. Haselmann et al., “Anomaly Detection using Deep Learning based Image Completion,” arXiv: 1811.06861v1 [cs.CV] Nov. 16, 2018, IEEE, 17 [cited by applicant]
Ramprasaath R. Selvaraju et al., “Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization,” arXiv: 1610.02391 v4 [cs.CV] Dec. 3, 2019. [cited by applicant]
Alexey Bochkovskiy et al., “YOLOv4: Optimal Speed and Accuracy of Object Detection,” arXiv: 2004.10934v1 [cs.CV] Apr. 23, 2020. [cited by applicant]
Jonathan Pirnay et al., “Inpainting Transformer for Anomaly Detection,” arXiv: 2104.13897v3 [cs.CV] Nov. 26, 2021. [cited by applicant]
Extended European Search Report dated Dec. 20, 2022, of counterpart European Patent Application No. 22185470.6, along with an English machine translation. [cited by applicant]
V. Zavrtanik et al., “Reconstruction by Painting for Visual Anomaly Detection,” Pattern Recognition, 112, 107706, Elsevier, pp. 1-9, Oct. 2020. [cited by applicant]
J. Pirnay et al., “Inpainting Transformer for Anomaly Detection,” arxiv.org, Cornell University Library, pp. 1-15, Sections 2.2 and 3, Apr. 2021. [cited by applicant]