medical-image-classification-eval
Can Large Language Models Challenge CNNs in Medical Image Analysis? — Ahmed et al. (2025) (arXiv:2505.23503, 2025)
What this evaluates
Evaluates the diagnostic accuracy and computational efficiency of CNNs versus multimodal LLMs on medical imaging tasks. It probes whether vision-language models can match traditional convolutional networks in classifying chest X-rays, MRIs, and CT scans, while also measuring prediction calibration and resource consumption.
Datasets
- Chest X-ray — total ?; splits: test (-1)
- Brain MRI — total ?; splits: test (-1)
- Chest CT — total ?; splits: test (-1)
Metrics
Accuracy (primary) — range: [0, 1]
- Percentage of correctly classified samples out of the total number of samples.
F1-Score — range: [0, 1]
- Harmonic mean of precision and recall, providing a balanced measure of performance.
Confidence Score — range: [0, 1]
- Model's predicted probability or reliability score for each classification, analyzed using calibration curves.
Execution Time — range: seconds
- Wall-clock time required for model inference per sample or batch.
Energy Consumption — range: watt-hours
- Total electrical energy used during inference, calculated from execution time and power usage.
Input / output format
Input: Raw medical images (chest X-rays, brain MRIs, or chest CT scans) provided to either a CNN or a multimodal LLM (GPT-4o, Llama3.2-vision). In filtered experiments, images are pre-processed with an enhanced data filtering step to extract contextual details before LLM inference.
Output: Class prediction label, model confidence score, and system-level metrics (execution time in seconds, energy consumption in watt-hours, CO2 emissions).
Scoring recipe
def compute_metrics(predictions, ground_truth):
correct = sum(1 for p, g in zip(predictions, ground_truth) if p == g)
accuracy = correct / len(ground_truth)
tp = sum(1 for p, g in zip(predictions, ground_truth) if p == g and g == 1)
fp = sum(1 for p, g in zip(predictions, ground_truth) if p == 1 and g == 0)
fn = sum(1 for p, g in zip(predictions, ground_truth) if p == 0 and g == 1)
precision = tp / (tp + fp) if (tp + fp) > 0 else 0
recall = tp / (tp + fn) if (tp + fn) > 0 else 0
f1 = 2 * (precision * recall) / (precision + recall) if (precision + recall) > 0 else 0
return {'accuracy': accuracy, 'f1': f1, 'precision': precision, 'recall': recall}
Common pitfalls
- LLMs exhibit severe miscalibration, reporting high confidence scores (e.g., >0.90) despite low accuracy (<0.65).
- Direct image classification by LLMs significantly underperforms CNNs unless augmented with domain-specific filtering or feature extraction layers.
- Computational efficiency metrics (time, energy, CO2) are highly hardware-dependent and not standardized across runs, making cross-study comparisons difficult.
Evidence (verbatim from paper)
Accuracy is measured by the percentage of correctly classified samples, providing an overall performance indicator. Precision assessed the proportion of true positives among predicted positives, minimizing false positives, while Recall measured the proportion of true positives among actual positives, emphasizing the model’s ability to identify relevant cases. The F1-Score, as the harmonic mean of precision and recall, offered a balanced measure of performance. Additionally, the Confidence Score analyzed prediction reliability using calibration curves. Finally, resource consumption, such as inference time and energy usage, was evaluated comprehensively to assess the models’ efficiency and practicality in real-world healthcare applications.
Citation
@misc{ahmed2025canlarge,
title={Can Large Language Models Challenge CNNs in Medical Image Analysis?},
author={Ahmed et al. (2025)},
year={2025},
note={arXiv:2505.23503}
}
1---2name: medical-image-classification-eval3description: Evaluates the diagnostic accuracy and computational efficiency of CNNs versus multimodal LLMs on medical imaging tasks. It probes whether vision-language models can match traditional convolutional networks in classifying chest X-rays, MRIs, and CT scans, while also measuring prediction calibration and resource consumption. Use when the user wants to benchmark on Chest X-ray, Brain MRI, Chest CT, or asks about evaluating this task. Reports Accuracy.4---56# medical-image-classification-eval78> Can Large Language Models Challenge CNNs in Medical Image Analysis? — Ahmed et al. (2025) (arXiv:2505.23503, 2025)910## What this evaluates1112Evaluates the diagnostic accuracy and computational efficiency of CNNs versus multimodal LLMs on medical imaging tasks. It probes whether vision-language models can match traditional convolutional networks in classifying chest X-rays, MRIs, and CT scans, while also measuring prediction calibration and resource consumption.1314## Datasets1516- **Chest X-ray** — total ?; splits: test (-1)17- **Brain MRI** — total ?; splits: test (-1)18- **Chest CT** — total ?; splits: test (-1)1920## Metrics2122- `Accuracy` **(primary)** — range: [0, 1]23 - Percentage of correctly classified samples out of the total number of samples.24- `F1-Score` — range: [0, 1]25 - Harmonic mean of precision and recall, providing a balanced measure of performance.26- `Confidence Score` — range: [0, 1]27 - Model's predicted probability or reliability score for each classification, analyzed using calibration curves.28- `Execution Time` — range: seconds29 - Wall-clock time required for model inference per sample or batch.30- `Energy Consumption` — range: watt-hours31 - Total electrical energy used during inference, calculated from execution time and power usage.3233## Input / output format3435**Input**: Raw medical images (chest X-rays, brain MRIs, or chest CT scans) provided to either a CNN or a multimodal LLM (GPT-4o, Llama3.2-vision). In filtered experiments, images are pre-processed with an enhanced data filtering step to extract contextual details before LLM inference.3637**Output**: Class prediction label, model confidence score, and system-level metrics (execution time in seconds, energy consumption in watt-hours, CO2 emissions).3839## Scoring recipe4041```python42def compute_metrics(predictions, ground_truth):43 correct = sum(1 for p, g in zip(predictions, ground_truth) if p == g)44 accuracy = correct / len(ground_truth)45 46 tp = sum(1 for p, g in zip(predictions, ground_truth) if p == g and g == 1)47 fp = sum(1 for p, g in zip(predictions, ground_truth) if p == 1 and g == 0)48 fn = sum(1 for p, g in zip(predictions, ground_truth) if p == 0 and g == 1)49 50 precision = tp / (tp + fp) if (tp + fp) > 0 else 051 recall = tp / (tp + fn) if (tp + fn) > 0 else 052 f1 = 2 * (precision * recall) / (precision + recall) if (precision + recall) > 0 else 053 54 return {'accuracy': accuracy, 'f1': f1, 'precision': precision, 'recall': recall}55```5657## Common pitfalls5859- LLMs exhibit severe miscalibration, reporting high confidence scores (e.g., >0.90) despite low accuracy (<0.65).60- Direct image classification by LLMs significantly underperforms CNNs unless augmented with domain-specific filtering or feature extraction layers.61- Computational efficiency metrics (time, energy, CO2) are highly hardware-dependent and not standardized across runs, making cross-study comparisons difficult.6263## Evidence (verbatim from paper)6465> Accuracy is measured by the percentage of correctly classified samples, providing an overall performance indicator. Precision assessed the proportion of true positives among predicted positives, minimizing false positives, while Recall measured the proportion of true positives among actual positives, emphasizing the model’s ability to identify relevant cases. The F1-Score, as the harmonic mean of precision and recall, offered a balanced measure of performance. Additionally, the Confidence Score analyzed prediction reliability using calibration curves. Finally, resource consumption, such as inference time and energy usage, was evaluated comprehensively to assess the models’ efficiency and practicality in real-world healthcare applications.6667## Citation6869```bibtex70@misc{ahmed2025canlarge,71 title={Can Large Language Models Challenge CNNs in Medical Image Analysis?},72 author={Ahmed et al. (2025)},73 year={2025},74 note={arXiv:2505.23503}75}76```7778- arXiv: 2505.23503