Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| courses:xai:pr_2026 [2026/11/29 12:12] – admin | courses:xai:pr_2026 [2026/11/30 08:20] (current) – [Project description] admin | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Projects marked with {{: | Projects marked with {{: | ||
| + | Select project: [[https:// | ||
| ===== 1. Comparing Human and AI Attention in Visual Anomaly Detection ===== | ===== 1. Comparing Human and AI Attention in Visual Anomaly Detection ===== | ||
| Line 17: | Line 18: | ||
| The goal of this project is to prepare a pilot study comparing the visual attention of human operators with the anomaly regions identified by an artificial intelligence model. | The goal of this project is to prepare a pilot study comparing the visual attention of human operators with the anomaly regions identified by an artificial intelligence model. | ||
| - | The study will use the CoinDefect6K dataset, which contains images of coins acquired in an industrial visual-inspection setting. A selected visual anomaly-detection method, preferably PatchCore from the Anomalib library, should be used to generate pixel-level anomaly maps for selected images. The same images will then be presented to human participants using Tobii-PyTracker, | + | The study will use the [[https:// |
| The project should investigate whether human participants and the anomaly-detection model focus on similar image regions when evaluating whether a coin contains a defect. | The project should investigate whether human participants and the anomaly-detection model focus on similar image regions when evaluating whether a coin contains a defect. | ||
| Line 33: | Line 34: | ||
| * Prepare a basic visual-inspection experiment using Tobii-PyTracker. | * Prepare a basic visual-inspection experiment using Tobii-PyTracker. | ||
| * Present each image to participants and ask them to decide whether it contains a defect. | * Present each image to participants and ask them to decide whether it contains a defect. | ||
| - | * Optionally ask participants to indicate the suspected defect location using the mouse. | + | * Ask participants to indicate the suspected defect location using verbal description (voice is recorded with tobii-pytracker and later is transcibed into description). |
| * Record: | * Record: | ||
| * gaze coordinates, | * gaze coordinates, | ||
| Line 39: | Line 40: | ||
| * inspection time, | * inspection time, | ||
| * participant decision, | * participant decision, | ||
| - | * decision confidence, | + | * voice |
| - | * manually indicated defect location, if collected. | + | * Conduct a pilot experiment. |
| - | * Conduct a pilot experiment | + | |
| * Remove invalid gaze samples and transform the gaze coordinates into the coordinate system of the displayed image. | * Remove invalid gaze samples and transform the gaze coordinates into the coordinate system of the displayed image. | ||
| * Generate individual and aggregated human-attention heatmaps. | * Generate individual and aggregated human-attention heatmaps. | ||
| Line 83: | Line 83: | ||
| * A short technical report describing the experiment, results, limitations, | * A short technical report describing the experiment, results, limitations, | ||
| - | ==== Important considerations ==== | ||
| - | |||
| - | * The displayed image must not be resized differently for AI-map generation and gaze analysis. | ||
| - | * Screen coordinates must be transformed carefully into image coordinates. | ||
| - | * The order of images should be randomized. | ||
| - | * A short calibration and familiarization stage should be included. | ||
| - | * Human participants should not be shown the AI anomaly maps before making their decisions. | ||
| - | * As gaze and participant decisions are collected, the study must follow the applicable institutional requirements for research involving human participants. | ||
| ===== 2. Comparing Human and AI Attention in Image Classification ===== | ===== 2. Comparing Human and AI Attention in Image Classification ===== | ||
| - | **Difficulty: | + | **Difficulty: |
| **Project type:** Human-centered AI, image classification, | **Project type:** Human-centered AI, image classification, | ||
| Line 119: | Line 111: | ||
| * top-5 predictions, | * top-5 predictions, | ||
| * class probabilities. | * class probabilities. | ||
| - | * Generate class-specific model-attention maps using Grad-CAM. | + | * Generate class-specific model-attention maps using Grad-CAM |
| * Optionally compare Grad-CAM with one additional attribution method, such as Integrated Gradients or Occlusion. | * Optionally compare Grad-CAM with one additional attribution method, such as Integrated Gradients or Occlusion. | ||
| * Implement an eye-tracking experiment using Tobii-PyTracker. | * Implement an eye-tracking experiment using Tobii-PyTracker. | ||
| Line 127: | Line 119: | ||
| * participant classification, | * participant classification, | ||
| * response time, | * response time, | ||
| - | * confidence, | + | * participant |
| - | * whether the participant | + | |
| * Generate human-attention heatmaps. | * Generate human-attention heatmaps. | ||
| * Compare human gaze with the attribution map generated for: | * Compare human gaze with the attribution map generated for: | ||
| Line 177: | Line 168: | ||
| * A technical report documenting the experimental procedure and results. | * A technical report documenting the experimental procedure and results. | ||
| - | ==== Important considerations ==== | ||
| - | * Grad-CAM is a post-hoc approximation and should not be described as a direct measurement of where the model “looked.” | ||
| - | * The attribution must be generated for a clearly specified class. | ||
| - | * The displayed image should correspond exactly to the image crop received by the classifier. | ||
| - | * ImageNet labels may be overly specific. A mapping to a smaller set of human-readable categories may be required. | ||
| - | * The selected stimuli should be tested before the final study to ensure that the required classes are understandable to participants. | ||
| ===== 3. Ablation Study of Counterfactuals by Design ===== | ===== 3. Ablation Study of Counterfactuals by Design ===== | ||
| - | **Difficulty: | + | **Difficulty: |
| **Project type:** Time-series counterfactual explanations, | **Project type:** Time-series counterfactual explanations, | ||
| Line 198: | Line 183: | ||
| The goal of this project is to investigate the role of individual components of the objective function used in Counterfactuals by Design. | The goal of this project is to investigate the role of individual components of the objective function used in Counterfactuals by Design. | ||
| - | The student should first reproduce the original version of the method described in the paper “Counterfactuals by Design: Residual Decomposition and Back-to-Normality Editing for Time Series.” | + | The first version of the paper and the available materials can be found at: |
| https:// | https:// | ||
| Line 208: | Line 193: | ||
| ==== Main tasks ==== | ==== Main tasks ==== | ||
| - | * Run the available implementation of the first Counterfactuals by Design method. | ||
| - | * Reproduce at least one experiment reported in the original work. | ||
| * Run the second version of the implementation provided by the supervisor. | * Run the second version of the implementation provided by the supervisor. | ||
| * Identify all independently weighted components of the training and counterfactual-generation objectives. | * Identify all independently weighted components of the training and counterfactual-generation objectives. | ||
| Line 227: | Line 210: | ||
| * the complete objective function, | * the complete objective function, | ||
| - | * removal of each reconstruction-related component, | + | * removal of each term from cost fuciton |
| - | * removal of each classification or validity component, | + | |
| - | * removal of each decomposition or separation component, | + | |
| - | * removal of regularization terms, | + | |
| - | * removal of constraints controlling the counterfactual residual, | + | |
| - | * removal of terms responsible for preserving the normal or morphology component, | + | |
| - | * selected weight sweeps for the most influential components. | + | |
| For each loss component, test at least: | For each loss component, test at least: | ||
| Line 283: | Line 260: | ||
| * A report discussing which components are essential, beneficial, redundant, or potentially harmful. | * A report discussing which components are essential, beneficial, redundant, or potentially harmful. | ||
| - | ==== Important considerations ==== | ||
| - | |||
| - | * An ablation must change only the examined component. | ||
| - | * Hyperparameters unrelated to the ablated component must remain fixed. | ||
| - | * Failure to generate a counterfactual is a valid result and must be recorded. | ||
| - | * The analysis should not rely only on validity because removing constraints may improve validity while producing unrealistic counterfactuals. | ||
| - | * Conclusions should be based on repeated experiments rather than individual examples. | ||
| ===== 4. Robustness of DANCE to Errors in the Feature-Relationship Graph ===== | ===== 4. Robustness of DANCE to Errors in the Feature-Relationship Graph ===== | ||
| - | **Difficulty: | + | **Difficulty: |
| **Project type:** Counterfactual explanations, | **Project type:** Counterfactual explanations, | ||
| Line 303: | Line 273: | ||
| DANCE uses a feature-relationship graph to guide counterfactual generation. In practice, such a graph may be incomplete or inaccurate. Some actual relationships may be missing, spurious relationships may be present, and estimated edge weights may differ from the true dependencies between features. | DANCE uses a feature-relationship graph to guide counterfactual generation. In practice, such a graph may be incomplete or inaccurate. Some actual relationships may be missing, spurious relationships may be present, and estimated edge weights may differ from the true dependencies between features. | ||
| - | The goal of this project is to evaluate the robustness of DANCE to controlled errors in the feature-relationship graph. The experiments should use the ACFX implementation of DANCE and several tabular classification datasets containing continuous, categorical, | + | The goal of this project is to evaluate the robustness of DANCE to controlled errors in the feature-relationship graph. The experiments should use the [[https:// |
| - | A complete reference Google Colab notebook will be provided. It demonstrates how to: | + | A complete reference |
| * install and configure ACFX, | * install and configure ACFX, | ||
| Line 550: | Line 520: | ||
| ==== Required metrics ==== | ==== Required metrics ==== | ||
| - | The reference notebook contains implementations of the required metrics and demonstrates how to calculate them for counterfactuals generated by ACFX. | + | The reference notebook contains implementations of the required metrics and demonstrates how to calculate them for counterfactuals generated by ACFX: [[https:// |
| The project should report at least: | The project should report at least: | ||
| Line 806: | Line 776: | ||
| A common ECG classifier and the same factual test signals must be used for all methods. The evaluation should determine whether the generated signals are valid counterfactuals, | A common ECG classifier and the same factual test signals must be used for all methods. The evaluation should determine whether the generated signals are valid counterfactuals, | ||
| - | The recommended dataset is PTB-XL. The initial comparison may focus on a binary task, such as normal versus abnormal ECG, or on selected diagnostic superclasses. The exact classification task should be fixed before the counterfactual methods are compared. | + | The recommended dataset is [[https:// |
| ==== Required types of counterfactual generator ==== | ==== Required types of counterfactual generator ==== | ||