Skip to content

NDB-UFES Data Organizer

This repository rebuilds the dataset behind the P-NDB-UFES oral histopathology patches. It ties every patch to the parent picture it was cut from, keeps related pictures and patients together, and publishes folds that do not leak between patients.

What is here

  • Every patch traced to its image. Each of the 3,763 P-NDB-UFES patches is tied to the parent picture it was cut from, found by exact pixel matching. Most of those pictures are NDB-UFES images; the others come from internal datasets that are described in About the Data.
  • Cases and case groups. Pictures and patients that share evidence are tied into case groups, and a case group is never split across folds.
  • Six folds. Balanced at once on the patch label, the NDB-UFES diagnosis of the picture, gender, age group and three morphology clusters. See New Folds for the numbers.
  • Nothing relabeled. Where the patch label and the picture's diagnosis disagree, the disagreement is recorded, not corrected. A disagreement is not necessarily bad: a picture labeled OSCC can also contain dysplasia, so a with-dysplasia patch in it is expected. The problem is the other direction, a picture labeled with dysplasia that has an OSCC patch.

Download

The tables are small CSV files in this repository:

Every column is explained in the data dictionary. The images themselves are not published here: the patches are in P-NDB-UFES and the origin images in NDB-UFES (Mendeley Data). Some parent images come from an internal dataset, SAB, which is private; see About the Data.

Using the folds

  • Use fold_assignments.csv instead of a random patch-level split. Patches of one case group are always in one fold, so patches of the same patient never sit on both sides of an evaluation.
  • Each fold is held out in turn. There is no separate train/test split.
  • Skip the three patches with an empty fold: they are exact duplicates of another patch, which stays in the folds.
  • The label to predict is patch_diagnosis. ndb_diagnosis belongs to the whole picture and is context, not a target.

Where to look

AI-Assisted Documentation Note

This wiki was prepared with the help of AI tools, following instructions written by a human. Pages are reviewed and validated by a human before release.