Skip to content
Back to skills

Tongue Segmentation Eval

ASecurity

Evaluates zero-shot and cross-dataset generalization of a tongue segmentation model adapted from SAM. It probes the model's ability to segment tongue regions in medical images without task-specific fine-tuning on the target datasets. Use when the user wants to benchmark on TongueSet1, BioHit (TongueSet2), Webset (TongueSet3), or asks about evaluating this task. Reports mIoU.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
researchpythonperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill tongue-segmentation-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tongue Segmentation Eval?

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

Security grade badge for Tongue Segmentation Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-tongue-segmentation-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-tongue-segmentation-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: tongue-segmentation-eval
description: Evaluates zero-shot and cross-dataset generalization of a tongue segmentation model adapted from SAM. It probes the model's ability to segment tongue regions in medical images without task-specific fine-tuning on the target datasets. Use when the user wants to benchmark on TongueSet1, BioHit (TongueSet2), Webset (TongueSet3), or asks about evaluating this task. Reports mIoU.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2308.06444
  bibtex_key: [REDACTED]
  confidence: high
---

# tongue-segmentation-eval

> TongueSAM: An Universal Tongue Segmentation Model Based on SAM with Zero-Shot — Cao et al. (2023) (arXiv:2308.06444, 2023)

## What this evaluates

Evaluates zero-shot and cross-dataset generalization of a tongue segmentation model adapted from SAM. It probes the model's ability to segment tongue regions in medical images without task-specific fine-tuning on the target datasets.

## Datasets

- **TongueSet1** — total 3192; splits: train (-1), test (-1)
- **BioHit (TongueSet2)** — total 300; splits: test (300)
- **Webset (TongueSet3)** — total 1000; splits: test (1000)

## Metrics

- `mIoU` **(primary)** — range: [0, 1]
  - Mean Intersection over Union across all pixels or classes. IoU = TP / (TP + FP + FN). Averaged over the dataset.
- `mPA` — range: [0, 1]
  - Mean Pixel Accuracy across classes. PA = TP / (TP + FP). Averaged over the dataset.
- `Acc` — range: [0, 1]
  - Overall pixel accuracy. Acc = (TP + TN) / Total pixels.

## Input / output format

**Input**: RGB tongue images of varying resolutions (e.g., 400×400, 768×576, or arbitrary sizes).

**Output**: Binary segmentation mask indicating the tongue region.

## Scoring recipe

```python
def compute_metrics(pred_mask, gt_mask):
    intersection = np.logical_and(pred_mask, gt_mask).sum()
    union = np.logical_or(pred_mask, gt_mask).sum()
    mIoU = intersection / union if union > 0 else 0.0
    mPA = (intersection / np.sum(gt_mask)) if np.sum(gt_mask) > 0 else 0.0
    Acc = np.mean(pred_mask == gt_mask)
    return mIoU, mPA, Acc
```

## Common pitfalls

- Zero-shot evaluation trains exclusively on TongueSet1 and tests on TongueSet2/3 without fine-tuning, which may overstate generalization if domain shift is large.
- The evaluation pipeline relies on an object detector (YOLOX) to generate bounding box prompts; performance is thus conflated with detection quality rather than pure segmentation capability.
- Image sizes vary significantly across datasets and are not explicitly normalized before metric computation, which can bias pixel-based metrics like mPA and Acc.

## Evidence (verbatim from paper)

> In this study, we utilized three evaluation metrics to assess the performance of the model: mean Intersection over Union (mIoU), mean Pixel Accuracy (mPA), and Accuracy (Acc). TongueSet1 is used as the training set, while TongueSet2 and TongueSet3 are used as the test sets.

## Citation

```bibtex
@misc{cao2023tonguesam,
  title={TongueSAM: An Universal Tongue Segmentation Model Based on SAM with Zero-Shot},
  author={Cao et al. (2023)},
  year={2023},
  note={arXiv:2308.06444}
}
```

- arXiv: 2308.06444

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.