Implementation plan · advisor discussion

Sinus CT AI:
Find the Region.
Predict the Label.

Locate the target, sample multiple positions, and combine CT features to predict AEA presence/absence and Keros type.

Clinical UnderstandingImplementation Plan Draft
01 · Imaging fundamentals

Prepare the CT scans

Check each scan, standardize it, and find the target region.

01. Load the scan

Load each DICOM series as a 3D CT volume.

02. Check the scan

Check orientation, spacing, slice thickness, and coverage. Create coronal, axial, and sagittal views.

03. Standardize the input

Align orientation, spacing, and intensity settings. Preserve thin bone details.

04. Select the target region

Use anatomical landmarks to select relevant slices and crops.

Three orthogonal CT views

SagittalAxialCoronal
Tri-planar = three views of the same target. Check that the selected location contains the anatomy of interest.
02 · Clinical foundation

Clinical & CT Understanding

Understand the anatomy before choosing the model input.

01 / CT IMAGING

Understanding of Sinus CT Imaging

DATA / 3D ARRAY

CT as Voxels

A CT volume is a 3D array. Each voxel is a small tissue volume with an intensity value, typically in HU.

V ∈ ℝD × H × W

D = slices; H / W = pixels along the other two axes.

200 × 512 × 512 ≈ 52 million voxels

Array-axis order depends on the loading library and orientation convention.

INTENSITY / HU

Air, Soft Tissue, and Bone

Hounsfield Units (HU) measure X-ray attenuation and help distinguish tissues.

Air-filled cavity
≈ −1000 HU
Soft tissue (e.g., muscle)
≈ +40 to +80 HU
Dense bone
≈ +400 to +3000 HU

Approximate ranges, not fixed tissue boundaries.

GEOMETRY / MILLIMETERS

Voxel Spacing Matters

Spacing gives the distance between neighboring voxel centers along each axis.

Example spacing: (0.5, 0.5, 1.0) mm

Along the 1.0 mm axis, 5 voxel intervals = 5 mm.

Keros needs millimeters, not pixel counts. Match spacing to array axes and check orientation before measuring or combining scans.
FILES / DATA + METADATA

DICOM → NIfTI

DICOM (.dcm): clinical images plus orientation, position, pixel spacing, slice/reconstruction details, and HU conversion parameters.

NIfTI (.nii / .nii.gz): a convenient 3D volume with spatial metadata for machine learning.

Preserve physical geometry and verify HU conversion when loading or converting files.

PREPROCESSING / MODEL INPUT

Prepare the Volume

Orient

Align anatomical axes.

Resample

Use consistent spacing; preserve geometry.

Crop ROI

Keep target anatomy; reduce background.

HU window

Emphasize relevant tissue, such as bone.

Normalize

Scale intensities for the CNN.

VIEWS / ONE VOLUME

Three Views of the Same Anatomy

Axial · horizontal

Nasal cavity, ethmoid sinuses, and nearby structures.

Coronal · frontal

Ethmoid roof, cribriform plate, and lateral lamella.

Sagittal · side view

Anterior–posterior relationships.

Let Anatomy Guide the ROI

Keros and AEA targets occupy small regions. Random slices or uniform whole-volume sampling may miss them.

SagittalAxialCoronal
Key takeaway: preserve physical geometry and use anatomy to select the ROI before applying deep learning.
02 / CLINICAL TASKS

Understanding of Clinical Classification Tasks

Target A · Binary classification

Anterior Ethmoidal Artery (AEA)

Clinical background

The AEA’s course relative to the skull base matters in sinus surgery. A suspended course may increase exposure to vascular injury.

Skull-base

Runs close to or along the skull base.

Mesenteric

Suspended or “floating” below the skull base.

Our task · presence / absence

Predict presence (1) or absence (0) using the project’s AEA labels. The two courses above provide anatomical context.

CT view · mainly coronal

