IP Library Granted Patent US 12,353,473
Granted Patent B2
US 12,353,473 · App. 17/859,915 · Granted Jul 8, 2025

Image data bias detection with explainability in machine learning

Inventors: Satish Kumar Mopur (Bangalore, IN); Krishnaprasad Lingadahalli Shastry (Bangalore, IN)
Assignee: Hewlett Packard Enterprise Development LP
G06F16/55G06V10/762G06V10/7796
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,353,473
App. No.
17/859,915
Granted
Jul 8, 2025
Kind
B2
Abstract

Bias in Machine Learning (ML) is when an ML algorithm tends to incompletely learn relevant and important patterns from a dataset, or learns the patterns from data incorrectly. Such inaccuracy can cause the algorithm to miss important relationships between patterns and features in data, resulting in inaccurate algorithm predictions. Systems and methods for detecting potential ML bias in input image datasets are described herein. After a target image is received, a subset of images related to the target image is extracted. The target image and subset of images are analyzed under an imbalance assessment and data bias assessment to determine the presence of any potential data bias in a ML training pipeline. If any data bias is determined, one or more messages summarizing the assessments and including explanations to enable more accurate predictions in image assessments are sent to the user.

Claims (74)

1. A computer-implemented method of a computing system comprising a server and a database, the method comprising:

receiving a target image, wherein the target image comprises one or more attributes;

extracting a subset of images from an image database based on the one or more attributes;

analyzing the subset to determine an imbalance assessment;

performing mean shift clustering on each image in the subset and the target image, wherein the mean shift clustering comprises:

computing a Hopkins statistic on data points of a first image;

determining a quantile value based on the computed Hopkin statistic;

determining a kernel bandwidth based on a second quantity of the data points and the determined quantile value; and

performing the mean shift clustering based on the determined kernel bandwidth;

determining one or more clusters in each image in the subset and the target image based on the performed mean shift clustering;

performing data bias assessment on the one or more clusters of the target image, wherein the data bias assessment is performed according to a machine learning (ML) algorithm;

sending a first message of data bias according to a determination of an imbalance based on the imbalance assessment; and

sending a second message of data bias according to a determination of an inconsistency based on the performed data bias assessment.

2. The computer-implemented method of claim 1 , wherein, prior to the receiving the target image, assigning the one or more attributes to the target image.

3. The computer-implemented method of claim 1 , wherein, after the receiving the target image, determining the one or more attributes based on an attribute detection algorithm.

4. The computer-implemented method of claim 1 , wherein the determined imbalance assessment comprises:

determining one or more quantities of images in one or more image groups in the image database;

determining if a first quantity of the subset is below an imbalance threshold according to the one or more quantities of images in the one or more image groups; and

if the first quantity of the subset is below the imbalance threshold, determining the imbalance in the subset.

5. The computer-implemented method of claim 1 , wherein the performed data bias assessment comprises:

comparing the one or more clusters in the target image to the one or more clusters in each image in the subset;

determining a first difference between the one or more clusters in the target image to the one or more clusters in a first image in the subset;

determining a total difference wherein the total difference is a calculated balance of each difference for each of the images in the subset; and

if the total difference between the one or more clusters is greater than a consistency threshold, determining the inconsistency between the target image and the subset.

6. A computing system comprising:

one or more processors; and

a memory storing instructions that, when executed by the one or more processors, cause the one or more processors to:

receive a target image, wherein the target image comprises one or more attributes;

extract a subset of images from an image database based on the one or more attributes;

analyze the subset to determine an imbalance assessment;

perform mean shift clustering on each image in the subset and the target image;

determine one or more clusters in each image in the subset and the target image based on the performed mean shift clustering, wherein the mean shift clustering comprises:

computing a Hopkins statistic on data points of a first image;

determining a quantile value based on the computed Hopkin statistic

determining a darnel bandwidth based on a second quantity of the data points and the determined quantile value; and

performing the mean shift clustering based on the determined kernel bandwidth;

perform data bias assessment on the one or more clusters of the target image, wherein the data bias assessment is performed according to a machine learning (ML) algorithm;

send a first message of data bias according to a determination of an imbalance based on the imbalance assessment; and

send a second message of data bias according to a determination of an inconsistency based on the performed data bias assessment.

7. The computing system of claim 6 , wherein, prior to the receive the target image, assign the one or more attributes to the target image.

8. The computing system of claim 6 , wherein, after the receive the target image, determine the one or more attributes based on an attribute detection algorithm.

9. The computing system of claim 6 , wherein the determined imbalance assessment comprises:

determine one or more quantities of images in one or more image groups in the image database;

determine if a first quantity of the subset is below an imbalance threshold according to the one or more quantities of images in the one or more image groups; and

if the first quantity of the subset is below the imbalance threshold, determine the imbalance in the subset.

10. The computing system of claim 6 , wherein the performed data bias assessment comprises:

compare the one or more clusters in the target image to the one or more clusters in each image in the subset;

determine a first difference between the one or more clusters in the target image to the one or more clusters in a first image in the subset;

determine a total difference wherein the total difference is a calculated balance of each difference for each of the images in the subset; and

if the total difference between the one or more clusters is greater than a consistency threshold, determine the inconsistency between the target image and the subset.

