Research · November 2026
Introducing VSQRD: An Accurate and Interpretable AI system for Pathology
Download the PDFAbstract
Background. Quantitative analysis of whole-slide images is standard in preclinical liver research, but conventional tools need a trained analyst to build, tune or train each analysis, and the decisions built into the analysis are hard to review. We introduce VSQRD, an autonomous AI system for whole-slide image analysis. Methods. A user defines the analysis once, as a method written in plain language. VSQRD, an agent built on a large language model with a harness and curated tools, then analyses every slide without further input. For each slide it returns quantitative results, masks that can be viewed over the slide, the assumptions it made and its full reasoning. We applied VSQRD to three public H&E whole-slide images of mouse liver (chow, GAN diet and choline-deficient high-fat diet) that had been analysed with HALO in a published study, and ran QuPath with the same droplet definitions. The method was locked and run three times on each slide to test repeatability. Results. VSQRD measured 32.6% steatosis on both diet-fed livers, against 31.7% and 33.6% in the published analysis and 25.7% and 29.6% with QuPath. VSQRD's map of fat across each liver agreed with the published analysis with a Lin's concordance of 0.96 on both livers (QuPath 0.68 and 0.86). On 40 random fields per liver, VSQRD detected 89 to 99% of the macrovesicular droplets in the published analysis (QuPath 69 to 78%), and 94% of its own macrovesicular droplets were confirmed by the published analysis. Repeated runs of the locked method gave identical droplet counts on two of the three slides, and on the third the coefficient of variation of the steatosis fraction was 0.008%. The whole-slide measurement took 2 to 12 minutes per slide, and each complete session, including writing and checking the analysis and reporting it, finished within 49 minutes with no user input. No annotation or model training was needed. Conclusions. VSQRD runs a complete whole-slide analysis autonomously from a written method. It agrees closely with an established commercial analysis, more closely than an open-source tool given the same definitions, and it gives the same result each time it is run. Every assumption and every step of its work is open to review.
1Introduction
Hepatic steatosis is assessed on H&E sections in nearly every preclinical study of fatty liver disease. Pathologists grade it semi-quantitatively by eye [1], and image analysis replaces the grade with a continuous measure, most often the fraction of tissue area occupied by lipid droplets [2, 3, 4].
Image analysis platforms such as HALO (Indica Labs), Visiopharm and the open-source QuPath [5] have made this measurement routine, but each analysis still has to be built by a trained analyst. Thresholds and filters are tuned in a graphical interface or written as a script, and deep-learning classifiers are trained on annotated regions. The decisions that determine the result, such as what counts as tissue, the minimum droplet size and how touching droplets are separated, end up in settings, scripts or trained weights that are hard to review. Two laboratories can obtain different numbers from the same slide without either being able to say exactly why.
VSQRD takes a different approach. The user writes the analysis once, as a method in plain language, with example images of what should and should not be counted. An AI agent then carries out the analysis on every slide in the study without further input. It reports the assumptions it made, records its full reasoning, and returns quantitative results together with masks that the user can inspect over the slide. Because the method is a short document, it can be read, reviewed and shared, and the same method gives the same analysis on every slide.
Here we evaluate VSQRD on public whole-slide images of mouse liver that were analysed with HALO in a published study [6]. We measured agreement with the published analysis at the level of the whole slide, of regions and of single droplets, compared VSQRD with QuPath given the same droplet definitions, and tested repeatability by running the locked method several times on each slide.
2Materials and methods
2.1Whole-slide images
Saigal et al. [6] released H&E-stained sections of three mouse livers under the Apache 2.0 licence: a chow-fed mouse (chow 12), a mouse fed the GAN diet (GAN 23) and a mouse fed a choline-deficient high-fat diet (CDAHFD 67). The slides were scanned on a Vectra Polaris at 0.2503 µm per pixel. For GAN 23 and CDAHFD 67 the release includes the published steatosis analysis, made with HALO Vacuole 2.2 (Indica Labs): a table of every lipid droplet with its position, area, diameter and roundness, and masks of the droplets. We used this analysis as the reference.
2.2Droplet definitions
To keep results consistent across tools, every analysis in this study used the droplet definitions of the original study. A microvesicular droplet is 3 to 15 µm in diameter with a roundness of 0.8 or more. A macrovesicular droplet is 15 µm or more in diameter with a roundness of 0.5 or more. Diameter, roundness and lipid were measured in the same way as in the published per-droplet table:
- Lipid is a pixel whose mean of the red, green and blue values is about 208 or more.
- Roundness is a droplet's area divided by the area of a circle as wide as the longer side of its upright bounding box, measured on a grid of 0.5 µm and capped at 1.
- Diameter is the diameter of a circle of the same area, less 0.7 µm.
- Touching droplets are separated before they are measured.
Steatosis is the droplet area as a percentage of each tool's own tissue area.
2.3VSQRD
VSQRD is an agent built on a large language model, with a harness and access to curated image analysis tools. Its workflow is shown in Figure 1. The user writes the analysis as a method in plain language. For this study the method described tissue detection, the droplet definitions of Section 2.2, the separation of touching droplets and the exclusion of vessel lumens. It was accompanied by example images of droplets to count, pale cytoplasm not to count and vessels. The method was developed on GAN 23 and checked on CDAHFD 67.
Each slide was analysed in its own session. Every session was started with the same request, given here exactly as it was sent: “How much fat is in this liver by HALO's rules? Follow the study's method ‘Liver fat by HALO's rules (Saigal 2026)’ step by step, with every number and every named operation exactly as written. Work from that method alone and do not open other chats. Give the results with the names the method lists, and save its three layers.”
In a session the agent reads the method, writes and runs the analysis on the whole slide, inspects its own output on close-ups of selected fields, and writes a report. The report gives the quantitative results, the masks of tissue and droplets, which can be viewed over the slide at any magnification, and a list of the assumptions the agent made and the places where its output may be wrong, each linked to a region of the slide. Every step the agent takes is recorded with its purpose, its code and its output, so the full reasoning behind each result can be reviewed.

