惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tenable Blog
Engineering at Meta
Engineering at Meta
The Register - Security
The Register - Security
N
Netflix TechBlog - Medium
D
Docker
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
DataBreaches.Net
IT之家
IT之家
V
V2EX
人人都是产品经理
人人都是产品经理
F
Fortinet All Blogs
J
Java Code Geeks
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
博客园 - Franky
Hugging Face - Blog
Hugging Face - Blog
有赞技术团队
有赞技术团队
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
F
Full Disclosure
P
Proofpoint News Feed
B
Blog RSS Feed
T
Tor Project blog
T
The Blog of Author Tim Ferriss
B
Blog
Webroot Blog
Webroot Blog
腾讯CDC
T
Troy Hunt's Blog
T
Tailwind CSS Blog
H
Heimdal Security Blog
AWS News Blog
AWS News Blog
G
Google Developers Blog
Spread Privacy
Spread Privacy
NISL@THU
NISL@THU
A
About on SuperTechFans
SecWiki News
SecWiki News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
I
InfoQ
M
MIT News - Artificial intelligence
大猫的无限游戏
大猫的无限游戏
美团技术团队
L
LangChain Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Building AI Systems for Healthcare: My Journey into Applied Machine Learning and Software Engineering
enochlabs · 2026-05-08 · via DEV Community

🧠 I Stopped Thinking in Machine Learning Models and Started Thinking in Systems (Here’s Why)

And it completely changed how I build AI for healthcare.

Most machine learning projects look impressive in isolation.

You train a model, get good metrics, maybe even build a notebook demo—and it feels like progress.

But when you try to turn that into something real, especially in healthcare, something breaks.

That’s what pushed me to rethink everything.

Instead of focusing on models, I started focusing on systems.

🏥 The problem I started exploring

In healthcare, a lot of valuable insights already exist in routine lab data—like blood counts and biochemical markers.

The challenge is not data availability.

It’s interpretation at scale.

So I explored a question:

What would it take to build an AI system that can process routine clinical data and generate meaningful early risk signals across multiple conditions?

Not for one disease.

But for multiple, in a unified system.

Here's what I discovered along the way.

⚙️ Where things started to change

At first, I approached it like a typical ML problem.

Train models. Optimize accuracy. Compare results.

But very quickly, I hit a limitation:

Good models don’t automatically become usable systems.

That realization shifted the entire direction of the project.

I stopped asking "How accurate is my model?" and started asking "What happens when this model meets reality?"

🧠 From models → system design

Instead of a single predictive pipeline, I moved toward a modular multi-system architecture:

  • Separate inference pipelines per disease category
  • A centralized feature engineering layer
  • Parallel execution of multiple models
  • Structured output aggregation
  • Data validation based on clinical constraints
  • A lightweight interface layer for interaction

The focus was no longer “what is the best model?”

It became:

“How do these components work together as a system?”

This shift unlocked everything.

🔬 What surprised me most

The hardest problems were not in machine learning.

They were in system design.

1. Data is more complex than models

Clinical data is noisy, inconsistent, and context-dependent. A model trained on clean CSV files has no idea what to do with a missing ferritin value or a hemoglobin of 2.0 (which would mean the patient is dead).

2. Integration is the real bottleneck

Connecting pipelines, models, and outputs is harder than training anything. Getting five disease models to talk to each other without crashing took longer than building all five models combined.

3. Prediction alone is not enough

Outputs need structure, validation, and interpretability to be useful. A probability without context is just a number. A number without an action is noise.

4. Real systems behave differently than notebooks

Latency, consistency, and workflow integration matter more than accuracy scores. A 98% accurate model that takes 10 seconds to run is worse than a 90% accurate model that returns instantly.

⚙️ Technical direction I used

To explore this, I worked with:

  • Python-based ML pipelines
  • Ensemble learning methods (tree-based models, boosting techniques)
  • Modular feature engineering design
  • Parallel processing for inference efficiency
  • Structured output formatting for interpretability
  • Lightweight UI layer for interaction testing

But the key focus was never the tools.

It was how they fit together.

🧩 The main shift in thinking

This project changed how I understand machine learning:

ML is not a modeling problem. It’s a system design problem wrapped in data complexity.

A model might give you a prediction.

But a system determines whether that prediction can actually be used.

Think about that for a moment. You can have the best model in the world. If clinicians don't trust it, if it crashes on real data, if it takes too long to run—it's useless.

The system is what bridges the gap between mathematical optimization and clinical reality.

🧠 Questions I’m now focused on

