Teaching a Model to Read Chest X-Rays
In 2025, a model I helped build got published with Springer: an improved deep-learning approach for detecting and classifying lung diseases from chest X-ray images. Seeing your name on a peer-reviewed paper is a strange, quiet thrill. But the lesson I actually took from the project wasn't about architectures or accuracy scores.
It was this: in medicine, a model that's right but can't be understood is nearly useless.
The seductive trap of accuracy
When you start a medical-imaging project, the obvious goal is the number. Push accuracy up. Beat the baseline. Get the metric high enough to be publishable.
And you can chase that number a long way before you notice the problem. A model can hit an impressive accuracy on your test set and still be quietly worthless in the only setting that matters — a clinic, next to a doctor. Because a radiologist will not, and should not, act on a black box that says "pneumonia, trust me." The first question any clinician asks is the one a bare classifier can't answer: why?
That question reframed the entire project for me. We weren't building a model that's right. We were building a model a human expert could agree with.
Garbage in, confident garbage out
Before any of the clever modeling, there was the unglamorous reality of medical data.
X-ray datasets are messy in ways that quietly sabotage you. Images come at different resolutions, exposures, and contrasts. Some are mislabeled. Some conditions have thousands of examples and others have a handful, so a naive model learns to just predict "common thing" and look accurate while being useless on the rare cases that matter most.
So a huge share of the work was preprocessing and honest handling of imbalance — normalizing images so the model saw anatomy instead of scanner quirks, augmenting data to make the model robust to the variation it would meet in the wild, and being ruthless about validation so the score reflected real generalization, not a lucky split. None of this makes it into the highlight reel. All of it determines whether the highlight reel is true.
Designing for the human on the other side
The part I'm proudest of is that we treated interpretability as a requirement, not a nice-to-have. A computer-aided diagnosis tool exists to support a clinician's judgment — to point and say "look here" — not to overrule it.
A prediction a doctor can see the reasoning behind is something they can fold into their own expertise: confirm it, question it, or overrule it with context the model never had. A prediction with no visible reasoning is something they have to either blindly trust or completely ignore — and they'll rightly choose ignore. The whole value of the tool lives in that difference. Build for the expert's trust, or don't bother building.
What research taught me that projects didn't
I'd built plenty of models before this. Writing one up for peer review was a different discipline entirely, and a humbling one.
- You have to defend every choice. Why this architecture? Why that preprocessing step? In a personal project you can shrug. In a paper, reviewers will ask, and "it worked" is not an answer. It made me articulate reasons for decisions I used to make on instinct.
- Negative results are still results. The things that didn't work, and why, turned out to be as valuable to document as the things that did. That's a habit I've kept.
- Reproducibility is respect. Writing methods so someone else could rebuild your work forces a rigor that "move fast" engineering quietly skips — and it's saved me from myself more than once since.
The thread that connects it all
People sometimes see my path — aerospace control systems, medical-imaging research, production LLM pipelines — as scattered. I see one thread running straight through it: building systems that earn trust in high-stakes settings.
A jet engine has to be trusted not to fail. A diagnostic model has to be trusted by the doctor reading it. An LLM in production has to be trusted not to confidently lie. The domains look unrelated; the core problem is identical. The number on the test set was never the point. The point was whether a human being, with real stakes in front of them, could believe it.
That X-ray paper taught me that lesson in the place where it matters most — and I've been building around it ever since.
Tags: Deep Learning, Medical Imaging, Research, Computer Vision