bias.myti.report
A visualization tool to facilitate the comparison of user-implemented bias mitigation methods for AI models
Science Score: 57.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 6 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.1%) to scientific vocabulary
Keywords
Repository
A visualization tool to facilitate the comparison of user-implemented bias mitigation methods for AI models
Basic Info
- Host: GitHub
- Owner: DIDSR
- License: cc0-1.0
- Language: Jupyter Notebook
- Default Branch: main
- Homepage: https://www.fda.gov/medical-devices/medical-device-regulatory-science-research-programs-conducted-osel/artificial-intelligence-and-machine-learning-program-research-aiml-based-medical-devices
- Size: 97.4 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
bias.myti.report
bias.myti.report is a visualization tool to facilitate the comparison of user-implemented bias mitigation methods for AI models.
Overview of the bias amplification process
This repository contains the implementation of two AI bias amplification approaches presented in the paper: “Bias amplification to facilitate the systematic evaluation of bias mitigation methods”. The graphical user interface(GUI) tool helps the user to better understand the amplified model bias with or without bias mitigation. The whole platform allows an objective assessment and systematic comparison of bias mitigation methods, and assists the user to select the most appropriate mitigation method under different circumstances.
Testing results for two amplification approaches are included in two example Jupyter notebooks, please see here to access.
Instructions on how to use the GUI tool can be found here.
Related References
- A. Burgon, Y. Zhang, N. Petrick, B. Sahiner, K. H. Cha, R. K. Samala, "Bias amplification to facilitate the systematic evaluation of bias mitigation methods", in IEEE Journal of Biomedical and Health Informatics (2024) doi:10.1109/JBHI.2024.3491946
- A. Burgon, Y. Zhang, B. Sahiner, N. Petrick, K. H. Cha, R. K. Samala, “Manipulation of sources of bias in AI device development”, In Medical Imaging 2024: Computer-Aided Diagnosis, vol. 12927, pp. 351-356. SPIE, 2024. doi: 10.1117/12.3008267
- Y. Zhang, A. Burgon, N. Petrick, B. Sahiner, G. Pennello, R. K. Samala, “Evaluation of AI bias mitigation algorithms by systematically promoting sources of bias”, RSNA Program Book, T6-SSPH08-1 (2023). Program Book
Introduction
With increasing utilization of AI in clinical practice, it is critical to understand and control AI model bias to ensure health equities. Numerous methods have been developed to mitigate bias, however, there is a lack of consistent way to systematically evaluate the effectiveness and potential trade-off of these mitigation methods. To facilitate such evaluation, we presented two bias amplification approaches by promoting the spurious correlation between AI outputs and patient attributes. - Quantitative misrepresentation: a manipulation of data selection to the training set such that the disease prevalence is varied between different patient subgroups. - Inductive transfer learning: a two-step transfer learning approach where the AI is trained to classify patient attributes during the first step. The AI is then fine-tuned to perform clinical tasks during the second step.
Getting Started
For detailed information, view the bias.myti.report documentation.
Bias Amplification
Examples showing instructions on how to implement the two bias amplification approaches can be found in example for quantitative misrepresention (/example/Bias amplification (quantitative misrepresentation) example.ipynb) and example for inductive transfer learning (/example/Bias amplification (inductive transfer learning) example.ipynb).
Quick Guide for bias.myti.report GUI
To visualize the bias by bias.myti.report GUI, run the following code:
cd src/
python mytiUI.py
Here is a quick guidance on how to use the tool.
Page 1 (Input page)
- Select and upload the csv file that contains calculated bias measurements.
- Specify the implemented bias amplification approach (quantitative misrepresentation or inductive transfer learning).
- Select the study type (mitigation comparison, finite sample size or none of these).
Click the 'Next Page' button on bottom left after all steps are finished and navigate to the next page.

Preview of page 1
Page 2 (Variables Page)
- Click the icons to display detailed information for corresponding variables.
- Specify corresponding column names in the csv file to variables.
Click the 'Next Page' button on bottom left after all steps are finished and navigate to the next page.

Preview of page 2
Page 3 (Report Page)
- Previews for bias visualization figures. Click on the figure for display.
- Selected figure will be displayed along with the description below.
- Click to customize subgroup colors in the figure.
- Click the "Save Report" button to save the selected figure and description as a report. Example reports are included in the example folder.

Preview of page 3
Example Outputs

Example figure showing bias mitigation comparison when sex-related bias has been amplified by quantitative misrepresentation. Each subplot shows the predicted disease prevalence within each patient subgroup.
For more detailed information, view the bias.myti.report documentation.
System Requirements
The tool is developed and tested with Ubuntu 22.04.3 LTS and python 3.10.12.
The tool is tested with NVIDIA Tesla V100 SXM2 32 GB, with NVIDIA Driver Version 550.67 and CUDA version 12.4.
Python package requirements can be found in requirements.txt.
Potential Issue & Solution
If the user encounters the following error when trying to launch the GUI during first time:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
The solution is to install the dependency by running:
apt-get install libxcb-cursor0
Data
The imaging and associated clinical data downloaded from MIDRC (The Medical Imaging and Data Resource Center) and used for research in this repository was made possible by the National Institute of Biomedical Imaging and Bioengineering (NIBIB) of the National Institutes of Health under contract 75N92020C00021. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.
Owner
- Name: DIDSR (Aldo Badano, Director)
- Login: DIDSR
- Kind: organization
- Location: United States of America
- Website: https://www.fda.gov/about-fda/cdrh-offices/division-imaging-diagnostics-and-software-reliability
- Repositories: 68
- Profile: https://github.com/DIDSR
FDA, CDRH, OSEL, Division of Imaging, Diagnostics, and Software Reliability
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Zhang" given-names: "Yuhang" orcid: "https://orcid.org/0000-0003-4056-871X" - family-names: "Burgon" given-names: "Alexis" orcid: "https://orcid.org/0000-0002-2180-9082" - family-names: "Samala" given-names: "Ravi" orcid: "https://orcid.org/0000-0002-6661-4801" title: "myti.report" date-released: 2024-03-07 url: "https://github.com/DIDSR/myti.report"
GitHub Events
Total
- Push event: 3
Last Year
- Push event: 3
Dependencies
- Pillow ==9.5.0
- PyQt6 ==6.6.0
- PyQt6-Qt6 ==6.6.0
- ipywidgets ==8.0.6
- jupyter ==1.0.0
- matplotlib ==3.7.1
- numpy ==1.26.4
- onnx ==1.13.1
- onnxruntime-gpu ==1.14.0
- opencv-python ==4.7.0.72
- pandas ==1.5.3
- pydicom ==2.4.1
- pylibjpeg ==2.0.0
- pylibjpeg-libjpeg ==2.0.2
- reportlab ==4.1.0
- scikit-learn ==1.2.2
- tabulate ==0.9.0
- torch ==1.13.1
- torchvision ==0.14.1
- tqdm ==4.65.0