%%
%% Copyright 2007-2024 Elsevier Ltd
%%
%% This file is part of the 'Elsarticle Bundle'.
%% ---------------------------------------------
%%
%% It may be distributed under the conditions of the LaTeX Project Public
%% License, either version 1.3 of this license or (at your option) any
%% later version. The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 1999/12/01 or later.
%%
%% The list of all files belonging to the 'Elsarticle Bundle' is
%% given in the file manifest.txt'. %% %% Template article for Elsevier's document class elsarticle'
%% with numbered style bibliographic references
%% SP 2008/03/01
%% Id:elsarti
%%
\documentclass[preprint,12pt]{elsarticle}
Assistant
c
l
e
−
template−
num.tex2492024−
04−
0610:
51:
24Zrishi
%% Use the option review to obtain double line spacing
%% \documentclass[authoryear,preprint,review,12pt]{elsarticle}
%% Use the options 1p,twocolumn; 3p; 3p,twocolumn; 5p; or 5p,twocolumn
%% for a journal layout:
%% \documentclass[final,1p,times]{elsarticle}
%% \documentclass[final,1p,times,twocolumn]{elsarticle}
%% \documentclass[final,3p,times]{elsarticle}
%% \documentclass[final,3p,times,twocolumn]{elsarticle}
%% \documentclass[final,5p,times]{elsarticle}
%% \documentclass[final,5p,times,twocolumn]{elsarticle}
%% For including figures, graphicx.sty has been loaded in
%% elsarticle.cls. If you prefer to use the old commands
%% please give \usepackage{epsfig}
%% The amssymb package provides various useful mathematical symbols
\usepackage{amssymb}
%% The amsmath package provides various useful equation environments.
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{makecell}
%% The amsthm package provides extended theorem environments
%% \usepackage{amsthm}
%% The lineno packages adds line numbers. Start line numbering with
%% \begin{linenumbers}, end it with \end{linenumbers}. Or switch it on
%% for the whole article with \linenumbers.
\usepackage{lineno}
\journal{Medical Image Analysis}
\begin{document}
\begin{frontmatter}
\title{CausalMixNet: A Mixed-Attention Framework for Causal Intervention in Robust Medical Image Diagnosis}
\affiliation[1]{organization={Department of Data Science and Artificial Intelligence, The Hong Kong Polytechnic University},
city={Hong Kong SAR},
country={China}}
\affiliation[2]{organization={School of Computer Science, Northwestern Polytechnical University},
city={Xi'an},
country={China}}
\affiliation[3]{organization={Department of Computing, The Hong Kong Polytechnic University},
city={Hong Kong SAR},
country={China}}
\affiliation[4]{organization={Research Office, City University of Hong Kong (Dongguan)},
city={Dongguan},
country={China}}
%% Abstract
\begin{abstract}
%% Text of abstract
Confounding factors inherent in medical images can significantly impact the causal exploration capabilities of deep learning models, resulting in compromised accuracy and diminished generalization performance. In this paper, we present an innovative methodology named CausalMixNet that employs query-mixed intra-attention and key&value-mixed inter-attention to probe causal relationships between input images and labels. For mitigating unobservable confounding factors, CausalMixNet seamlessly integrates the non-local reasoning module (NLRM) and the key&value-mixed inter-attention (KVMIA) to conduct a front-door adjustment strategy. Furthermore, CausalMixNet incorporates a patch-masked ranking module (PMRM) and query-mixed intra-attention (QMIA) to enhance mediator learning, thereby facilitating causal intervention. The patch mixing mechanism applied to query/(key&value) features within QMIA and KVMIA specifically targets lesion-related feature enhancement and the inference of average causal effect inference. CausalMixNet consistently outperforms existing methods, achieving superior accuracy and F1-scores across in-domain and out-of-domain scenarios on multiple datasets, with an average improvement of 3% over the closest competitor. Demonstrating robustness against noise and gender bias, CausalMixNet excels in handling unobservable confounders, maintaining stable performance even in challenging conditions.
\end{abstract}
%%Research highlights
\begin{highlights}
\item {CausalMixNet Overview: We present CausalMixNet, an innovative framework for medical image diagnosis that effectively mitigates the impact of unobservable confounders. By leveraging front-door adjustment principles, it explores the true causal relationships between image features and diagnostic labels, enhancing the reliability of diagnostic outcomes.}
\item {Advanced Mechanisms: CausalMixNet integrates four key modules, Non-Local Reasoning Module (NLRM), Patch-Masked Ranking Module (PMRM), Query-Mixed Intra-Attention (QMIA), and Key&Value-Mixed Inter-Attention (KVMIA), to robustly identify lesion and non-lesion patches while controlling for unobservable confounding factors. This seamless integration significantly strengthens the causal inference process.}
\item {Empirical Validation: Comprehensive experiments across four widely-used datasets demonstrate that CausalMixNet achieves high diagnostic accuracy both in-domain and out-of-domain. It exhibits remarkable stability and effectiveness under noisy conditions, showcasing its potential to enhance clinical applications and improve diagnostic reliability in diverse scenarios.}
\end{highlights}
%% Add \usepackage{lineno} before \begin{document} and uncomment
%% following line to enable line numbers
%% \linenumbers
\section{Introduction}
\label{sec:introduction}
Computer-aided diagnosis systems are designed to automate the feature extraction and pattern recognition processes from medical images, streamlining the crucial analysis tasks such as lesion detection \cite{chen2020unsupervised,li2023self}, segmentation \cite{zhong2025cross,jiang2025labeled}, and classification \cite{liuattention2022,liuspatial2024,huang2021identifying}. They enhance the efficiency of medical practitioners and also reduce subjectivity in disease diagnosis. Typically, deep learning-based computer-aided diagnosis systems have become pivotal in medical image analysis.
However, the pervasive presence of both observable and unobservable noise \cite{xu2020contrast,van2022explainable} presents substantial obstacles for deep learning applications in disease diagnosis when they attribute diagnostic relevance to a confluence of observable noise and pathological indicators \cite{miao2023caussl}. The complex interplay between various tissues, organs, and imaging artifacts poses a significant challenge in precisely demarcating pathological regions \cite{chen2022c}. Furthermore, performance degradation can occur due to domain shifts \cite{hu2023source}, where the well-learned patterns do not generalize well to new, unseen data. Additionally, these issues are further complicated by unobservable noise, which subtly undermines the learning process of pathological features. Unlike observable noise, unobservable noise cannot be directly detected or quantified, making it challenging for existing deep learning methods in directly countering its effects.
Currently, a myriad of methods exhibit promising potential in addressing observable noise. KDFD \cite{wang2022disentangled} employs a multi-task learning paradigm to stimulate the model towards acquiring content-related features, prioritizing them over stylistic features. STS \cite{chen2022disentangle} identifies invariant features in the feature matrix using gradient information, thereby alleviating the impact of noise. C2-net adopts a contrastive learning strategy in spatial and frequency domains to extract features associated with labels. CMCL \cite{mao2022towards} utilizes counterfactual invariance/variance representations to enhance the model's robustness to noise. Causal_CXR \cite{nie2023chest} employs attention mechanism-based backdoor adjustments to learn the etiology in images. However, these methods generally overlook how to address unobservable noise.
Unobservable noise, as a confounding factor, significantly impacts the interpretation of causal relationships in deep learning models. Previous research has demonstrated that physiological differences, such as age, gender \cite{polsterl2021estimation}, and genetic background \cite{zardavas2015clinical}, not only influence imaging features but are also linked to the probability of disease occurrence. Furthermore, variations in operational techniques can introduce biases in dataset annotations \cite{fabbrizzi2022survey}, leading to misleading inference results. These biases may result in improved model performance in specific populations or conditions, thereby compromising generalizability and reliability in clinical applications. Such instances highlight the pervasive influence of unobservable confounding factors in disease diagnostic systems. Therefore, it is essential to develop algorithms that can effectively mitigate the impact of these unobservable confounders.
In this paper, we propose the CausalMixNet, a novel medical image diagnosis approach, integrated with query-mixed intra-attention and key&value-mixed inter-attention by eliminating the negative effects of unobserved confounders and exploring the true causality between input and output. CausalMixNet is underpinned by the concept of front-door adjustment (FDA) \cite{pearl2018book} that introduces a mediator to bridge the gap between input and output, thereby controlling unobservable confounding factors. We first design a non-local reasoning module (NLRM) to extract the mediator in FDA to link the causal effect from image features to labels. Then, a patch-masked ranking module (PMRM) is proposed to identify the lesion patches and non-lesion patches by masking each sub-patch and calculating their individual importance score. To enhance the discernibility of mediator, we propose the query-mixed intra-attention (QMIA) module to increase the diveristy of query vectors. Finally, a key&value-mixed inter-attention (KVMIA) module is designed to conduct causal intervention on the refined mediator. Extensive experiments spanning four widely-used datasets for both in-domain and out-of-domain testing demonstrate that CausalMixNet achieves promising improvements in both scenarios.
CausalMixNet also exhibits remarkable robustness in noise testing even in the presence of severe data noise. The main contributions of this work can be summarized as follow.
\begin{itemize}
\item The proposed deconfounding method CausalMixNet is designed to explore the causality for medical image diagnosis, especially when unobserved confounders are existed in the system. This method aims to uncover the true causal relationships between image features and diagnosis labels.
\item The seamless integration of four distinct modules NLRM, PMRM, QMIA, and KVMIA are demonstrated to effectively suppress the impact of unobservable confounding factors. The NLRM and KVMIA are the core components of the causal inference model following the strategy of FDA, while the PMRM and QMIA modules further enhance the causal inference process.
\item Comprehensive experimental assessments demonstrate that CausalMixNet achieves accurate disease diagnosis not only within the domain it was trained on but also maintains stability and effectiveness when applied to out-of-domain data, gender bias analysis, and in noisy testing conditions.
\end{itemize}
\section{Related Works}
In this section, we systematically outline the applications of supervised deep learning in medical image diagnosis. Subsequently, we conduct a concise discussion of existing methods for image debiasing. Lastly, we provide a comprehensive summary of causal inference methods employed in the realm of medical imaging.
\subsection{Supervised Medical Image Diagnosis}
Supervised medical image diagnosis has garnered significant attention in recent years, with numerous studies contributing to its advancement. Researchers have delved into leveraging annotated medical image datasets to train and fine-tune various deep learning architectures, empowering them to recognize patterns and features indicative of specific disease labels. Tajbakhsh et al. \cite{tajbakhsh2016convolutional} explored the effectiveness of fine-tuning pre-trained deep convolutional neural networks for various medical image analysis.
Previous work has also attempted to explore the adaptability of different deep model structures to medical images. Gao et al. \cite{gao2020time} investigated the recurrent neural network to model the temporal information for the classification task.
Wang et al. \cite{wang2022follow} introduced an attention mechanism guided by the radiologists’ gaze tracks.
STCAL \cite{liu2023spatial} introduces a spatial-temporal co-attention learning graph neural network for computer-aided diagnosis of mental disorders.
SPT \cite{he2022fully} captures long-range contextual information through the spatial pyramid transformer for medical image diagnosis.
While these exemplary approaches have indeed yielded substantial advantages in the realm of medical image diagnosis, their efficacy in mitigating bias within medical images remains less than ideal. Bias in medical data increases the risk of model overfitting and undermines the accuracy of various deep learning architectures. Therefore, medical image debiasing has gained ongoing attention in recent years.
\subsection{Image Debiasing}
Image bias generally refers to the systematical difference of a statistical estimation from its population value, steaming from subject selection, acquisition method, processing biases, etc \cite{wachinger2019quantifying}.
Overfitting to data bias in deep neural networks can lead to decreased performance and reduced generalization ability \cite{ktena2024generative}. In the early stages, many methods address biases in multi-source domain generalization. For instance, the IRM \cite{arjovsky2019invariant} aims to develop a model that is unaffected by specific domains by maximizing the consistency of predictions across all source domains, thereby improving its generalization ability in new domains. Makar et al. \cite{makar2022causally} enhanced model performance in multi-source domain generalization by incorporating auxiliary labels and conditional independence. However, the reliance on multi-source data in these methods limits their applicability in single-source scenarios. To address the bias issues in single-source domain generalization, a set of methods leverages techniques such as adversarial training \cite{gokhale2023improving} and contrastive learning \cite{duboudin2021encouraging} to learn invariant features. Additionally, Meta-Causal \cite{chen2023meta} and FAGT \cite{nguyen2023causal} also aim to mitigate the effects of data bias through causal inference techniques. However, these methods often overlook the influence of confounding factors in medical imaging, which can result in a failure to accurately capture causal relationships.
\subsection{Causality for Medical Imaging}
Causality \cite{pearl2018book} in medical imaging represents a novel paradigm aimed at unraveling the intricate relationships between imaging features and underlying physiological phenomena. Based on the nature of confounding factors, current methods can be categorized into two types: methods addressing observable confounders and methods targeting unobservable confounders.
% Observable confounding factors typically refer to variables in medical imaging that can be measured, such as the type of imaging equipment, artifacts, and anatomical structures.
To tackle the side-effect of observable confounding factors, backdoor adjustment \cite{QU2024103154} and counterfactual reasoning \cite{SINGLA2023102721} have gained significant attention in recent years. C-cam\cite{chen2022c}, CauSSL \cite{miao2023caussl}, and Qu et al. \cite{QU2024103154} advocate for adopting backdoor-adjustment strategies to effectively decouple the misleading associations between organ features and background information. TraCE \cite{thiagarajan2022training} employs an interval calibration strategy based on uncertainty to effectively generate counterfactuals, ensuring desired alterations in model predictions.
% Singla et al. \cite{singla2023explaining} employed a conditional generative adversarial network to create counterfactual samples, introducing perturbations to an image while preserving both anatomical shapes and extraneous objects from the input image.
% Unobservable confounding factors, on the other hand, refer to variables that cannot be directly measured or observed from the images, such as the patient's age, sex, genetic background, psychological state, or the experience level of the physician. These unobservable factors can potentially impact the analysis results of medical images, leading to biases or misdiagnoses.
On the other hand, a set of methods specifically targets the unobservable confounding factors by leveraging auxiliary labels from biased sources. For example, Bissoto et al. \cite{bissoto2020debiasing} proposed debiasing skin disease recognition by additionally identifying and classifying artifacts in the images. FCRO \cite{deng2023fairness} achieves debiasing by decoupling the bias features (e.g. race and gender) and image features through orthogonalization constraints. However, the reliance of bias labels limits their applicability in scenarios with unknown or unlabeled bias sources. To address this limitation, some attempts have been made to identify and mitigate bias without relying on explicit bias labels.
PBBL \cite{luo2022pseudo} assumes that easily learned features are biased features and uses this assumption to perform bias pseudo-labeling, thereby debiasing for the model. In contrast to these methods, this work adopts a causal inference approach by utilizing front-door adjustment, which introduces a mediator between the input and output. This mediator enables our method to perform causal interventions, effectively circumventing the need to directly address unobservable confounding factors.
\begin{figure*}[]
\centering
\includegraphics[width=12cm]{images/FDA.pdf}
\caption{(a) The structural causal model for medical image diagnosis: X is the input image, E denotes the mediator, Y is the predicted label, and S represents unobserved confounders. The front-door path is X→E→Y, and the backdoor path is X←S→Y. (b) The structural causal model of X→E. (c) The structual causal model of E→Y, where the backdoor path is E←X←S→Y.}
\label{fda}
\end{figure*}
\section{Preliminaries of Front-Door Adjustment}
Front-door adjustment involves the identification and incorporation of an intermediate variable positioned on the causal pathway between a treatment and an outcome. The objective is to isolate the direct effect of the treatment by adjusting for the mediator variable.
In this section, we introduce the fundamentals of front-door adjustment to learn the true causal effect from input images to predicted labels, as shown in Fig. \ref{fda}. (a). Here, X refers to input images of a deep learning model encompassing both the lesion feature and additional irrelevant features introduced by unoberseved confounders. Term S represents the unobserved confounders (age, gender, genetic background, etc.), and term Y corresponds to the ground-truth label of X. Deconfounding S necessitates causal intervention on X (a.k.a. do(X)) by calculating the average causal effects across various confounders. However, the unobserved confounds are not directly estimable, the implementation of causal intervention on X is impractical. To tackle this dilamma, we introduce the mediator E between X and Y, facilitating the knowledge transfer from X to Y. The causal effect of P(Y∣do(X) can be transferred to ∑P(Y∣do(E))P(E∣do(X)) by considering the joint effect of the causal relationships X→E and E→Y.
The causal relationship of X→E is shown in Fig. \ref{fda}. (b). There is only one causal path between X and E, as the path X←S→Y←E is blocked by the collider S→Y←E. Therefore, the causal effect P(E∣do(X) can be directly expressed as P(E∣X).
The causal relationship of E→Y is shown in Fig. \ref{fda}. (c). It can be observed that there are two paths connecting E and Y: the front-door path E→Y and the backdoor path E←X←S→Y. To block the backdoor path, we should perform causal intervention on E by calculating the average causal effects across different X stratums or S stratums. Due to the unmeasurable nature of S, we can express P(Y∣do(E) as follows:
\begin{equation}
P(Y|do(E))=\sum_{x}P(Y|E=e,x)P(x),
\label{eqfd1}
\end{equation}
where x denotes one stratum of variable X.
Through a step-by-step causal reasoning approach \cite{pearl2018book}, the causality from X to Y unfolds as follows:
\begin{equation}
\label{frontdooreq}
\begin{split}
P(Y|do(X))&=\sum_{e}P(Y|do(E))P(E=e|do(X))\
&=\sum_{e}P(E=e|x)\sum_{x'}P(Y|E=e,x')P(x'),
\end{split}
\end{equation}
where x′ is an index of summation at P(Y∣do(E)).
\section{Method}
The proposed framework illustrated in Fig. \ref{fig3} encompasses crucial components: NLRM, PMRM, QMIA, and KVMIA. Acting as the foundational model, the NLRM plays a pivotal role in extracting mediators as P(E∣do(X)) in Eq. (\ref{eqfd1}) and conducting predictions for medical images. Mediators refer to invariant features in images, such as texture characteristics, that can effectively reflect lesions. The NLRM employs a self-attention-based convolutional neural network to extract these features from images. PMRM is a mechanism that ranks the importance of image sub-blocks by assessing the distance between the sub-blocks and global features. It aids in the identification of lesion and non-lesion areas within the image for QMIA.
QMIA specifically enhances the learning process of mediators to focus on lesion-related features. It employs an intra-class sample exchange mechanism for lesion sub-blocks, enabling the NLRM to be more robust against various lesion features.
Concurrently, KVMIA facilitates causal intervention on the mediator, which corresponds to the process of P(Y∣do(E)) as Eq. (\ref{frontdooreq}). KVMIA implements causal intervention on mediators through an exchange mechanism of non-lesion sub-blocks between samples.
The whole process is designed to implement the front-door adjustment, effectively diminishing the effects of unobserved confounders, thus improving generalization ability.
\begin{figure*}[]
\centering
\includegraphics[width=13cm]{images/structure.pdf}
\caption{The framework of CausalMixNet, which consists of NLRM, PMRM, QMIA, and KVMIA. NLRM is utilized to generate mediator E by capturing global dependencies within the image. PMRM dissects the image into multiple sub-patches and systematically evaluates the significance of each sub-patch through masking, scoring, and sorting. QMIA marked with red lines can enhance the learnining of the mediator. KVMIA marked with green lines is developed to perform causal interventions on the mediator. Collectively, these processes constitute the implementation of front-door adjustment for deconfounding.}
\label{fig3}
\end{figure*}
\subsection{Non-Local Reasoning Module}
NLRM serves as the mediator extractor by abstracting disease features in images into highly correlated semantic features that are less effected by background information.
Non-local reasoning module aims to capture long-range dependencies and relationships across the input space to fundamentally enhance CNN attention computation, as non-local reasoning in neural networks.
Given an input image x, the mediator of feature map E is computed using a convolutional neural network. Specifically, we utilize the first three layers of ResNet18 \cite{he2016deep} for this purpose, as expressed in the following equation:
\begin{equation}
\mathbf{E}=ResNet^{1:3}(x) \in \mathbb{R}^{D \times H \times W},
\label{wqm1}
\end{equation}
where D, H, and W are the number of channels, height and width of E, respectively. The mediator extractor encompasses low-level contextual features, such as colors and edges, that are essential for discerning subtle visual distinctions in lesions. To effectively capture pertinent information from surrounding pixels, this module employs an self-attention mechanism based on query (Q), key (K), and value (V). Query is a representation or feature extracted from a specific location on the feature map, probing other positions. Key encode descriptors of the feature map, guiding the queries to find related content. Values represent the substantive information linked to the keys, which are harnessed to refine the feature map. When a query aligns with a key, the corresponding value will be aggregated to calculate the final output.
The calculations of Q, K, and V for the input tensor E are expressed as follows:
\begin{equation}
\begin{split}
\mathbf{Q}=\theta (\mathbf{E}) = \mathbf{E}\mathbf{W}{\theta} \in \mathbb{R}^{\frac{D}{d} \times HW},\
\mathbf{K}=\phi (\mathbf{E}) = \mathbf{E}\mathbf{W}{\phi} \in \mathbb{R}^{\frac{D}{d} \times HW},\
\mathbf{V}=g (\mathbf{E}) = \mathbf{E}\mathbf{W}_{g} \in \mathbb{R}^{D \times HW},
\end{split}
\label{eqm2}
\end{equation}
where θ(⋅), ϕ(⋅), and g(⋅) represent the learnable transformation functions with parameters Wθ, Wϕ, and Wg, respectively. The parameter d serves as a shrinkage parameter designed to reduce computational costs. The affinity between all positions is calculated by the pairwise function f(⋅,⋅) as:
\begin{equation}
f(\mathbf{Q},\mathbf{K})=softmax({\mathbf{Q}}^T\mathbf{K}).
\label{eqm3}
\end{equation}
Subsequently, the output E^, which integrates surrounding information, is expressed through the aggregation and residual structure as given by Eq. (\ref{eqm4}):
\begin{equation}
\hat{\mathbf{E}} = \mathbf{E} + f(\mathbf{Q}, \mathbf{K})\mathbf{V}.
\label{eqm4}
\end{equation}
Next, E^ is further fed into the subsequent layer of ResNet18 to obtain the one-dimensional feature vector u∈RD4, where D4 represents the dimension of u. The prediction y^ for x is then computed by applying a classifier to u. To optimize the model, we minimize the negative log-likelihood of the cross-entropy loss as follows:
\begin{equation}
\mathcal{L}_o=-argmin \sum \mathbf{y} log \hat{\mathbf{y}},
\label{eqm5}
\end{equation}
where y is the ground-truth label of x.
\begin{figure}[]
\centering
\includegraphics[width=9cm]{images/PMRM.pdf}
\caption{The PMRM process divides an image into M×M sub-patches and assesses the importance of each sub-patch by contrasting the distance between the patch-masked sample and the original sample. The red sub-patches represent lesion areas, while the green sub-patches signify non-lesion regions.}
\label{pmrm}
\end{figure}
\subsection{Patch Masked Ranking Module}
PMRM is designed to capture pivotal cues within the image associated with corresponding labels, as shown in Fig. \ref{pmrm}. This module dissects the image into multiple sub-patches and systematically evaluates the significance of each sub-patch through a crafted process involving masking, scoring, and sorting. Given the feature matrix E, it is divided into M×M (abbreviated as MM) sub-patches, where the \textit{i}-th sub-patch is denoted as Mi∈RD×MH×MW. To gauge the significance of each sub-patch, MM patch-masked samples are generated by applying masks to the sub-patches within the completed feature matrix. The \textit{i}-th patch-masked sample is expressed as EMi:
\begin{equation}
\mathbf{E}^{\overline{\mathbf{M}}^i}={\mathbf{E}|\mathbf{M}^i=0}.
\end{equation}
The resultant EMi is then fed into the last convolutional layer to derive the corresponding feature vector uMi. Subsequently, a ranking process is adopted to appraise the importance of sub-patches, determined by calculating the Euclidean distance between {uM1,⋯,u and the feature vector of the complete image u. Notably, when the distance between uMi and u is larger, the \textit{i}-th sub-patch is considered more important, as the masked area loses more crucial information. Through this process, the ki-th sub-patch Rki is sorted as follows:
\begin{equation}
\mathbf{R}^{k_i}={\mathbf{M}^{k_i}|Dis^{k_1} \leq \cdots \leq Dis^{k_i} \leq \cdots \leq Dis^{k_{MM}}},
\end{equation}
where ki∈{1,⋯,MM} denotes the ranking index of a sub-patch, and Diski represents the Euclidean distance between u and uMki.
\subsection{Query-Mixed Intra-Attention}
QMIA is designed to facilitate the learning of mediators, focusing on capturing lesion features effectively. Inspired by the attention mechanism within the global contextual network, the query feature plays a crucial role in identifying disease-related features. Therefore, the effective integration of lesion information through the query feature is paramount. To address this issue, this module augments the diversity of the query feature by randomly mixing lesion patches of samples within the same class. The lesion patches are selected based on their ranking in PMRM. The diversified query features enable the retrieval of lesion information from multiple perspectives, thereby improving the learning of the mediator for ResNet18.
\begin{figure}[]
\centering
\includegraphics[width=12cm]{images/QM-KVM.pdf}
\caption{(a) Showcase of the QMIA process. QMIA enhances the learning of mediator by enhancing the diversity of the query feature. Lesion patches are randomly mixed between samples of the same category. (b) Showcase of the KVMIA process. Causal intervention is conducted on the mediator through randomized mixing of non-lesion patches across samples, altering key and value features dynamically.}
\label{qmkvm}
\end{figure}
The process of QMIA is illustrated in Fig. \ref{qmkvm}. (a). Firstly, we randomly select a sample xintra from the same category as sample x within a mini-batch, and the ranked sub-patches of xintra are denoted as {Rintra1,⋯,Rintr. Next, a mixed intra-sample \Tildexintra is generated by randomly exchanging a lesion patch of x with a lesion patch of xintra. This process can be formulated as:
\begin{equation}
\Tilde{\mathbf{E}}{intra}={\mathbf{E}|\mathbf{R}^{k_1} \leftrightarrows \mathbf{R}{intra}^{k_2}},
\end{equation}
where k1∈{1,⋯,K}, k2∈{1,⋯,K}, and K represents the range of the selected top-K patches. With the obtained mixed intra-sample, the mixed intra-query is generated as:
\begin{equation}
\Tilde{\mathbf{Q}}{intra}=\theta (\Tilde{\mathbf{E}}{intra}) = \Tilde{\mathbf{E}}{intra}\mathbf{W}{\theta} \in \mathbb{R}^{\frac{D}{d} \times HW}.
\end{equation}
Subsequently, we utilize the mixed intra-query \TildeQintra, original key K, and original value V to summarize disease-related features in an augmented manner by:
\begin{equation}
\hat{\mathbf{E}}{intra}=\mathbf{E}+f(\Tilde{\mathbf{Q}}{intra},\mathbf{K})\mathbf{V}.
\end{equation}
Finally, we minimize the negative cross-entropy loss to optimize the predicted result y^intra of mixed intra-sample by:
\begin{equation}
\mathcal{L}{inra}=- argmin \sum \mathbf{y} log \hat{\mathbf{y}}{intra}.
\end{equation}
\subsection{Key&Value-Mixed Inter-Attention}
KVMIA is a key module for causal intervention of P(Y∣do(E)), thereby diminishing the impact of unobserved confounders. In light of Eq. (\ref{eqfd1}), P(Y∣do(E)) can be expressed as ∑P(Y∣E,x)P(x). This formulation facilitates the coexistence of the mediator E with confounding factors across different stratums, ensuring equal probability of coexistence and computing the average causal effect. Therefore, two essential elements underline causal intervention on the mediator: (1) fostering the coexistence of the mediator and confounding factors from different stratums, and (2) maintaining an equal probability of coexistence. To achieve these goals, KVMIA constructs the mixed key&value features for sample x by randomly exchanging non-lesion patches with another randomly selected sample. Swapping non-lesion patches actively facilitates the coexistence of the mediator with confounding factors of different stratums, while random operations ensure an equal probability of coexistence, facilitating causal intervention on the mediator.
As illustrated in Fig. \ref{qmkvm}. (b), firstly, a data xinter is randomly selected within a mini-batch, and its ranked sub-patches are denoted as {Rinter1,⋯,RinterMM}. Next, the mixed inter-sample \Tildexinter is generated by randomly exchanging a non-lesion patch of x with a non-lesion patch of xinter. Similarly, this process can be formulated as:
\begin{equation}
\Tilde{\mathbf{E}}{inter}={\mathbf{E}|\mathbf{R}^{k_1} \leftrightarrows \mathbf{R}{inter}^{k_2}},
\end{equation}
where k1∈{MM−K,⋯,MM} and k2∈{MM−K,⋯,MM}. With the obtained mixed inter-sample, the mixed inter-key and inter-value are generated as:
\begin{equation}
\begin{split}
\Tilde{\mathbf{K}}{inter}=\phi (\Tilde{\mathbf{E}}{inter}) = \Tilde{\mathbf{E}}{inter}\mathbf{W}{\phi} \in \mathbb{R}^{\frac{D}{d} \times HW},\
\Tilde{\mathbf{V}}{inter}=g (\Tilde{\mathbf{E}}{inter}) = \Tilde{\mathbf{E}}{inter}\mathbf{W}{g} \in \mathbb{R}^{D \times HW}.
\end{split}
\end{equation}
Then, we can utilize the original Q, mixed inter-key \TildeKinter, and mixed inter-value \TildeVinter to perform causal intervention by:
\begin{equation}
\hat{\mathbf{E}}{inter}=\mathbf{E}+f(\mathbf{Q},\Tilde{\mathbf{K}}{inter})\Tilde{\mathbf{V}}{inter}.
\end{equation}
QMIA and KVMIA employ different mixing mechanisms due to their distinct objectives: QMIA is designed to enhance the model's comprehension of lesion features in the mediator, necessitating modification solely in the query feature. A targeted adjustment in the query allows for streamlining the learning process. On the other hand, KVMIA operates with the objective of introducing various new confounding factors to intervene in the mediator. This intervention requires to detect the nuanced alternations in both the key and value features.
Finally, akin to QMIA, the negative cross-entropy loss is adopted to optimize the predicted result y^inter of mixed inter-sample as follows:
\begin{equation}
\mathcal{L}{inter}=- argmin \sum \mathbf{y} log \hat{\mathbf{y}}_{inter}.
\end{equation}
\subsection{Overall Objective Function}
Combining the contributions of NLRM, PMRM, QMIA, and KVMIA, we construct the overall objective function for the proposed framework as:
\begin{equation}
\label{overallloss}
\mathcal{L}=\mathcal{L}o+\alpha \mathcal{L}{intra}+\beta \mathcal{L}_{inter},
\end{equation}
where α and β represent the hyper-parameters, finely tuned to harmonize the interplay among the three fundamental components.
% The training process of CausalMixNet is summarized in Algorithm \ref{AL}.
\section{Experiment}
In this section, we conduct comprehensive experiments to assess the performance of CausalMixNet. Initially, we introduce the datasets used, evaluation protocols, compared methods, and implementation details. Subsequently, we disclose the quantitative results for both in-domain and out-of-domain (OOD) experiments spanning four established medical datasets. Further experimental analysis are conducted to evaluate the capabilities of the proposed methods, encompassing ablation studies, gender bias analysis, parameter sensitivity examination, robustness checks against noise using the CUB-200-2011 dataset \cite{wah2011caltech}, and the effectiveness assessment of PMRM. Finally, we present a qualitative analysis to elucidate the interpretability of the methods used in comparison.
\subsection{Datasets and Evaluation Protocols}
Our assessment of the proposed method spans six extensively recognized datasets: BRACS \cite{brancati2022bracs}, DDR \cite{li2019diagnostic}, APTOS \footnote{https://www.kaggle.com/competitions/aptos2019-blindness-detection}, FGADR \cite{zhou2020benchmark}, NIH dataset \cite{wang2017chestx}, and CUB-200-2011 \cite{wah2011caltech}. The images in BRACS are captured through microscopy, while DDR, APTOS, and FGADR images are obtained via optical imaging. The NIH dataset includes pulmonary images extracted using X-ray technology, while CUB-200-2011 features RGB images of birds from the natural world.
In-domain evaluations utilize the BRACS and DDR datasets, while out-of-domain testing utilizes the APTOS and FGADR datasets.
The NIH dataset is utilized for gender bias analysis and the CUB-200-2011 dataset serves to test the noise resilience of our proposed algorithm.
The application of these various modalities of data can thoroughly validate the adaptability of our method.
The BRACS dataset is pertinent to breast carcinoma subtyping in hematoxylin and eosin (H&E) histopathology images, comprising 4,539 regions of interest (ROIs) extracted from whole slide images (WSIs). This dataset includes three primary lesion types: benign, malignant, and atypical, which are further categorized into seven subtypes. The benign category consists of normal (484 ROIs), pathological benign (836 ROIs), and usual ductal hyperplasia (517 ROIs). The malignant category compasses ductal carcinoma in situ (790 ROIs) and invasive carcinoma (649 ROIs). The atypical category contains flat epithelial atypia (756 ROIs) and atypical ductal hyperplasia (ADH, 507 ROIs). For diagnostic, benign and malignant ROI images from BRACS are utilized following the official partition, with 2,646/222/408 ROIs allocated for training, validation, and testing, respectively.
The DDR dataset, which specifically targets diabetic retinopathy, contains 12,522 fundus images distributed among five classes. These classes contain 6,266, 630, 4,477, 236, and 913 samples, respectively. Following \cite{che2023towards}, we randomly partition this dataset into training and test sets with an 8:2 ratio.
For out-of-domain testing, the optimal source model is trained using the DDR training subset and vetted against the DDR test subset.
% APTOSS dataset is collected by Aravind Eye Hospital in India and used for APTOS 2019 Blindness Detection Competition through 4th Asia Pacific Tele-Ophthalmology Society (APTOS) Symposium. We use 3,657 public images with official DR labels for testing the model's generalization performance.
% The FGADR dataset, a large-scale fine-grained annotated diabetic retinopathy dataset collected by the Inception Institute of Artificial Intelligence (IIAI), consists of two subsets: Seg-set and Grade-set. We utilize 1842 images with image-level DR labels.
The APTOSS dataset, curated by Aravind Eye Hospital for the APTOS 2019 Blindness Detection Competition, includes 3,657 publicly available images with official diabetic retinopathy (DR) grading. The dataset is distributed across five classes with the following sample counts: 1,801, 370, 998, 193, and 295. All samples are employed to assess the out-of-domain generalization capabilities.
The FGADR dataset, curated by the Inception Institute of Artificial Intelligence (IIAI), offers a comprehensive set of fine-grained annotations for DR. It comprises two distinct subsets: Seg-set and Grade-set. Our analysis incorporates 1,841 images with image-level DR labels from this dataset. The sample distribution across the classes is 101, 212, 594, 647, and 287, respectively. All samples are used to assess the generalization ability in out-of-domain scenarios.
To analysis the ability to address gender bias, following \cite{luo2022pseudo}, we select data from the NIH dataset involving patients with no findings and pneumothorax, constructing three experimental setups with varying gender biases. The sample selection for the first two setups strictly follows this work \cite{luo2022pseudo}. Specifically: 1) GbP-Tr1 includes 800 male pneumothorax samples, 100 male no finding samples, 800 female no finding samples, and 100 female pneumothorax samples; 2) GbP-Tr2 consists of 800 female pneumothorax samples, 100 female no finding samples, 800 male no finding samples, and 100 male pneumothorax samples. Additionally, we establish a gender-balanced experimental setup (GbP-B) as a control, comprising 450 female pneumothorax samples, 450 female no finding samples, 450 male no finding samples, and 450 male pneumothorax samples. For the validation and testing sets, we evenly collect 150 and 250 samples from each group (with or without pneumothorax; male or female) according to the settings in \cite{luo2022pseudo}.
To test the noise resilience, the CUB-200-2011 dataset provides 11,788 images of 200 bird species, presenting an ideal challenge due to the species' shared global features but different attributes. To simulate noise, we use images from the first 100 classes as base categories, adding images from the remaining 100 species as noise \cite{dubey2018maximum}. The resulting noisy training set and the pristine test set, taken from base categories, are divided in an 80:20 ratio.
% And the test dataset are totally clear images from base categories. The training set and test set are divided in an 8:2 ratio.
Our evaluation protocol adopts the widely-used medical diagnostic metrics: accuracy (Acc), precision (Precision), recall (Recall), F1-score (F1), and the mean area under the ROC curve (AUC), to quantitatively evaluate the proposed methods across various datasets.
\subsection{Compared Methods and Implementation Details}
\textbf{Compared Methods.} In order to comprehensively evaluate our proposed method, we benchmark against nine state-of-the-art comparative methods. These methods, known for their efficiency in various disease diagnostics and causal inference methods, include GDRNet \cite{che2023towards}, GREEN \cite{liu2020green}, CABNet \cite{he2020cabnet}, MixupNet \cite{zhang2018mixup}, MixStyleNet \cite{zhou2020domain}, Fishr \cite{rame2022fishr}, PBBL \cite{luo2022pseudo}, Meta-Causal \cite{chen2023meta}, and FAGT \cite{nguyen2023causal}. These methods are designed to extract domain-invariant features through supervised learning \cite{liu2020green,he2020cabnet}, domain generalization techniques \cite{che2023towards,zhang2018mixup,zhou2020domain,rame2022fishr}, data augmentation strategies \cite{che2023towards,zhang2018mixup,zhou2020domain}, or causal inference strategies \cite{chen2023meta,nguyen2023causal}. Comparisons with these methods enable a reliable validation of our proposed method's performance in both in-domain, out-of-domain scenarios and bias analysis.
\textbf{Implementation Details.}
In our experimental setup, ResNet18 serves as the backbone model for in-domain, out-of-domain, and noise testing, while DenseNet121 \cite{huang2017densely} is used as the backbone model for gender bias analysis, following the work in \cite{luo2022pseudo}.
All experiments are executed on an RTX 3090 GPU. Images are resized to a universal dimension of 256x256 pixels. We employ the stochastic gradient descent (SGD) optimizer with a momentum of 0.9 and a weight decay of 0.05 to refine our model. For the experiments involving the BRACS dataset, we set the learning rate to 10e-4, the batch size to 16, and limit the training to 30 epochs. The hyper-parameters α and β are specifically tuned to 5.0 and 3.0, respectively. For the DDR dataset, the learning rate is fixed at 10e-4, with a larger batch size of 64, and the training duration also capped at 30 epochs. The α and β are adjusted to 5.0 and 1.0, respectively. For the experiments on the NIH dataset, the learning rate is set to 10−4 , the batch size to 128, and both α and β are set to 5.0. In tests with the CUB-200-2011 dataset, we use a learning rate of 10e-3, a batch size of 128, and a shorter training span of 20 epochs, setting both α and β to 5.0. The K for the top-K sub-patches and M are set as 3 and 4, respectively, across all datasets. We use the validation set to implement an early stopping training strategy. All experimental results are based on the average of five trials conducted with different random seeds.
\textbf{In-Domain Results.} Table \ref{table2} and Table \ref{table1} provide results from in-domain testing on the DDR and BRACS datasets, respectively.
% Notably, in binary classification task, the average performance of CausalMixNet across four evaluation metrics surpass that of the second-best method by roughly 3.5%.
Table \ref{table2} indicates that CausalMixNet achieves commendable results on the DDR dataset. In the F1-score metric, for instance, CausalMixNet outshines the runner-up method by an impressive 5%. These findings suggest that CausalMixNet is proficient at discerning both positive and negative instances, showcasing robust overall capabilities.
Similarly, our method CausalMixNet is assessed on the BRACS dataset through a multi-class classification task across five categories, as well as a binary classification task targeting benign versus malignant differentiation. Table \ref{table1} reveals that CausalMixNet outperforms competing approaches in both multi-class and binary classification tasks.
The thorough in-domain experiments validate that CausalMixNet adeptly captures causal relationships and effectively mitigates the influence of confounding factors.
\textbf{Out-of-Domain Results.} We test the generalization performance of the compared methods using the APTOS and FGADR datasets. Strong generalization suggests that a model has likely learned the true causal factors of diseases, as opposed to simply memorizing dataset-specific noise. As shown in Table \ref{table2}, CausalMixNet stands out as the leader in generalization across both datasets, boasting an average improvement of 3% over the closest rival.
Although CausalMixNet exhibits a 4% dip in accuracy compared to MixupNet on the APTOS dataset, it surpasses MixupNet by 3% in F1-score, highlighting its adeptness at identifying positive cases.
On the FGADR dataset, CausalMixNet achieves an 6% and 6% increase in accuracy and F1-score, respectively, over the second-best method. Specifically, our proposed approach, which utilizes a sub-patch mixing strategy for causal intervention, demonstrates superior generalization compared to the MixUp technique used in MixupNet and MixStyleNet. This superiority can be contributed to our method's emphasis on exploring authentic causal relationships, rather than depending primarily on data augmentation for model generalization. Furthermore, the integration of PMRM steers an importance-weighted mixing scheme that enables the model to learn more precise disease markers and execute effective causal interventions.
\subsection{Exploration Experiments}
\begin{table*}[]\small\centering
\caption{The ablation study of in-domain and out-of-domain tests in DDR, APTOS, and FGADR datasets.}
% \begin{tabular}{c|ccc|c| |ccc|ccc|c}
\begin{tabular}{p{1.7cm}<{\centering}|p{0.8cm}<{\centering}p{0.8cm}<{\centering}p{0.8cm}<{\centering}|p{0.8cm}<{\centering}p{0.8cm}<{\centering}p{0.8cm}<{\centering}|p{0.8cm}<{\centering}p{0.8cm}<{\centering}p{0.8cm}<{\centering}|p{0.8cm}<{\centering}}
\hline
\multirow{2}{}{Method} & \multicolumn{3}{c|}{In-domain (DDR)} & \multicolumn{3}{c|}{OOD (APTOS)} & \multicolumn{3}{c|}{OOD (FGADR)}
& \multirow{2}{}{AVG} \
% \cline{2-4} \cline{6-11}
\cline{2-10}
& Acc & AUC& F1 & Acc & AUC & F1 & Acc & AUC & F1 & \\hline
\textbf{Ablation Study.} To evaluate the efficacy of the key modules in our methodology, QMIA and KVMIA, we conducte ablation studies in both in-domain and out-of-domain scenarios using the DDR, BRACS, APTOS, and FAGDR datasets. Tables \ref{ablation2} and \ref{ablation1} exhibit a performance increase ranging from 1% to 3% over the baseline in in-domain experiments on the DDR and BRACS datasets. Specifically, KVMIA demonstrates a marked impact on the BRACS dataset, while both QMIA and KVMIA are comparable on the DDR dataset.
Out-of-domain ablation results, as shown in Table \ref{ablation2}, underscore the benefits of QMIA for both APTOS and FAGDR datasets.
The synergy between QMIA and KVMIA, where the latter builds on the findings of the former, facilitates enhanced model generalization, underscoring the complementary nature between these two modules.
\begin{table}[]\centering
\caption{The experimental results of gender bias on NIH datasets.}
\begin{tabular}{p{2.5cm}<{\centering}|p{1.8cm}<{\centering}p{1.8cm}<{\centering}p{1.8cm}<{\centering}}
\hline
Method & GbP-Tr1 & GbP-Tr2 & GbP-B \\hline
GREEN &82.61±0.57 &78.58±1.85 &84.20±0.21 \
CABNet &82.52±0.20 &80.23±1.02 &83.96±0.21 \
\textbf{Gender-Biased Analysis.} As shown in Table \ref{genderbias}, we evaluate multiple algorithms across three different gender bias scenarios: GbP-Tr1, GbP-Tr2, and GbP-B.
Among the methods assessed, CausalMixNet demonstrates the highest performance across all conditions, with scores of 82.92% for GbP-Tr1, 80.99% for GbP-Tr2, and 84.73% for GbP-B, indicating its robustness in handling gender bias.
When comparing CausalMixNet to the baseline model, it can be seen that CausalMixNet consistently outperforms the baseline across the evaluated metrics, especially in GbP-Tr2 and GbP-B. This improvement suggests that CausalMixNet's approach to addressing gender bias provides a distinct advantage over the more conventional methods represented by the baseline.
\textbf{Parameter Analysis.} We conducte an analysis of the hyperparameters α and β on the DDR dataset. As shown in Table \ref{table3}, when varying these two parameters from 0.5 to 5.0, their impact on the overall performance is moderate. Optimal results on the DDR dataset are achieved with α=5.0 and β=3.0. A similar method was applied to determine the optimal hyperparameters for other datasets. On the BRACS dataset, the best performance is obtained with α=5.0 and β=1.0. For the NIH and CUB-200-2011 dataset, the optimal settings are α=5.0 and β=5.0.
\textbf{Noise Testing.} To evaluate the model's resilience against unobservable confounding factors, we introduce simulated noise into the CUB-200-2011 dataset.
According to the noise settings in the reference \cite{dubey2018maximum}, the model is trained on a dataset consisting of (1-a%) samples from the base classes and a% samples from other classes, with the latter serving as noise.
For evaluation, a noise-free test set containing only base class images is used.
In this setting, we varied the noise ratio from 0% to 60%. Fig. \ref{cub} displays how the baseline performance deteriorates with increasing noise levels, showing a drop of up to 20% in accuracy and F1-score. However, incorporating QMIA and KVMIA modules stabilizes performance, exhibiting a steady trend despite escalating noise. These experiments highlight the distinct advantage of CausalMixNet in mitigating the impact of unobservable confounding factors.
\textbf{Effectiveness of PMRM.} To assess the significance of PMRM, we employ various intervention strategies on the mediator. These include: 1) a random approach, indiscriminately swapping sub-patches without considering their relevance; 2) intra-sample, leveraging Eintra within the same category to modify Q/K/V; and 3) inter-sample, leveraging Einter across different categories to modify Q/K/V. Table \ref{table4} presents the outcomes, revealing that the proposed PMRM attains superior performance. Conversely, disregarding the significance of sub-patches or simply exchanging full Q/K/V sets leads to a decline in results.
\begin{table*}[]\small\centering
\caption{The results in DDR dataset for evaluating the effectiveness of PMRM}
% \begin{tabular}{c|ccc|c||ccc|ccc|c}
\begin{tabular}{p{1.5cm}<{\centering}|p{0.8cm}<{\centering}p{0.8cm}<{\centering}p{0.8cm}<{\centering}|p{0.8cm}<{\centering}p{0.8cm}<{\centering}p{0.8cm}<{\centering}|p{0.8cm}<{\centering}p{0.8cm}<{\centering}p{0.8cm}<{\centering}|p{0.8cm}<{\centering}}
\hline
\multirow{2}{}{Method} & \multicolumn{3}{c|}{In-domain (DDR)} & \multicolumn{3}{c|}{OOD (APTOS)} & \multicolumn{3}{c|}{OOD (FGADR)}
& \multirow{2}{}{AVG} \
% \cline{2-4} \cline{6-11}
\cline{2-10}
& Acc & AUC& F1 & Acc & AUC & F1 & Acc & AUC & F1 & \\hline
Random &80.36 &\textbf{89.98} &58.30 &67.42 &75.08 &40.16 &\underline{49.09} &75.24 &36.28 &63.55 \
&±0.36 &±0.38 &±0.60 &±0.19 &±0.27 &±1.42 &±0.75 &±0.47 &±1.04 &±1.15 \ \hline
Intra- &\underline{80.50} &88.42 &60.41 &69.28 &77.10 &\underline{42.42} &48.96 &76.03 &36.42 &64.39 \
sample&±0.56 &±0.49 &±0.39 &±0.27 &±0.64 &±1.27 &±0.39 &±0.73 &±0.96 &±1.06 \ \hline
Inter- &80.19 &89.35 &\underline{61.99} &\underline{69.41} &\underline{78.05} &42.34 &48.33 &\underline{77.21} &\underline{37.17} &\underline{64.89} \
sample&±0.40 &±0.68 &±0.62 &±0.53 &±0.49 &±0.95 &±1.07 &±0.85 &±1.21 &±0.98 \ \hline
PMRM &\textbf{80.93} &\underline{89.87} &\textbf{62.41} &\textbf{69.53} &\textbf{78.17} &\textbf{44.62} &\textbf{49.63} &\textbf{77.24} &\textbf{37.46} &\textbf{65.54} \
&±0.65 &±0.69 &±1.12 &±3.33 &±1.97 &±0.97 &±1.00 &±2.52 &±1.31 &±1.85 \ \hline
\end{tabular}
\label{table4}
\end{table*}
\begin{table*}[htbp]\small\centering
\caption{FPS results for the all methods on the DDR dataset.}
\begin{tabular}{p{1.2cm}<{\centering}|p{1.5cm}<{\centering}|p{2.2cm}<{\centering}|p{1.5cm}<{\centering}|p{2.4cm}<{\centering}|p{1.9cm}<{\centering}}
\hline
Method &GDRNet & GREEN & CABNet & MixupNet &MixStyleNet \\hline
FPS &35.75&36.19&35.45&35.73&35.89 \ \hline
\textbf{Adaptability of Real-Time Data.} We assess the frames per second (FPS) on the DDR dataset, as shown in Table \ref{fps}. The FPS results indicate the adaptability of various methods for processing real-time data \cite{vcivzek2017real}.
CausalMixNet achieved an FPS of 34.39, which, while slightly lower than some of the competing methods, demonstrates a commendable level of performance suitable for real-time applications. The overall similarity in FPS among the different methods indicates that they are well-optimized for handling real-time data streams, with only slight variations in processing speed. The CausalMixNet's architecture is designed to enhance causal inference while maintaining efficiency, which can be particularly beneficial in dynamic environments where rapid adjustments and real-time decision-making are essential.
\begin{figure*}[]
\centering
\includegraphics[width=13cm]{images/cam.pdf}
\caption{The visualization analysis on the NIH dataset. Professional doctors have annotated the lesions
in the original images, which are delineated in red for clarity.}
\label{cam}
\end{figure*}
\subsection{Visualization Analysis}
We perform a visualization analysis of DenseNet121 using Grad-CAM \cite{selvaraju2017grad} on the NIH dataset. As shown in Fig. \ref{cam}, the lesions in the original images are outlined in red by a professional physician. The visualization results demonstrate that the CausalMixNet method is more accurate in lesion localization compared to other methods. In contrast, other approaches either fail to identify the lesions or focus on irrelevant areas, such as the shoulders. This highlights the effectiveness of CausalMixNet in addressing gender bias and improving diagnostic accuracy. By accurately localizing the lesions, CausalMixNet not only enhances the identification rate of pneumothorax cases but also provides more reliable support for clinical decision-making, further emphasizing the importance of selecting appropriate models to tackle gender bias.
\section{Conclusion}
This study presents CausalMixNet as a sophisticated deconfounding method for investigating causality within medical image diagnosis, effectively integrating NLRM, PMRM, QMIA, and KVMIA modules to mitigate the influence of unobservable confounding factors. NLRM is specifically crafted to extract the mediator in front-door adjustment, establishing a causal link from image features to diagnostic labels. PMRM is charged with the identification of lesion and non-lesion patches, refining the focus of the analysis. QMIA enhances the discernment of the mediator by diversifying the query feature and deepening the learning of lesion characteristics. KVMIA applies causal intervention to the mediator by integrating key and value features to compute average causal effects. Empirical evaluation across four datasets in both in-domain and out-of-domain testing scenarios demonstrate that CausalMixNet can be consistently effective, scalable, and reliable in improving image classification accuracy. Additionally, our analysis of gender bias illustrates CausalMixNet's effectiveness in reducing the influence of unobserved confounders.
Through comprehensive experimentation, we have validated the contribution of each individual component within CausalMixNet, the system's resilience in noisy conditions, and its exceptional interpretability. In future work, we aim to extend our framework to tackle both observable and unobservable confounders within multimodal contexts and larger-scale model settings.
\endinput
%%
%% End of file `elsarticle-template-num.tex'.
Review of "CausalMixNet: A Mixed-Attention Framework for Causal Intervention in Robust Medical Image Diagnosis"
Summary:
The paper introduces CausalMixNet, a novel framework designed to enhance the robustness and accuracy of medical image diagnosis by addressing both observable and unobservable confounding factors. Leveraging principles from causal inference, particularly front-door adjustment, the authors integrate four key modules—Non-Local Reasoning Module (NLRM), Patch-Masked Ranking Module (PMRM), Query-Mixed Intra-Attention (QMIA), and Key&Value-Mixed Inter-Attention (KVMIA)—to dissect and mitigate the influence of confounders, thereby uncovering true causal relationships between image features and diagnostic labels. Comprehensive experiments across multiple datasets demonstrate the superiority of CausalMixNet in both in-domain and out-of-domain scenarios, showcasing its robustness against noise and bias.
Strengths:
Innovative Integration of Causal Inference and Attention Mechanisms:
The fusion of causal inference techniques with advanced attention mechanisms is a noteworthy contribution. By employing front-door adjustment, the framework effectively isolates the direct causal effects, addressing both observable and unobservable confounders.
Comprehensive Module Design:
The delineation of four distinct modules—NLRM, PMRM, QMIA, and KVMIA—each serving a specific purpose in the causal intervention process, showcases a well-thought-out architecture. This modular approach not only enhances interpretability but also facilitates targeted improvements and potential future extensions.
Robust Experimental Validation:
The authors conduct extensive experiments across six datasets, encompassing varied medical imaging modalities and classification tasks. The consistent outperformance of CausalMixNet over existing methods in both in-domain and out-of-domain tests underscores its generalizability and robustness.
Addressing Unobservable Confounders:
While many contemporary approaches focus on observable biases, CausalMixNet's emphasis on mitigating unobservable noise marks a significant advancement, enhancing the reliability of diagnostic outcomes in real-world clinical settings.
Practical Considerations:
The inclusion of a frames-per-second (FPS) analysis demonstrates the framework's potential applicability in real-time diagnostic scenarios, balancing accuracy with computational efficiency.
Areas for Improvement:
Clarity in Methodological Explanation:
While the paper provides a detailed description of each module, some sections—particularly the interactions between QMIA and KVMIA—could benefit from more intuitive explanations or illustrative diagrams to enhance reader comprehension.
Ablation Studies and Module Interdependence:
Although ablation studies are presented, a deeper exploration into how each module contributes to overall performance, possibly through incremental addition of modules, would provide clearer insights into their individual and synergistic impacts.
Discussion on Limitations:
The paper would benefit from a dedicated discussion on the limitations of CausalMixNet. For instance, potential challenges in scaling to larger datasets, sensitivity to hyperparameter choices beyond those tested, or scenarios where the framework might underperform compared to specialized methods.
Broader Applicability:
While the focus is on medical image diagnosis, elucidating how CausalMixNet could be adapted or extended to other domains (e.g., natural image classification, autonomous driving) would highlight its versatility and broader impact.
Comparative Computational Overhead:
Although FPS metrics are presented, a more detailed comparison of computational resources (e.g., memory usage, training time) relative to baseline and competing methods would provide a holistic view of the framework's efficiency.
Conclusion:
CausalMixNet presents a significant advancement in the realm of medical image diagnosis by adeptly integrating causal inference principles with mixed-attention mechanisms to address both observable and unobservable confounders. The comprehensive experimental evaluations bolster the claims of enhanced accuracy, robustness, and generalizability. With minor enhancements in methodological clarity and a broader discussion on limitations and applicability, this work holds substantial promise for both academic research and practical clinical applications. It stands as a commendable contribution to the ongoing efforts to harness deep learning for reliable and interpretable medical diagnostics.
Recommendation:
I recommend acceptance of this paper for publication, given its innovative approach, robust experimental validation, and clear relevance to the field of medical image analysis. Addressing the aforementioned areas for improvement in subsequent revisions would further strengthen the manuscript.