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

推荐订阅源

H
Help Net Security
腾讯CDC
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
V
V2EX
Blog — PlanetScale
Blog — PlanetScale
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
量子位
F
Fortinet All Blogs
G
Google Developers Blog
T
The Blog of Author Tim Ferriss
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
J
Java Code Geeks
S
SegmentFault 最新的问题
D
Docker
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
M
MIT News - Artificial intelligence
博客园 - 【当耐特】

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
CureNet AI: Decentralized Health Intelligence for India, ...
Labish Bardi · 2026-05-25 · via DEV Community

This is a submission for the Gemma 4 Challenge: Build with Gemma 4

What I Built

CureNet AI is an ABDM-native, offline-first Health Intelligence platform built to unify fragmented medical records securely under the Ayushman Bharat Digital Mission (ABDM) and FHIR R4 standards.

In rural India, reliable internet is a luxury. Prescriptions are handwritten. Lab reports fade on thermal paper. Patient histories exist as loose sheets in plastic folders. The consequences are measurable:

  • ₹26,037 crore in health insurance claims denied in a single year — ₹15,100 crore disallowed and ₹10,937 crore repudiated — largely due to incomplete documentation (IRDAI Annual Report, FY24)
  • 32% of patients transferred between facilities with incompatible records undergo duplicate diagnostic testing within 12 hours (NIH peer-reviewed study)
  • 47% of India's total health expenditure is paid out-of-pocket by patients — among the highest globally — inflated by repeated tests and fragmented care
  • ~2 minute consultations — overloaded OPDs force doctors to see 100+ patients in hours, leaving no time to reconstruct history from paper records (BMJ Open)
  • Less than 15% of Indian hospitals have fully digitized medical record systems

CureNet AI solves this by deploying Gemma 4 edge intelligence directly into the local clinic ecosystem — no internet required.

Core Features Shipped

Intelligent Local Ingestion: Camera-based document scanning powered by Gemma 4 31B Dense vision. Prescriptions and lab reports are analyzed directly by Gemma 4's multimodal capabilities — extracting medications, dosages, lab values, vitals, and diagnosis without any cloud dependency.

Structured Medical Parsing: A custom FHIR R4 bundle builder generates ABDM-compliant Document Bundles containing Patient, Practitioner, MedicationRequest, Observation, and DiagnosticReport resources — with SNOMED CT medication codes and LOINC lab test codes. Doctors can instantly verify whether a test was already performed — directly eliminating redundant diagnostics.

Privacy-First Architecture: AES-256-GCM encrypted local database with keys stored in the device's hardware keystore. Custom ABDM crypto module for RSA-OAEP, ECDH X25519, and AES-GCM encrypted data exchange. Full DPDP Act 2023 compliance — when Gemma 4 runs locally, zero patient data leaves the device.

Complete ABDM Integration: Full M1 + M2 + M3 milestone compliance — ABHA creation via Aadhaar and Mobile OTP, care context linking, consent management, and encrypted health data exchange using V3 sandbox APIs.

Offline-First Architecture: Three-tier connectivity probing (Ollama → Backend → Cloud) with automatic fallback. When fully offline, the AI serves responses from locally stored encrypted records. When online, cloud models act purely as fallback.

ABHAy AI Assistant: RAG-augmented health chat running intent classification, web search, clinical atom retrieval, and semantic search all simultaneously — cutting response latency from ~12s to ~4s.

Accessible by Design: High-contrast UI with large tap targets designed for senior citizens and low-literacy users. Full multilingual support across all 22 scheduled languages of India via the Bhashini API, with built-in Text-to-Speech so patients who cannot read can hear their medical information in their own language.

Demo Video

Code

👉 GitHub Repository: https://github.com/labishbardiya/CureNet-AI

How I Used Gemma 4

Medical records demand zero leakages and low latency. Gemma 4 acts as the core, private intelligence engine — running entirely locally via Ollama with no patient data ever leaving the device.

We split reasoning between edge and workstation environments using two models:

Gemma 4 E4B (Effective 4B) — On-Device Edge Intelligence

We run Gemma 4 E4B (gemma4:e4b) via Ollama for low-latency tasks on the local machine.

🤔 Why E4B? With its Per-Layer Embeddings (PLE), E4B packs frontier-level logic into a ~3 GB memory footprint. Its 128K context window handles large clinical data logs while running natively offline.

🤔 How it's used? It acts as our first-tier intent classifier — categorizing every user query into MEDICAL_QUERY, GENERAL_CHAT, or APP_HELP in under 2 seconds. This determines whether the full RAG pipeline activates. It also handles chat title generation and serves as an automatic failover when the 31B model is overloaded — ensuring the experience never breaks.

Gemma 4 31B Dense — Medical Extraction & FHIR R4 Conversion

On the clinic workstation backend, we deploy Gemma 4 31B Dense (gemma4:31b) via Ollama for complex clinical intelligence.

🤔 Why 31B Dense? Medical records cannot tolerate routing gaps or hallucination. The Dense architecture processes every token through all 31 billion parameters with a 256K context window — unlike MoE variants that risk dropping clinical context. When a missed medication has patient safety implications, Dense is the correct choice.

🤔 How it's used? Two critical paths. First, it processes prescription and lab report images directly using multimodal vision via a zero-shot structure prompt — extracting patient info, medications with dosage/frequency/duration/route, lab results with values/units/reference ranges, vitals, diagnosis, and follow-up instructions. Indian patterns like 1+0+1 (morning/afternoon/night) are parsed correctly. Brand names like "Crocin" map to their SNOMED CT active ingredient codes. Second, it powers the ABHAy RAG assistant for medical reasoning with full clinical context from the patient's encrypted local records. All outputs feed into our FHIR R4 builder, generating strict ABDM-compliant bundles with SNOMED CT and LOINC coding.