This work led me to deeper questions:

  • How do we design ML systems that behave reliably in real environments?
  • How do we structure outputs so they are interpretable, not just accurate?
  • How do multiple models interact inside a single system?
  • What does safety mean when predictions influence decisions?

These questions matter more to me now than improving model metrics.

Because metrics measure models. But outcomes measure systems.

🚧 Where I’m going next

Right now, I’m focusing on:

  • Improving system-level architecture for ML applications
  • Strengthening feature engineering pipelines
  • Making outputs more explainable and structured
  • Exploring real-world deployment patterns for AI systems
  • Moving from “experiments” to “usable systems”

The experiments are fun. The usable systems change lives.

🔭 Final thought

Machine learning becomes interesting when it leaves the notebook.

Not because models get better—but because systems get real.

And building those systems forces you to think differently:

Not in predictions, but in architecture, flow, and usability.

When you stop optimizing for Kaggle leaderboards and start optimizing for a nurse at 3 AM with a crashing laptop and a patient who needs answers—everything changes.

🤝 If you’re building in this space

If you’re working on:

  • ML systems
  • backend engineering for AI
  • healthcare applications
  • or applied data science

I’d be interested in how you approach system design vs model design.

What breaks first when you try to deploy? What's harder than you expected? What made you rethink everything?

Let's compare war stories.

📦 Simplified Code Examples

The system I built processes clinical data through multiple disease pipelines. Here’s what the architecture looks like in practice.

Core Inference Engine

The inference engine orchestrates all disease pipelines in parallel:

# simplified inference
def run_all_pipelines(master_dict: dict) -> dict:
    """Run all disease pipelines and return unified results."""
    results = {}

    # Load once, use many times
    models = load_all_models()

    # Parallel execution
    with ThreadPoolExecutor(max_workers=5) as executor:
        futures = {
            "anemia": executor.submit(run_anemia, master_dict, models["anemia"]),
            "diabetes": executor.submit(run_diabetes, master_dict, models["diabetes"]),
            "ckd": executor.submit(run_ckd, master_dict, models["ckd"]),
        }
        for name, future in futures.items():
            results[name] = future.result()

    # Comorbidity analysis across all results
    results["comorbidity"] = analyze_comorbidities(results, master_dict)

    return results

Enter fullscreen mode Exit fullscreen mode

This parallel pattern cut inference time from 2 seconds to under 300 milliseconds.


Modular Pipeline Structure

Each disease follows the same pattern:

# anemia prediction simplified structure
def run_prediction(master_dict: dict, models: dict) -> dict:
    # 1. Feature engineering
    features = build_feature_dict(master_dict)

    # 2. Stage 1: Risk detection (binary)
    X1 = prepare_features(features, models["stage1"]["features"])
    prob1 = models["stage1"]["model"].predict_proba(X1)[0, 1]

    if prob1 < 0.5:
        return {"disease": "anemia", "prob": prob1, "status": "no_risk"}

    # 3. Stage 2: Morphological subtype
    X2 = prepare_features(features, models["stage2"]["features"])
    subtype = models["stage2"]["model"].predict(X2)[0]

    # 4. Stage 3: Specific diagnosis
    X3 = prepare_features(features, models[f"stage3_{subtype}"]["features"])
    diagnosis = models[f"stage3_{subtype}"]["model"].predict(X3)[0]

    return {
        "disease": "anemia",
        "prob": prob1,
        "subtype": subtype,
        "diagnosis": diagnosis,
    }

Enter fullscreen mode Exit fullscreen mode

The multi-stage approach means we only run expensive models when necessary. Low risk? Stop early. High risk? Dig deeper.

Comorbidity Detection

The system automatically detects dangerous disease combinations:

# simplified comorbidity engine
DANGEROUS_COMBOS = [
    {
        "pair": ("diabetes", "ckd"),
        "thresholds": {"diabetes": 0.55, "ckd": 0.45},
        "name": "Diabetic Nephropathy Cascade",
        "action": "Start ACEi/ARB, check urine ACR, consider SGLT-2 inhibitor"
    },
    {
        "pair": ("cardiovascular", "diabetes"),
        "thresholds": {"cardiovascular": 0.50, "diabetes": 0.55},
        "name": "Cardiometabolic Syndrome",
        "action": "Prioritize Metformin + Statin, target BP <130/80"
    },
]

def detect_dangerous_combos(results: dict) -> list:
    """Check for dangerous disease combinations."""
    fired = []
    for combo in DANGEROUS_COMBOS:
        # Check if all diseases in the combo exceed thresholds
        if all(results.get(d, {}).get("prob", 0) >= combo["thresholds"][d] 
               for d in combo["pair"]):
            fired.append(combo)
    return fired

