← All writing

NeuroLens · 3 min read

What a doctor's visit taught me about AI in medicine

I went to a doctor as a patient. We ended up talking about AI, and he said medicine has to get ready for it. NeuroLens started there.

NeuroLens started in a doctor's office. I was there as a patient, and when he asked what I do, the conversation turned to AI. He told me it's coming to medicine fast, and that doctors like him want to understand it and use it well, not be caught off guard by it. Before I left, he suggested a place to start: brain MRI scans, where reading images takes time and a second opinion is valuable.

I walked out thinking less about my own visit and more about his question: what would an AI tool look like that a careful doctor would actually trust?

Accuracy isn't enough

I set myself three rules. The model has to be honest about its accuracy. It has to show where it looked, not just give an answer. And it has to explain the result in plain language a patient could follow.

The first rule was harder than it sounds. The public dataset I trained on has duplicate images, some in both the training and test sets, which quietly inflates test scores. I found them with image hashing and removed them before training, picked the model on validation data before opening the test set. The result is 99.4% accuracy that holds on images the model has never seen.

For the second rule, every result comes with a Grad-CAM heatmap showing which part of the scan drove the decision. For the third, a report is written from the structured numbers only. The language model never sees the image, so it can't invent findings.

In medicine, being able to explain an answer matters as much as getting it right.
The AI's 3D tumor outline on a public BraTS 2021 scan
The AI's 3D tumor outline on a public BraTS 2021 scan

From a label to a volume

A label on a 2D slice is a good start, but it isn't how doctors work. They look at the whole brain, in 3D, across several MRI sequences, and they care about how big a tumor is and where it sits. So the second version works on full 3D scans.

A doctor uploads the four standard sequences (FLAIR, T1, T1ce and T2). Before anything is saved, patient names, IDs and dates are stripped out, and the case only gets a code. A segmentation model then outlines the tumor in 3D, each part is measured in cubic centimetres, and a classifier suggests the type and shows where it looked. In under half a minute, the case lands on the doctor's worklist, with the largest tumors first.

Nothing the AI produces is final. Every result is a draft until a doctor reviews and approves it, accounts are created only by the clinic's admin, and patients never see AI output. The doctor can fix the outline with a brush and compare it with the AI's side by side before approving. The model does the measuring; the doctor makes the decision.

The doctor's worklist: AI drafts wait for review
The doctor's worklist: AI drafts wait for review

Where it stands

NeuroLens is a research prototype, trained only on public data such as BraTS 2021, and not a medical device. It's finished and live for doctor accounts, and an 85-second demo video shows the whole review for everyone else. Having sat on the patient's side of the desk, I care about the same thing the doctor did: in medicine, being able to explain an answer matters as much as getting it right.

See how NeuroLens works GitHub ↗
NextK-Glow Secrets · 3 min readRunning a cosmetics business as its engineer and its owner