Project-MONAI / Project-MONAI/MONAILabel

Use standard terminology to define content of a segment

Open
#724 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
891
Forks
269
Avg merge
15h 41m
Merged PRs (30d)
1

Description

Specifying meaning of segment by label values or names is very limited and fragile. It is practically impossible to use consistent label values when the same data sets are used for multiple projects, usage of label names are too error-prone (due to spelling mistakes or differences in spelling), and meaning of labels names are often not well defined.

I would recommend identifying segments using a universally applicable standard terminology.

Since DICOM has to be supported anyway and DICOM terminology specification is so generic yet fairly minimal, it could be a good choice in MONAILabel (and in general in MONAI).

A short summary of how DICOM specifies a segment:

You need to specify a category and a type at a minimum. For example a tumor is defined as Morphologically Altered Structure/Mass. Or, liver is defined as Tissue/Liver. You can have a few more optional values, the complete list is this:

Name Required Examples
category Y Tissue
type Y Mass, Liver
type modifier N Left,Right
anatomic region N Kidney, Liver
anatomic region modifier N Left, Right

These values are not just stored as user-defined strings, because then you would need to define the exact meaning of that name, translations to different languages, etc., which would be a lot of work. Instead, existing standard terminologies (collection of terms with well-defined meaning) can be leveraged, such as SNOMED CT for clinical terms, or TA2 terminologia anatomica for anatomical terms. So the idea is to just use these existing terms by specifying the name of the terminology and the code value according to that terminology. The end result is that you store each value as 3 strings:

  • coding scheme designator: defines the terminology, for example SCT (SNOMED CT)
  • code value: code value in the chosen terminology, for example 4147007
  • code meaning: this is optional, for convenience only, a displayable human-readable string that can be displayed, for example Mass

Slicer already uses this approach, user can choose from standard terms by a few clicks, and the chosen term is saved in to the segmentation file.

https://github.com/Slicer/Slicer/releases/download/docs-resources/terminology_selector_advanced.png

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating how MONAILabel currently defines and stores segment labels, then compare that flow with the proposed DICOM category, type, and terminology codes. Done would require an agreed design for standard terminology support and a defined migration or compatibility plan.

Written by the indexing model from the issue text.

Assessment

Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.