Use coronal CT with bone-window settings to locate the AEA canal and assess its relationship to the ethmoid roof. Check adjacent slices and other planes to follow its course.

What the ROI must capture

  • The small artery region and surrounding skull-base anatomy.
  • Enough context to assess its course.
  • Left and right anatomy reviewed separately.
Key takeaway: capture both the artery’s location and its relationship to the skull base.
Target B · Three-class classification

Keros Classification

Clinical background

Keros describes olfactory fossa depth using lateral lamella height. This thin bone connects the cribriform plate to the ethmoid roof. Type III has the deepest fossa and greater risk of skull-base injury during sinus surgery.

Our task · classify L and R separately

Lateral lamella height
Keros typeHeight
Type I1–3 mm
Type II4–7 mm
Type III8–16 mm
  • Use the coronal view and the full measurement anatomy.
  • Left and right sides may have different types.
Key takeaway: Keros is defined by a measurable distance. Compare direct CNN classification with landmark-based height measurement.
03 / TECHNICAL CHALLENGES

From Clinical Understanding to Technical Challenges

CHALLENGE 01

Small Anatomical Targets

AEA and the lateral lamella occupy tiny regions in a full CT.

Implication: use anatomical localization to reduce irrelevant input.

CHALLENGE 02

Localization Accuracy

Coarse segmentation may not locate the exact target.

Implication: test fine localization with physician annotations and transfer learning.

CHALLENGE 03

Preserving Spatial Information

One 2D slice may not describe a small 3D structure.

Implication: investigate three views, adjacent slices, and local 3D features.

CHALLENGE 04

Critical Slice Coverage

A few sample positions may still miss decisive anatomy.

Implication: test sampling density and aggregation. More samples may improve coverage but also add noise.

CHALLENGE 05

Limited Annotated Data

~33 patient CTs have clinical labels; detailed anatomical annotations may be missing.

Implication: prioritize pretrained features, lightweight classifiers, and patient-level cross-validation.

03 · End-to-end design

From CT to prediction

Locate → sample → extract features → combine → classify.

01Full 3D CTCheck scan quality, orientation, and spacing.
02TotalSegmentatorSegment nearby anatomy.
03Coarse Anatomical ROICrop a broad region containing the target.
04Fine LocalizationPhysician annotations + transfer learning.
05Fine 3D ROIA smaller, target-specific crop.
06Dense Spatial SamplingSelect multiple candidate positions inside the fine ROI.
07Tri-planar / Multi-slice Feature ExtractionExtract aligned views at each position with a shared pretrained CNN.
08Feature AggregationMean / Top-K pooling / Attention MIL.
09ClassificationAEA: presence / absence. Keros L and R: Type I / II / III.
Key step to validate: TotalSegmentator provides a starting region. Finding the exact AEA or Keros target still needs physician labels and testing.
04 · Model strategy

How we will build it

Validate location, then test sampling and feature aggregation.

02–03 / COARSE REGION

Find the broad region

Test TotalSegmentator on a few scans. Crop with a margin in mm and check target coverage.

For Keros, create separate L / R crops.

04–05 / FINE LOCALIZATION

Find the exact target

Use physician annotations to adapt a pretrained model: boxes → detector; points → landmark model; masks → segmenter.

Output: a validated fine 3D ROI.

06–07 / SAMPLING & FEATURES

Sample multiple positions

Densely sample the fine ROI. At each position, extract aligned axial, coronal, and sagittal views, or nearby slice stacks.

Start with a shared, frozen ResNet18. Check coverage of physician-marked critical regions.

08–09 / AGGREGATION & PREDICTION

Combine features, predict labels

Fuse views at each position, then combine positions with Mean or Top-K pooling. Compare with Attention MIL.

Train small classifiers for AEA presence/absence and Keros I/II/III per side.

05 · Clinical targets

Two targets, two prediction heads

Each task uses its own target region and output labels.

Target A · Binary

AEA presence / absence

