Skip to main content

Pathology Classification Module

The Classification module assigns detected anomalies to diagnostic categories, prioritizing findings by clinical urgency.


🎯 Purpose

Provide structured diagnostic labels to assist clinicians in triage and treatment planning.


🔍 How It Works

  • Leverages deep learning models trained on large annotated datasets.
  • Supports multi-class and multi-label classification.
  • Outputs probability scores per pathology and severity level.

⚙️ Key Parameters

ParameterTypeDescriptionDefault
thresholdfloatMinimum confidence score to report a pathology0.5
max_labelsintMaximum number of classifications returned per image3
priority_modestringSorting method: severity or confidenceseverity
tip

Adjust threshold to filter out low-confidence labels and reduce noise.


📦 Output Format

The response includes:

  • labels: List of pathology names.
  • scores: Confidence scores (0 to 1) for each label.
  • priority: Clinical urgency level (e.g., low, medium, high).
{
"classifications": [
{
"label": "pneumothorax",
"score": 0.93,
"priority": "high"
},
{
"label": "atelectasis",
"score": 0.65,
"priority": "medium"
}
]
}

🛠️ Usage Example

curl -X POST "https://api.neolens.ai/v1/classification" \
-H "Authorization: Bearer <API_KEY>" \
-F "image=@scan_ct.png" \
-F "threshold=0.7"

⚠️ Limitations

  • May confuse visually similar pathologies.
  • Limited by the quality and representativeness of training data.
  • Priority levels are indicative; final clinical judgment required.