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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The GitHub Blog
The GitHub Blog
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Vercel News
Vercel News
腾讯CDC
博客园 - 聂微东
The Cloudflare Blog
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
Last Week in AI
Last Week in AI
B
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
OCR Reads, Gemma Reasons: ClaimSetu for Evidence-Backed H...
Virat Choura · 2026-05-24 · via DEV Community

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

What I Built

Claim review is not a chatbot problem. It is an evidence problem.

ClaimSetu was built to answer one question safely: does the submitted hospital claim packet contain enough evidence for a human reviewer to move forward?

ClaimSetu is a local-first, evidence-backed claim-review assistant for health insurance workflows. It reads messy claim packets — scanned PDFs, photos, discharge notes, bills, lab reports, procedure records, and clinical notes — and turns them into a reviewer-ready evidence pack.

It produces:

  • document classification and page triage
  • extracted claim fields with provenance
  • admission, diagnosis, treatment, and discharge timeline checks
  • missing-document and weak-evidence flags
  • package-rule findings
  • a PASS / CONDITIONAL / REVIEW recommendation for human review

In health insurance workflows, a delayed or unclear claim decision is not just an operational issue. It can create back-and-forth between hospitals, payers, and beneficiaries. ClaimSetu focuses on making review faster, more consistent, and more explainable without removing the human decision-maker.

The core principle is simple:

OCR reads. Gemma reasons. Humans decide.

ClaimSetu is not an autonomous adjudicator. If evidence is missing, weak, or contradictory, it does not guess. It escalates the claim to CONDITIONAL or REVIEW with source-backed reasons.

Demo

Video walkthrough: https://www.youtube.com/watch?v=pygwfJl8b5M

The demo shows ClaimSetu reviewing a severe anemia claim packet. The system identifies useful admission evidence, diagnostic evidence, and clinical notes, but flags missing treatment details, post-treatment evidence, and discharge summary evidence.

Instead of forcing an approval, ClaimSetu returns a CONDITIONAL recommendation with reviewer-facing reasons and evidence gaps.

That is the behavior I wanted: not a confident black box, but a cautious co-pilot for human reviewers.

Code

GitHub repository: https://github.com/ai-suraksha/claimsetu

The repository includes:

  • the local claim-review pipeline in claimsAssistant.py
  • a FastAPI demo app in app.py
  • an interactive browser demo in demo/index.html
  • architecture and design assets
  • setup instructions for running Gemma 4 locally through Ollama

The public repository does not redistribute real claim packets, patient identifiers, hospital names, doctor names, or private annotations. Raw claim data is expected to stay local and private.

How I Used Gemma 4

ClaimSetu uses Gemma 4 as the understanding and reasoning layer inside a hybrid evidence pipeline.

ClaimSetu architecture

I intentionally did not use Gemma as a black-box OCR engine. Healthcare claim review needs traceability: source page, extracted text, confidence, and evidence links. So ClaimSetu first uses PaddleOCR and PyTesseract to read documents, then sends the OCR evidence to Gemma 4.

I used a two-model strategy.

Gemma 4 E4B handles the edge layer:

  • cleanup of noisy OCR text
  • page triage
  • document classification fallback
  • structured extraction from messy claim pages

E4B was the right fit because this stage needs to be fast, local, and repeatable across many pages.

Gemma 4 26B MoE handles the reasoning layer:

  • claim-level timeline interpretation
  • package-rule reasoning
  • contradiction detection
  • reviewer-facing explanation
  • PASS / CONDITIONAL / REVIEW recommendation

26B MoE was the right fit because final claim review needs broader context and stronger reasoning, while still supporting local or local-network inference.

The most important design choice was separating model reasoning from safety enforcement. Gemma interprets messy evidence and explains what the reviewer should verify next. Deterministic code enforces date validation, source-text checks, confidence thresholds, missing-document rules, and timeline consistency.

That separation made ClaimSetu more useful, more auditable, and safer for healthcare workflow.

What I Learned

The biggest lesson from building ClaimSetu was that LLMs are most useful in regulated workflows when they are constrained by evidence.

Gemma 4 was strongest when it had a focused job: structure messy OCR, reason over extracted facts, and explain what the reviewer should verify next.

The system became safer when I stopped asking the model to “decide the claim” and instead designed it to support a human reviewer.

OCR reads. Gemma reasons. Humans decide.