Skip to content

Research · November 2026

Introducing VSQRD: An Accurate and Interpretable AI system for Pathology

  • Vikram BhamreVSQRD
Download the PDF

Abstract

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.

A written method goes to the VSQRD agent, which analyses and checks every slide without user input, and returns quantitative results, interactive masks over the slide, assumptions and flagged regions, and a full reasoning trace.
Figure 1. The VSQRD workflow. The user writes the method once. The agent applies it to every slide in the study and returns, for each slide, quantitative results, masks that can be viewed over the slide, the assumptions it made with the regions they concern, and a record of every step it took.

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%.

Table 1. Whole-slide results. Steatosis is the droplet area as a percentage of each tool's own tissue area. VSQRD: the median of three sessions. Concordance: Lin's concordance with the published analysis of fat area in squares of 250 µm.
SlideMeasurePublished (HALO)VSQRDQuPath
CDAHFD 67Steatosis (%)31.732.625.7
Macrovesicular droplets95,55797,67968,843
Macrovesicular area (mm²)36.337.529.7
Microvesicular droplets52,49454,90644,915
Microvesicular area (mm²)4.24.53.4
Concordance—0.960.68
GAN 23Steatosis (%)33.632.629.6
Macrovesicular droplets115,255112,810100,599
Macrovesicular area (mm²)61.360.758.3
Microvesicular droplets262,092232,676160,682
Microvesicular area (mm²)12.511.67.3
Concordance—0.960.86
Chow 12Steatosis (%)—0.340.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.

Table 2. Agreement with the published analysis on 40 random fields of 120 µm per liver. Detected: the share of the reference's droplets that the output also has. Confirmed: the share of the output's droplets that the reference also has. Area: the output's fat area divided by the reference's. The last row of each liver scores the reference's own masks against its own table.
MacrovesicularMicrovesicular
LiverOutputF1DetectedConfirmedDetectedConfirmedArea
CDAHFD 67VSQRD0.8699%94%64%71%1.04
QuPath0.7369%92%57%74%0.84
Reference masks0.8597%89%85%65%1.11
GAN 23VSQRD0.7489%94%63%72%0.99
QuPath0.6578%88%45%76%0.90
Reference masks0.98100%95%100%97%1.10
Rows of 120 µm liver fields: the H&E image, the published droplets, the droplets VSQRD found, and their overlap, mostly green where both agree.
Figure 2. Example fields from the two steatotic livers, each 120 µm across. Columns, left to right: the H&E image; droplets in the published analysis (HALO); droplets found by VSQRD; and the overlap of the two. In the second and third columns, cyan marks macrovesicular and yellow microvesicular droplets. In the overlap column, green is fat in both, magenta is fat in the published analysis only and orange is fat found by VSQRD only. The number in each overlap panel is the Dice coefficient of the two fat masks.

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.

Table 3. Repeatability of the locked method. Each slide was analysed in three separate sessions started at the same time. Macro. and Micro.: macrovesicular and microvesicular droplet counts. CV: coefficient of variation. Measurement: minutes taken by the whole-slide measurement. Session: minutes from the start of the session to its report.
SlideSessionSteatosis (%)Macro.Micro.Tissue (mm²)MeasurementSession
CDAHFD 67132.61497,67954,906128.9347.134
232.61497,67954,906128.9344.831
332.61497,67954,906128.9347.327
CV0000
GAN 23132.606112,810232,658221.7678.149
232.602112,833232,676221.84412.136
332.606112,808232,676221.7676.945
CV0.008%0.012%0.004%0.020%
Chow 1210.337326486100.3792.636
20.337326486100.3792.137
30.337326486100.3794.839
CV0000

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.

Table 4. What each analysis required and returned in this study.
VSQRDQuPath
Analysis defined byMethod in plain language, with example imagesScript of about 110 lines
Touching droplets separatedYesNot with standard commands
Annotation or trainingNoneNone
User input per slideNoneStart the script
Time per slideMeasurement 2–12 min; complete session 27–49 min with no user input, slides in parallel5.5–9 min of computing, after the script was written
OutputsResults, masks over the slide, assumptions with their regions, full reasoning traceMeasurements and objects
Concordance with the published analysis0.96 and 0.960.68 and 0.86
Repeat runsIdentical on two slides, CV 0.008% on the thirdDeterministic

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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