Various simulation-based experiments are conducted to evaluate the efficacy and applicability of the proposed approach. A wide range of performance metrics, including correlation analysis, entropy, and error analysis during pixel reconstruction, are used to quantify performance. In addition, energy and carbon costs are evaluated for different stages of the pipeline, helping to quantify the cost of running AI models before ciphers instead of the standalone ciphers. This type of analysis is largely absent from existing studies. Each stage is wrapped with a hardware-level energy tracker that measures power drawn at one-second intervals. The total energy consumed (
) and total estimated emissions (
) are reported for each stage using the local machine’s measured or assumed grid carbon intensity. Given
total operations in a stage (number of images times number of repeats), per-image figures are derived using Equations (
7) and (8). In addition, wall-clock time, CPU utilization change, and resident memory change are recorded alongside energy for each stage using standard process monitoring utilities.
4.2. Detection Performance
Table 2 reports the Hungarian-matched detection accuracy at each model’s own
-optimal confidence threshold.
Table 3 presents Ultralytics’ own
val() metrics for the same weights.
Table 4 presents the classification diagnostics over the full 223-image test set. Ground-truth boxes are taken directly from the dataset’s YOLO-format label files and converted to pixel coordinates. Prediction boxes are matched to ground-truth boxes using a one-to-one Hungarian assignment based on an intersection-over-union (IoU) cost matrix. This approach finds the best unique match between predictions and ground-truth boxes. As a result, each prediction can be assigned to at most one ground-truth box. This prevents a single prediction from being matched to multiple targets. A match is only accepted if its IoU is at least 0.5. As different fine-tuned models can have different optimal operating points, the confidence threshold is not fixed at a single value for all models; instead, various candidate thresholds are evaluated for each model and the threshold that maximizes performance is selected for that model. All classification metrics are computed on Hungarian-matched pairs. In addition, Ultralytics’ own validation routine is run for each model to obtain standard precision, recall, mAP50, and mAP50-95.
YOLOv9c achieved the highest mean IoU and detection rate of 0.757 and 0.867, respectively, on the full test set. This highlights its larger backbone capacity and parameter count, which allow it to fit tighter boxes when it detects a tumor. However, it also produced the highest false positives at 83, 3× more than YOLOv8n. In addition, it achieved the lowest precision and recall among all variants. YOLO11n and YOLOv5s also had high error rates and slightly lower accuracy; on the other hand, YOLOv8n produced the fewest false positives while achieving the second-highest detection rate of 0.846 and the highest recall of 0.770, and achieved various other competitive metrics. Altogether, these results make it the most conservative and reliable detector for the tiered pipeline. The smaller and shallower architecture of YOLOv8n also makes it suitable on a dataset of this size. YOLOv8s and YOLOv8n achieved the two highest F1 scores (0.540 and 0.530), highlighting the “n”/“s” YOLOv8 family as the strongest choice among the six variants when tested on the complete held-out split. This result is also consistent with their leading mAP50/mAP50-95 in
Table 3. Each false positive causes the strongest cipher to be unnecessarily applied to healthy tissue; thus, a low false positive rate is valuable regardless of the raw IoU score. The ROC-AUC of every model sits around 0.5, with YOLOv8s achieving 0.630. This should not be interpreted as architectural weakness; since AUC is computed only on the matched-prediction confidence scores, a low AUC here reflects weak confidence calibration between two classes rather than poor localization.
4.4. Computational and Carbon Cost
Table 7 and
Table 8 presents the inference-only and encryption-only cost per image. Both are measured with the
CodeCarbon tracker. All the models were evaluated under similar environmental conditions to ensure a fair evaluation. The full-frame baseline incurs the highest overhead because the entire image is encrypted with the strongest cipher before transmission, while energy consumption and carbon emissions decrease by ≈8.2–12.4% for all simulated models. On the full 223-image set, YOLOv9c shows the lowest tiered encryption cost of 4.019 J. This is consistent with its smallest average ROI ratio of 0.043. A smaller ROI tier means that less of the frame is run through the most expensive and secure cipher. However, YOLOv9c’s own inference cost is over 3.5× higher than YOLOv8n’s. This highlights a shortfall that cannot be easily overlooked. On the other hand, considering this cost, YOLOv8n stands out as the cheapest model and the most practical choice for deployment. YOLOv8n is the most accurate model on the metrics and provides a favorable per-image tradeoff, requiring only 0.0555 s per image. Although YOLOv9c is slightly faster with 0.0546 s encryption time, its classification performance is not on par with that of YOLOv8n. YOLOv9c consumes ≈3.2% less energy and emits ≈3.2% less carbon than YOLOv8n while also delivering lower classification metrics, as shown in
Figure 3 and
Figure 4. This efficiency is primarily due to its smaller average ROI ratio of 0.043, compared with 0.046 for YOLOv8n, which reduces the number of pixels requiring encryption. Although YOLOv9c has a larger architecture than YOLOv8n, its lower encryption cost demonstrates that the computational overhead is also influenced by the amount of image content selected for encryption.
Table 9 conducts a statistical analysis and evaluates whether the reduction in encryption time achieved by the proposed tiered framework is statistically significant over the baseline. The
t-statistic measures how far the average tiered encryption system lies from the baseline’s time in units of standard error. A large negative value indicates that the tiered time is consistently and substantially below the baseline, not just lower by chance. The
t-test
p and Wilcoxon
p are two independent ways of asking the same question. The
t-test assumes that the 500 paired timing samples are roughly normally distributed; on the other hand, the Wilcoxon signed rank test makes no assumptions, instead checking the sign and rank of each paired difference. Thus, agreement between the two represents a stronger result than either alone. Both fall below
, far past the usual 0.05 cutoff. This shows that the results are statistically significant rather than random variation. The “time reduction” column evaluates how much faster tiered encryption is compared to full-frame encryption in terms of percentage of the baseline time. Evaluated as a simple relative difference of the two mean times, it shows that the encryption time is reduced by nearly 45–49%. Assuming that cost scales purely with pixel count, encrypting only 3–5% of the frame at full strength and the rest at much cheaper ciphers should save closer to 90% of the time, not half. The logistic-map keystream and the ROI permutation index are generated using sequential Python loops rather than vectorized NumPy operations. Both processes iterate once per encrypted pixel, irrespective of the image tier. As a result, the loop overhead remains nearly constant on a per-pixel basis and contributes a shared computational cost for all tiers. The reduction in encryption time achieved by shrinking the ROI is partially masked by this implementation overhead. YOLOv5s results in the largest cut of 49.4%, which shows that it can perform encryption almost twice as fast as the baseline. Similarly, YOLO11n cuts the time by nearly 1.85×. This speed difference signifies that tiered encryption reliably provides close to a 2× speed-up over encrypting the whole frame irrespective of which of the six detectors manages the pipeline. Other statistics confirm these findings as well; both the paired
t-test and the Wilcoxon signed-rank test produce small
p-values, indicating that the observed reductions are highly significant.
To quantify the performance of the proposed model relative to other ciphers in terms of energy consumption, a comparative analysis is conducted using four ciphers: AES-256-CBC, ChaCha20, Triple DES (3DES)-CBC, and Blowfish-CBC. These four ciphers are selected because they represent ciphers from different families and operating points, allowing for a comprehensive analysis. AES-256-CBC represents a fast cipher, which usually represents the hardware-accelerated (AES-NI) case. ChaCha20 represents a software-only stream cipher used as the TLS 1.3 default on hardware without AES-NI, such as many mobile and ARM devices. 3DES-CBC represents a deliberately slower legacy block cipher of the type still used in some embedded and payment systems. Blowfish-CBC represents a different block size (64-bit, versus AES/DES’s distinct designs) and key schedule family. Collectively, these ciphers span a realistic range of deployable systems for comparison rather than a single favorable data point. Asymmetric ciphers were intentionally excluded from this comparison to enable fair comparison, as asymmetric schemes work on small payloads (keys, hashes, digital signatures, etc.) and are orders of magnitude slower per byte than symmetric ciphers by design. As a result, the comparison would be unfair in terms of throughput and energy. All four simulated ciphers use a fixed non-secret key/IV for reproducibility, which is appropriate because the focus of this experiment is on throughput and energy rather than enhanced security. All algorithms were simulated under identical measurement environments, and the YOLO variants were rerun to ensure a consistent and reliable basis for comparison with the proposed model and baseline methods.
Table 10 presents the encryption-only cost for the simulated ciphers.
Figure 5 visualizes the metrics for all three categories of ciphers per YOLO model: full-frame DNA baseline, classical ciphers, and tiered DNA. It can be observed that the classical ciphers are cheaper than the DNA full-frame baseline (4.590 J) at the raw throughput level; on the other hand, ChaCha20 and Blowfish require 0.7 J/image, and 3DES also stays below 1 J/image. This gap is expected, since classical ciphers apply one linear substitution pass with no per-tier segmentation, DNA re-encoding, permutation, or bidirectional chaining; therefore, a comparison using raw throughput alone would understate what the proposed scheme provides. The more meaningful comparison is between tiered DNA-AdCrypt (3.9–4.2 J) and the full-frame cost of classical ciphers, provided in
Table 8. If a classical cipher were applied selectively to the ROI, tissue, and background tiers using the same reduced pixel counts as DNA-Adcrypt, its energy consumption would likely fall within a broadly comparable range. This confirms that the computational overhead reported by this paper is attributable to the multi-layer ROI cipher’s stronger security construction (permutation, substitution, and bidirectional diffusion)as opposed to an inefficient implementation relative to standard practice.
Since the reported energy consumption is measured directly on the experimental hardware, the measured energy per image is independent of the grid emission factor assumed for a deployment location. In order to examine the effect of geographical variation in electricity generation,
Table 11 converts the YOLOv8n tiered encryption energy consumption of 4.152 J/image (
Table 8) into estimated carbon emissions using national electricity grid carbon intensity factors. This conversion follows Equation (8), with the corresponding national grid factor used in place of the emission factor associated with the experimental measurement. As a result, the encryption pipeline does not need to be re-executed for each region; the computational energy remains fixed, while only the energy-to-carbon conversion factor changes.
An evaluation on four countries was conducted. These countries were selected to ensure comprehensive coverage of substantially different electricity grid carbon intensity regimes. Among the selected countries, France represents a very low-carbon electricity system dominated by low-carbon generation; the United States represents a large electricity market with intermediate carbon intensity; and India represents a rapidly growing market with comparatively higher carbon intensity, similar to Germany. This selection allows the same measured computational energy consumption to be evaluated across low-, intermediate-, and high-carbon electricity systems. The resulting analysis shows the sensitivity of absolute carbon emissions to deployment location. The grid carbon intensity values for France are taken from the French Transmission System Operator RTE, which reported a 2024 average electricity generation carbon intensity of 21.7 gCO
2e/kWh [
25]. For the remaining countries, we considered Ember’s Yearly Electricity Data as reported in the Global Electricity Review 2025 [
26]. These sources use country-level electricity generation intensity; as a result, they provide a location-dependent estimate rather than a direct re-measurement of the experimental workload.
The results show that identical computational energy consumption can result in different absolute carbon emissions depending on the electricity grid at the deployment location. For the considered regions, the estimated carbon impact varies from ≈0.025 mgCO2e/image in France to 0.817 mgCO2e/image in India; therefore, the absolute carbon footprint of the same encryption workload should not be treated as universally transferable in deployment sites. On the other hand, the percentage reductions reported throughout this paper (e.g., ≈8.2–12.4% for tiered encryption relative to full-frame encryption) represent relative savings associated with the computational workload. This can be interpreted independently of the selected regional grid factor.
4.5. Security Diagnostics
Table 12 summarizes the cipher quality on the ROI tier of the tiered cipher, evaluated on 100 randomly selected images.
Figure 6 visualizes the state of a randomly selected test image at different stages of the proposed tiered encryption process. Every model presents essentially the same picture, since an identical cipher construction and key were used. The input pixels differ due to their ROIs. The Shannon entropy, for which the ideal value is 8, ranges from 7.89 to 7.91 bits. Every
test yields
, above the usual 0.05 significance level. As a result, the distribution of the cipher’s pixel value cannot be distinguished from uniform noise in this test. Correlation values are the mean of horizontal, vertical, and diagonal adjacent-pixel correlation on the whole cipher frame. The mean adjacent-pixel correlation is also close to zero for every model, unlike a usual MRI slice in which neighboring pixels are highly correlated. All 100 images are decrypted back to the original byte-for-byte for every model, i.e., losslessly. Error metrics such as the Mean Squared Error (MSE) and Mean Absolute Error (MAE) are observed to be zero.
Figure 7 indicates the exact inverse reconstruction in practice.
Table 13 presents the key sensitivity test conducted for five randomly selected images. The plaintext was fixed and
was perturbed by
, yielding near-ideal results for Number of Changing Pixels Rate (NPCR) and Unified Averaged Changed Intensity (UACI) at ≈99.6% and ≈33.4%, respectively. This shows that the keystream itself is highly sensitive to the key. A
change in
produces an essentially unrelated cipher. Thus, when combined with a ≈104-bit keyspace, brute force or nearby key attacks become highly difficult.
Table 14 and
Figure 8 present the whole-cipher plaintext sensitivity analysis for ten images with 30 trials per model. This analysis extends the sensitivity analysis to the actual deployed output. Unlike ROI evaluation, a single input pixel is perturbed anywhere in the frame (not restricted to the ROI). The full tiered cipher is then reapplied and metrics such as NPCR and UACI are evaluated over the entire composite ciphertext. YOLOv8n achieves the lowest NPCR of 0.40%, indicating that a single-pixel modification in the input image results in a highly localized change in the corresponding composite ciphertext image. The UACI of 0.005% further indicates limited propagation of the pixel-level change in unrelated image regions. Despite this controlled propagation, the entropy of 7.9991 bits shows that the encrypted image maintains strong statistical randomness despite avoiding unnecessary diffusion of a localized pixel modification. Although YOLOv5n achieves the highest NPCR of 1.94%, it lacks reliable performance compared to other models, including YOLOv8n. A lower NPCR does not inherently indicate weaker encryption when the scheme is intentionally designed to apply different encryption operations to different image tiers. The composite NPCR is slightly lower than the metrics for the ROI tier alone, which is expected due to the architectural design. Since the three tiers are encrypted independently, a single perturbed pixel can only influence the encrypted values within its own tier. A background/tissue-tier perturbation stays confined to essentially one output byte, since those two tiers use non-diffusive substitution rather than a chaining pass. Composite NPCR can be approximately related to the ROI-tier NPCR and the fraction of pixels occupied by the ROI. For example, for YOLOv9c, ≈49.6
is close to the measured 0.54%–1.37% range for models. This tier isolation design reduces the blast radius, which is one of the core advantages of DNA-Adcrypt. Perturbation in one image tier does not propagate into other tiers. This is further supported by the composite entropy at 7.9991 for all models, which shows that the complete encrypted image stays indistinguishable from noise.
Table 15 presents further insight into the diffusion behavior. A mean NPCR of 47.3–52.4% is achieved for ROI tier-only multi-trial analysis. The bidirectional chain increases error propagation compared with the forward-only design. However, since both passes use linear XOR operations, affected positions can cancel each other when an even number of changes occurs along the accumulation path. As a result, the practical average diffusion stays close to one-half instead of approaching the ideal ≈99.6% level observed under full-frame key sensitivity (
Table 13). This behavior aligns with the algebraic limitation discussed earlier, as a purely linear diffusion layer has an inherent cancellation property that cannot be eliminated simply by adding more linear chaining passes.
4.6. Resilience Against Common Image Perturbations
Table 16 summarizes the resilience against four common image perturbations. These perturbations and their values were selected because they represent common widely-studied real-world distortions that can significantly affect system performance. These attacks include:
Gaussian noise ( = 10.0): Adds zero-mean Gaussian noise with standard deviation = 10.0 to every pixel, then clips back to [0, 255].
Salt-and-pepper noise (corrupted pixel fraction = 0.02): Results in 2% of pixels being corrupted; half of this 2% is set to 255 (salt) and the other half to 0 (pepper), so out of every 10,000 pixels, ≈100 are white and 100 are black.
JPEG compression (quality = 50): The images is re-encoded as a JPEG at quality = 50 using OpenCV, then decoded.
Crop occlusion (frac = 0.1): Blacks out a random rectangle covering 10% of both height and width (frac = 0.1), i.e., a patch that is roughly 1% of the total image area (0.1 × 0.1). The rectangle’s top left corner position is chosen randomly for each run (random.randint).
The four attacks were observed to disturb the cipher to different degrees. Gaussian noise and JPEG touch every pixel; as a result, they increase NPCR vs. clean to 95–98% while reducing encryption PSNR to 11–13 dB. These results are expected, since neither attack respects tier boundaries. On the other hand, salt-and-pepper and crop occlusion are observed to disturb only a small patch. As a result, NPCR vs. clean stays under 2% and PSNR recovers to 22–25 dB. YOLOv8n is observed to stand out in terms of crop-occlusion results, with 94.7 MSE and 28.37 dB PSNR, ≈2.2× lower than the next-best YOLOv8s model at 209.9. This results is due to the occlusion rectangle being placed randomly for each run; for YOLOv8n, it landed almost entirely in the cheaply encrypted background tier rather than clipping the tumor region. This also shows an advantage of tiered design; since tiers are encrypted independently, the damage is confined to one tier and does not propagate into the others. Among the four attacks, the entropy following the attack remains close to the clean cipher value of about 7.9 bits, except for the JPEG scenario, as shown in
Figure 9. In this case, the entropy drops to around 7.78 bits, which is due to the quantization that JPEG applies rather than to any weakness specific to this cipher.
From the above simulation-based experiments, YOLOv8n is observed to be the best-performing detector. It achieves the highest recall, mAP50, and mAP50-95 as well as the fewest false positives among all six variants. It also achieves the best F1 and accuracy with the lowest inference and energy cost per image. This makes it an energy-efficient and generally good outcome for a design motivated by the perspective of green computing. Notably, the fixed-point selection is a manual empirically verified choice instead of an optimized one; an optimized set of parameters could be found through bio-inspired optimization techniques using an explicit function (e.g., maximizing keystream entropy or minimizing adjacent pixel correlation) [
15]. Integrating such a bio-inspired search to select
per deployment or even per image represents a natural extension that could strengthen DNA-AdCrypt.