In cancer diagnosis, XAI can help identify which features of medical images (e.g., CT scans, MRIs) are most indicative of malignancy. For instance, heatmaps generated by XAI techniques can highlight areas in an image that contribute to a diagnosis, providing radiologists with visual evidence to support AI-driven conclusions. This transparency not only aids in early and accurate detection but also builds trust in AI systems among healthcare professionals.