---
title: "2026-08-27 ve2e patient inference data path audit"
description: "Audited how vxData patient IDs can reach ve2e preprocessing, preloading, and inference batches."
image: "https://docs.virdx.dev/img/virdx-social-card.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.virdx.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 2026-08-27 ve2e patient inference data path audit

## Work Done

- Inspected the ve2e root training dataset/data module and the standalone `data/` vxData pipeline without changing the ve2e repository.
- Traced patient resource identifiers through vxData queries, patient filtering, study and modality selection, mask generation, training-table construction, artifact materialization, `VxprosDataset`, preprocessing, preload modes, and `DataLoader` batching.
- Identified that no current public function accepts patient IDs and returns an inference loader. The standalone pipeline has a debug-only patient filter, while the root data module resolves only artifact IDs or local CSVs.
- Recommended a narrow `build_inference_dataloader`-style boundary which uses the checkpoint data config, returns resolution diagnostics, creates neutral inference rows, and instantiates the production clinical dataset directly.

## Lessons Learned: Pitfalls

- The knowledge page `vxdata-sdk-and-schema-model.md` documents SDK 2.1.0, while ve2e now pins SDK 3.0.0. It was useful conceptually but cannot be treated as an exact current API reference.
- The standalone `data/` pixi environment is Linux-only, so its installed SDK signatures could not be introspected on the macOS inspection host. Repository call sites and lockfiles were used instead.
- `debug_patient_ids` sounds like the desired selection input, but filtering occurs only after the full source-wide query and after 4D DWI preparation, so it is not an efficient production patient resolver.

## Lessons Learned: Improvements

- Add a durable inverse-workstream guide that distinguishes the standalone vxData selection pipeline from root `ve2e.data`, and documents the current gap between artifact creation and disk/RAM preloading.
- Refresh the infrastructure SDK guide for vxdata-sdk 3.x, including exact query and materialization signatures.
- Document the inference-table minimum schema and the dataset batch contract: `(inputs, label, metadata)`, with inputs shaped `(B, C, D, H, W)` for volume mode.

Source: https://docs.virdx.dev/knowledge/inbox/2026-08-27-inverse-ve2e-patient-inference-data-path-audit/index.mdx