11. A non-transitory storage medium storing instructions that, when executed by at least one processor of a computing system, cause the computing system to perform a method comprising:

receiving a target image, wherein the target image comprises one or more attributes;

extracting a subset of images from an image database based on the one or more attributes;

analyzing the subset to determine an imbalance assessment;

performing mean shift clustering on each image in the subset and the target image, wherein the mean shift clustering comprises:

computing a Hopkins statistic on data points of a first image;

determining a quantile value based on the computed Hopkin statistic;

determining a kernel bandwidth based on a second quantity of the data points and the determined quantile value; and

performing the mean shift clustering based on the determined kernel bandwidth;

determining one or more clusters in each image in the subset and the target image based on the performed mean shift clustering;

performing data bias assessment on the one or more clusters of the target image, wherein the data bias assessment is performed according to a machine learning (ML) algorithm;

sending a first message of data bias according to a determination of an imbalance based on the imbalance assessment; and

sending a second message of data bias according to a determination of an inconsistency based on the performed data bias assessment.

12. The non-transitory storage medium of claim 11 , wherein, prior to the receiving the target image, assigning the one or more attributes to the target image.

13. The non-transitory storage medium of claim 11 , wherein, after the receiving the target image, determining the one or more attributes based on an attribute detection algorithm.

14. The non-transitory storage medium of claim 11 , wherein the determined imbalance assessment comprises:

determining one or more quantities of images in one or more image groups in the image database;

determining if a first quantity of the subset is below an imbalance threshold according to the one or more quantities of images in the one or more image groups; and

if the first quantity of the subset is below the imbalance threshold, determining the imbalance in the subset.

15. The non-transitory storage medium of claim 11 , wherein the performed data bias assessment comprises:

comparing the one or more clusters in the target image to the one or more clusters in each image in the subset;

determining a first difference between the one or more clusters in the target image to the one or more clusters in a first image in the subset;

determining a total difference wherein the total difference is a calculated balance of each difference for each of the images in the subset; and

if the total difference between the one or more clusters is greater than a consistency threshold, determining the inconsistency between the target image and the subset.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 9, 2022
From: MOPUR, SATISH KUMAR; SHASTRY, KRISHNAPRASAD LINGADAHALLI
To: HEWLETT PACKARD ENTERPRISE DEVELOPMENT LP
Reel/Frame 060762/0701 →
Continuity (1)
Related Publication 20240012852A1 · Jan 11, 2024
References Cited (19)
US 7260259B2 · Comaniciu et al. · 2007 [cited by applicant]
US 11256989B2 · Dalli et al. · 2022 [cited by applicant]
US 20200279411A1 · Atria et al. · 2020 [cited by applicant]
US 20200380310A1 · Weider · 2020 [cited by examiner]
US 20210350172A1 · Ting · 2021 [cited by applicant]
US 20230131834A1 · Sankaranarayanan · 2023 [cited by examiner]
US 20240095588A1 · Vandikas · 2024 [cited by examiner]
M. Atay, H. Gipson, T. Gwyn and K. Roy, “Evaluation of Gender Bias in Facial Recognition with Traditional Machine Learning Algorithms,” 2021 IEEE Symposium Series on Computational Intelligence (SSCI), Orlando, FL, USA, … [cited by examiner]
Borrajo et al., “Bandwidth selection for kernel density estimation with length-biased data”, Journal of Nonparametric Statistics, Jun. 2016, 31 pages. [cited by applicant]
“CXR8_Powered by Box”, available online at <https://nihcc.app.box.com/v/ChestXray-NIHCC>, 2017, 1 page. [cited by applicant]
AWS, “Amazon Web Services Documentation”, available online at <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-measure-data-bias.htmlPapers>, 2025, 1 page. [cited by applicant]
Baptiste Moreau, “Bias in your datasets: COVID-19 case study”, available online at <https://towardsdatascience.com/bias-in-your-datasets-covid-19-case-study-d065aa698b74/>, May 4, 2021, 22 pages. [cited by applicant]
Kaggle, “USPS dataset”, available online at <https://web.archive.org/web/20230607040425/https://www.kaggle.com/datasets/bistaumanga/usps-dataset>, Jun. 7, 2023, 2 pages. [cited by applicant]
Larrazabala et al., “Gender imbalance in medical imaging datasets produces biased classifiers for computeraided diagnosis”, Jun. 9, 2020, 3 pages. [cited by applicant]
Schaaf et al., “Towards Measuring Bias in Image Classification”, Jul. 1, 2021, 12 pages. [cited by applicant]
Tensorflow, “mnist”, available online at <https://www.tensorflow.org/datasets/catalog/mnist>, 2024, 3 pages. [cited by applicant]
The Linux Foundation, “AI Fairness 360: Understand and mitigate bias in ML models”, available online at <https://ai-fairness-360.org/>, 2024, 3 pages. [cited by applicant]
Vokinger et al., “Mitigating bias in machine learning for medicine”, 2021, 3 pages. [cited by applicant]
Wang et al., “Revise: A Tool for Measuring and Mitigating Bias in Visual Datasets”, Jul. 23, 2021, 22 pages. [cited by applicant]