DEV Community

Shashi Preetham Rampeesa
Shashi Preetham Rampeesa

Posted on

Pancreax-AI

What We Learned Building an AI That
Has to Explain Itself
Team 52, School of Computer Science and Artificial Intelligence, SR University, Warangal
A few months ago our team picked a capstone topic that sounded simple: use AI to help
spot pancreatic cancer on CT scans. It turned out to be one of the most humbling
projects we have done, and we think the lessons apply well beyond medicine.
Why this cancer?
Pancreatic cancer rarely gives early warning signs. There is no routine screening for it,
so many patients are diagnosed late, when surgery is no longer an option. On a CT scan
an early tumour can be a small, slightly darker patch hidden in a crowded part of the
abdomen. Even good radiologists can miss it, which is why researchers keep trying to
build AI that can help.
The black box problem
When we read the papers, we noticed that most systems end with a single word:
malignant or benign. If a doctor cannot see why the model said that, there is no way to
check it, and a wrong answer in medicine has real consequences. So we set ourselves
one rule. Every step of our system has to be something a person can look at.
How PancreaX-AI works
Instead of one big network, we split the job into five stages and used only public data:
CT scans from the Medical Segmentation Decathlon and gene data from TCGA. First, a
3D U-Net outlines the pancreas and the tumour. A ResNet50 then looks only at a small
crop around the predicted tumour instead of the whole abdomen. Alongside it, a
Random Forest reads twenty simple measurements of the same region, such as its size,
brightness and texture, and acts as a second opinion. Separately, a LightGBM model
looks at gene mutations and copy-number changes and uses SHAP to show which
genes pushed the risk up or down. Finally, a fusion step combines the three
probabilities, shows how much each one contributed to the score, and flags cases where the image model and the radiomic model disagree.
When the numbers came in
This is where the humbling began. Our segmentation model reached a Dice score of
0.55 for the pancreas, which is decent, but only 0.21 for the tumour. When we split the
results by tumour size, the picture got worse in an important way. For tumours smaller
than 2 cm, the average tumour Dice was about 0.03. The model was weakest exactly
where early detection matters most.
Our radiomic Random Forest scored an AUC of 0.995, which looks fantastic. But that
model was separating tumour regions from normal pancreas, which is far easier than
telling a benign lesion from a malignant one, so we do not claim it as clinical accuracy.
The genomic model reached an AUC of only 0.57 on 37 patients, which is close to
chance. Its explanations were still sensible, though. KRAS, CDKN2A, TP53 and
MTAP came out on top, the same genes doctors already link to this cancer.
There were other uncomfortable findings. The imaging and gene datasets belong to
different patients, so the genomic part of our fusion could only be a neutral placeholder
and not real patient evidence. We also found that some of our downstream data came
from scans the segmentation model had already trained on, which can make results look
better than they would on new patients. Because our final score is a sum of named
terms, we could see these problems. A black box would have hidden them.
What we would tell other students
Check for data leakage early. Report the weak numbers next to the strong ones. Design
your system so that someone else can audit it. A 0.21 that you understand is worth more
than a 0.99 you cannot defend.
What comes next
We want to train the segmenter for longer, try larger datasets such as PanTS, add
healthy-pancreas scans as controls, use imaging and gene data from the same patients,
and test on an outside hospital. To be clear, PancreaX-AI is a research prototype and
not a medical device.
Thanks to our guide, Dr. Johnson Kolluri, and to SR University School of CS&AI for
their support. If you work on medical AI, we would love to hear how you handle
explainability and honest evaluation.

Top comments (0)