IP Library › Granted Patent US 12,450,866
Granted Patent B2
US 12,450,866 · App. 17/814,373 · Granted Oct 21, 2025

Devices, systems, and methods for anomaly detection

Inventors: Xiwu Cao (Arcadia, CA); Bradley Scott Denney (Irvine, CA)
Assignee: Canon Virginia, Inc.
G06V10/50G06F18/2113G06F18/214G06V10/751G06V10/774
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,450,866
App. No.
17/814,373
Granted
Oct 21, 2025
Kind
B2
Abstract

Devices, systems, and methods obtain one or more training images; obtain a test image; select one or more associated pixels in the training images for a target pixel in the training images; calculate respective value relationships between a value of the target pixel and respective values of the associated pixels in the training images; select one or more associated pixels in the test image for a target pixel in the test image; and detect an anomaly in the target pixel in the test image based on the respective value relationships between the value of the target pixel and the respective values of the associated pixels in the training images and on respective value relationships between a value of the target pixel and respective values of the associated pixels in the test image.

Claims (62)

1. A method comprising:

obtaining training images;

obtaining a test image;

selecting one or more respective associated pixels in the training images for each of a plurality of corresponding target pixels in the training images, wherein the plurality of corresponding target pixels correspond across the training images, and wherein the one or more respective associated pixels of each target pixel in the plurality of corresponding target pixels are included in a same training image of the one or more training images as the target pixel;

selecting one or more respective associated pixels in the test image for a target pixel in the test image, wherein each of the one or more respective associated pixels in the test image corresponds to at least one of the one or more respective associated pixels in the training images; and

detecting an anomaly in the target pixel in the test image based on respective values of the plurality of corresponding target pixels and respective values of the respective associated pixels of the plurality of target pixels in the training images and on a value of the target pixel and respective values of the respective associated pixels in the test image,

wherein detecting the anomaly in the target pixel in the test image includes:

generating a predicted target-pixel value based on the respective value of at least one of the plurality of corresponding target pixels and the respective values of the associated pixels of the at least one of the plurality of corresponding target pixels in the training images, and

calculating, for the test image, a target-prediction-to-target-difference between the predicted target-pixel value and the value of the target pixel in the test image.

2. The method of claim 1 , wherein selecting the one or more respective associated pixels in the training images for each of the plurality of corresponding target pixels in the training images includes:

selecting one or more respective candidate associated pixels in the training images for each of the plurality of corresponding target pixels in the training images,

calculating respective value differences between values that are based on the respective values of the plurality of corresponding target pixels and values that are based on respective values of the respective candidate associated pixels of the plurality of corresponding target pixels,

calculating respective variations of the respective value differences, and

selecting the one or more respective associated pixels in the training images for each of the plurality of corresponding target pixels in the training images based on the respective variations of the respective value differences.

3. The method of claim 1 , wherein detecting the anomaly in the target pixel in the test image further includes:

comparing the target-prediction-to-target-difference in the test image to a centrality and a variation of target-prediction-to-target differences across the training images.

4. The method of claim 3 , wherein the centrality of the target-prediction-to-target differences across the training images is a median or a mean.

5. The method of claim 3 , wherein the variation of the target-prediction-to-target differences across the training images is a median-absolute deviation or a standard deviation.

6. The method of claim 1 , wherein at least some of the one or more respective associated pixels of each target pixel in the plurality of corresponding target pixels have different distance ranges from the target pixel.

7. One or more non-transitory computer-readable media storing instructions that, when executed by one or more computing devices, cause the one or more computing devices to perform operations comprising:

obtaining training images;

selecting a plurality of corresponding target pixels in the training images;

selecting, for each corresponding target pixel in the plurality of corresponding target pixels, one or more respective corresponding associated pixels in the training images, wherein each target pixel in the plurality of corresponding target pixels and the one or more respective associated pixels of the target pixel are included in a same training image of the training images, and wherein the corresponding target pixels and the corresponding associated pixels correspond across the training images;

obtaining a test image;

selecting a target pixel in the test image corresponding to the plurality of corresponding target pixels in the training images;

selecting one or more respective associated pixels in the test image for the target pixel in the test image, wherein each of the respective associated pixels in the test image corresponds to a respective one or more of the respective corresponding associated pixels in the training images; and

performing anomaly detection on the target pixel in the test image based on a value of the target pixel and respective values of the respective associated pixels in the test image and on respective values of the plurality of corresponding target pixels and respective values of the respective corresponding associated pixels of the plurality of corresponding target pixels in the training images, wherein performing anomaly detection on the target pixel includes

generating a predicted target-pixel-value model based on the respective values of the plurality of corresponding target pixels and the respective values of the respective corresponding associated pixels of the plurality of corresponding target pixels in the training images,

