Srihith Rao Eravelli

Healthcare AI · B.Tech CSE · open to internships

Srihith Rao Eravelli

I test whether medical AI is looking at the patient, or at the care around the patient.

Six projects across chest X-ray, colonoscopy, ECG and ICU data. Each one gets a strong headline score, and then I check what the model is really relying on and whether it holds up at another hospital.

X-ray model, home vs. new hospital
0.991 → 0.682 AUC
Sepsis model fed only when labs were ordered
0.783 AUROC, vs. 0.785 for physiology alone
Pneumonia specificity with the image border greyed out
0.93 → 0.11–0.36 in all 5 seeds

01 · Projects

Six projects, one question

Every number below comes from a saved results file in the project's repo. Intervals are 95% bootstrap CIs unless marked otherwise.

L1 Chest X-ray · classification

ShortcutCheck

A 0.991-AUC child pneumonia detector, stress-tested to find out what it is actually relying on.

0.991 test ROC-AUC, mean of 5 seeds (SD 0.002)
main model 0.988, 95% CI 0.980–0.996 · n = 624

What I foundSome Grad-CAM maps land on ECG electrode stickers, and greying the image border drops specificity from 0.93 to 0.11–0.36 in every seed. My write-up calls it fragility and a possible shortcut, not a proven one.

  • PyTorch
  • ResNet18
  • Grad-CAM
  • Occlusion
  • Bootstrap CIs
  • Gradio
Left: test AUC across five seeds and four ablations. Right: specificity falls from about 0.93 to 0.11–0.36 in every seed when the image border is greyed out.
L2 Colonoscopy · segmentation

PolypShift

A U-Net polyp segmenter that scores 0.89 Dice at home, then gets tested unchanged on images it never saw.

0.894 Dice on held-out Kvasir-SEG, 95% CI 0.862–0.920
falls to 0.649 (0.598–0.699) on ETIS-Larib

What I foundDice dropped on all three outside datasets (0.649, 0.754, 0.806), and small polyps drive much of the ETIS drop. Two attempted fixes, stronger augmentation and colour transfer, gave no clear gain.

  • PyTorch
  • U-Net
  • ResNet34 encoder
  • Albumentations
  • ONNX
  • Gradio
Dice on the home test set and on four outside sets, and Dice by polyp size.
L3 Chest X-ray · safety audit

SecondSite

A pneumonia model is frozen, moved to a second hospital, and every reason to keep trusting it gets tested.

0.991 → 0.682 ROC-AUC, internal vs. external
external 95% CI 0.635–0.728 · n = 624 → 484

What I foundMissed pneumonia rose from 6 of 390 to 65 of 242, and calibration error from 0.046 to 0.267. The model's uncertainty barely flagged its own mistakes (error-detection AUROC 0.561), and two pre-registered lung-focused fixes were inconclusive.

  • PyTorch
  • Deep ensemble
  • MC dropout
  • OOD detection
  • Pre-registration
  • FastAPI
Same model, same threshold, new hospital: internal versus external performance.
L4 ECG · wearables

Twelve to One

How much of a hospital ECG survives when 12 leads shrink to the single lead a smartwatch records?

0.930 → 0.839 macro AUROC, 12 leads vs. Lead I only (PTB-XL, n = 2158)
12-lead 95% CI 0.923–0.936, matching the published benchmark (0.930)

What I foundAccuracy steps down with each lead removed (3 leads 0.918, 2 leads 0.898, Lead I 0.839), and location-dependent diagnoses suffer most: inferior MI falls from 0.940 to 0.756. A hospital model simply handed a watch recording collapses to 0.571, and on ECGs from another country (Georgia, USA) the 12-lead model scores 0.852.

  • PyTorch
  • 1D ResNet
  • PTB-XL
  • Lead ablation
  • Temperature scaling
  • Gradio
Which diagnoses survive the move from a 12-lead ECG to a smartwatch's Lead I.
L5 ICU · sepsis early warning

Worried Doctors

Does a sepsis early-warning model detect sepsis, or detect that the doctors are already worried?

0.838 AUROC, 6 h ahead, 95% CI 0.817–0.859
frozen at a second hospital: 0.772 (0.760–0.786)

What I foundA model that sees only when things were measured, with no lab or vital values at all, matches a physiology-only model (0.783 vs 0.785). That signal also breaks worst at the new hospital, and simulated routine labs with no new information raised false alerts by 12–16%.

  • LightGBM
  • PyTorch GRU
  • SHAP
  • Isotonic calibration
  • 40,336 ICU stays
  • Streamlit
