Healios V2 — Multimodal Post-Op Recovery Platform
- Role
- AI & Full-Stack Systems Architect
- Dates
- February 2026
- Stack
- Next.js · TypeScript · Python 3.11 · FastAPI · TensorFlow/Keras · OpenCV

01.Executive Summary
Healios V2 is a full-stack post-surgical wound monitoring intelligence platform that solves the clinical trust deficit in healthcare AI. By coupling deep convolutional classifications with sub-10ms Grad-CAM saliency heatmaps, HSV tissue bed segmentation, and edge blur rejection, surgeons inspect transparent diagnostic rationale rather than black-box scores.
02.Problem & Constraints
Postoperative surgical site infections (SSIs) drive up to 20% of unplanned 30-day hospital readmissions. Remote monitoring apps fail because surgeons reject unexplained probability outputs, blurry patient phone photos waste cloud compute, and generic LLM chatbots hallucinate non-standard medical advice rather than conforming to established ERAS guidelines.
03.System Architecture
Structured as a Next.js 14 TypeScript client communicating with a high-throughput Python 3.11 FastAPI backend. Pre-flight edge inspection on the client Canvas rejects out-of-focus captures in <35ms. On the server, a custom Grad-CAM implementation generates saliency overlays via vectorized NumPy piecewise linear interpolation in 8.09ms, while an embedded hybrid BM25/TF-IDF retriever injects verified ERAS surgical protocols into the diagnostic tool loop.
Healios V2 System Architecture (C4 Model)
End-to-end dataflow from client edge quality filter to explainable AI and clinical tool execution.
Patient Web App
Runs in-browser Canvas Laplacian blur gate (<35ms) before upload
FastAPI Gateway
Validates multipart image payloads and enforces JWT clinician auth
Grad-CAM XAI Engine
Computes gradient heatmaps & piecewise Jet colormap in 8.09ms
Tissue Morphology Analyzer
Segments granulation, slough, and necrotic tissue beds in 2.00ms
ERAS Protocol RAG
Retrieves verified clinical post-op instructions in 0.14ms
Clinical EHR Persistence
Stores patient recovery timeline, vitals history, and audit logs
Inter-Component Protocol Boundaries
04.Engineering Decisions & Tradeoffs
Prioritized pure NumPy array interpolation over standard matplotlib image rendering to eliminate heavy C-extensions and server thread-locks, cutting memory footprint by 120MB+ while driving colormap synthesis under 10ms.
Decision 1: Vectorized NumPy Piecewise Jet Colormap vs Matplotlib
Authored vectorized linear interpolation directly on raw float saliency arrays.
Importing matplotlib.pyplot / cm and saving intermediate PNG buffers.
Required manual implementation of color look-up tables and RGB normalization math.
8.09ms end-to-end saliency generation, 120MB+ RAM saved per container, and zero GUI backend locks.
Decision 2: Edge Canvas Laplacian Blur Check vs Server Rejection
In-browser HTML5 Canvas 3x3 Laplacian convolution kernel before image upload.
Uploading full 8MB phone captures to FastAPI backend for server-side quality validation.
Variations in mobile client browser JS execution speed across low-end mobile devices.
<35ms immediate feedback to patient to retake photo before wasting cloud bandwidth and compute.
Decision 3: Embedded In-Memory Protocol RAG vs External Vector DB
In-memory BM25 + TF-IDF hybrid index for ERAS surgical guidelines.
Remote Pinecone / pgvector cluster requiring external API roundtrips.
Knowledge base size limited to verified surgical recovery handbooks (~50 documents).
0.14ms guideline retrieval latency with zero external database downtime vulnerability.
05.Evaluation & Verified Metrics
Key performance indicators and latency profiles benchmarked under explicit workload and hardware constraints.
Grad-CAM Saliency
End-to-end generation latency (224x224 input)
Measured on: Apple Silicon M-series & Ubuntu x86-64 testbench, Python 3.11, FastAPI, 224x224 RGB image input.
Tissue Morphology
Vectorized HSV bed segmentation (128x128)
Measured on: Local Python 3.11 runtime, 128x128 resolution ROI masks.
Edge Pre-Flight Gate
In-browser Canvas Laplacian blur check
Measured on: Modern desktop and mobile browsers (Chromium V8, WebKit).
Protocol RAG Lookup
In-memory BM25 + TF-IDF query latency
06.Personal Contribution
Led end-to-end architecture. Implemented the vectorized Grad-CAM synthesis pipeline, the client-side Canvas Laplacian blur check, and the FastAPI service layer with ERAS protocol tooling.
07.Limitations & Next Steps
Known limitations:
The classification and saliency weights were trained on open dermatological and postoperative incision datasets; clinical deployment requires multi-center IRB-governed validation.
Next engineering steps:
Extending segmentation architecture to incorporate 3D stereo depth camera feeds on mobile devices for volumetric wound cavity healing measurement.