generating a predicted target-pixel value based on the predicted target-pixel-value model and on the respective values of the respective associated pixels in the test image, and

calculating a respective value difference between the value of the target pixel in the test image and the predicted target-pixel value.

8. The one or more non-transitory computer-readable media of claim 7 , wherein selecting, for each corresponding target pixel in the plurality of corresponding target pixels, the one or more respective corresponding associated pixels in the training images includes:

selecting, for each corresponding target pixel in the plurality of corresponding target pixels, one or more respective candidate associated pixels in the training images;

calculating, for each corresponding target pixel in the plurality of corresponding target pixels, respective value differences between a value of the corresponding target pixel and values of the respective candidate associated pixels of the target pixel;

calculating, for each corresponding target pixel in the plurality of corresponding target pixels, respective variations of the respective value differences; and

selecting, for each corresponding target pixel in the plurality of corresponding target pixels, the one or more respective corresponding associated pixels in the training images based on the respective variations of the respective value differences.

9. The one or more non-transitory computer-readable storage media of claim 7 , wherein at least some of the one or more respective associated pixels of each target pixel in the plurality of corresponding target pixels have different distance ranges from the target pixel.

10. The one or more non-transitory computer-readable storage media of claim 7 , wherein the predicted target-pixel-value model is an affine model with respect to the respective values of the respective associated pixels in the test image.

11. The one or more non-transitory computer-readable media of claim 7 , wherein performing anomaly detection on the target pixel in the test image further comprises:

calculating a centrality and a variation of the respective value difference between the value of the target pixel and the predicted target-pixel value based on the respective values of the plurality of corresponding target pixels and on the respective values of the respective corresponding associated pixels in the training images; and

generating an anomaly score based at least in part on the respective value difference, the centrality, and the variation.

12. The one or more non-transitory computer-readable media of claim 11 , wherein the centrality of the respective value difference between the value of the target pixel and the predicted target-pixel value is a median or a mean.

13. The one or more non-transitory computer-readable media of claim 11 , wherein the variation of the respective value difference between the value of the target pixel and the predicted target-pixel value is a median-absolute deviation or a standard deviation.

14. A device comprising:

one or more computer-readable storage media; and

one or more processors in communication with the one or more computer-readable storage media to cause the device to perform operations comprising:

obtaining training images;

obtaining a test image;

selecting one or more respective associated pixels in the training images for each of a plurality of corresponding target pixels in the training images, wherein the plurality of corresponding target pixels correspond across the training images, and wherein the one or more respective associated pixels of each target pixel in the plurality of corresponding target pixels are included in a same training image of the one or more training images as the target pixel;

selecting one or more respective associated pixels in the test image for a target pixel in the test image, wherein each of the one or more respective associated pixels in the test image corresponds to at least one of the one or more respective associated pixels in the training images; and

detecting an anomaly in the target pixel in the test image based on respective values of the plurality of corresponding target pixels and respective values of the respective associated pixels of the plurality of target pixels in the training images and on a value of the target pixel and respective values of the respective associated pixels in the test image, wherein detecting the anomaly in the target pixel in the test image includes:

generating a predicted target-pixel value based on the respective value of at least one of the plurality of corresponding target pixels and the respective values of the associated pixels of the at least one of the plurality of corresponding target pixels in the training images, and

calculating, for the test image, a target-prediction-to-target-difference between the predicted target-pixel value and the value of the target pixel in the test image.

15. The device of claim 14 , wherein selecting the one or more respective associated pixels in the training images for each of the plurality of corresponding target pixels in the training images includes:

selecting one or more respective candidate associated pixels in the training images for each of the plurality of corresponding target pixels in the training images;

calculating respective value differences between values that are based on the respective values of the plurality of corresponding target pixels and values that are based on respective values of the respective candidate associated pixels of the plurality of corresponding target pixels;

calculating respective variations of the respective value differences; and

selecting the one or more respective associated pixels in the training images for each of the plurality of corresponding target pixels in the training images based on the respective variations of the respective value differences.

16. The device of claim 14 , wherein detecting the anomaly in the target pixel in the test image further includes:

comparing the target-prediction-to-target-difference in the test image to a centrality and a variation of target-prediction-to-target differences across the training images.

17. The device of claim 16 , wherein the centrality of the target-prediction-to-target differences across the training images is a median or a mean.

18. The device of claim 16 , wherein the variation of the target-prediction-to-target differences across the training images is a median-absolute deviation or a standard deviation.

