Skip to content
Back to skills

Opensrh Classification Eval

ASecurity

Evaluates deep learning models on patch-based and patient-level multiclass classification of brain tumor histology images. It probes the ability of CNNs and vision transformers to distinguish between different tumor types and normal tissue using intraoperative stimulated Raman histology data. Use when the user wants to benchmark on OpenSRH, or asks about evaluating this task. Reports top-1 accuracy.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
researchpythongitperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill opensrh-classification-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Opensrh Classification Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Opensrh Classification Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-opensrh-classification-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-opensrh-classification-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: opensrh-classification-eval
description: Evaluates deep learning models on patch-based and patient-level multiclass classification of brain tumor histology images. It probes the ability of CNNs and vision transformers to distinguish between different tumor types and normal tissue using intraoperative stimulated Raman histology data. Use when the user wants to benchmark on OpenSRH, or asks about evaluating this task. Reports top-1 accuracy.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2206.08439
  bibtex_key: [REDACTED]
  confidence: high
---

# opensrh-classification-eval

> OpenSRH: optimizing brain tumor surgery using intraoperative stimulated Raman histology — Jiang et al. (2022) (arXiv:2206.08439, 2022)

## What this evaluates

Evaluates deep learning models on patch-based and patient-level multiclass classification of brain tumor histology images. It probes the ability of CNNs and vision transformers to distinguish between different tumor types and normal tissue using intraoperative stimulated Raman histology data.

## Datasets

- **OpenSRH** — total 1300; splits: train (-1), val (-1), test (-1)

## Metrics

- `top-1 accuracy` **(primary)** — range: percent
  - Percentage of correctly classified patches or patients out of the total number of instances.
- `mean class accuracy (MCA)` — range: percent
  - Average of per-class accuracy scores, computed as the mean of (true positives / total actual positives) across all classes.
- `mean average precision (MAP)` — range: [0, 1]
  - Mean of the average precision scores across all classes, measuring the area under the precision-recall curve for each class.

## Input / output format

**Input**: 300×300 pixel images (ResNet50) or 224×224 pixel images (ViT-S) representing histology patches, with optional horizontal/vertical flipping augmentations.

**Output**: Patch-level logits processed through softmax, then aggregated via average pooling to produce slide- or patient-level class probabilities.

## Scoring recipe

```python
# Aggregate patch-level softmax probabilities to patient/slide level
patient_probs = np.mean(patch_softmax_probs, axis=0)
patient_pred = np.argmax(patient_probs)
# Compute metrics
accuracy = np.mean(patient_pred == patient_labels)
mca = np.mean([np.mean(patient_pred[patient_labels==c] == c) for c in classes])
map_score = average_precision_score(patient_labels, patient_probs, average='macro')
```

## Common pitfalls

- Confusing patch-level metrics with patient-level metrics, as aggregation via average pooling significantly changes performance scores.
- Assuming Vision Transformers outperform CNNs without large-scale pretraining, as ViT-S underperforms ResNet50 on this dataset due to low inductive bias.
- Overlooking the known diagnostic difficulty between HGG and LGG, which causes consistent false negatives across both models and pathologists.

## Evidence (verbatim from paper)

> Model performance evaluation metrics include top-1 accuracy, mean class accuracy (MCA), and mean average precision (MAP). We aggregated patch-level logits after softmax using average pooling to compute slide and patient-level prediction. We preferred using average pooling over hard patch voting to retain the full patch-level model predictions during slide- or patient-level inference.

## Citation

```bibtex
@misc{jiang2022opensrh,
  title={OpenSRH: optimizing brain tumor surgery using intraoperative stimulated Raman histology},
  author={Jiang et al. (2022)},
  year={2022},
  note={arXiv:2206.08439}
}
```

- arXiv: 2206.08439

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.