Skip to content

Robust detection of targeted adversarial attacks on deep neural networks for radiological imagesRobust Detection of Directional Adversarial Attacks in Deep Neural Networks for Radiological Imaging

arXiv: Adversarial Attacks, Backdoors & Poisoning· arXiv:2610.15628· Tristan Malatyński, Joanna Jaworek-KorjakowskaAGH University of Kraków; Center of Excellence in Artificial IntelligenceIndexed by this site · 2026-10-14· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

Use Gaussian noise perturbation and prediction difference to detect targeted adversarial examples in radiology images; Table 2 shows an average true positive rate of 94.8% and false positive rate of 3.0%.

Threat modelTargeted adversarial attacks push predictions toward a specified wrong class. Experiments use FGSM, BIM, PGD, DeepFool to flip binary DNNs on chest X-ray, brain MRI, and fundus images to the opposite class; 3.3 calls them typical white-box attacks, and the conclusions correspond to white-box with direct access to the architecture. Detection adds Gaussian noise at test time and compares prediction differences of the same model.

Questions
Radiological DNNs are easily perturbed by small perturbations to specified wrong diagnostic classes, and missed diagnoses or false positives can affect treatment. The authors state that existing adversarial training, preprocessing, and detection methods requiring additional models are insufficient in this scenario.
Methods
At test time, add Gaussian noise as a counter-perturbation and compare the sigmoid prediction difference before and after adding noise. When not attacked, the shift is small and has no fixed direction; when attacked, the directed perturbation is weakened and the prediction shifts back toward the original class. The threshold is set to 2 standard deviations of the prediction difference on clean images, and can also be tuned per model.
Experiments and results
Detect FGSM, BIM, PGD, DeepFool on three models and three imaging sets. Table 2 average true positives 94.8%, false positives 3.0%, individual cell true positives 81.7%–99.8%. The authors state it outperforms Mahalanobis; the paper does not give the latter's numbers.
Limitations and future work
The authors plan to expand datasets, modalities, segmentation, audio, and multi-class, and strengthen defenses and interpretability. 3.3 states that whole-patch perturbations are not easily weakened by small noise. Detection numbers come from 3 models, 3 imaging sets, FGSM/BIM/PGD/DeepFool; the text mentions CW and black-box but does not report detection numbers for them.
Experimental setupResNet50V2、InceptionV3 et al. · Chest X-Ray Images for Classification、Retinal Fundus Multi-disease Image Dataset et al. · True Positive、False Positive et al.
Evaluated models
ResNet50V2InceptionV3ViT-B16
Benchmarks
Chest X-Ray Images for ClassificationRetinal Fundus Multi-disease Image DatasetBrain Tumor Dataset
Metrics
True PositiveFalse PositiveACCAccuracyRecallAUC
AI summaryThe researchers propose a targeted adversarial attack detection framework for radiology deep neural networks: launching subsequent attacks with random noise and identifying adversarial perturbations through changes in the Sigmoid function and prediction differences between clean and attacked images. The authors report that on three medical datasets—chest X-ray, retinal fundus, and brain tumor—the framework identifies targeted adversarial attacks with accuracy up to 99.8%, while maintaining a low false positive rate.