Enter fullscreen mode Exit fullscreen mode

This turned out to be the clinicians' favorite feature. They don't want to connect dots themselves. They want the system to tell them what combinations are dangerous.

Natural Language Explanation

Raw probabilities become plain-language explanations for clinicians:

# simplified natural language explainer
def build_nl_report(disease: str, result: dict, master_dict: dict) -> str:
    """Convert AI predictions to plain language."""
    prob = result["prob"]
    risk_level = "high" if prob > 0.7 else "moderate" if prob > 0.4 else "low"

    if disease == "diabetes":
        hba1c = master_dict.get("hba1c", 5.5)
        glucose = master_dict.get("blood_glucose_level", 100)

        return (
            f"This patient has a {risk_level} risk of diabetes ({prob:.0%}). "
            f"Key indicators: HbA1c {hba1c}%, fasting glucose {glucose} mg/dL."
        )

    if disease == "anemia":
        hgb = master_dict.get("hgb", 12.0)
        mcv = master_dict.get("mcv", 85)
        diagnosis = result.get("diagnosis", "unknown")

        return (
            f"Anaemia detected ({hgb} g/dL, MCV {mcv} fL). "
            f"Diagnosis: {diagnosis}. Recommend confirmatory testing."
        )

    return f"Risk assessment complete. {risk_level.capitalize()} risk ({prob:.0%})."

Enter fullscreen mode Exit fullscreen mode

No SHAP values. No confusion matrices. Just plain language that any nurse can understand and act on.

Severity Score & Triage

A composite score drives clinical workflow:

# simplified severity scorer
def compute_severity_score(results: dict, patient: dict) -> dict:
    """Compute INZIRA Severity Score (0–100) and triage tier."""
    weights = {
        "anemia": 0.20,
        "cardiovascular": 0.25,
        "ckd": 0.20,
        "diabetes": 0.20,
        "liver": 0.15,
    }

    # Weighted sum of probabilities
    base_score = sum(
        results.get(d, {}).get("prob", 0) * w
        for d, w in weights.items()
    ) * 100

    # Penalty for dangerous combinations
    combo_bonus = min(30, len(detect_dangerous_combos(results)) * 6)

    # Age modifier
    age = patient.get("age", 40)
    age_mod = 5 if age >= 60 else 0

    iss = min(100, base_score + combo_bonus + age_mod)

    # Determine triage tier
    if iss < 25:
        tier = "GREEN", "Routine follow-up within 4–6 weeks"
    elif iss < 45:
        tier = "YELLOW", "Priority review within 2 weeks"
    elif iss < 65:
        tier = "ORANGE", "Same-day specialist review"
    else:
        tier = "RED", "Immediate escalation, consider admission"

    return {"score": round(iss, 1), "tier": tier[0], "action": tier[1]}

Enter fullscreen mode Exit fullscreen mode

This single number helps clinicians prioritize. In a busy district hospital with one doctor and 50 patients, knowing who to see first saves lives.

Rendering Results

The UI adapts to risk level and disease:

# simplified results rendering
def render_results(results: dict):
    """Display results with appropriate styling."""
    for disease, result in results.items():
        if disease == "comorbidity":
            continue

        prob = result.get("prob", 0)

        # Color based on risk
        if prob > 0.7:
            color, icon, level = "#E8526A", "🔴", "High Risk"
        elif prob > 0.4:
            color, icon, level = "#F5A623", "🟡", "Moderate Risk"
        else:
            color, icon, level = "#3DBE8A", "🟢", "Low Risk"

        # Risk card
        st.markdown(f"""
        <div style="background:{color}10; border-left:4px solid {color}; 
                    border-radius:8px; padding:1rem; margin-bottom:1rem">
            <span style="font-size:1.2rem">{icon}</span>
            <span style="font-weight:700; color:{color}">{disease.upper()}</span>
            <span style="float:right; font-family:monospace; font-weight:700; color:{color}">
                {prob:.0%}
            </span>
            <div style="margin-top:0.5rem; color:#DDE6F5">{level}</div>
        </div>
        """, unsafe_allow_html=True)

        # Show natural language explanation
        st.markdown(build_nl_report(disease, result, get_master_dict()))

Enter fullscreen mode Exit fullscreen mode

The visual design isn't cosmetic. It's functional. Red means act now. Green means monitor. No interpretation needed.

The code above is simplified, but the patterns are real. This system is under experts review in Rwanda right now, and feedback is constructive.

What would you build with a system like this?