Imaging & devices · Research feature

Study links brain tumor MRI analysis to human-readable AI explanations

A new framework uses visual and language models to generate interpretable diagnostic reports for brain tumor classification from MRI scans.

Adapted from research by Paul Valery Nguezet, Elie Tagne Fute, Yusuf Brima and colleagues.

arXiv preprint revision · 2026-05-07 · Attribution & reuse
In this article
Editorial illustration of scanner.

Editor’s introduction

The study evaluates a multimodal explainability framework for classifying brain tumors using MRI images. It combines a dual-output CNN architecture with visual saliency methods like Grad-CAM++ to produce spatially accurate tumor masks, which are then mapped to neuroanatomical structures using the Harvard-Oxford atlas. These structured findings are fed into three large language models to generate radiological-style diagnostic reports. InceptionResNetV2 showed the best classification performance, and Grad-CAM++ achieved the highest segmentation overlap. Among the LLMs, Grok3 demonstrated superior lexical diversity and coherence, while LLaMA had the highest readability score. The framework provides a transparent pathway from image input to human-interpretable output, supporting clinical trust in AI-assisted diagnosis.

Introduction

Brain tumors represent a significant challenge in neuro-oncology, owing to their heterogeneity, variable malignancy, and significant impact on patient prognosis. Early and accurate diagnosis is critical for effective treatment planning, and magnetic resonance imaging (MRI) remains the modality of choice due to its high-resolution, non-invasive imaging capabilities. However, interpreting MRI scans, especially in complex tumor cases, can be time-consuming and prone to inter-observer variability, underscoring the need for automated and reliable decision-support systems.

To address these diagnostic challenges, deep learning (DL) methods, and convolutional neural networks (CNNs) in particular, have emerged as usefull tools for automated medical image analysis. These computational models excel at automatically learning hierarchical feature representations from voluminous and multi-parametric MRI data, capturing intricate patterns that may elude conventional analysis. DL-based models have demonstrate considerable potential in performing critical tasks such as tumor detection, segmentation into distinct sub-regions (e.g., enhancing tumor, peritumoral edema, necrotic core), and non-invasive differential diagnosis and genomic characterization. These models offer a potential avenue for supporting radiological diagnoses. Despite their growing adoption, the opaque nature of these models often raises concerns about trust and clinical acceptance. Medical professionals require not only accurate predictions but also transparency and justification for those predictions.

To address this, various explainability techniques, predominantly in the domain of visual saliency, have been introduced into diagnostic pipelines. Gradient-weighted Class Activation Mapping (Grad-CAM), its enhanced variant Grad-CAM++, and Score-weighted Class Activation Mapping (ScoreCAM) generate spatial heatmaps that highlight the image regions most influential to the model’s prediction, offering a visual explanation of the network’s internal reasoning without modifying its architecture or training procedure. Although these methods have shown clinical utility in identifying diagnostically relevant regions, they carry important limitations. Saliency maps remain coarse, lack semantic grounding, and do not articulate specific radiological features (e.g., enhancement patterns, boundary characteristics, or anatomical location) that underpin a given prediction. As a result, heatmaps alone are insufficient to bridge the gap between model output and actionable clinical reasoning.

Furthermore, bridging the translational gap between computational outputs and actionable clinical intelligence requires moving beyond purely visual explanations. The emerging integration of natural language generation (NLG), facilitated by large language models (LLMs), presents a perspective shift towards this goal. These models offer the potential to synthesize complex, multi-modal data; including quantitative imaging features, segmentation masks, and saliency maps into coherent, narrative-style reports articulated in clinically relevant terminology. However, hybrid systems introduces significant challenges. Paramount among these is the imperative to ensure the factual accuracy and ontological consistency of generated text, preventing misrepresentation of model confidence. Moreover, achieving robust cross-modal alignment where the generated narrative is precisely and reliably correlated with the visual evidence is non-trivial and necessitates sophisticated architectures capable of joint representation learning to maintain a verifiable link between image features and their descriptive linguistic counterparts.

This multimodal approach significantly improves the transparency and auditability of CNNs, thereby fostering greater trust and facilitating smoother integration into the clinical diagnostic pathway by aligning directly with the cognitive workflows and informational expectations of medical professionals.

Explainability has become a critical focus in the development of artificial intelligence (AI) systems for medical imaging, with researchers exploring both visual and textual methods to increase transparency and user trust. In particular, efforts have intensified around generating human-interpretable insights that align model predictions with clinically relevant cues. This section reviews prior research in three main domains: visual saliency methods, language model-based explanations, and integrated multimodal approaches that bridge the gap between image-based and language-based reasoning.