2.4QuPath
QuPath 0.7.0 [5] was run on the whole slide from a script, using its own thresholders and measurements and the droplet definitions of Section 2.2. Tissue was the area where the mean of the red, green and blue values was below 228, at 4 µm per pixel after Gaussian smoothing, with holes filled and pieces under 0.5 mm² dropped. QuPath's standard commands do not separate touching pale regions, so each group of touching lipid pixels was measured as one object.
2.5Repeatability
The method was locked, and each slide was analysed in three separate sessions started at the same time. Each session wrote and ran its analysis afresh from the written method. We compared the steatosis fraction, droplet counts and areas, and tissue area between the three sessions of each slide.
2.6Agreement and statistics
A droplet found by a tool matched a droplet in the reference when their centres lay within half of the reference droplet's diameter of each other, and at least 2 µm. Each droplet matched at most once, nearest first. For each tool we report the share of reference droplets it detected, the share of its own droplets confirmed by the reference, and the F1 score, which combines the two. These were computed over the whole slide and, by droplet class, on 40 fields of 120 µm per slide centred on randomly chosen reference droplets. On these fields we also measured the pixel overlap of the fat masks as the Dice coefficient, twice the shared area over the sum of the two areas. On the same fields we scored the reference's own masks against its table, as a measure of the variability within the reference. Regional agreement was measured as Lin's concordance correlation coefficient of fat area in squares of 250 µm. Repeatability is reported as the coefficient of variation (standard deviation over mean) of the three sessions.
3Results
3.1Autonomous analysis
All nine sessions, three for each slide, ran without user input after the method was given, and all nine finished with a report. A session took 27 to 49 minutes from start to report, with all nine running at the same time. The whole-slide measurement itself took 2 to 12 minutes (Table 3), and the rest of each session was spent writing and testing the analysis, checking the masks and preparing the report. Each session recorded 9 to 27 steps. The agent checked its own masks on close-ups before reporting. In one session on CDAHFD 67, for example, it viewed six fields chosen at random and six chosen by its own code, including the fields with the most and least fat.
Every report listed the assumptions and possible errors the agent had found, each linked to a region of the slide. On CDAHFD 67 the agent reported that a few clusters of tightly pressed droplets remained as one irregular piece and were not counted, and that the largest counted droplet, of about 4,660 µm², could be a small round vessel, which it estimated to change the steatosis fraction by 0.004% of tissue. On the chow liver, all three sessions reported that the few macrovesicular droplets they counted were vessel lumens and that the liver showed no steatosis in random fields.
3.2Steatosis fraction and its distribution
VSQRD measured 32.6% steatosis on CDAHFD 67 and 32.6% on GAN 23, against 31.7% and 33.6% in the published analysis (Table 1). QuPath, with the same droplet definitions, measured 25.7% and 29.6%. VSQRD's fat area in squares of 250 µm agreed with the published analysis with a Lin's concordance of 0.96 on both livers, against 0.68 and 0.86 for QuPath. On the chow liver, VSQRD measured 0.34% and QuPath 0.31%.
| Slide | Measure | Published (HALO) | VSQRD | QuPath |
|---|---|---|---|---|
| CDAHFD 67 | Steatosis (%) | 31.7 | 32.6 | 25.7 |
| Macrovesicular droplets | 95,557 | 97,679 | 68,843 | |
| Macrovesicular area (mm²) | 36.3 | 37.5 | 29.7 | |
| Microvesicular droplets | 52,494 | 54,906 | 44,915 | |
| Microvesicular area (mm²) | 4.2 | 4.5 | 3.4 | |
| Concordance | — | 0.96 | 0.68 | |
| GAN 23 | Steatosis (%) | 33.6 | 32.6 | 29.6 |
| Macrovesicular droplets | 115,255 | 112,810 | 100,599 | |
| Macrovesicular area (mm²) | 61.3 | 60.7 | 58.3 | |
| Microvesicular droplets | 262,092 | 232,676 | 160,682 | |
| Microvesicular area (mm²) | 12.5 | 11.6 | 7.3 | |
| Concordance | — | 0.96 | 0.86 | |
| Chow 12 | Steatosis (%) | — | 0.34 | 0.31 |
3.3Droplet-level agreement
Over the whole slide, VSQRD detected 87.4% of the reference droplets on CDAHFD 67 and 71.6% on GAN 23, and 84.8% and 78.2% of its droplets were confirmed by the reference. Matched droplets were put in the same class 98.5% and 99.2% of the time, and their areas agreed (median ratio 0.99). QuPath detected 66.2% and 58.5% of the reference droplets.
Macrovesicular droplets, which hold 80 to 88% of the fat, agreed most closely (Table 2). On the 40 random fields per liver, VSQRD detected 99% and 89% of the reference's macrovesicular droplets, and 94% of its own were confirmed on both livers. QuPath detected 69% and 78%. The fat masks of VSQRD and the published analysis overlapped with a median Dice coefficient of 0.94 on CDAHFD 67 and 0.91 on GAN 23 across the 40 fields. Figure 2 shows example fields.
| Macrovesicular | Microvesicular | ||||||
|---|---|---|---|---|---|---|---|
| Liver | Output | F1 | Detected | Confirmed | Detected | Confirmed | Area |
| CDAHFD 67 | VSQRD | 0.86 | 99% | 94% | 64% | 71% | 1.04 |
| QuPath | 0.73 | 69% | 92% | 57% | 74% | 0.84 | |
| Reference masks | 0.85 | 97% | 89% | 85% | 65% | 1.11 | |
| GAN 23 | VSQRD | 0.74 | 89% | 94% | 63% | 72% | 0.99 |
| QuPath | 0.65 | 78% | 88% | 45% | 76% | 0.90 | |
| Reference masks | 0.98 | 100% | 95% | 100% | 97% | 1.10 | |