The researchers propose a targeted adversarial attack detection framework for radiology deep neural networks: launching subsequent attacks with random noise and identifying adversarial perturbations through changes in the Sigmoid function and prediction differences between clean and attacked images. The authors report that on three medical datasets—chest X-ray, retinal fundus, and brain tumor—the framework identifies targeted adversarial attacks with accuracy up to 99.8%, while maintaining a low false positive rate.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Using the prediction difference after perturbing with random noise, detect targeted adversarial attacks on radiology imaging DNNs.

    How to detect targeted adversarial attacks that push radiology imaging DNN predictions toward a specified wrong class.

    • Scenario: The authors state DNNs are used for detection and classification on X-ray, CT, and MRI, with images stored and accessed via PACS. The abstract states attack success rates exceed 90% on medical scans, and such errors could cause missed cancers or false positives.
    • Existing limitations: The authors claim adversarial training and input preprocessing have limited effectiveness on medical imaging, and list modality differences, limited and imbalanced data, consequences of misdiagnosis, and the possibility that attacks can alter key anatomical features. Adversarial training is called computationally expensive by the authors and often degrades clean-sample performance; second-model detection is called by the authors high only at high epsilon (often visible to the human eye), and that model can also be attacked.
    • Observation: The authors believe a few percent of Gaussian noise does not substantially change predictions on clean images but can weaken targeted perturbations. At 0.03 noise, clean images have MSE 0.001, SSIM 0.837, PSNR 30.47 dB; when the same noise is added to a 0.01 FGSM perturbation, MSE is 0.225, SSIM 0.137, PSNR 6.47 dB.
    • Approach: The authors propose a training-free detection framework that compares the Sigmoid prediction difference before and after adding random noise, using a threshold to separate clean images from targeted-attacked images.
    • Threat model:
      • Goal: Push predictions toward a specified wrong class, e.g., malignant as benign, or chest X-rays and fundus images as normal; different from attacks that only reduce overall performance.
      • Knowledge: White-box is full access to architecture and parameters; black-box uses transferable adversarial examples without direct parameter access. The conclusions map the defense to white-box where the attacker has direct access to the architecture; Section 3.3 calls the tested attacks typical white-box attacks.
      • Capability: The victim system is a diagnostic DNN. Experiments use the authors' fine-tuned binary-classification models, with FGSM, BIM, PGD, and DeepFool changing test images to the opposite class. The detector adds Gaussian noise at test time and reads the prediction difference from the same model, with no separately trained detector.
      • Determination: Attacks stop iterating when the class changes to the opposite class. Detection checks whether the prediction difference exceeds a threshold; Table 2 uses θ = 2·std(t), which can also be tuned per model.
  2. What related research exists?

    Related work covers adversarial attacks, medical imaging vulnerability, and detection defenses; the experimental baseline is Mahalanobis.

    Adversarial examples and attack forms

    • Szegedy et al. (2013) noted that DNNs have adversarial examples; Bhambri et al. (2019) surveyed black-box adversarial attacks in computer vision and wrote that imperceptible small perturbations can cause misclassification.
    • Goodfellow et al. (2014) proposed FGSM. The text also introduces PGD (an iterative form of FGSM) and CW (optimization-based, minimizing perturbation while ensuring misclassification), as well as the white-box / black-box division (Zhang et al., 2020).
    • Targeted attacks (Yu et al., 2024): push predictions toward a specific wrong class rather than just reducing overall performance. The authors state this is one of the most critical types in medical imaging.

    Vulnerability in medical imaging

    • Finlayson et al. (2019): on skin cancer and chest X-ray diagnostic models, perturbations caused misclassification success rates exceeding 90%.
    • Ma et al. (2019): in MRI classification, attacks reduced accuracy from 95% to below 10%. Abbas et al. (2024) reported misclassification in fundus disease detection.
    • Mirsky et al. (2019): on dermoscopic images and lung CT, adversarial modifications achieved a 99% misclassification success rate, and radiologists did not detect them; brain tumor accuracy dropped from 87% to below 12%. Sorin et al. (2023) stated that adversarial attacks can reduce accuracy to 0.

    Detection and defense

    • Madry et al. (2017)'s adversarial training: training on clean and adversarial examples. The authors state it is computationally expensive and often reduces clean sample performance.
    • Guo et al. (2019): using a second model for the same task to detect adversarial examples via prediction differences. The authors state results are high only at high epsilon (often human-visible) and require training a second model that can also be attacked.
    • Statistical feature analysis (Ma et al., 2018), Bayesian uncertainty estimation (Begoli et al., 2019), adversarial detection networks, and Mahalanobis distance (Lee et al., 2018): the authors state these techniques have not been widely evaluated in medical imaging, and data heterogeneity and regulatory constraints must also be considered.

    Baseline methods and benchmarks

    • Baseline method: Mahalanobis distance (Lee et al., 2018). The authors tested it on three layers of ResNet50V2 and InceptionV3, and the dense layer of ViT-B16, and state it has lower accuracy and higher false positives; they also state it remains vulnerable to adaptive attacks that adapt to the extracted features (Tondi et al., 2025). The paper does not provide detection numbers for Mahalanobis.
    • Benchmarks/datasets: Chest X-ray (pneumonia/normal), RFMiD fundus, Brain Tumor MRI (converted to healthy and tumor in the paper). Experimental attacks are FGSM, BIM, PGD, DeepFool.

    The authors position this paper on test-time detection of targeted attacks: without training additional models, using random noise counter-perturbation and comparing prediction differences, targeting X-ray, MRI, and fundus diagnostic models.

  3. How does the paper address this problem?

    Add Gaussian noise to images and use prediction difference relative to a threshold to determine whether a targeted attack has occurred.

    Detection is performed at test time: add low-intensity Gaussian noise to the image as a counterattack, compare the Sigmoid prediction difference before and after adding noise, and determine whether the image has been targeted by an attack. The framework diagram is shown in Figure 3.

    Problem setting

    • Diagnostic tasks are made binary classification (healthy/diseased) in experiments. ImageNet pretrained models have the original classification head removed and replaced with a sigmoid.
    • Targeted attacks push predictions toward a specific wrong class. Detection does not change the training process; it only compares predictions at inference.
    • The authors require that the counter-perturbation mainly acts on the adversarial perturbation rather than arbitrarily changing the class; for correctly classified clean images, the counter-perturbation should not change the effective prediction. The authors state that the ideal neutralization method is simple random noise, with perturbations typically on the order of 1%.

    Random noise counter-perturbation

    • Noise is η ∼ N(0, ϵ2), where ε is the standard deviation controlling strength.
    • The authors' design statement: a small amount of random noise (a few percent) does not substantially change clean image predictions but can weaken adversarial perturbations. The text uses MSE, SSIM, PSNR to compare 0.03 Gaussian noise applied to clean images versus applied to 0.01 FGSM perturbations (Figure 4 multiplies noise by 30 for viewing).
    • The authors' expectation after adding noise: unattacked images shift only slightly and in no fixed direction, because noise does not push predictions toward a specific outcome; on attacked images, the targeted perturbation is weakened, and predictions are closer to the original image class. The authors state that noise-added images almost always predict the same class as the original clean image.

    Decision and threshold

    • If after adding noise the prediction returns to the originally detected class, or only slightly shifts toward another class, it is judged as unattacked. If it clearly shifts toward another class, it is judged as attacked; the authors state that the true class is the one the prediction shifts toward.
    • The standard threshold is θ = 2 · std(t), where t is the prediction difference between the clean image and its noise-added version. The authors state that multiplying by 2 corresponds to about 95% of normal data falling within two standard deviations of the mean, used to capture deviations beyond typical noise fluctuations.
    • The authors also write: a more effective approach is to manually tune the threshold per model, positioned near the edge of the clean sample prediction difference distribution; ε and the threshold should also be adjusted per problem, depending on whether low false positives or higher detection rates are more important. Increasing noise and threshold simultaneously increases both the number of detected attacks and false positives.

    Model and noise settings

    • Backbones are ImageNet pretrained ResNet50V2, InceptionV3, ViT-B16. First freeze all layers, then unfreeze the last few layers for fine-tuning. The paper does not specify the number of unfrozen layers, learning rate, or training epochs. Classifier Accuracy, Recall, AUC are in Table 1.
    • Noise strength is searched from 0.01 to 0.05 in steps of 0.01. Each noise addition is repeated 8 times, taking the median to avoid extreme outliers. The authors state that the most effective universal strength for all model types is 0.03. Per-model, per-dataset best ε is in Table 3; the text also writes that for DeepFool, the best random noise ε for each model is 0.01.
    • Samples to be detected are generated by attacks, not training data for the detector: FGSM, BIM, PGD strengths are limited to epsilon 0.001 to 0.01; DeepFool has at most 50 iterations and prediction overshoot of 0.02. Stop when the predicted class changes to the opposite class.

    Relationship to visualization

    • The pipeline compares predictions on clean images, noise-added clean images, attacked images, and attacked-then-noise-added images (Figure 3, Figure 6). Figure 6 caption labels classes as 0 healthy, 1 diseased.
    • Figures 7 and 8 use heatmaps to examine model attention regions. The detection decision itself is a prediction difference threshold; the paper does not incorporate heatmap scores into the decision rule.
  4. What experiments did the paper conduct?

    Table 2 average true positives 94.8%, false positives 3.0%, with fundus FGSM lowest at 81.7%.

    Experimental setup

    • Models: ResNet50V2, InceptionV3, ViT-B16, all binary classification diagnostic models that are attacked and detected. In Table 1, chest X-ray Accuracy is 0.94, 0.92, 0.91; tumor MRI all 0.99; fundus 0.91, 0.90, 0.89; corresponding AUC for chest X-ray 0.99, 0.99, 0.97; tumor MRI all 1.00; fundus 0.95, 0.95, 0.96.
    • Data: Chest X-ray total 5856 images, training 3883 pneumonia and 1349 healthy, testing 390 pneumonia and 234 normal. RFMiD total 3200 images, 46 conditions, training 1920, testing 134 healthy and 506 diseased, validation 640. Brain Tumor MRI total 7023 images, classes converted to healthy and tumor; the paper does not specify the number of training and testing splits.
    • Sample selection: The main detection only uses images from the test set that the model originally did not misclassify, then attacks each image to cause misclassification. Images whose predictions do not change significantly after attack are discarded. Table 4 includes attack failure cases.
    • Attacks: FGSM, BIM, PGD with strength limited to 0.001–0.01; DeepFool with at most 50 iterations and overshoot 0.02. Stop when the class changes to the opposite class.
    • Detection settings: Random noise ε from 0.01 to 0.05 in steps of 0.01, repeated 8 times per condition, taking the median. Table 2 note says using the best random noise epsilon (original text as “random noise 3”) and standard threshold θ = 2·std(t). The text states the universal most effective strength is 0.03; the per-item best ε in Table 3 is not always 0.03. Do not replace “3” in the table note with a specific ε.
    • Metrics and baselines: Detection reports True Positive [%] and False Positive [%]. Classifiers report Accuracy, Recall, AUC. Baseline is Mahalanobis distance: ResNet50V2 and InceptionV3 use three layers, ViT-B16 only the dense layer. The paper does not report a separate review model or Mahalanobis values.

    Main results

    The following is the MEAN row of Table 2, i.e., the average over the four attacks FGSM, BIM, PGD, DF, formatted as true positive % | false positive %.

    Swipe horizontally to read the table

    ModelChest X-RayBrain MRIFundus
    ResNet50V299.1 | 2.597.9 | 2.293.0 | 4.3
    InceptionV396.3 | 3.798.1 | 1.893.7 | 4.4
    ViT-B1692.2 | 4.094.1 | 2.289.0 | 2.3
    • The overall average across four attacks, three models, and three datasets is true positive 94.8%, false positive 3.0%. Per-attack average true positive | false positive: FGSM 93.1 | 3.5, BIM 95.1 | 3.1, PGD 95.6 | 3.1, DF 95.4 | 2.5 (all from Table 2). The authors state that at this threshold, almost all attacked images can be separated, and the proportion of clean images flagged is very low.
    • Not all individual cells are close to the overall average. The lowest true positive is ResNet50V2, Fundus, FGSM at 81.7 | 4.6; ViT-B16, Fundus, DF at 86.5 | 2.8. The highest true positive is ResNet50V2, Brain MRI, DF at 99.8 | 1.1.
    • The abstract writes up to 99.8% ACC and claims superiority over existing defenses. Table 2 header is True Positive | False Positive; 99.8 is the true positive of the above DF cell; there is no column named ACC in the table. Mahalanobis is named for comparison but no numbers are given.

    Attack class-change proportions

    • PGD and BIM change the predicted class of 93–100% of images; FGSM changes 71%. The paper does not break these proportions down by individual dataset or model.
    • DeepFool's precision in changing predictions: ResNet50V2 and ViT-B16 are 99%, InceptionV3 is 62.6%. The authors believe DeepFool seeks the smallest possible perturbation, so the subsequent best random noise ε is smaller than for the other three attacks.
    • The main detection table only retains images whose predictions change significantly after attack, so Table 2's true positive is computed on the subset where the attack has already changed the class.

    Confidence filtering

    • Table 4 targets ResNet-based, Chest X-ray, includes attack failure samples, and only keeps cases where the difference between the original image prediction and the correct class is less than a given value. The ResNet in the experiment is ResNet50V2; the table title says ResNet-based. The number of detected images is the average.
    • Difference less than 0.2: attacked images average 420.4, clean images average 7.9, total cases 429, attack detection 98.0%, clean images flagged 1.8%. Less than 0.3: 468.4 and 11.4 / 481, 97.4% and 2.4%. Less than 0.4: 507.5 and 14.9 / 529, 95.9% and 2.8%. Less than 0.5: 522.4 and 16.9 / 557, 93.8% and 3.0%. Less than 1.0: 537.2 and 18.5 / 624, 86.1% and 3.0%.
    • The authors assume that clinical practice only adopts high-confidence predictions and state that low-confidence images are more susceptible to attack and also more sensitive to random noise. The authors state that with manually tuned thresholds plus discarding low-confidence images, detection can reach 100%; the highest attack detection listed in Table 4 is 98.0% (difference less than 0.2).

    Baseline, patches, and authors' interpretation of figures

    • The authors state that Mahalanobis has lower accuracy and higher false positives on every tested model, thus claiming their method is better. The paper does not provide Mahalanobis TP or FP. The authors state that Mahalanobis remains vulnerable to adaptive attacks that adapt to the extracted features.
    • For their method, the authors state that its resistance to adaptive attacks depends on the difficulty of constructing noise-resistant attacks, because noise causes data loss. The same section writes: for attacks that add whole patches to images, small noise does not cause the same magnitude of change, so it will not be equally resistant; and states that such patches on radiological images are easily visible to the human eye. The conclusion also states that adaptive attacks cannot be constructed. The paper does not report detection numbers for adaptive attack experiments.
    • The authors state that computational cost mainly depends on the number of noise additions, because it only requires adding noise and checking predictions before and after. The paper does not report time or query counts. The 8-time median is the repetition setting written in the text.
    • Figure 5 caption: InceptionV3, Brain Tumor, BIM, bubble radius indicates the number of samples with the same prediction difference. The authors state that clean and attacked samples' prediction differences can be separated, and the clean sample distribution is close to a Sigmoid, indicating that random noise does not push clean image predictions in a fixed direction; attacked samples rarely return to the post-attack class but clearly shift toward the original class. The text does not provide coordinate values for this figure. The authors state that in Figure 7, the heatmap focus shifts after attack; in Figure 8, with only noise added, it still focuses on key regions, and after attack, attention is disrupted. The text has no heatmap values.

    Other ablations and analyses

    • Table 3 best random noise ε: ResNet50V2 is chest X-ray 0.05, tumor MRI 0.05, fundus 0.03; InceptionV3 is 0.05, 0.03, 0.02; ViT-B16 is 0.05, 0.03, 0.02. The text states that FGSM, BIM, and PGD have the same best noise strength on the same model; for DeepFool, the best ε for each model is 0.01.
    • The authors state that the most effective universal noise strength for all model types is 0.03; the search range is 0.01–0.05 in steps of 0.01.
    • 0.03 Gaussian noise: clean image MSE 0.001, SSIM 0.837, PSNR 30.47 dB; added to 0.01 FGSM perturbation gives MSE 0.225, SSIM 0.137, PSNR 6.47 dB. The authors state that small noise pushes attacked images back toward the direction the clean class focuses on.
    • The text writes that increasing noise and threshold simultaneously increases both the number of detected attacks and false positives; apart from the standard threshold in Table 2 and the manually tuned conditions in Table 4, there is no complete detection table broken down by ε.
    • The authors state that after first removing images the model originally misclassified, the number of attacks with small prediction differences between attacked images and noise-added attacked images decreases, making differences easier to see. This claim has no separate count table.
  5. What are some points that can be further explored?

    The authors plan to expand data, modalities, and multi-class classification; Section 3.3 states that whole patches are not easily weakened by small noise.

    Limitations and future directions noted by the authors

    • When adding whole-patch perturbations to images, small noise does not cause equally large changes, so the method is not equally resistant; the authors also state that patches on radiology images are easily visible to the human eye (3.3).
    • Future work will strengthen defense mechanisms to improve model robustness (4.1).
    • Expand to larger datasets and different imaging modalities to assess the broader applicability of these findings (4.1).
    • Evaluate on other tasks such as segmentation, and other data types such as audio, which the authors hope will make it a versatile defense (4.1).
    • Multi-class datasets are mentioned separately: adding random noise should reliably pull predictions back to the original class (4.1). This is a future requirement, not a completed experiment.
    • Improve interpretability techniques to support AI-assisted medical diagnosis (4.1).

    Experimental coverage

    • Tested models are ResNet50V2, InceptionV3, ViT-B16, 3 in total; datasets are Chest X-ray, RFMiD, Brain Tumor MRI, 3 in total. Classifier metrics are in Table 1, main detection results in Table 2 and Table 3.
    • The attacks with reported detection numbers in the results section are FGSM, BIM, PGD, DeepFool. The text introduces CW and black-box, but does not report detection numbers for these two settings.
    • Table 2 uses test images that were originally classified correctly and whose predictions changed significantly after attack; unsuccessful attacks are discarded in that table. Table 4, on ResNet-based and Chest X-ray, includes failed attacks and filters by prediction difference from the correct class less than 0.2, 0.3, 0.4, 0.5, 1.0.
    • Random noise is checked over 0.01–0.05 in steps of 0.01, with 8 repetitions per noise level and the median taken. The paper does not report wall-clock time or number of queries; 3.3 states that computational cost mainly depends on the number of noise additions.
    • The discussion compares Mahalanobis, as well as adaptive attacks and whole-patch attacks. The paper does not report Mahalanobis TP/FP, nor detection numbers for adaptive attack experiments. The interpretability part consists of heatmaps in Figure 7 and Figure 8; the paper does not report quantitative metrics for attention shift.
  6. Summarize the main content of the paper

    Adding Gaussian noise at test time and comparing prediction differences, Table 2 average true positive 94.8%, false positive 3.0%.

    The authors propose a test-time detection method to identify targeted adversarial examples on binary-classification DNNs for radiology images: add Gaussian noise, then check whether the Sigmoid prediction difference exceeds typical fluctuations on clean images.

    • Problem: Targeted attacks push predictions toward a specified wrong class, e.g., classifying malignant as benign, while the image can remain nearly unchanged to the human eye. The authors claim that adversarial training, input preprocessing, and prediction-difference detection requiring a separately trained model are insufficient for medical imaging.
    • Method: Noise is drawn from a normal distribution with mean 0, with strength controlled by ε. When not attacked, predictions shift only slightly and without a fixed direction; when attacked, the authors expect the targeted perturbation to be weakened and the prediction to shift back toward the original class. The standard threshold is 2 standard deviations of the prediction difference between clean images and their noise-added versions, and can also be tuned per model. Backbones are fine-tuned ResNet50V2, InceptionV3, and ViT-B16, with no separately trained detector.
    • Main detection: Table 2, at the standard threshold and what the table note calls the best random noise, the average true positive across three models, three datasets, and FGSM/BIM/PGD/DeepFool is 94.8%, with a false positive of 3.0%. The highest single-cell true positive is 99.8% (ResNet50V2, Brain MRI, DeepFool, false positive 1.1%), and the lowest is 81.7% (ResNet50V2, Fundus, FGSM, false positive 4.6%). The abstract writes the highest value as 99.8% ACC.
    • Other numbers: Table 4 includes failed attacks on ResNet-based chest X-rays; when the difference from the correct class is less than 0.2, attack detection is 98.0% (average 420.4/429), and clean images are flagged 1.8%. When the difference is less than 1.0, attack detection is 86.1%. PGD and BIM change the class in 93–100% of cases, FGSM in 71%; DeepFool's precision for changing predictions is 99% on ResNet50V2 and ViT-B16, and 62.6% on InceptionV3.
    • Authors' conclusions: The authors claim the method addresses white-box targeted attacks with test-time perturbation and prediction difference, can serve as a training-free post-hoc verification, and call it state-of-the-art, and claim no adaptive attack can be constructed. Section 3.3 is narrower: the degree of resistance depends on whether a noise-resistant attack can be constructed, and whole patches are not weakened by small noise to the same degree. The authors claim Mahalanobis is worse with higher false positives, but give no numbers. Section 4.1 plans to extend to data, modalities, segmentation, audio, and multi-class classification, and to improve interpretability.
Read originalarxiv.org