Visual saliency techniques have been widely adopted as a means of elucidating the internal decision-making processes of CNNs in medical applications. Brima and Atemkeng proposed a saliency-driven framework that leverages Grad-CAM to highlight predictive regions in brain tumor MRI scans, while quantitatively correlating these highlighted areas with statistical measures to validate clinical relevance. Their approach emphasized the importance of combining visual cues with quantitative validation to establish the reliability of AI-generated explanations. Similarly, Mahesh et al. developed an explainability-enhanced classification pipeline based on EfficientNetB0, integrating Grad-CAM to visualize the most discriminative regions contributing to tumor predictions. Their results demonstrated that adding saliency maps not only improved model interpretability but also assisted practitioners in validating the AI’s focus during diagnosis. Despite their usefulness, these techniques typically lack deeper semantic understanding and remain limited to heatmap-based localization, which often provides ambiguous or anatomically imprecise explanations.

Language-based interpretability methods have emerged as a complementary avenue for enhancing model transparency. Sheng et al. introduced ChatCAD, an interactive diagnostic system that couples visual analysis with LLMs reasoning to facilitate user-guided medical interpretation. By prompting LLMs to respond to image-derived features, their framework enabled multi-turn conversations that dynamically adjust to clinical contexts. This work highlighted the potential of LLMs to synthesize complex visual patterns into natural language outputs that mirror expert-level descriptions. However, such approaches still depend heavily on the quality and alignment of visual input, and challenges remain in ensuring factual consistency and minimizing hallucinated content in generated reports.

Recent advances have explored deeper integration between visual saliency and language generation to enable multimodal explainability. Basu et al. introduced RadFormer, a transformer-based model incorporating both local and global attention to provide interpretable predictions in gallbladder cancer detection. In addition to achieving high accuracy, the model generated textual justifications aligned with relevant image regions, exemplifying the benefits of tightly coupled visual-textual reasoning. Similarly, Valerio et al. proposed a system that converts segmentation masks into descriptive radiology-style reports using LLMs. Their work demonstrated the feasibility of grounding textual explanations in anatomical segmentations, thereby increasing semantic clarity in model outputs. Also, recent work by Singh et al. introduced an unsupervised framework to enhance dementia detection interpretability by integrating CNN relevance maps with neuroanatomical features into a context-enriched explanation space, providing validated, multi-level post-hoc explanations that cater to the specific needs of both radiologists and neurologists. These multimodal strategies represent a promising direction, as they seek to contextualize predictions not only through highlighted image regions but also via narrative interpretations that can be directly communicated to clinicians.

Together, these contributions underscore a growing movement toward more human-centric and interpretable AI in medical imaging. Yet, despite significant progress, there remains a need for unified frameworks that link classification, visual saliency, saliency-derived segmentation, anatomical context, and clinically faithful textual reporting. It is important to note that the intent of the saliency-based segmentation mask in this work is not to compete with dedicated semantic segmentation algorithms such as UNet, which may achieve higher pixel-level segmentation accuracy when trained on annotated masks. Rather, segmenting directly from saliency heatmaps offers distinct and complementary advantages: it requires no additional segmentation training data, making it particularly valuable in clinical settings where labelled masks are scarce or costly to obtain. Furthermore, saliency-derived segmentation is inherently explainable, as the resulting mask directly reflects the regions the classification model attended to when making its decision, preserving a transparent and traceable link between the model’s prediction and the highlighted anatomy. It is also computationally lightweight, introducing no additional training overhead beyond the classifier itself. Together, these properties make saliency-based segmentation a practical and interpretable alternative in clinically constrained environments, where explainability and annotation efficiency are often prioritised over marginal gains in segmentation precision.

Dual-head CNNs training strategy

All models were trained using the Adam optimizer with an initial learning rate of 0.0001, a batch size of 32, and a maximum of 30 epochs. To prevent overfitting, a learning rate reduction on plateau strategy was applied, halving the learning rate when no improvement in validation loss was observed for 5 consecutive epochs.

Training was conducted in a GPU-enabled environment. Classification performance was evaluated on the test set using accuracy, precision, recall, and F1-score, reported both per class and as macro-averaged values. The DSC and Intersection over Union were computed to assess the segmentation mask quality. The best-performing architecture, as determined by the macro-averaged F1-score on the test set, was selected to anchor the subsequent explainability pipeline.

Visual saliency mapping

A critical implementation consideration arising from the dual-head architecture concerns gradient isolation. Since the model produces two outputs simultaneously, a classification head and a segmentation head, a naive application of saliency methods would cause gradients from both branches to intermingle during backpropagation. Given that the segmentation branch is trained with a DSC loss weighted independently from the classification loss, its gradients carry spatial information about tumor boundary delineation rather than class-discriminative features. Allowing these gradients to contaminate the classification signal would produce heatmaps that reflect a mixture of segmentation and classification reasoning, undermining the interpretability goal. To prevent this, all saliency computations in this work are explicitly routed through the classification output layer only, ensuring that the resulting attribution maps faithfully represent the features that drove the tumor class prediction.