Binary output: presence (1) or absence (0), using the dataset’s AEA labels.

Coarse ROI→AEA landmark/box→Sample + CNN + pool→Presence / Absence
  • Use a physician-defined AEA region.
  • Confirm how presence and absence are labeled on CT.
  • Report sensitivity, specificity, and balanced accuracy.
Target B · Three classes

Keros classification

Main approach: predict Type I, II, or III separately for L and R. Backup: measure height, then assign the type.

Coarse ROI→Cribriform region→Sample + CNN + pool→Type I / II / III
  • Include the full region needed for Keros measurement.
  • Use the physician-agreed Keros label definitions.
  • Backup: landmarks → height (mm) → Keros type.
Keros has L / R labels: predict Type I / II / III for each side. Keep both sides and all slices of one patient in the same data split.
06 · Experiments & decision criteria

Start with a simple model

Check target location first, then compare classifiers.

Does the crop include the target?

Compare predicted regions with physician annotations.

Coverage / recallHow often the crop contains the full target.
Box IoUOverlap with physician boxes, if available.
Landmark errorDistance from physician points in mm, if available.

Choose a model to match the labels

MedSAM: test whether physician prompts give useful regions.

Boxes / points: detector or landmark model.
Masks: nnU-Net or a MONAI segmentation model.

Check localization against physician labels before training the classifier.

Compare models step by step

B0: Coronal view + frozen ResNet18 + linear classifier.

B1: One tri-planar sample + shared ResNet18.

B2: Dense sampling + Mean / Top-K / Attention MIL. Compare with B1 to test coverage gains.

Evaluate by patient

Use patient-level cross-validation. Keep each patient’s slices and sides together. Learn preprocessing settings and tune models only on training folds.

MetricsBoth tasks: balanced accuracy, macro-F1, confusion matrix, and uncertainty intervals. AEA: also sensitivity and specificity.
ControlsCompare physician crops with model crops.
Limits~33 patients: a pilot study.

Backup: measure Keros height

Find physician-defined landmarks in the coronal view. Use CT spacing and orientation to calculate height.

Steps: target crop → landmarks → height (mm) → Keros type.

When to switch?

Try this if direct classification is unreliable or the physician prefers measurements.

Extra metricsHeight error (mm), landmark error, and Keros type agreement.
DependencyRequires physician-marked points and reference heights.
07 · Concerns & experiments

Technical Concerns & Proposed Experiments

CONCERN 01

Coarse Segmentation Reliability

Concern: Can TotalSegmentator find the regions needed for Keros and AEA?

Validation: Test several CTs. Visually check whether the generated ROIs fully contain the targets.

CONCERN 02

Fine Localization Accuracy

Concern: Can limited physician labels locate very small structures within the coarse ROI?

Validation: Compare predicted boxes with physician ground truth: localization error (mm), IoU, and target coverage.

CONCERN 03

Tri-planar CNN Effectiveness

Concern: Do three views capture enough fine anatomical detail?

Alternative: Test multi-slice 2.5D CNNs, lightweight 3D CNNs, or feature-level multi-view fusion.

Validation: Compare coronal-only, tri-planar, and models with more spatial context.

CONCERN 04

Dense Sampling & Critical Slice Coverage

Concern: One tri-planar sample may miss the anatomy that determines the label.

Approach: Densely sample candidate positions in the fine ROI. Extract aligned axial, coronal, and sagittal views at each position with a shared pretrained CNN.

Aggregation: Combine position features with Mean Pooling, Top-K Pooling, or Attention-based Multiple Instance Learning (MIL).

Validation: Check coverage of physician-marked critical regions. Compare aggregation methods and test whether irrelevant samples affect predictions.

CONCERN 05

Keros Classification Strategy

Concern: Direct CNN classification may be less reliable than measuring lateral lamella height, which defines Keros type.

Alternative: If classification performs poorly, detect landmarks and measure height in mm, then assign Keros type for L and R.