Agreement on microvesicular droplets was lower for every output, and two findings explain most of it. First, a microvesicular droplet is only 10 to 19 pixels across on the 0.5 µm grid, so one pixel on the side of its bounding box moves its roundness by 10 to 17%. Of the reference's microvesicular droplets on GAN 23's fields that VSQRD did not match, 258 of 277 lay on a lipid region that VSQRD had found, with the same area (median ratio 0.985), and fell just below the roundness cut. Second, the reference is not consistent with itself on CDAHFD 67. Its masks show 467 microvesicular droplets in 150 random fields that have no row in its table, and against that table the reference's own masks reach an F1 of 0.85, below VSQRD's 0.86.
QuPath's lower agreement comes from the separation of touching droplets. When QuPath found a reference droplet, it measured it as the reference did: 98% of matched droplets were in the same class, with a median area ratio of 0.97 to 0.98. Without separation, touching droplets were measured as one irregular object that failed the roundness limit or exceeded 5,000 µm². On CDAHFD 67, 12.5 mm² of QuPath's lipid area lay in such objects.
3.4Repeatability
The three sessions of the locked method on CDAHFD 67 gave identical results: 97,679 macrovesicular and 54,906 microvesicular droplets, 128.934 mm² of tissue and 32.614% steatosis (Table 3). The three sessions on the chow liver were also identical. On GAN 23 the sessions differed by at most 25 macrovesicular and 18 microvesicular droplets out of more than 345,000, and the steatosis fraction ranged from 32.602% to 32.606%. The coefficient of variation was 0.008% for the steatosis fraction, 0.012% for the macrovesicular count and 0.004% for the microvesicular count.
| Slide | Session | Steatosis (%) | Macro. | Micro. | Tissue (mm²) | Measurement | Session |
|---|---|---|---|---|---|---|---|
| CDAHFD 67 | 1 | 32.614 | 97,679 | 54,906 | 128.934 | 7.1 | 34 |
| 2 | 32.614 | 97,679 | 54,906 | 128.934 | 4.8 | 31 | |
| 3 | 32.614 | 97,679 | 54,906 | 128.934 | 7.3 | 27 | |
| CV | 0 | 0 | 0 | 0 | |||
| GAN 23 | 1 | 32.606 | 112,810 | 232,658 | 221.767 | 8.1 | 49 |
| 2 | 32.602 | 112,833 | 232,676 | 221.844 | 12.1 | 36 | |
| 3 | 32.606 | 112,808 | 232,676 | 221.767 | 6.9 | 45 | |
| CV | 0.008% | 0.012% | 0.004% | 0.020% | |||
| Chow 12 | 1 | 0.337 | 326 | 486 | 100.379 | 2.6 | 36 |
| 2 | 0.337 | 326 | 486 | 100.379 | 2.1 | 37 | |
| 3 | 0.337 | 326 | 486 | 100.379 | 4.8 | 39 | |
| CV | 0 | 0 | 0 | 0 |
3.5Setup and operation
Table 4 compares what each analysis required. VSQRD needed a written method and no code. QuPath needed a script of about 110 lines, and its standard commands could not separate touching droplets. Once the script was written, QuPath computed a slide in 5.5 to 9 minutes on an eight-core laptop, with each slide shared across up to three processes. VSQRD's whole-slide measurement took 2 to 12 minutes per slide, similar to QuPath's. A complete VSQRD session, which also writes and tests the analysis, checks the masks and prepares the report, took 27 to 49 minutes with no one at the computer, and all slides ran at the same time. Neither needed annotated training data, which deep-learning classifiers require.
| VSQRD | QuPath | |
|---|---|---|
| Analysis defined by | Method in plain language, with example images | Script of about 110 lines |
| Touching droplets separated | Yes | Not with standard commands |
| Annotation or training | None | None |
| User input per slide | None | Start the script |
| Time per slide | Measurement 2–12 min; complete session 27–49 min with no user input, slides in parallel | 5.5–9 min of computing, after the script was written |
| Outputs | Results, masks over the slide, assumptions with their regions, full reasoning trace | Measurements and objects |
| Concordance with the published analysis | 0.96 and 0.96 | 0.68 and 0.86 |
| Repeat runs | Identical on two slides, CV 0.008% on the third | Deterministic |
4Discussion
VSQRD carried out a complete whole-slide analysis of steatosis from a written method, with no user input after the method was given. On two steatotic livers it came within one percentage point of the published analysis, its map of fat across each liver agreed with a concordance of 0.96, and it detected 89 to 99% of the published macrovesicular droplets. Run three times with the method locked, it gave identical results on two slides and varied by less than 0.01% on the third.
Given the same droplet definitions, QuPath agreed less with the published analysis. Its standard workflow measures touching droplets as one object, which then fails the shape and size limits, and it detected 59 to 66% of the published droplets over the whole slide. In VSQRD the separation of touching droplets is part of the written method, and the agent applies it on every slide. In QuPath it would require writing and validating additional code.
A further difference is what the user can see. A conventional analysis returns measurements and masks, and the reasons behind them stay in its settings or script. VSQRD returns, for each slide, the assumptions it made and the regions where its output may be wrong, together with a record of every step. In this study the agent flagged a possible vessel counted as a droplet and estimated its effect on the result, and reported that the droplets it counted on the chow liver were vessel lumens. A reviewer can open each flagged region over the slide and check it.
Microvesicular droplets agreed less closely, for VSQRD as for QuPath. Their classification depends on single pixels at the edge of each droplet, and on one liver the published analysis's own masks and table disagree about them as much as VSQRD does. Most of the fat on these livers is in macrovesicular droplets, where agreement was close.
VSQRD needs no annotated training data and no code. Its method is a short document that states every rule that determines the result, so it can be reviewed before the analysis runs and shared with another laboratory, which will obtain the same analysis. The agent and its tools are not specific to steatosis or to H&E, and the same system is being applied to other stains, tissues and endpoints, including trichrome-stained kidney biopsies and immunohistochemistry.
5Limitations
The reference in this study is a published software analysis, not annotations by a pathologist, and agreement with it measures consistency with an established method rather than accuracy against a ground truth. Two slides have a reference analysis, and the method was developed on one of them and checked on the other. The droplet-level scores, Dice coefficients, concordance and example fields for VSQRD were computed by running the final method's rules locally, where every droplet is kept. That run differed from the sessions in the table by less than 0.05% of droplets. The repeated sessions could see notes that earlier analyses had left on the same slide. QuPath was run as a standard workflow, and an expert user could add the separation of touching droplets with custom code. The analysis was performed by the developers of VSQRD.
6Conclusion
VSQRD analyses whole-slide images autonomously from a method written once in plain language. In this study it agreed closely with a published commercial analysis, more closely than an open-source tool given the same definitions, gave the same result on repeated runs, and reported the assumptions and full reasoning behind every result.
Data availability
The slides and the published analysis are on Zenodo (doi:10.5281/zenodo.18208001, Apache 2.0) [6]. The VSQRD method, the QuPath script, the comparison code, per-slide results and access to the analysed slides with their masks on the VSQRD platform are available on request from the author (vikram@vsqrd.com).
Use of AI
Measurements were made by VSQRD as described in Materials and methods. An AI assistant helped draft the text, the comparison code and the figures. The author checked every reported number against the data and takes full responsibility for the content.
Competing interests
V.B. is a co-founder of VSQRD, the company that develops the software evaluated here.
Funding
This work was funded by VSQRD.
References
- D. E. Kleiner et al. Design and validation of a histological scoring system for nonalcoholic fatty liver disease. Hepatology, 41:1313–1321, 2005. doi:10.1002/hep.20701.
- A. Homeyer et al. Automated quantification of steatosis: agreement with stereological point counting. Diagnostic Pathology, 12:80, 2017. doi:10.1186/s13000-017-0671-y.
- H. Marsman et al. Assessment of donor liver steatosis: pathologist or automated software? Human Pathology, 35:430–435, 2004. doi:10.1016/j.humpath.2003.10.029.
- I. D. Munsterman et al. A novel automatic digital algorithm that accurately quantifies steatosis in NAFLD on histopathological whole-slide images. Cytometry Part B: Clinical Cytometry, 96:521–528, 2019. doi:10.1002/cyto.b.21790.
- P. Bankhead et al. QuPath: open source software for digital pathology image analysis. Scientific Reports, 7:16878, 2017. doi:10.1038/s41598-017-17204-5.
- A. Saigal, D. Abdurrachim, E. Tso et al. AI digital pathology as a key tool providing in-depth understanding of the progression and regression of MASH and fibrosis in male mouse models. Nature Communications, 17:6964, 2026. doi:10.1038/s41467-026-73370-z.
How to cite VSQRD
If VSQRD measured slides for your paper, copy these two lines into it.
- In your methods section
Slides were analysed with VSQRD (VSQRD; https://vsqrd.com; RRID:SCR_029272; Bhamre 2026, doi:10.5281/zenodo.24096133).
- In your reference list
Bhamre V. Introducing VSQRD: An Accurate and Interpretable AI System for Pathology. Zenodo; 2026. doi:10.5281/zenodo.24096133