Brain atlas mapping

To provide anatomical context for the detected tumor regions, the segmentation outputs were mapped to the Harvard–Oxford cortical atlas. This step enables the transformation of visual explanations into clinically interpretable information by associating detected regions of interest (ROIs) with known brain structures.

To associate these regions with anatomical structures, the segmentation mask is aligned with the Harvard–Oxford atlas. Since the atlas and MRI images may differ in spatial resolution, the corresponding atlas slice is first resampled to match the dimensions of the segmentation mask. This ensures that each pixel in the mask corresponds to a valid anatomical label in the atlas.

JSON construction

In the next stage, the anatomical details derived from the atlas mapping are used to construct the JSON file. The structured JSON files helps to provide the LLMs with precise, structured information, which will reduce the chances of hallucination by the LLMs, which often comes up as a major difficulty when language models generate text without truth base.

The JSON file contains clear and precise information including the model used for classification, the predicted class of the MRI image, the saliency method used to produce the heatmaps, the anatomical regions involved with the percentage of tumor occupation obtained from the atlas mapping, and the performance metrics for the heatmap segmentation.

Language-based explanation generation

The final stage of the framework sought to bridge the gap between computational outputs and clinical narratives. Here, we used three language models which will be based on the JSON file in order to generate valuable medical reports. The LLMs used include Grok3, Mistral, LLaMA which are open-accessed AIs available on the azure-openai platform.

Following the structure of the JSON file, we then designed and elaborated a structured prompt to guide each LLM to generate coherent medical reports. In order to evaluate the quality of the generated reports, we assess the LLMs using quantitative metrics designed to capture essential linguistic qualities. These metrics include lexical diversity, readability, and coherence.

Saliency attribution

Following the selection of InceptionResNetV2 as the best-performing backbone, Grad-CAM, Grad-CAM++, and ScoreCAM were applied to generate class-discriminative saliency maps for representative MRI samples drawn from each of the three tumor classes. These activation maps highlight the spatial regions most influential to the model’s classification decision, providing a first layer of visual interpretability over the network’s reasoning process.

Conclusion

This paper discussed a multimodal explainability framework for brain tumor classification from MRI scans, designed to bridge the gap between opaque DL predictions and clinically actionable insights. The framework integrates four coupled components: a dual-output hybrid CNN backbone for simultaneous classification and spatial mask estimation, visual saliency attribution, saliency-based segmentation, anatomical atlas mapping, and a structured LLMs reporting module. Together, these components provide a transparent, end-to-end pathway from raw MRI input to human-readable diagnostic narrative.

The atlas mapping step successfully translated pixel-level saliency evidence into named neuroanatomical structures using the Harvard–Oxford cortical atlas, providing an additional layer of clinical interpretability that purely visual explanations cannot offer. The three LLMs evaluated which are Grok3, Mistral, and LLaMA, demonstrated complementary strengths in generating structured diagnostic narratives from the JSON-encoded findings, with Grok3 leading in lexical diversity and coherence, and LLaMA achieving the highest readability score. Taken together, these results confirm that the proposed framework produces multimodal explanations that are technically sound and meaningfully interpretable for clinical practitioners.

Several limitations of the present study need to be acknowledged. The absence of prospective clinical validation means that the clinical utility of the generated reports has not yet been assessed by radiologists or neuro-oncologists in a real diagnostic workflow. The segmentation head, while effective as an auxiliary training signal, is not designed to replace dedicated segmentation architectures, and its spatial precision may be insufficient for surgical planning applications. Furthermore, while grounding LLM outputs in structured JSON representations reduces the risk of hallucination, occasional factual inconsistencies in generated narratives cannot be entirely excluded without expert clinical review.

Future work should extend this framework in several directions. Incorporating volumetric three-dimensional MRI data would enrich spatial context and improve the anatomical precision of both the segmentation outputs and the atlas mapping step. Critically, prospective validation in collaboration with clinical radiologists will be essential to assess the real-world usability and trustworthiness of the framework’s outputs before any deployment in diagnostic settings. Finally, the development of domain-specific medical language models and adaptive prompting strategies represents a promising avenue for further reducing hallucination risk and improving the factual precision of generated narratives.

In summary, by integrating a strengthened hybrid classification backbone with adaptive saliency-driven segmentation, anatomical contextualisation, and language-based reporting, the proposed framework advances the transparency and clinical relevance of AI-assisted brain tumor diagnosis, contributing to the broader effort of making medical AI not only accurate but meaningfully accountable to the clinicians and patients it serves.