Tricog Health

I've always been curious about solving healthcare challenges, through Kaggle competitions or personal projects. Joining Tricog Health, one of the leading HealthTech AI companies in India, made all the sense. It specializes in all things cardiac, and I was hired to work on the Echocardiography product given my expertise in computer vision.

InstaEcho

InstaEcho is Tricog's offering for diagnosing echocardiography: a platform where our in-house echo technicians and doctors diagnose echo cases from clinics and hospital chains across India and the Philippines.

An echo is an ultrasound of the heart. The operator at the clinic examines the patient, captures the different views of the heart in multiple images and videos, and uploads them to our platform. Our in-house clinicians then perform the measurements and analysis on our proprietary software.

The InstaEcho viewer.

A case takes about 15 to 25 minutes to diagnose, and complex ones take longer. In that time the clinician identifies the right views of the heart, performs linear, area, and volume measurements, skims all the media for subjective markers, and writes a detailed case summary of the observations and conclusions.

It is a lengthy procedure, and my job is to assist the clinicians by automating many of these steps. The final say still lies with them: they can accept my model's prediction, edit it, or override it completely.

01

Echo view classification

An echo study is a stack of short ultrasound clips, each taken from a different probe position, or view. Every measurement downstream depends on knowing which view a clip shows.

Views come in a hierarchy: the acoustic window the probe sits in, then the view within it, then for some views the level of the cut. I built a hierarchical view classification model and co-authored a research paper on its design and performance.

What makes it hard is that siblings in the tree look nearly the same. A small tilt of the probe turns one view into the next, and a single frame often shows just one structure of difference. On top of that, the classes are imbalanced, since some views are captured far more often than others, and the labels are noisy because of inter-observer variability, where the labels of two experts may differ, and intra-observer variability, where the same expert can label a borderline clip differently on another day. My model classifies views with 91% accuracy.

Apical 4-chamber echo frameA4C
Apical 5-chamber echo frameA5C
Apical 2-chamber echo frameA2C
Apical 3-chamber echo frameA3C
02

Doppler reference line

The Doppler baseline, or reference line, is what every velocity in a Doppler trace is read against, so its placement is critical for an accurate diagnosis. The DICOM of an echo scan carries it twice: drawn on the image, and as numbers, Reference Pixel X0 and Reference Pixel Y0.

The trouble starts when that numeric value is missing or wrong. Missing, the study can't be measured at all; wrong, every velocity shifts and the diagnosis can be wrong too.

A Doppler trace with its reference line marked
A Doppler trace: velocities above and below the reference line.

So the challenge was to find Reference Pixel Y0 (the y coordinate where the reference line is drawn) from the image alone. I developed a DL model that does that, with 90% accuracy.

03

DICOM SR

A software project I worked on, where the problem was the measurements: they arrived from thousands of centers and hundreds of echo machine variants, each reporting them its own way, and were entered by hand.

I built DICOM SR infrastructure that standardizes cardiac measurement reporting for Tricog and encodes it automatically in under a second.

04

De-identification

Before any data can be used to train models, it has to be sanitized of PII (personally identifiable information). In a medical system PII hides in a lot of places: the media (images, videos, DICOMs), metadata JSONs, and DB tables.

I owned and built a HIPAA-compliant de-identification pipeline that anonymizes all of them, deployed on AWS Lambda and Kubernetes.

05

Ejection fraction

Ejection fraction is the share of blood the left ventricle pushes out with each beat, and a core number in every echo report.

The standard way to measure it is Simpson's biplane method. In both the apical 4-chamber and 2-chamber views, the clinician picks the end-diastole (ED) and end-systole (ES) frames, traces the LV cavity, and marks the apex and mitral annulus to set the long axis. The cavity is sliced into 20 discs whose volumes add up to the LV volume, and EF = (EDV - ESV) / EDV. Measured by hand, it takes about 5 minutes per study.

