[Paper Review] XAI-MeD: Explainable Knowledge Guided Neuro-Symbolic Framework for Domain Generalization and Rare Class Detection in Medical Imaging
XAI-MeD combines neural networks with symbolic clinical knowledge to improve domain generalization and rare-class detection in medical imaging, while providing interpretable explanations through an LLM. It uses a Hunt-inspired adaptive routing with Entropy Imbalance Gain and Rare-Class Gini to fuse symbolic and deep outputs.
Explainability domain generalization and rare class reliability are critical challenges in medical AI where deep models often fail under real world distribution shifts and exhibit bias against infrequent clinical conditions This paper introduces XAIMeD an explainable medical AI framework that integrates clinically accurate expert knowledge into deep learning through a unified neuro symbolic architecture XAIMeD is designed to improve robustness under distribution shift enhance rare class sensitivity and deliver transparent clinically aligned interpretations The framework encodes clinical expertise as logical connectives over atomic medical propositions transforming them into machine checkable class specific rules Their diagnostic utility is quantified through weighted feature satisfaction scores enabling a symbolic reasoning branch that complements neural predictions A confidence weighted fusion integrates symbolic and deep outputs while a Hunt inspired adaptive routing mechanism guided by Entropy Imbalance Gain EIG and Rare Class Gini mitigates class imbalance high intra class variability and uncertainty We evaluate XAIMeD across diverse modalities on four challenging tasks i Seizure Onset Zone SOZ localization from rs fMRI ii Diabetic Retinopathy grading across 6 multicenter datasets demonstrate substantial performance improvements including 6 percent gains in cross domain generalization and a 10 percent improved rare class F1 score far outperforming state of the art deep learning baselines Ablation studies confirm that the clinically grounded symbolic components act as effective regularizers ensuring robustness to distribution shifts XAIMeD thus provides a principled clinically faithful and interpretable approach to multimodal medical AI.
Motivation & Objective
- Motivate robust medical AI that remains reliable under distribution shifts and rare-class bias.
- Encode clinical expertise as logic-based rules to guide neural predictions.
- Develop a knowledge-guided expert selection mechanism to route inputs to specialized classifiers.
- Fuse symbolic and neural outputs and generate clinically interpretable explanations via an LLM.
Proposed method
- Two-branch architecture: a Deep Learning branch for feature extraction and an Expert Knowledge Processor that encodes clinical knowledge as logical rules over atomic propositions.
- EKSAII algorithm (Expert Knowledge and Supervised AI Integration) selects and cascades classifiers using Entropy Imbalance Gain to improve rare-class separability and manage intraclass variability.
- Use of a Hunt-inspired adaptive routing mechanism to form a class-specialized decision tree that integrates neural and symbolic experts.
- Symbolic outputs are transformed into knowledge features that are fused with neural predictions and then fed to an LLM (GPT-4) to generate explanation and localization.
- Formalization of expert knowledge as propositional logic; propositions mapped to domain-specific features; overall class satisfaction S_ClassX is a weighted sum of proposition satisfactions S_ClassX = sum w_i s_i.
- Algorithm EKSAII computes EIG(M_d) based on local densities and class entropy to select classifiers, and uses Gini index to decide partitioning and cascading when intra-class variability is high.

Experimental results
Research questions
- RQ1Can a neuro-symbolic framework improve cross-domain generalization in medical imaging compared to purely deep learning baselines?
- RQ2Does incorporating expert knowledge reduce bias toward rare clinical conditions and enhance rare-class detection?
- RQ3Can an adaptive routing mechanism effectively combine neural and symbolic experts to improve robustness under distribution shifts?
- RQ4Is the framework able to produce clinically aligned explanations via an LLM that are faithful to the symbolic reasoning?
- RQ5How does the approach perform across diverse modalities and tasks such as SOZ localization and diabetic retinopathy grading?
Key findings
- XAI-MeD achieves notable gains over state-of-the-art baselines in rare-class F1 scores and cross-domain generalization across tasks and datasets.
- In SOZ localization, XAI-MeD reaches 84.6% accuracy and 89.7% sensitivity, reducing expert review effort from 110 ICs to 18.
- In diabetic retinopathy grading, the framework improves Grade 3 and Grade 4 F1-scores by approximately 10 percentage points (from 45–52% range to higher values reported) and achieves 84% overall accuracy on DR classification.
- Ablation studies show neuro-symbolic fusion outperforms neural-only or symbolic-only models, with non-weighted fusion achieving the best average generalization across domains.
- The EKSAII routing mechanism demonstrates robustness to domain shifts by leveraging Entropy Imbalance Gain and Gini-based partitioning.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.