# AI fitting assistant: Using fitting photos to work out the alterations.

> A vision-model assistant that turns fitting photos into alterations the factory can use directly.

- Builder: Idrees Kamal (https://idreeskamal.com)
- Context: Kavalier · Founder & Operator · 2026
- Status: In use on client orders
- Stack: OpenAI vision, Structured JSON output, TypeScript, Bun, SQLite, Regression tests
- Last updated: 2026-11-11

## Results

- 100%: of benchmarked fittings within one severity step of the expert call (source: Benchmark on historical fittings with known expert calls)
- 0: accepts confused with remakes (source: Same benchmark)
- 165: garments in the regression dataset (source: Fit engine case ledger with golden regression tests)

## The problem

Custom clothing lives or dies on fit. Turning a try-on into the right adjustments is slow and depends on one expert’s eye. A wrong call means remaking the garment.

## What I did

I built the photo-reading assistant and the fit engine behind it. The assistant describes what it sees, using the photos plus the garment stage, measurements, specs, comfort feedback and order history. The engine turns that into recommended changes, and I review them before any order goes out.

## Decisions that mattered

1. Output structured JSON that matches the manufacturer’s adjustment fields, so a diagnosis goes straight into the order with no re-typing.
2. Keep the recommendation engine rule-based. With under 200 fit cases there isn’t enough data to train a model, so it maps measurements, applies balance rules and matches against similar past cases.
3. The vision model only describes what it sees. The engine and I decide what to change.
4. Benchmark it against past fittings with known expert calls before using it on a live order, and keep golden regression tests on the case ledger.
5. No order goes out without my review, and a first order gets at most two posture or balance edits without strong evidence.

## What changed

On past fittings the assistant was within one severity step of the expert’s call 100% of the time and never confused an accept with a remake. It now produces the first-pass diagnosis for client fittings.

## How it was tested

- Measured: Agreement with the expert fitting call
- Data: Historical fittings with known expert calls; 165-garment regression set
- Bar: The expert’s severity call and accept-or-remake decision
- Result: 100% within one severity step; no accept confused with a remake

## Evidence

Benchmark results on past fittings, the case ledger and regression tests. Client photos are private.

More of Idrees Kamal's work: https://idreeskamal.com/ · Contact: ikamal97@gmail.com