I architected and trained the models for it: a multi-task model for cardiac cavity segmentation and landmark keypoint detection, and a separate model for diastole and systole regression: a 2D CNN encoder followed by a temporal BERT, which returns a -1 to +1 signal the same length as the input clip, so its peaks and troughs mark ED and ES.

It brought the assessment from 5 minutes to under 3 seconds.

06

Serving at scale

One echo study has around 10 images and 20 videos, and every frame goes through several models before a report can go out. I designed and deployed the cardiac ultrasound pipeline on Triton Inference Server. A study runs end to end in under 14 seconds, scaling to about 50K cases a day on a single GPU.

07

Cohort retrieval

Cohort retrieval means getting similar cases: a semantic search for conditions and symptoms across the entire corpus of cases, which lives in thousands of unstructured diagnostic reports.

It has its own uses. The business team wants to pull data, and we want to quickly get slices of a large corpus to run EDA or evaluate a model on that particular slice. But each case summary is unstructured, so BM25 and fuzzy matching won't suffice.

I researched and trained a DPR (dense passage retrieval) model to retrieve medical conditions, anatomical structures, and severities from those reports, achieving over a 50% improvement over the BM25 baseline.

Based on this I wrote the paper Cohort Retrieval using Dense Passage Retrieval.

08

LLM report generation

I fine-tuned an LLM with LoRA, which takes the measurements and observations as input and writes the summary. I designed domain-specific evaluations to measure factual consistency and faithfulness rather than relying solely on conventional text-generation metrics. The system achieved performance comparable to human-generated reports while saving approximately 3–4 minutes per case.

The drawback of this approach: since the model only looks at the measurements and observations entered by the clinician, and not the media, it can only summarize the information it is given. Sometimes clinicians skip an observation or a measurement, and some subjective findings are only ever captured in the summary itself.

09

Multimodal echo models

Lately I've been tinkering with foundation models for echocardiography, since we are sitting on a rich annotated dataset in a niche domain. There are dense signals per frame (the measurements performed on it), per video (choosing the right frames), and per case (the final summary). Training a holistic system is tricky, but it gives you decent image, video, and text encoders: great backbones for fine-tuning tasks and for cross-modal retrieval.

10

An agentic harness for echo

Diagnosing an echo case is complex. It means going through the entire study, looking for subjective markers like regurgitation, performing specific measurements to confirm a condition, sometimes going back to repeat a measurement on the same video or a different one, and finally adding observations and a case summary. I built a domain-specific harness for that, where our in-house models do the measuring, deterministic code does the grading, and a vision-capable LLM looks at the pictures and fixes what the pipeline got wrong.

Why build custom, and not use a general-purpose harness like Claude Code? Claude Code and Pi are coding harnesses, built around how developers work: skim a repo, read and write a file, run the tests and edit. They have been polished to get the most out of tools like grep, read/write and bash. Echo is an entirely different domain. A cardiologist has their own way of going through a study: picking the right views, looping over a video to find the right frame, and using the measurement tools at their disposal.

At the center of the harness is a ReAct (reason + act) loop: reason, call tools, observe, repeat. It has tools to look at frames, re-ask our models, read guidelines and change a value's status. It resolves a conflicting diagnosis by gathering more evidence and reasoning through it, again and again until the conflict is settled.

Over the years at Tricog I have built in-house models for specific tasks, but even deployed, they need a clinician's domain expertise to know where to apply them: on which videos and on which frames. For this we use a frontier vision-language model, OpenAI Astra 6. We also give it the deterministic rules already used on our platform, InstaEcho, along with the formulas that compute measurements from coordinates and traces. The deterministic rules keep the agent grounded and let it back its diagnosis with proper citations.

A full study of around 32 recordings takes about 12 minutes and $4. Most of the time is our models, and most of the cost is the agent. The rules, formulas and coverage checks take under a second, which is the point of keeping them out of the LLM.

We are barely scratching the surface here, and there are still a lot of bottlenecks. VLMs still can't take precise measurements, so you need custom models to supply them. Native image understanding is not enough either: the model needs native video understanding to reason well across a clip. And cost grows with every VLM call: the more evidence you reason over, the more it costs.