Skip to content
AI & VisionLive Demo

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
Healios V2 — Multimodal Post-Op Recovery Platform

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.

Interactive architecture laboratory

Healios V2 System Architecture (C4 Model)

End-to-end dataflow from client edge quality filter to explainable AI and clinical tool execution.

C4 Level 2/3 Component Model
clientNext.js 14 / TypeScript

Patient Web App

Runs in-browser Canvas Laplacian blur gate (<35ms) before upload

apiPython 3.11 / Uvicorn

FastAPI Gateway

Validates multipart image payloads and enforces JWT clinician auth

workerTensorFlow / NumPy

Grad-CAM XAI Engine

Computes gradient heatmaps & piecewise Jet colormap in 8.09ms

workerOpenCV / NumPy

Tissue Morphology Analyzer

Segments granulation, slough, and necrotic tissue beds in 2.00ms

storageIn-Memory BM25+TF-IDF

ERAS Protocol RAG

Retrieves verified clinical post-op instructions in 0.14ms

storageSQLModel / SQLite / Postgres

Clinical EHR Persistence

Stores patient recovery timeline, vitals history, and audit logs

Inter-Component Protocol Boundaries

patient-client→fastapi-gw
HTTPS REST
fastapi-gw→xai-engine
In-Process
fastapi-gw→hsv-segmenter
In-Process
fastapi-gw→protocol-rag
In-Memory (<1ms)
fastapi-gw→ehr-db
SQL

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

Option chosen

Authored vectorized linear interpolation directly on raw float saliency arrays.

Alternative rejected

Importing matplotlib.pyplot / cm and saving intermediate PNG buffers.

Cost accepted

Required manual implementation of color look-up tables and RGB normalization math.

Measured impact

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

Option chosen

In-browser HTML5 Canvas 3x3 Laplacian convolution kernel before image upload.

Alternative rejected

Uploading full 8MB phone captures to FastAPI backend for server-side quality validation.

Cost accepted

Variations in mobile client browser JS execution speed across low-end mobile devices.

Measured impact

<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

Option chosen

In-memory BM25 + TF-IDF hybrid index for ERAS surgical guidelines.

Alternative rejected

Remote Pinecone / pgvector cluster requiring external API roundtrips.

Cost accepted

Knowledge base size limited to verified surgical recovery handbooks (~50 documents).

Measured impact

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

8.09 ms

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

2.00 ms

Vectorized HSV bed segmentation (128x128)

Measured on: Local Python 3.11 runtime, 128x128 resolution ROI masks.

Edge Pre-Flight Gate

< 35 ms

In-browser Canvas Laplacian blur check

Measured on: Modern desktop and mobile browsers (Chromium V8, WebKit).

Protocol RAG Lookup

0.14 ms

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.