bappa
12:00:00

KidneyAI

Projects/Kidney-Stone-Detection

KidneyAI Tactical Clinical Ingestion Interface

🩺 KidneyAI (NephroScan AI)

Clinical Production Live

A clinical-grade deep learning decision support system for rapid renal calculus detection, explainable AI (Grad-CAM saliency localization), and automated pelvicalyceal hydronephrosis grading from ultrasound and CT scans. Built with a 4-tier diagnostic architecture combining an Out-Of-Distribution (OOD) modality guard, MobileNetV2 inverted residual transfer learning, and real-time inference via an asynchronous FastAPI + Next.js microservice.

Test Accuracy
98.87%
Strict holdout split
Holdout Scans
1,676
Clinical validation
FLOP Reduction
88.8%
MobileNetV2 base
Modality Guard
4-Tier
Physical acoustic filter
Codebase ArchitectureFull-Stack AI/ML
TypeScript 50.4%Python 46.1%Shell 1.3%Dockerfile 0.7%Jupyter Notebook 0.7%

🔬 Key Innovations & Diagnostic Core

Ultrasound Modality Guard (OOD Rejection)

Enforces 4 physical acoustic gates (HSV Saturation, RGB Channel Divergence, Speckle Texture Laplacian variance, and Dynamic Contrast) to reject natural photography or non-medical images before tensor allocation, eliminating dangerous false-positive calculus detections.

MobileNetV2 Deep Feature Extractor

Employs depthwise separable convolutions with inverted residual linear bottlenecks, achieving an 88.8% computational FLOP reduction for lightweight sub-50ms inference on CPU and bedside Point-of-Care Ultrasound (POCUS) deployments.

Explainable AI (Grad-CAM Saliency)

Computes feature-map gradients from the final convolutional layer (out_relu) and overlays an alpha-composited heatmap directly over the scan to visually verify calculus foci and acoustic shadows.

Secondary Pelvicalyceal Hydronephrosis Grading

Translates calculus prediction confidence and spatial footprint into an automated 4-tier clinical obstruction risk model (Normal, Borderline, Moderate, and Acute Calculus with marked caliceal ballooning).

📊 Holdout Validation & Clinical Benchmarks (1,676 Scans)

Classification ClassPrecisionRecall (Sensitivity)F1-ScoreSpecificityHoldout Scans
Normal (No Stone)0.9900.9870.9890.990838
Calculus (Stone Present)0.9880.9900.9890.987838
Macro Weighted Average0.9900.9890.9890.9891,676

Technical Stack

TSTypeScript 50.4%
🐍Python 46.1%
⚡FastAPI 0.110+
🧠TensorFlow 2.15+
🔬Grad-CAM (XAI)
▲Next.js 14 App Router
🐳Docker Multi-Stage
🎨Tailwind CSS