Case Study — ClaimHawk

ClaimHawk

Engineering an AI-powered dental insurance automation platform.

ClaimHawk automated dental insurance claim submission by combining computer-use models, computer vision, workflow automation, retrieval systems, and deterministic application logic. The platform integrated with existing Windows desktop dental practice software rather than requiring practices to replace their existing systems.

The problem

Dental practices depend on existing desktop software and complex administrative workflows to submit insurance claims. Automating these workflows requires more than an LLM connected to a browser.

The system had to interact with legacy desktop applications, understand changing application screens, identify relevant data, handle structured and unstructured information, execute multi-step workflows, maintain predictable application state, handle failures and exceptions, protect patient information, and operate reliably in customer environments.

Most dental practice management systems are Windows desktop applications with no public API. Any automation had to work through the user interface itself — reading screens, clicking buttons, filling forms, and navigating between windows the same way a human would.

Architecture and implementation

Michael designed and built the complete technology stack. The system was built in stages, each addressing a specific layer of the automation challenge.

Stage 1 — Desktop workflow capture

Built C#/WinForms tooling to interact with the Windows desktop environment, capture workflow execution, and record associated data. This was the foundation for understanding how dental office staff actually worked inside their practice management systems.

Stage 2 — Video processing

Developed Python/OpenCV processing software to segment recorded video into individual screens and meaningful workflow segments. This turned raw desktop recordings into structured training material.

Stage 3 — Annotation platform

Built a React/Next.js/TypeScript annotation application allowing captured screens and associated data to be labeled. The platform also enabled replacement of real protected health information with synthetic or imitation data, so models could be trained without exposing PHI.

Stage 4 — Dataset generation

Built Python tooling to generate structured JSONL training datasets from the annotated workflows, producing clean, machine-readable inputs for model training.

Stage 5 — Model development

Fine-tuned Qwen 2.5 and Qwen 3 mixture-of-experts models with routing. Integrated RAG and vector search to provide relevant contextual information to the models during inference.

Stage 6 — Deterministic workflow execution

Combined model reasoning with finite-state machines, conventional tools, and workflow guardrails. The models handled tasks requiring interpretation and reasoning, while deterministic application logic handled operations that could be explicitly defined and verified. Human reviewers handled edge cases that fell outside the guardrails.

Stage 7 — Customer-specific infrastructure

Designed dedicated customer model hosting and inference environments using Modal. Each customer had dedicated models and hosting, keeping data isolated per customer.

A key architectural decision: moving work out of expensive models

Initially, a significant amount of system intelligence was implemented inside computer-use models. Training and evaluating these models for every customer was expensive.

Michael redesigned the architecture by moving as much predictable work as possible out of the models and into deterministic software components. Examples included:

  • OpenCV image-processing pipelines.
  • Lightweight purpose-trained classifiers.
  • Explicit workflow state machines.
  • Conventional application logic.
  • Guardrails around model-driven operations.

A three-GPU RTX 4090 homelab was used to train lightweight classifier models.

The system combined custom OCR and computer vision with deterministic workflows and human review paths.

Business outcomes

5

Practices delivered to production

90%

Automated-claim success rate

500–1,000

Claims handled per week

Employment continued from Tylt to ClaimHawk through a same-day transition when Tylt was rolled into ClaimHawk in January 2024.

Technology

Frontend

  • React
  • Next.js
  • TypeScript

Desktop integration

  • C#
  • WinForms
  • Windows application automation

Computer vision & ML

  • Python
  • OpenCV
  • PyTorch
  • CUDA
  • Qwen 2.5 / Qwen 3
  • Mixture-of-experts

Data & retrieval

  • JSONL
  • PostgreSQL
  • Vector databases
  • RAG

Infrastructure

  • Modal
  • AWS

Models were trained on synthetic/imitation data to protect PHI. No real patient health information was used for model training.