19. The device of claim 14 , wherein at least some of the one or more respective associated pixels of each target pixel in the plurality of corresponding target pixels have different distance ranges from the target pixel.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 22, 2022
From: CAO, XIWU; DENNEY, BRADLEY SCOTT
To: CANON VIRGINIA, INC.
Reel/Frame 060596/0475 →
Continuity (3)
Division 16678880 · Nov 8, 2019
Provisional Application 62758281 · Nov 9, 2018
Related Publication 20220366181A1 · Nov 17, 2022
References Cited (51)
US 6005978A · Garakani · 1999 [cited by applicant]
US 6320976B1 · Murthy · 2001 [cited by applicant]
US 7318005B1 · Smaragdis · 2008 [cited by applicant]
US 7440607B1 · Lin · 2008 [cited by applicant]
US 7715623B2 · Ling · 2010 [cited by applicant]
US 8107717B2 · Maeda · 2012 [cited by applicant]
US 8131107B2 · Sun · 2012 [cited by applicant]
US 8238635B2 · Can · 2012 [cited by applicant]
US 8345949B2 · Zhao · 2013 [cited by applicant]
US 8442301B2 · Dragovich · 2013 [cited by applicant]
US 8867787B2 · Singamsetti · 2014 [cited by applicant]
US 9170543B2 · Arakawa · 2015 [cited by applicant]
US 9256920B1 · Choudhury · 2016 [cited by applicant]
US 9378552B2 · Sato · 2016 [cited by applicant]
US 9400256B2 · Henderkott · 2016 [cited by applicant]
US 9405991B2 · Sharma · 2016 [cited by applicant]
US 9460490B2 · Choudhury · 2016 [cited by applicant]
US 9619755B2 · Wang · 2017 [cited by applicant]
US 10410084B2 · Huang · 2019 [cited by applicant]
US 10789697B2 · Krishnan · 2020 [cited by applicant]
US 10997462B2 · Krishnan · 2021 [cited by applicant]
US 10997712B2 · Cao · 2021 [cited by applicant]
US 20060245635A1 · Ishikawa · 2006 [cited by applicant]
US 20080101686A1 · Sali · 2008 [cited by examiner]
US 20090238432A1 · Can · 2009 [cited by applicant]
US 20090279772A1 · Sun · 2009 [cited by applicant]
US 20130148987A1 · Arakawa · 2013 [cited by applicant]
US 20140270489A1 · Lim · 2014 [cited by applicant]
US 20140348415A1 · Bhattad · 2014 [cited by applicant]
US 20150221076A1 · Gao · 2015 [cited by applicant]
US 20150227809A1 · Alpert · 2015 [cited by applicant]
US 20170140516A1 · Maher · 2017 [cited by applicant]
US 20170374305A1 · Kostrzewa · 2017 [cited by examiner]
US 20180114092A1 · Huang · 2018 [cited by applicant]
US 20190220965A1 · Cao · 2019 [cited by applicant]
US 20190285980A1 · Yoshikawa · 2019 [cited by examiner]
US 20200151496A1 · Cao · 2020 [cited by applicant]
US 20220222773A1 · Miyata · 2022 [cited by examiner]
JP 2015108522A · 2015 [cited by applicant]
David W. J. Stein et al., Anomaly Detection from Hyperspectral Imagery, IEEE Signal Processing Magazine, Jan. 2002. [cited by applicant]
M. Haselmann et al., Pixel-Wise Defect Detection by CNNs without Manually Labeled Training Data, Applied Artificial Intelligence, Mar. 2019. [cited by applicant]
Rene Heideklang et al., Application of Data Fusion in Nondestructive Testing (NDT), Jul. 2013. [cited by applicant]
Xavier Gros et al., Pixel Level NDT Data Fusion, Jul. 1999. [cited by applicant]
J. Hassan et al., Welding Defect Detection and Classification Using Geometric Features, Dec. 2012. [cited by applicant]
Nick Kingsbury, Complex Wavelets for Shift Invariant Analysis and Filtering of Signals, May 2001. [cited by applicant]
Roumen Kountchev et al., Defects detection in X-ray images and photos, Feb. 2011. [cited by applicant]
V Lashkia, Defect detection in X-ray images using fuzzy reasoning, Image and Vision Computing, vol. 19, Issue 5, Apr. 2001, Abstract. [cited by applicant]
Shekhar B. Sastry, Computationally Efficient Methods for Shift-variant Image Restoration in Two and Three Dimensions, Sep. 2011. [cited by applicant]
Ian T. Young et al., Fundamentals of Image Processing, Jul. 2004. [cited by applicant]
Tian Yuan et al., Automatic Defect Detection in X-Ray Images Using Image Data Fusion, Dec. 2006. [cited by applicant]
Caixia Zheng et al., An improved method for object detection in astronomical images, Jun. 2015. [cited by applicant]