Four model variants compared at both hospitals: is the model predicting sepsis, or predicting worried doctors?
L6 ECG · self-supervised learning

Before the Labels

Cardiologist labels are expensive. If an ECG model first learns from 70,244 unlabelled ECGs, how many labels does it save?

0.819 → 0.846 macro AUROC with only 1% of labels (171 ECGs), scratch vs. pretrained (PTB-XL, n = 2158)
gain +0.027, 95% CI +0.022 to +0.033, mean of 3 seeds

What I foundSimCLR pretraining on ECGs from Germany and China helps at every label budget, most when labels are scarce, and slightly more at an unseen hospital (Georgia: 0.788 vs 0.764 at 1%). For a smartwatch's Lead I, a frozen pretrained encoder plus logistic regression beats a full network trained from scratch on the same 171 ECGs (0.798 vs 0.767). With all labels the gain shrinks to +0.004, and I report that too.

  • PyTorch
  • SimCLR
  • Self-supervised learning
  • Label efficiency
  • Linear probe
  • Bootstrap CIs
Macro AUROC against number of labelled ECGs: the pretrained model beats training from scratch at every label budget, most at 1%.

02 · Recurring theme

Shortcuts I found

The same pattern kept showing up: a model scores well by picking up traces of the care process, and then it loses that score as soon as the care process changes.

L1 · L3 · chest X-ray

The ECG-sticker shortcut

Sicker children are more likely to wear monitoring leads, and some pneumonia heatmaps light up the electrode stickers. Greying the border of the image cut specificity to 0.11–0.36 in all 5 seeds (L1) and from 0.940 to 0.120 in the audit (L3).

Status: a plausible shortcut plus proven fragility. No electrode labels exist, so the link itself is unproven.

L2 · L3 · L5 · three modalities

The hospital-shift drop

  • Polyp Dice0.894 → 0.649
  • X-ray AUC0.991 → 0.682
  • Sepsis AUROC0.838 → 0.772

Every model was frozen before the outside test: no retraining, thresholds fixed on home validation data.

L5 · ICU

Worried doctors

In ICU data a lab value exists only because a clinician ordered it. Measurement timing alone predicted sepsis as well as physiology (0.783 vs 0.785), lost the most AUROC at the new hospital (−0.071 vs −0.034), and removing it made the full model slightly better away from home.

The model is partly a mirror of the care team, and early warning exists for the patients nobody is worried about yet.

03 · How I work

Methods I use

External validation

The model is frozen and then tested at a second source: other colonoscopy datasets, NIH X-rays, a second ICU hospital.

Bootstrap CIs

95% intervals on every headline number, patient-level where patients repeat, plus paired bootstrap for model comparisons.

Calibration

ECE and reliability curves, with temperature or isotonic recalibration fitted on validation data only.

Pre-registration

Fixes and decision rules are written down before the models are trained, and reported as inconclusive when they are.

Shortcut tests

Region masking, occlusion, Grad-CAM, Integrated Gradients, SHAP, and feature-set ablations that remove a suspected cue.

Seeds & ablations

Five seeds for the X-ray models and three for ECG, with one change at a time, so a gain gets compared to seed-to-seed noise.

Leak-proof splits

Patient-wise and duplicate-aware splits, with unit tests that fail if a patient or a future value leaks.

Beyond accuracy

Subgroup checks, uncertainty-based referral, alarm burden and lead time, model cards, and a decision log.

04 · Toolkit

Skills

Languages
Python, Bash
Deep learning
PyTorch, torchvision, segmentation-models-pytorch, CNNs, U-Nets, 1D ResNets, GRUs
Classical ML
scikit-learn, LightGBM, SHAP
Data
pandas, NumPy, SciPy, OpenCV, Albumentations, wfdb, matplotlib
Medical data
Chest X-ray (MedMNIST, NIH), colonoscopy (Kvasir-SEG), 12-lead ECG (PTB-XL), ICU time series (PhysioNet 2019)
Shipping
Gradio, Streamlit, FastAPI, ONNX, Docker, Hugging Face Spaces, pytest, Jupyter

05 · About

About me

I'm a final-year B.Tech Computer Science student at [University], and I'm looking for internships in healthcare AI.

I like the part of a project that comes after the good score: asking what the model learned, where it breaks, and what it would take to trust it with patients. [One or two sentences about you: what got you into medical AI, what you want to work on next.]