From d4da3776777ff0e00c11bdb81e816286171c6539 Mon Sep 17 00:00:00 2001 From: Tristan Simas Date: Wed, 18 Nov 2026 01:08:23 -0500 Subject: [PATCH] Apply the supplied streamlined manuscript prose --- paper/manuscript.md | 112 ++++++++++++++++------------------ paper/supplementary/README.md | 2 +- 2 files changed, 53 insertions(+), 61 deletions(-) diff --git a/paper/manuscript.md b/paper/manuscript.md index 647665f71..6cbdb852b 100644 --- a/paper/manuscript.md +++ b/paper/manuscript.md @@ -24,17 +24,19 @@ Bioimage analysis is essential for biological research, but connecting specializ ## Introduction -Drug screening and studies of cell and molecular biology need open-source tools that automate measurements from microscopy images. Microscope-integrated commercial software offers convenient analysis tools, but licensing costs, hardware dependence and closed source code can limit access and adaptation [@Carpenter2006; @McQuin2018]. Different disease models and biological questions require measurements ranging from cell number and morphology to subcellular protein location and signal dynamics. Each assay therefore needs its own processing sequence and often substantial troubleshooting. First described in 2006, CellProfiler was developed with academic and industry support to organize image processing and measurement into reusable pipelines [@Carpenter2006; @McQuin2018]. Its pipeline model lets researchers assemble and tune a sequence of processing steps for their assay. +Drug screening and studies of cell and molecular biology need open-source tools that automate measurements from microscopy images. Microscope-integrated commercial software offers convenient analysis tools, but licensing costs, hardware dependence and closed source code can limit access and adaptation [@Carpenter2006; @McQuin2018]. Different disease models and biological questions require measurements ranging from cell number and morphology to subcellular protein location and signal dynamics. Each assay therefore needs its own processing sequence and often substantial troubleshooting. First described in 2006, CellProfiler organizes image processing and measurement into reusable pipelines that researchers tune for each assay [@Carpenter2006; @McQuin2018]. -Over the past two decades, an expanding open-source bioimaging ecosystem has given laboratories alternatives to commercial software that they can inspect, adapt and share. ImageJ/Fiji offers image-processing tools, macros and community-developed plugins, while napari combines interactive multidimensional viewing with Python extensions [@Schneider2012; @Schindelin2012; @NapariPlugins]. OMERO supports storing, organizing and sharing images with their experimental information [@Allan2012], and Icy combines visualization, plugins and graphical workflows [@deChaumont2012]. Access to their source code lets laboratories examine and adapt these tools to their assays and share extensions with other researchers. +Over the past two decades, an expanding open-source bioimaging ecosystem has given laboratories alternatives to commercial software that they can inspect, adapt and share. ImageJ/Fiji offers image-processing tools, macros and community-developed plugins, while napari combines interactive multidimensional viewing with Python extensions [@Schneider2012; @Schindelin2012; @NapariPlugins]. OMERO supports storing, organizing and sharing images with their experimental information [@Allan2012], and Icy combines visualization, plugins and graphical workflows [@deChaumont2012]. -Many advances in image processing have come from specialized algorithms, made available as standalone software, libraries or plugins. [BaSiCPy](https://github.com/peng-lab/BaSiCPy) corrects uneven illumination and background [@BaSiCPy], Cellpose finds cells and N2V2 reduces noise [@Stringer2021Cellpose; @Hock2022N2V2]. Plugins bring Cellpose to Fiji and napari, and N2V2 to napari [@FijiCellpose; @CellposeNapari; @NapariN2V]. Changes to either the host application or the underlying library can require plugin updates. The [napari-n2v installation guide](https://github.com/juglab/napari-n2v/blob/0e9fee355d5f51c8ec0f0a6a3b9e4c71fe35237e/docs/installation.md#L15), for example, states that “`n2v` is not compatible with TensorFlow 2.16 and upwards” and its [maintenance notice](https://github.com/juglab/napari-n2v/blob/0e9fee355d5f51c8ec0f0a6a3b9e4c71fe35237e/README.md#L11) says the plugin is “no longer maintained” [@NapariN2V]. The documented [RunCellpose recipe for Cellpose-SAM on Apple Silicon](https://plugins.cellprofiler.org/runcellpose.html#cellpose-sam-cellpose-4) uses `python=3.9` with `cellpose==4.0.6` [@RunCellposeDocumentation]; Python 3.9 [reached end of life on 31 October 2025](https://peps.python.org/pep-0596/#lifespan) [@Python39Release]. In the image.sc support forum [@Rueden2019Forum], installation problems came up in about 19% of roughly 500 threads analysed by Ouyang et al. [@Ouyang2023]. These examples show why laboratories must consider the integration's supported environment alongside the algorithm itself. +Many advances in image processing have come from specialized algorithms, made available as standalone software, libraries or plugins. [BaSiCPy](https://github.com/peng-lab/BaSiCPy) corrects uneven illumination and background [@BaSiCPy], Cellpose finds cells and N2V2 reduces noise [@Stringer2021Cellpose; @Hock2022N2V2]. Plugins bring Cellpose to Fiji and napari, and N2V2 to napari [@FijiCellpose; @CellposeNapari; @NapariN2V]. Changes to either the host application or the underlying library can require plugin updates. The [napari-n2v installation guide](https://github.com/juglab/napari-n2v/blob/0e9fee355d5f51c8ec0f0a6a3b9e4c71fe35237e/docs/installation.md#L15), for example, states that “`n2v` is not compatible with TensorFlow 2.16 and upwards” and its [maintenance notice](https://github.com/juglab/napari-n2v/blob/0e9fee355d5f51c8ec0f0a6a3b9e4c71fe35237e/README.md#L11) says the plugin is “no longer maintained” [@NapariN2V]. The documented [recipe for running Cellpose-SAM through CellProfiler on Apple Silicon](https://plugins.cellprofiler.org/runcellpose.html#cellpose-sam-cellpose-4) requires Python 3.9 [@RunCellposeDocumentation], which [reached end of life in October 2025](https://peps.python.org/pep-0596/#lifespan) [@Python39Release]. In the image.sc support forum [@Rueden2019Forum], installation problems came up in about 19% of roughly 500 threads analysed by Ouyang et al. [@Ouyang2023]. Choosing a tool therefore also means choosing the environment its integration supports. -A repeatable end-to-end analysis must exchange images and results while preserving channels, dimensions, pixel sizes and sample identities. Researchers must maintain the connecting scripts when tools, parameters, formats or versions change, creating a barrier for those without programming training. PyImageJ connects ImageJ to Python, napari-imagej makes ImageJ tools available in napari, and magicgui generates controls from Python functions [@Rueden2022PyImageJ; @NapariImageJ; @NapariMagicgui; @NapariWidgetWorkshop]. A complete analysis can still require code to connect images, detections, measurements and settings while preserving sample identities. To address dependency conflicts between bioimaging tools, container systems such as Docker package tools with their required libraries in isolated environments. Other integration routes include Fiji–CellProfiler image and table exchange [@Dobson2021], BioImageIT's packaged processing and data management [@Prigent2022], CellProfiler's Python and Docker plugins [@Weisbart2024], and MCMICRO's coordination of tissue-imaging tools through containers and files [@Schapiro2022; @MCMICROImplementation]. Different dependency versions can increase container-image storage, and file-based workflows add reads and writes between steps. Choosing suitable functions and settings matters because imaging artifacts can otherwise appear as biological differences. Scientists must also coordinate settings, execution and inspection across the packaged tools, choosing parameters and checking the resulting measurements. Connecting individual pairs of tools still leaves scientists to assemble those connections into an analysis they can build, run, inspect and revise. +A repeatable analysis must pass images and results between tools while preserving channels, dimensions, pixel sizes and sample identities, and researchers must maintain the connecting scripts whenever tools, formats or versions change. PyImageJ connects ImageJ to Python, napari-imagej makes ImageJ tools available in napari, and magicgui generates controls from Python functions [@Rueden2022PyImageJ; @NapariImageJ; @NapariMagicgui; @NapariWidgetWorkshop], yet connecting images, detections, measurements and settings into one analysis still requires code. -Much research effort has gone into platforms where AI assistants aim to reduce this technical burden by helping researchers develop and run analyses from written requests. We outline community-linked assistance, generated Python and specialist tool use, including the Model Context Protocol (MCP) for invoking software operations, in [Supp. Table 1](supplementary/README.md#supplementary-table-1.-ai-assistance-and-evaluation-resources). BIABench separately evaluates agent-produced analyses against reference answers and expert assessments: performance was stronger on routine 2D tasks, while repeated runs were unreliable on more complex data [@Pan2026BIABench]. When repeated runs can disagree, an agent's analysis is usable only if the scientist responsible can inspect and correct it. +Container systems such as Docker package tools with their libraries to avoid dependency conflicts. Other routes include Fiji–CellProfiler image and table exchange [@Dobson2021], BioImageIT's packaged processing and data management [@Prigent2022], CellProfiler's Python and Docker plugins [@Weisbart2024], and MCMICRO's coordination of tissue-imaging tools through containers and files [@Schapiro2022; @MCMICROImplementation]. Each connects tools, but scientists must still choose functions and settings, run them and check the results across separate programs, where a poor choice can make imaging artifacts look like biological differences. What remains missing is one analysis that scientists can build, run, inspect and revise. -Self-driving laboratories automate the cycle of proposing, executing and interpreting experiments, but interpreting images still depends on analyses that a specialist builds and validates for each new assay [@Abolhasani2023]. An agent that builds, checks and repairs an analysis in its own closed loop could fill that role. We developed OpenHCS so that every route into an analysis, whether graphical controls, Python or an AI agent, edits the same analysis, and every result stays linked to the images and detections behind it. Laboratories often keep validated pipelines on fixed software versions to preserve their results, which strands them on environments that, like Python 3.9, reach end of life. Each revision of an analysis must also be rerun across an experiment, so execution time sets how quickly scientists can check a change. We tested whether existing analyses can join that shared analysis without changing their outputs by importing 30 CellProfiler pipelines, then measured their execution and worker scaling on a fixed twelve-sample workload. We also tested whether new analyses could be built from written biological briefs without reference labels by asking independent agents to analyse nuclei, a laboratory neurite assay and protein redistribution. +AI assistants can now help researchers develop and run analyses from written requests, through community-linked help, generated Python or direct tool use, including the Model Context Protocol (MCP) for invoking software operations ([Supp. Table 1](supplementary/README.md#supplementary-table-1.-ai-assistance-and-evaluation-resources)). BIABench, which scores agent-produced analyses against reference answers and expert assessments, found stronger performance on routine 2D tasks and unreliable repeated runs on more complex data [@Pan2026BIABench]. When repeated runs can disagree, an agent's analysis is usable only if the scientist responsible can inspect and correct it. + +Self-driving laboratories automate the cycle of proposing, executing and interpreting experiments, but interpreting images still depends on analyses that a specialist builds and validates for each new assay [@Abolhasani2023]. An agent that builds, checks and repairs an analysis in its own closed loop could fill that role. We developed OpenHCS so that every route into an analysis, whether graphical controls, Python or an AI agent, edits the same analysis, and every result stays linked to the images and detections behind it. Laboratories often keep validated pipelines on fixed software versions to preserve their results, which strands them on environments that, like Python 3.9, reach end of life. Each revision of an analysis must also be rerun across an experiment, so execution time sets how quickly scientists can check a change. We tested whether existing analyses can join that shared analysis without changing their outputs by importing 30 CellProfiler pipelines, then compared their execution time with CellProfiler's. We also tested whether new analyses could be built from written biological briefs without reference labels by asking independent agents to analyse nuclei, a laboratory neurite assay and protein redistribution. ## Materials and Methods @@ -44,59 +46,55 @@ The first three subsections describe the shared analysis: building and editing p The Open Microscopy Environment (OME) data model describes images using spatial dimensions X, Y and Z, channels and time [@Goldberg2005]. For plate imaging, well and site identify acquisition locations rather than additional pixel axes. -Preconfigured microscope handlers use file-discovery rules and metadata to identify each well, site, channel, Z plane and timepoint. Supported rich image containers without a specialized handler are read through Bio-Formats [@BioFormats]. For ordinary folders without a recognized acquisition layout, source bindings let users select readable files, extract coordinates and name pipeline inputs, tasks familiar from [CellProfiler's image-input setup](https://cellprofiler-manual.s3.amazonaws.com/CellProfiler-4.2.8/help/projects_configure_images.html). Reading a file supplies its pixels and available metadata; users can assign channel and experimental roles explicitly when that metadata is insufficient. +Preconfigured microscope handlers use file-discovery rules and metadata to identify each well, site, channel, Z plane and timepoint. Other microscope file formats are read through Bio-Formats [@BioFormats]. For ordinary folders without a recognized acquisition layout, source bindings let users select readable files, extract coordinates and name pipeline inputs, tasks familiar from [CellProfiler's image-input setup](https://cellprofiler-manual.s3.amazonaws.com/CellProfiler-4.2.8/help/projects_configure_images.html). Reading a file supplies its pixels and available metadata; users can assign channel and experimental roles explicitly when that metadata is insufficient. A pipeline combines image-processing functions into a reusable, ordered sequence of configurable steps. Each step specifies one or more compatible Python functions, their settings and inputs from source images or earlier results. Functions specify their array library and whether they accept image planes or volumes. -Laboratories can extend an analysis without maintaining a separate plugin package by selecting compatible functions from existing libraries or adding their own Python function code within the running application. We built pyqt-reactive to dynamically generate the user interface from the function signatures and configuration classes used by the underlying analysis code, which can run without a graphical interface. Like magicgui [@NapariMagicgui], it derives parameter names, types, defaults and documentation from Python definitions. Compatible new functions therefore receive controls without separate interface code (Figure 1D), while the interface remains synchronized with analysis settings. The same definitions supply agent-facing parameter descriptions. Each function defines its inputs and outputs; registering these definitions integrates the function with execution, graphical editing and agent access. We render graphical settings as editable Python, and applying code edits updates the same analysis and its controls. Shared defaults, step-specific settings and edit history remain with the analysis, which scientists can save as a reusable preset (Figure 1). +Laboratories can extend an analysis by selecting functions from existing libraries or by adding their own Python functions within the running application, without maintaining a plugin package. We built pyqt-reactive to generate the interface from the function signatures and configuration classes of the analysis code, which also runs without a graphical interface. As in magicgui [@NapariMagicgui], parameter names, types, defaults and documentation come from the Python definition, so a new function receives its controls, Python view and agent-facing description from its definition alone (Figure 1D). Graphical settings are rendered as editable Python, and code edits update the same analysis and its controls. Shared defaults, step-specific settings and edit history stay with the analysis, which scientists can save as a reusable preset (Figure 1). ![Full native desktop, expanded dataset and pipeline details, and the same function edited through a generated form or Python, together in one composite.](figures/slas/submission_shared_workflow.png){width=6.5in} ::: {custom-style="ImageCaption"} -**Figure 1. Graphical controls and Python edit the same analysis.** **(A)** Native desktop with two public example datasets and the imported nine-step ExampleHuman analysis. **(B,C)** Zoom-ins show the expanded analysis and dataset entries; coloured outlines locate these regions in A. Green borders group the settings for a dataset or analysis step. **(D)** A laboratory function's definition and docstring supply its generated controls and agent-facing descriptions. Form and live Python views show the same gain 1.2 and offset 0.0. These screenshots show editing only; no images were processed. Editing records and full source: Supp. Data 1. +**Figure 1. Graphical controls and Python edit the same analysis.** **(A)** Native desktop with two public example datasets and the imported nine-step ExampleHuman analysis. **(B,C)** Zoom-ins show the expanded analysis and dataset entries; coloured outlines locate these regions in A. Green borders group the settings for a dataset or analysis step. **(D)** A laboratory function's definition and docstring supply its generated controls and agent-facing descriptions. Form and live Python views show the same gain 1.2 and offset 0.0. These screenshots show editing only; no images were processed (Supp. Data 1). ::: ### Execution and viewers -A step collects images into stacks along a selected dimension: site, Z plane, channel or timepoint. Collecting Z planes forms a volume; collecting overlapping sites supplies tiles to a stitching function, which also needs tile positions. The remaining coordinates stay fixed. Processing groups then determine which function sequence each group of inputs receives. Grouping by channel, for example, applies different sequences to different channels without changing how images are stacked. Grouping defines the work; worker assignments determine what runs in parallel. Sample and image coordinates are retained, and later steps can inherit or replace the grouping and stacking settings (Supp. Figure 1). +A step collects images into stacks along a selected dimension: site, Z plane, channel or timepoint. Collecting Z planes forms a volume; collecting overlapping sites supplies tiles to a stitching function. The remaining coordinates stay fixed. Processing groups then determine which function sequence each group of inputs receives. Grouping by channel, for example, applies different sequences to different channels without changing how images are stacked. Grouping defines the work; worker assignments determine what runs in parallel. Later steps can inherit or replace these grouping and stacking settings (Supp. Figure 1). As in CellProfiler [@McQuin2018], processing steps use named images and detected objects and produce processed images, object-label images, numerical measurements, object relationships and exported files. These names connect each measurement to the intended cells or structures. Label images assign identifiers to individual objects; relationships link related detections, such as a nucleus with its surrounding cell. Before processing begins, OpenHCS's compiler connects defined inputs and outputs, checks function requirements and plans data-format conversions and worker assignments (Figure 2; Supp. Figure 1). This catches incompatible configurations early, and workers reuse the plan instead of repeating it. Processing libraries store image pixels in different array formats. ArrayBridge handles conversions so that NumPy, TensorFlow, PyTorch, JAX and pyclesperanto functions can run in one pipeline without users writing conversion code between steps. It manages transfers between central processing unit (CPU) and graphics processing unit (GPU) memory, using supported direct transfers or copies as required. -OpenHCS coordinates the editor, execution server, workers and viewers while they run concurrently. ZMQRuntime provides one native Python interface for communication between their processes (Figure 2). ZeroMQ messages carry requests, results and progress through shared client and server interfaces; applications add operations such as viewer controls through those interfaces. Separate processes keep these responsibilities apart and allow their failures to be handled at process boundaries. ZMQRuntime coordinates process startup, shutdown and progress. Workers reuse loaded libraries and CPU/GPU resources across assigned samples to reduce repeated setup, then release them after the run. Execution uses processes by default, with optional threads. +The editor, execution server, workers and viewers run as separate processes, so their failures can be handled separately and editing and inspection stay available during processing. ZMQRuntime carries requests, results and progress between them through one Python interface (Figure 2). Workers keep loaded libraries and CPU/GPU resources across their assigned samples, avoiding repeated setup, and release them after the run. -These programs also need access to images held in different forms and locations: TIFF files, compressed Zarr stores, memory or an OMERO server. PolyStore provides shared reading and writing interfaces so processing steps can use those sources without separate storage code. Viewer destinations deliver results to Fiji or napari through the same data-handling layer. A new destination implements the shared interface instead of adding a storage path to every processing step. OME-Zarr stores microscopy data in blocks, allowing selected image regions to be retrieved without downloading the entire dataset [@Moore2021]; OpenHCS reads its images, dimensions, channels and pixel sizes. Experimental OMERO support provides access to images in a shared image-management server. +Images may be TIFF files, compressed Zarr stores, arrays in memory or entries on an OMERO server (experimental support). PolyStore gives processing steps one reading and writing interface for all of them and delivers results to Fiji or napari through the same layer. For OME-Zarr, which stores data in blocks so that selected regions can be retrieved without downloading a whole dataset [@Moore2021], OpenHCS reads images, dimensions, channels and pixel sizes. -These shared interfaces let saved and displayed results retain their source coordinates, processing group and producing step across supported viewers and storage formats. Scientists can therefore trace measurements back to their source images and detected structures. We made saving and live inspection independently configurable: image results can be saved to a folder and sent directly to Fiji or napari as processing proceeds (Figure 2). Scientists can inspect results without finding and loading each output file manually. Viewer sessions remain open after execution for continued inspection, and agents can query napari layers and regions of interest. +Saved and displayed results keep their source coordinates, processing group and producing step, so scientists can trace each measurement back to its source images and detections. Results can be saved, sent to Fiji or napari as processing proceeds, or both (Figure 2). Viewer sessions stay open after execution, and agents can query napari layers and regions of interest. ### Agent access through MCP -Learning to configure complex analysis software takes time and can discourage adoption. We designed the agent interface to help scientists get started while keeping an agent's work accessible through the same tools and settings they use themselves. We expose function discovery, pipeline editing and validation, execution and result inspection through MCP [@MCP]. Each operation's definition specifies its input and result types, implementation, permitted changes, data access and security requirements; these definitions generate the interface and govern execution. Agents can edit an analysis open in the desktop application or run one without opening a window. +Learning to configure complex analysis software takes time and can discourage adoption. We designed the agent interface to help scientists get started while keeping an agent's work accessible through the same tools and settings they use themselves. We expose function discovery, pipeline editing and validation, execution and result inspection through MCP [@MCP]. Each operation is declared once, with its inputs, results, permitted changes and data access, and that declaration both generates the interface and enforces its limits. Agents can edit an analysis open in the desktop application or run one without opening a window. -To protect analyses from unintended access and conflicting edits, desktop connections require authentication and revision checks prevent an agent from overwriting intervening edits. MCP file operations check permitted directories. Processing functions run as Python code with the worker's permissions; these path checks are not an operating-system sandbox. Local clients communicate through standard input/output. A hosted HTTP interface gives remote assistants access to packaged knowledge, architecture descriptions, processing-function discovery and configuration schemas without connecting to a scientist's local application. This interface is read-only and cannot access local files, graphical state, viewers or execution sessions. +Desktop connections require authentication, and revision checks stop an agent from overwriting edits made in the meantime. MCP file operations are limited to permitted directories, but processing functions run as Python code with the worker's permissions, so these checks are not an operating-system sandbox. A hosted, read-only interface lets remote assistants consult documentation, function lists and configuration schemas without connecting to a scientist's computer. ### CellProfiler import and output comparison -CellProfiler is an established reference for image analysis in academic and industrial laboratories [@Carpenter2006; @McQuin2018]. To let scientists reuse CellProfiler pipelines with OpenHCS’s editing, execution and agent tools, we built an importer. We then checked their output images and measurements against native CellProfiler results before comparing execution times (Figure 3). +To let scientists reuse CellProfiler pipelines with OpenHCS's editing, execution and agent tools, we built an importer, then checked its output images and measurements against native CellProfiler results before comparing execution times (Figure 3). -The importer reads `.cppipe` settings and translates processing and export modules into configurable steps and setup modules into source bindings. Module definitions specify images, objects, measurements, relationships and image-group or plate-wide operation. The resulting pipeline uses OpenHCS compilation and execution and remains editable through graphical controls, Python and MCP. CellProfiler-compatible numerical implementations include Numba-compiled propagation kernels. Named images and objects connect measurements to inputs. We reloaded generated Python for the advanced-segmentation and 3D-monolayer tutorials to check functions and parameters [@CellProfilerTutorials] (Supp. Data 1). +The importer translates a pipeline file's processing and export modules into steps and its input modules into source bindings, keeping named images and objects, so the result runs and edits like any other OpenHCS analysis. We reloaded the generated Python for the advanced-segmentation and 3D-monolayer tutorials to check that functions and parameters were preserved [@CellProfilerTutorials] (Supp. Data 1). -We checked that imported workflows retained their outputs by comparing numerical measurements and image pixels with absolute and relative tolerances of `1e-6`. Identifiers and categorical values were compared exactly after the documented formatting adjustments needed to match CellProfiler. Object-label images were compared exactly after standardizing dimensions of length one. Five workflows lacking exports received eight added image or label export steps without changing their processing settings. Every expected exported file was checked in each workflow. We provide output counts, comparison rules, imported modules and settings, and module-level test coverage in Supp. Data 2–3. +We compared every exported file with native CellProfiler output: measurements and image pixels within absolute and relative tolerances of 1e-6, and identifiers, categorical values and object labels exactly. Five workflows without exports received export steps, with processing settings unchanged (Supp. Data 2–3). ### Performance measurement -For the single-sample comparison, both applications used one physical CPU core, one worker and one numerical thread, so neither received extra CPU resources. Each workflow used one selected source well or sample, unchanged settings and defined comparison outputs. OpenHCS supports Python 3.11–3.14, but the reported timing runs used Python 3.12, against native CellProfiler 4.2.8.1 on Python 3.9. - -**Batching and workers.** Twelve copies of one source sample measured batch-processing costs. Per-sample times divided the measured eight-sample CellProfiler time by eight and the one-worker, twelve-sample OpenHCS time by twelve. A separate measured comparison used eight copies in each application, two OpenHCS workers and one serial CellProfiler process (Supp. Data 4). The CellProfiler batch used one numerical thread with four permitted CPUs, versus one CPU in the single-sample comparison. OpenHCS batch workers also had access to those four CPUs, with one numerical-library thread per worker; workers were not pinned to individual cores. We estimated one serial CellProfiler twelve-sample time per workflow from measured eight-sample first and post-initialization batches, using a model calibrated on three workflows. We kept that estimate fixed while measuring OpenHCS with one, two, three or four workers on the same twelve-sample workload (Figure 3C). OpenHCS worker scaling was measured for both timing intervals. Combined process memory was not measured. We document the estimation formulas, calibration and full benchmark protocol in Supp. methods: execution-time estimates and Supp. Data 4. - -**Timing intervals.** Supp. Table 3 defines the processing and setup-plus-processing intervals. Speedup was CellProfiler's first-batch time divided by the median OpenHCS time; we summarize speedups across workflows using their minimum, median and maximum. +We timed each workflow on one source sample, with both applications limited to one CPU core and one numerical thread, using OpenHCS on Python 3.12 and native CellProfiler 4.2.8.1 on Python 3.9. For batches, CellProfiler processed eight copies of the sample serially and OpenHCS processed twelve with one worker; per-sample time divides each batch time by its size, and both applications had access to the same four CPUs. To measure worker scaling, we ran OpenHCS on the twelve copies with one to four workers and compared each time with a serial CellProfiler time for twelve samples, estimated from its measured eight-sample batches (Supp. methods: execution-time estimates). -OpenHCS times are medians of three measured repetitions after warmup. Application/server startup, CellProfiler pipeline-file loading, initial OpenHCS library loading, OpenHCS warmup runs and subsequent output-agreement checks were excluded. +Speedup is CellProfiler's time, including its initialization, divided by the median of three OpenHCS runs after warmup. Application startup, pipeline-file loading and initial library loading were excluded for both applications (Supp. Table 3; Supp. Data 4). ### Software reliability checks -Bioimage analyses combine tools, dependencies and data formats that change independently, so software updates can alter results even when a pipeline still runs. Passing tests, including AI-generated ones, are useful only when they check behaviour scientists rely on. We therefore built automated checks around complete analysis tasks. Before PyPI release, the automated test workflow, known as continuous integration, is configured to install the release candidates, run the 30 imported CellProfiler pipelines and compare their outputs with saved native results on Linux, Windows and macOS, each with Python 3.12 and 3.14. These release checks address installation failures, the support problem cited in the Introduction. Other checks exercise storage, microscope inputs, live viewers and saving and reloading analysis settings (Supp. Table 4). +Bioimage analyses combine tools, dependencies and data formats that change independently, so software updates can alter results even when a pipeline still runs. Passing tests, including AI-generated ones, are useful only when they check behaviour scientists rely on. We therefore built automated checks around complete analysis tasks. Before each release, automated tests install it on Linux, Windows and macOS with Python 3.12 and 3.14, run the 30 imported pipelines and compare their outputs with native CellProfiler results, so installation problems surface before users meet them. Other tests cover storage, microscope inputs, live viewers and saving and reloading analyses (Supp. Table 4). ![Shared editing, execution, workers, viewers and image storage.](figures/slas/shared_workflow.png){width=6.5in} @@ -108,51 +106,49 @@ Bioimage analyses combine tools, dependencies and data formats that change indep All animal procedures were approved by the Montreal Neurological Institute Animal Care and Use Committee, following the Canadian Council on Animal Care guidelines. -We used public benchmark images, distributed demonstration images and laboratory acquisitions to examine analysis reuse and agent-developed measurements. Nuclear images came from BBBC039 in the Broad Bioimage Benchmark Collection (BBBC) [@Ljosa2012]. +Nuclear images came from BBBC039 in the Broad Bioimage Benchmark Collection (BBBC) [@Ljosa2012]. -To test whether independent analyses recovered drug responses, we used images of primary cortical neurons from embryonic day 18 rats, imaged two days after plating. Fusicoccin-A (FC-A) and Y27632 were each tested at 0, 5, 10, 20 and 40 µM, with two technical wells per dose and dimethyl sulfoxide (DMSO) vehicle controls. Nine paired nuclear/neuronal fields were acquired per well on an ImageXpress Micro Confocal with a 10× Plan Apo Lambda objective (numerical aperture 0.45) and 2 × 2 binning, giving 1.3556 µm per pixel. DAPI marked nuclei and calcein neuronal signal was recorded in the FITC channel. We describe the medium changes and imaging details, including image dimensions and the acquisition record, in Supp. methods: neurite morphometry. +To test whether independent analyses recovered drug responses, we used images of primary cortical neurons from embryonic day 18 rats, imaged two days after plating. Fusicoccin-A (FC-A) and Y27632 were each tested at 0, 5, 10, 20 and 40 µM, with two technical wells per dose and dimethyl sulfoxide (DMSO) vehicle controls. Nine paired nuclear/neuronal fields were acquired per well on an ImageXpress Micro Confocal with a 10× Plan Apo Lambda objective (numerical aperture 0.45) and 2 × 2 binning, giving 1.3556 µm per pixel. Nuclei were stained with DAPI, and calcein-labelled neurons were imaged in the FITC channel (Supp. methods: neurite morphometry). Protein translocation used the BBBC013 green fluorescent protein (GFP)/DNA assay, and cell-boundary analyses used the BBBC007 paired DNA/actin fields. -Three-dimensional nuclear localization used the H002 nuclei volume from the *Bio-image Analysis Notebooks* collection [@HaaseNotebooks], 60 × 256 × 256 voxels, with 15 manually marked centres covering only part of the volume; physical spacing was unverified. Body-separation repair used the same volume in a separate development analysis. +Three-dimensional nuclear localization used the H002 nuclei volume from the *Bio-image Analysis Notebooks* collection [@HaaseNotebooks], 60 × 256 × 256 voxels, with 15 manually marked centres covering only part of the volume; physical spacing was unverified. A separate repair example used the same volume. -For bright-object detection, we used the public `blobs.tif` example (H001) from the algorithm-validation chapter of *Bio-image Analysis Notebooks*. This example pairs a raw image with an explicit Otsu-thresholding and connected-component workflow, allowing a reproducible computational comparison against its saved scikit-image labels. These labels are not manual biological annotations. Original specimen and acquisition details were not established for these example images. +Bright-object detection used the blobs.tif example (H001) from the same collection, whose reference labels come from a documented Otsu-threshold workflow rather than manual annotation. -Retinal cell-body detection used R0010, a whole-mount retina [species to be confirmed] prepared and imaged in the laboratory, immunostained for RNA-binding protein with multiple splicing (RBPMS), which marks retinal ganglion cells, and counterstained with Hoechst. It was acquired on a Zeiss LSM 800 confocal microscope with a 20× Plan-Apochromat objective (NA 0.8); full metadata are in Supp. Data 5. The physical scale for the retinal repair comes from the CZI metadata. Supplementary neurite-tracing analyses used NeuronCyto II image 1 [@NeuronCytoII] and nine DAPI/calcein fields from one coded laboratory well, separate from the 20-well drug-response cohort (Supp. Data 5 and 7). +Retinal cell-body detection used R0010, a whole-mount retina [species to be confirmed] prepared and imaged in the laboratory, immunostained for RNA-binding protein with multiple splicing (RBPMS), which marks retinal ganglion cells, and counterstained with Hoechst. It was acquired on a Zeiss LSM 800 confocal microscope with a 20× Plan-Apochromat objective (NA 0.8; metadata in Supp. Data 5). The editing example in Results used NeuronCyto II image 1 [@NeuronCytoII]. ### Autonomous analysis design -To test whether agents could turn biological requests into useful measurements, we asked fresh agents to develop and inspect analyses of cells, nuclei, neurites and protein redistribution. Separate runs let us compare independently developed analyses of the same task. Agents finalized their pipelines before any comparison with reference data, and no pipeline changed after scoring began. They received no reference labels, accepted settings or score feedback while building their analyses. First-versus-final comparisons use the first completed prediction and the final settings on the same inputs. Self-directed repairs are autonomous; revisions prompted by a scientist are assisted. +To test whether agents could turn biological requests into useful measurements, we asked fresh agents to develop and inspect analyses of nuclei, cells, neurites and protein redistribution, with separate runs of the same task developed independently. Each agent received a task brief, acquisition information, MCP access and a written guide to using OpenHCS. The guide asks agents to inspect images, read function documentation and compare results with matched raw images and overlays, to direct repairs to the earliest faulty step, and to recheck examples that previously worked (Figure 4). Agents received no reference labels, accepted settings or score feedback, and finalized their pipelines before any comparison with reference data. -Each fresh agent received a task brief, acquisition information and MCP access. The gpt-6.1-sol independent trials reported here also received the packaged OpenHCS skill, a written guide to using OpenHCS; briefs could include channel hints, requested outputs and review instructions. The skill asks agents to inspect images, read function documentation and compare results with matched raw images and overlays (Figure 4). It directs repairs to the earliest faulty step and requires rechecking previously successful examples. +Three agents independently analysed the same 20 coded neurite-assay wells (180 fields) with the same brief, guide and software, and finalized their pipelines before treatment identities and MetaXpress measurements were revealed. All neurite measurements reported here come from these finalized pipelines run with the current neurite-tracing function (Supp. Data 5). -Three fresh gpt-6.1-sol agents independently analysed the same 20 coded neurite-assay wells, with nine fields each, using the same brief, acquisition information, MCP access, guide revision and OpenHCS 0.8.7 installation. Each analysed all 180 fields and finalized its outputs before treatment identities, MetaXpress measurements and scientist-assisted results were used for evaluation. - -Evaluation design is summarized in Supp. Table 6; complete task and model records are in Supp. Table 5. Analysis numbers are local task identifiers rather than model generations: for the nuclear, cell-boundary and translocation tasks, analysis 1 denotes the earlier gpt-5.6-sol trials on OpenHCS 0.8.5, scored on prospectively withheld images (Supp. Figures 4–5; Supp. Data 6), and later numbers denote gpt-6.1-sol trials on 0.8.7. For the prospective evaluations, images and treatment metadata were released after finalization; only input and output folders changed. The original runs, guides and pipelines are available in Supp. Data 5. +Analyses are numbered within each task. For nuclear detection, cell boundaries and protein translocation, analysis 1 was an earlier trial (gpt-5.6-sol) scored on images withheld before development; all other analyses used gpt-6.1-sol. Supp. Table 6 summarizes the evaluation design, and Supp. Table 5 lists every task, model and protocol. ## Results ### Every route edits the same analysis -In the NeuronCyto II analysis, an MCP code-edit operation changed the upper normalization percentile from 99.8 to 99.6, and the graphical form displayed the new value ([interaction record](figures/slas/authoring_verified_roundtrip_provenance.json)). Restoring 99.8 through the form's settings updated the generated Python: the edit travelled both ways. Imported CellProfiler pipelines entered the same editing path: the advanced-segmentation and 3D-monolayer tutorials, regenerated as Python and reloaded, kept their functions and parameters (Supp. Data 1). +An agent's MCP edit changed the upper normalization percentile from 99.8 to 99.6, and the graphical form showed the new value; restoring 99.8 in the form updated the generated Python (Supp. Data 1). Imported CellProfiler pipelines enter the same editing path: the advanced-segmentation and 3D-monolayer tutorials, regenerated as Python and reloaded, kept their functions and parameters. Adding a laboratory’s own Python function required no separate plugin package. Its signature and docstring supplied the controls, Python view and agent description in Figure 1D, with the same gain of 1.2 and offset of 0.0. The linked result views retain source coordinates and the producing step (Figure 2), so a scientist can inspect a detection in Fiji or napari and replace its method, not only adjust its settings, within the same reusable analysis. ### Established workflows retain their outputs and run faster {#established-cellprofiler-workflows-retain-their-measurements} -All 30 imported workflows reproduced native CellProfiler 4.2.8.1 outputs across assays including morphology, protein translocation, tracking and multi-stage 3D analysis. Images marking individual detected objects retained their pixels and identifiers exactly; numerical measurements agreed within absolute and relative tolerances of 1e-6. Comparisons also covered calculated pixel values, measurement tables and SQLite databases written for CellProfiler Analyst (Supp. Data 2); CellProfiler Analyst itself was not run. Across 85 processing modules, 54 were tested in complete workflows and 29 individually; the remaining two had shared-code tests (Figure 3A). +All 30 imported workflows reproduced native CellProfiler 4.2.8.1 outputs, across assays including morphology, protein translocation, tracking and multi-stage 3D analysis. Object labels matched exactly, and measurements, calculated images, tables and the measurement databases CellProfiler writes for CellProfiler Analyst agreed within 1e-6 (Supp. Data 2). Of 85 processing modules, 54 were tested in complete workflows, 29 individually and two through shared code (Figure 3A). -CellProfiler 4.2.8.1 pins SciPy 1.9.0 and scikit-image 0.18.3 [@CellProfiler4281Dependencies], whose prebuilt packages cover only Python 3.8 and 3.9 among the versions CellProfiler admits; both are now end of life [@ScikitImage0183Files; @Python38Release; @Python39Release]. OpenHCS retained output parity on Python 3.12 and 3.14, including [all 30 workflows on Linux with Python 3.14](https://github.com/OpenHCSDev/openhcs/actions/runs/41624904501/job/125881555931). +CellProfiler 4.2.8.1 pins SciPy 1.9.0 and scikit-image 0.18.3 [@CellProfiler4281Dependencies], whose prebuilt packages cover only Python 3.8 and 3.9 among the versions CellProfiler admits; both are now end of life [@ScikitImage0183Files; @Python38Release; @Python39Release]. OpenHCS reproduces the same outputs on Python 3.12 and [3.14](https://github.com/OpenHCSDev/openhcs/actions/runs/41624904501/job/125881555931). -The timing comparison used OpenHCS on Python 3.12 with NumPy 2 and native CellProfiler on Python 3.9 (Supp. Data 2). Every one of the 30 workflows ran faster than CellProfiler on one core, both for processing alone and with pipeline setup included (Figure 3B). Across the measured batches, median per-sample speedup was [pending]{.benchmark-claim key=amortized_execution_median}-fold for processing (minimum [pending]{.benchmark-claim key=amortized_execution_min}-fold) and [pending]{.benchmark-claim key=amortized_total_median}-fold with setup included (minimum [pending]{.benchmark-claim key=amortized_total_min}-fold), with CellProfiler's initialization spread over a measured eight-sample batch. We report the individual timings, estimates, calibration and separate measured eight-sample, two-worker comparison in Supp. Data 4. +Every workflow ran faster than CellProfiler on one core, for processing alone and with pipeline setup included (Figure 3B). In batches, the median per-sample speedup was [pending]{.benchmark-claim key=amortized_execution_median}-fold for processing (minimum [pending]{.benchmark-claim key=amortized_execution_min}-fold) and [pending]{.benchmark-claim key=amortized_total_median}-fold with setup included (minimum [pending]{.benchmark-claim key=amortized_total_min}-fold; Supp. Data 4). -Adding OpenHCS workers shortened execution further. Against a fixed serial CellProfiler estimate for twelve samples, the median speedup rose from 4.4-fold with one worker to 12.7-fold with four for processing, and from 4.2- to 11.1-fold with setup included, and every workflow stayed faster at each worker count (Figure 3C). This measures parallel execution against a serial reference, not equal CPU allocations. Measured OpenHCS-only scaling confirms the benefit: every workflow ran faster with two, three and four workers than with one, for processing alone and with setup included (Supp. Figure 3). +With more OpenHCS workers, the median speedup over serial CellProfiler rose from 4.4-fold with one worker to 12.7-fold with four (11.1-fold including setup), and every workflow ran faster with two, three or four workers than with one (Figure 3C; Supp. Figure 3). ![Graded module coverage, measured one-worker comparisons and a fixed serial CellProfiler estimate compared with measured OpenHCS worker counts on twelve samples.](figures/slas/submission_benchmark_summary.png){width=6.5in} ::: {custom-style="ImageCaption"} -**Figure 3. Imported CellProfiler workflows reproduce their outputs and run faster.** Imported CellProfiler workflows were checked for output agreement before their execution times were compared. **(A)** Test coverage of the 85 imported modules: in complete workflows (54), individually (29) or through shared code (2). Each module is counted once, under its strongest test. Shared-code tests do not test each module's own algorithm. **(B)** Measured one-worker comparisons: one sample each on the same CPU core, then per-sample time for batches of eight (CellProfiler) or twelve (OpenHCS). Batch CPU allocations differ from the single-sample comparison (Methods: Performance measurement). **(C)** Twelve copies of one source sample: a fixed serial CellProfiler estimate derived from measured eight-sample batches, divided by measured OpenHCS time at each worker count. The serial estimate retains initialization and is identical across all four worker counts. **(B, C)** Speedup is CellProfiler time divided by OpenHCS time; values above 1 mean faster OpenHCS execution. Each dot is one of 30 workflows; black lines mark medians. Each distribution is labelled with its minimum, median and maximum speedup. All maxima in B and C are the illumination-correction workflow Example1_AllMethod: single-sample processing took 953.4 s in CellProfiler and 2.10 s in OpenHCS. Logarithmic axes; the red dashed line marks equal speed. Intervals and exclusions as in Methods: Performance measurement. +**Figure 3. Imported CellProfiler workflows reproduce their outputs and run faster.** Imported CellProfiler workflows were checked for output agreement before their execution times were compared. **(A)** Test coverage of the 85 imported modules: in complete workflows (54), individually (29) or through shared code (2). Each module is counted once, under its strongest test. Shared-code tests do not test each module's own algorithm. **(B)** Measured one-worker comparisons: one sample each on the same CPU core, then per-sample time for batches of eight (CellProfiler) or twelve (OpenHCS). **(C)** Twelve copies of one source sample: a fixed serial CellProfiler estimate derived from measured eight-sample batches, divided by measured OpenHCS time at each worker count. The same serial estimate is used for every worker count. **(B, C)** Speedup is CellProfiler time divided by OpenHCS time; values above 1 mean faster OpenHCS execution. Each dot is one of 30 workflows; black lines mark medians. Each distribution is labelled with its minimum, median and maximum speedup. All maxima in B and C are the illumination-correction workflow Example1_AllMethod: single-sample processing took 953.4 s in CellProfiler and 2.10 s in OpenHCS. Logarithmic axes; the red dashed line marks equal speed. ::: ### Agents build working analyses from written briefs @@ -160,60 +156,58 @@ Adding OpenHCS workers shortened execution further. Against a fixed serial CellP ![Agent analysis procedure followed by matched raw, first and final outputs from four separate repair examples.](figures/slas/submission_analysis_repairs.png){width=6.5in} ::: {custom-style="ImageCaption"} -**Figure 4. Image inspection guides repairs to agent-developed analyses.** Six stages turn a biological brief into an editable analysis, with images and measurements available for scientist inspection. **(A–D)** Separate recorded analyses, each showing the same input region before and after revision: bright objects (H001), nuclei (BBBC007 DNA), retinal cell bodies (R0010) and a three-dimensional body (H002). **(A)** A split bright object is joined; F1 against computational reference labels increased from 0.929 to 0.944 on the same development image. **(B–D)** Local, image-supported corrections rather than whole-dataset accuracy estimates. B shows the DNA channel only. D shows the same Z = 36 voxel slice, with all four views rotated 90° counterclockwise for display; this body-separation repair is separate from nuclear localization in Figure 5D. Scale bars: A/B, 10 pixels; C, 20 µm; D, 10 voxels (physical spacing unverified). Original instructions, pipelines and recorded repair trajectories: Supp. Data 5. +**Figure 4. Image inspection guides repairs to agent-developed analyses.** Six stages turn a biological brief into an editable analysis, with images and measurements available for scientist inspection. **(A–D)** Separate recorded analyses, each showing the same input region before and after revision: bright objects (H001), nuclei (BBBC007 DNA), retinal cell bodies (R0010) and a three-dimensional body (H002). **(A)** A split bright object is joined; F1 against computational reference labels increased from 0.929 to 0.944 on the same development image. **(B–D)** Local, image-supported corrections rather than whole-dataset accuracy estimates. B shows the DNA channel only. D shows slice Z = 36, rotated 90° for display. Scale bars: A/B, 10 pixels; C, 20 µm; D, 10 voxels (physical spacing unverified). Instructions, pipelines and repair records: Supp. Data 5. ::: #### Without labels or training, agents match expert-built pipelines -Following the procedure in Figure 4, each agent built a classical nuclear-detection pipeline from a written brief, using intensity thresholding, shape-based separation of touching nuclei and size filtering; no annotated examples were provided and no learned model was used or trained (Supp. Table 6). On BBBC039's official test split (50 fields, 5,720 nuclei), the pipelines reached per-image mean F1 of 0.898–0.903 at IoU ≥ 0.5. Scored with Caicedo et al.'s released evaluator, they reached 0.792–0.823: all three scored above the expert-configured basic CellProfiler 3.0 pipeline (0.790), analysis 4 (0.823) also scored above the advanced pipeline (0.811), and all were below the learned methods (0.840–0.898; Figure 5A) [@Caicedo2019]. Excluding the one official-test field that analysis 2 viewed before freeze changed its scores by less than 0.001. We report the evaluator and sensitivity checks in Supp. methods: analysis scoring. +Following the procedure in Figure 4, each agent built a classical nuclear-detection pipeline from intensity thresholding, shape-based separation of touching nuclei and size filtering, without annotated examples or a trained model. On BBBC039's official test split (50 fields, 5,720 nuclei), scored with Caicedo et al.'s released evaluator, the three pipelines reached F1 of 0.792–0.823. All three scored above the expert-configured basic CellProfiler 3.0 pipeline (0.790), analysis 4 also scored above the advanced pipeline (0.811), and all scored below the learned methods (0.840–0.898; Figure 5A) [@Caicedo2019]. -Across the 175 image-unviewed fields, nuclear detection analyses 2–4 reached pooled F1 of 0.906–0.910 (Supp. Table 6; Supp. Data 5). Unlike the per-image benchmark mean, this score combines object counts across fields. Most errors were missed nuclei, and all three analyses scored below 0.80 on the same six fields. Consistent overall scores can therefore still mask shared local failures. We report per-field errors, all-field and earlier withheld-evaluation results, and the repair that recovered nuclei while increasing splitting in Supp. Figure 4 and Data 5–6. +On the 175 fields no agent had viewed, the three analyses agreed closely, with pooled F1 at IoU ≥ 0.5 of 0.906–0.910. All three, however, scored below 0.80 on the same six fields, mostly by missing nuclei, so consistent overall scores can still hide shared local failures (Supp. Figure 4). ![Official-test nuclear segmentation compared with expert pipelines and learned methods, cell-boundary and translocation measurements, and final three-dimensional nuclear localization.](figures/slas/submission_analysis_summary.png){width=6.5in} ::: {custom-style="ImageCaption"} -**Figure 5. Quantitative validation of agent-developed microscopy analyses.** **(A)** Caicedo F1 on the official 50-image BBBC039 test split; the x-axis is truncated. Agent analyses 2–4 use the released evaluator; the two expert-configured CellProfiler pipelines, Random Forest, DeepCell and U-Net are published values [@Caicedo2019]. F1 is averaged across images and nine strict intersection-over-union (IoU) thresholds from 0.50 to 0.90. Development access differs: agents received no reference labels or score feedback, whereas published methods used training images for configuration or supervised learning (Supp. Table 6). **(B)** Predicted borders within two pixels of manual outlines, 16 fields; dots are individual fields; lines show the value pooled across all fields. **(C)** Well-median log2 nuclear/cytoplasmic GFP across 96 wells, including four development wells; mean ± SD, four wells per dose. Concentration units are given in the plot headings. **(D)** Final three-dimensional nuclear localization analysis 1 (H002), shown in XY, XZ and YZ. All 15 manually annotated centres had a prediction within the predeclared 30-voxel radius; 11 predictions lacked matching annotations. Partial annotation coverage prevents classifying unmatched predictions as false detections. Label colours distinguish nuclei; yellow outlines and magenta in-plane centres locate detections in the orthogonal views. Distances and scale bars are in voxel-index units; physical spacing is unverified. These final views are separate from the body-separation repair in Figure 4D. Protocols and display settings: Supp. Data 5; partial-reference diagnostic: Supp. Figure 4E. +**Figure 5. Quantitative validation of agent-developed microscopy analyses.** **(A)** Caicedo F1 on the official 50-image BBBC039 test split; the x-axis is truncated. Agent analyses 2–4 use the released evaluator; the two expert-configured CellProfiler pipelines, Random Forest, DeepCell and U-Net are published values [@Caicedo2019]. F1 is averaged across images and nine strict intersection-over-union (IoU) thresholds from 0.50 to 0.90. Development access differs: agents received no reference labels or score feedback, whereas published methods used training images for configuration or supervised learning (Supp. Table 6). **(B)** Predicted borders within two pixels of manual outlines, 16 fields; dots are individual fields; lines show the value pooled across all fields. **(C)** Well-median log2 nuclear/cytoplasmic GFP across 96 wells, including four development wells; mean ± SD, four wells per dose. Concentration units are given in the plot headings. **(D)** Final three-dimensional nuclear localization analysis 1 (H002), shown in XY, XZ and YZ. All 15 manually annotated centres had a prediction within the predeclared 30-voxel radius; 11 predictions lacked matching annotations. Partial annotation coverage prevents classifying unmatched predictions as false detections. Label colours distinguish nuclei; yellow outlines and magenta in-plane centres locate detections in the orthogonal views. Distances and scale bars are in voxel-index units; physical spacing is unverified. Matching-radius diagnostic: Supp. Figure 4E. ::: #### Three blind agents recover drug responses in a laboratory neurite assay -All three frozen analyses recovered outgrowth and branching responses to both compounds when re-evaluated with the corrected engine (Figure 6A–D). Mean outgrowth per cell correlated with MetaXpress across the 20 wells (Pearson r 0.963–0.996), while estimated fold changes were generally smaller. Figure 6E groups the correlations by treatment and endpoint, and Figure 6F–H shows matched raw, detection and overlay views; complete endpoint comparisons, effect sizes and baseline checks are in Supp. Data 5. +All three analyses found larger outgrowth per cell at every nonzero dose of FC-A and Y27632, and more branches per cell with increasing dose (Figure 6A–D). Their outgrowth measurements tracked MetaXpress across wells (Pearson r 0.950–0.997 within each treatment; Figure 6E), but their fold changes were smaller: at 40 µM, 1.33–1.63 for FC-A and 1.49–1.69 for Y27632, against 1.98 and 2.05 for MetaXpress (Supp. Figure 2). ![Primary drug responses, one grouped correlation panel and matched raw, detection and overlay views from the blind neurite cohort.](figures/slas/submission_neurite_results.png){width=6.5in} ::: {custom-style="ImageCaption"} -**Figure 6. Three independent agents recover neurite drug responses.** **(A–D)** Mean outgrowth per cell (A–B) and branches per cell (C–D) for fusicoccin-A (FC-A) and Y27632. Three frozen blind analyses were re-evaluated with the corrected engine on 180 fields in 20 wells and compared with MetaXpress. OpenHCS averages nine fields equally per well. Each curve is divided by its own two zero-dose DMSO wells' mean; 1 means no change. Dots: two technical wells per dose per method. Whiskers: sample standard deviation after normalization, excluding control-mean uncertainty. **(E)** Pearson r against MetaXpress, grouped by treatment and endpoint; colours match A–D. Each bar uses ten absolute well measurements across doses within one treatment; drugs are not pooled. Correlation describes co-variation, not magnitude agreement. **(F–H)** Original frozen analysis-1 field: raw calcein, detected bodies and paths, and overlay. Images precede the re-evaluation in A–E. Scale bars, 200 µm. Nine-endpoint comparisons: Supp. Figure 2. Full-resolution microscopy and the separate scientist-assisted comparison: Supp. Data 5. +**Figure 6. Three independent agents recover neurite drug responses.** **(A–D)** Mean outgrowth per cell (A–B) and branches per cell (C–D) for fusicoccin-A (FC-A) and Y27632. Three blind analyses of 180 fields in 20 wells, compared with MetaXpress; OpenHCS values average nine fields per well. Each curve is divided by its own two zero-dose DMSO wells' mean; 1 means no change. Dots: two technical wells per dose per method. Whiskers: SD after normalization. **(E)** Pearson r against MetaXpress, grouped by treatment and endpoint; colours match A–D. Each bar uses ten absolute well measurements across doses within one treatment; drugs are not pooled. **(F–H)** One field from the earlier analysis-1 run: raw calcein, detected cell bodies and paths, and overlay. Scale bars, 200 µm. Other endpoints: Supp. Figure 2. ::: #### Agent-developed translocation analyses separate assay controls -Agent-built translocation pipelines separated positive and negative assay controls above Z′ = 0.5, the conventional threshold for an excellent screening assay [@Zhang1999]; Z′ compares the separation of control means with variation between wells, across four positive and four negative control wells per drug. On 92 BBBC013 wells withheld before development, protein translocation analysis 1 reached Z′ of 0.554 for LY294002 and 0.751 for Wortmannin, using mean cell-level GFP ratios. Across all 96 wells, analysis 2 reached Z′ of 0.849 for LY294002 and 0.726 for Wortmannin, using each well’s median log2 nuclear-to-cytoplasmic GFP ratio among cells with measurable cytoplasm (Figure 5C); three of its four development wells were among the control wells. We report cytoplasmic eligibility counts and both analyses in Supp. Figure 5 and Data 5–6. +Both translocation analyses separated positive and negative controls above Z′ = 0.5, the conventional threshold for an excellent screening assay [@Zhang1999]. Z′ compares the separation of control means with the variation among four positive and four negative control wells per drug. On 92 BBBC013 wells withheld before development, analysis 1 reached Z′ of 0.554 for LY294002 and 0.751 for Wortmannin; across all 96 wells, with three of its development wells among the controls, analysis 2 reached 0.849 and 0.726 (Figure 5C; Supp. Figure 5). #### Cell borders and three-dimensional nuclear positions -On 16 BBBC007 DNA/actin fields, cell-boundary analyses 2–3 placed 0.743 and 0.740 of their predicted borders between touching cells within two pixels of a manual outline (Figure 5B). Nuclear localization analysis 1 recovered all 15 manually marked centres within 30 voxels; 11 predictions lacked a matching annotation, but the partial reference cannot establish their false-detection rate (Figure 5D; Supp. Figure 4E). +On 16 BBBC007 DNA/actin fields, cell-boundary analyses 2 and 3 placed 74% of their predicted borders between touching cells within two pixels of a manual outline (Figure 5B). Nuclear localization analysis 1 found all 15 manually marked centres within 30 voxels; the annotations cover only part of the volume, so its 11 unmatched predictions cannot be scored as false detections (Figure 5D). ### Image review identifies repairs and remaining errors -Matched image inspection exposed errors that overall scores could hide. Agents corrected a split bright object, merged nuclei, fragmented retinal outlines and an over-split three-dimensional body (Figure 4A–D). Bright-object reference F1 rose from 0.929 to 0.944 on one development image; the remaining examples show local image-supported corrections rather than measured whole-dataset accuracy. - -Orthogonal views let scientists check three-dimensional detections across planes (Figure 5D). Wider matched views still show residual merges, unsupported cell-body growth and unresolved neurite crossings (Supp. Figure 6; Supp. Data 5). Captions and Supp. Data 5–7 identify the separate analyses, references and repair trajectories. +Matched image inspection exposed errors that overall scores could hide. Agents corrected a split bright object, merged nuclei, fragmented retinal outlines and an over-split three-dimensional body (Figure 4A–D). The bright-object correction raised F1 against reference labels from 0.929 to 0.944; the other three are local corrections without a whole-dataset reference. Wider views still show residual merges, unsupported cell-body growth and unresolved neurite crossings (Supp. Figure 6). ## Discussion -Preserving the outputs of established workflows lets laboratories extend analyses without discarding their existing processing choices. The 30 CellProfiler workflows retained their outputs on OpenHCS's newer Python environment (Figure 3). Because imported pipelines enter the same editable analysis as any other, a laboratory can replace a CellProfiler module with a compatible GPU or deep-learning function without rebuilding the surrounding workflow. The changed method still needs validation for the assay. +Because the 30 CellProfiler workflows kept their outputs on current Python (Figure 3), laboratories can carry validated pipelines forward without redoing them, then replace a single module with a GPU or deep-learning function without rebuilding the rest. The changed step still needs validation for the assay. -The execution results distinguish two ways to shorten the revision cycle. The advantage held on a single core and persisted after CellProfiler's initialization was spread over eight samples, so it comes from faster per-sample processing (Figure 3B). Measured OpenHCS worker scaling adds a separate parallel-execution benefit. Both reduce the cost of inspecting a result, changing the pipeline and checking the revised analysis across an experiment. +OpenHCS shortens the revision cycle in two independent ways. It was faster on a single core even after CellProfiler's initialization was spread over eight samples, so per-sample processing is faster (Figure 3B), and additional workers add parallel speed (Figure 3C). Both make it cheaper to change a pipeline and recheck it across an experiment. The nuclear benchmark shows that agents given written briefs can reach the accuracy of expert-configured pipelines without labelled examples or model training (Figure 5A). Their analyses are ordinary, editable processing steps rather than trained weights. Where annotations exist, learned methods remain more accurate on this benchmark; where they do not, an agent working inside a shared, inspectable analysis is an alternative that required none here. -The blind analyses recovered both drug responses, but their measurements differed from MetaXpress (Figure 6). Higher vehicle baselines explained smaller outgrowth fold changes, whereas absolute branching increases were also smaller. These comparisons test independently developed analyses; manual tracing would be needed to compare tracing accuracy. Detailed baseline, aggregation and effect-size checks are in Supp. Data 5. Each OpenHCS measurement remains traceable to its detections, settings and source images. +The neurite analyses recovered both drug responses with smaller fold changes than MetaXpress. For outgrowth, their absolute increases were comparable (71–95 µm per cell against 75 µm with 40 µM FC-A), but they measured 1.5–2.8 times as much outgrowth in vehicle wells, which shrinks the ratio. Their branching increases were smaller in absolute terms as well. Manual tracing would be needed to tell which method traces more accurately; each OpenHCS measurement can be traced to its detections, settings and source images. -Repeated agent runs have been unreliable on complex data [@Pan2026BIABench], and Agentic-J describes independent-session repeatability as future work [@Johanns2026]. Here, three independently developed nuclear analyses agreed within about 0.004 pooled F1 on the 175 unviewed fields across three guide revisions, and all three neurite analyses recovered both drug responses with the same model, guide and runtime. These are independent analyses of the same experimental material, not biological replicates. All three nuclear analyses also missed nuclei in the same six difficult fields. Their agreement motivates checking repeatability, but these shared failures show why repeated scores cannot replace inspection of detections. +Repeated agent runs have been unreliable on complex data [@Pan2026BIABench], and Agentic-J leaves repeatability between sessions to future work [@Johanns2026]. Here, three independently developed nuclear analyses agreed within about 0.004 pooled F1, and all three neurite analyses recovered both drug responses; these are independent analyses of the same images, without biological replication. Yet all three nuclear analyses missed nuclei in the same six fields, so agreement between runs cannot replace inspecting the detections. -The shared analysis is designed to grow with stronger agents, larger workloads and other domains. Stronger agents and vision models can use the existing authoring, execution and image-inspection tools, while new processing functions join the editable Python pipeline. Multicore execution distributes samples among workers; multi-GPU methods must coordinate their devices within the underlying library because OpenHCS currently assigns one device to each required framework. The general-purpose libraries are also reusable outside microscopy (Supp. Table 2), with source tests using remote-sensing and telemetry examples. Preparation and execution are being released separately as ArrayPipe [@ArrayPipe] for other data-science and machine-learning applications. +The shared analysis can grow with stronger agents, larger workloads and other domains. Stronger agents and vision models can use the same authoring, execution and inspection tools, and new functions join the editable pipeline. Multicore execution distributes samples among workers; multi-GPU methods must coordinate their devices within their own library, because OpenHCS currently assigns one device per framework. The underlying libraries are not specific to microscopy (Supp. Table 2), and pipeline preparation and execution are being released separately as ArrayPipe [@ArrayPipe]. -In a self-driving laboratory, each cycle proposes an experiment, executes it and interprets the result before choosing the next. From a single written brief, agents working over MCP closed a loop of their own within the interpreting step: they proposed analyses, ran them, checked the results against the images and repaired them without human intervention, producing analyses that matched expert-configured pipelines and separated assay controls, each remaining inspectable and editable. Connecting that loop to experiment selection and instrument control, which systems using SiLA, a standard for laboratory automation, provide [@Hinkel2023; @Lange2026; @Courtney2025; @Thieme2024; @Rihm2024], would close the experimental loop; we did not test that here. In either a conventional or automated laboratory, the aim is to delegate technical analysis work while keeping scientists able to judge, change and extend it. +In a self-driving laboratory, each cycle proposes an experiment, executes it and interprets the result before choosing the next. From a single written brief, agents working over MCP closed a loop of their own within the interpreting step: they proposed analyses, ran them, checked the results against the images and repaired them without human intervention. The resulting analyses matched expert-configured pipelines and separated assay controls, and each remains inspectable and editable. Connecting that loop to experiment selection and instrument control, which systems using SiLA, a standard for laboratory automation, provide [@Hinkel2023; @Lange2026; @Courtney2025; @Thieme2024; @Rihm2024], would close the experimental loop; we did not test that here. In either a conventional or automated laboratory, the aim is to delegate technical analysis work while keeping scientists able to judge, change and extend it. ## Supp. Data {#supplementary-data} @@ -233,8 +227,6 @@ The benchmark uses biological images and pipelines distributed by the CellProfil - official CellProfiler tutorial pipelines and images: [@CellProfilerTutorials] - CellProfiler 4 benchmark supplement: [@Stirling2021] -The [benchmark protocol](../benchmark/results/matched_worker_sweep_20261008_latestproduction/README.md) specifies the workloads, software versions, hardware and timing reports. - We list the source repositories for the eight reusable libraries in Supp. Table 2. ## Acknowledgements diff --git a/paper/supplementary/README.md b/paper/supplementary/README.md index d0f0fcc36..0412345ef 100644 --- a/paper/supplementary/README.md +++ b/paper/supplementary/README.md @@ -23,7 +23,7 @@ Pipeline preparation connects image groups and named detections to the functions ![All additional endpoint responses and treatment-specific correlations from the three blind analyses.](../figures/slas/supp_neurite_autonomous_endpoints.png){width=6.5in} ::: {custom-style="ImageCaption"} -Three frozen blind analyses were re-evaluated with the corrected neurite engine on their original 180 fields in 20 wells. Curves compare each analysis with MetaXpress for fusicoccin-A (FC-A) and Y27632, sharing limits within each endpoint. **(A–B)** Detected cells. **(C–D)** Total outgrowth. **(E–F)** Mean cell process length. **(G–H)** Mean cell median process length. **(I–J)** Total branches. **(K–L)** Total primary processes. **(M–N)** Branches per primary process. Each curve uses its own drug's two zero-dose DMSO wells as baseline. Dots: two technical wells per dose/method; whiskers: sample SD after normalization, excluding control-mean uncertainty. Doses are equally spaced; no concentration–response model was fitted. OpenHCS values average nine fields. MetaXpress branches/process divide exported well totals; per-cell quantities use exported well values. **(O–P)** Pearson r for all nine endpoints, with columns for analyses 1–3. Each coefficient uses ten matched absolute well measurements within one treatment; drugs are not pooled and normalized fold changes are not correlated. Correlation does not establish magnitude agreement or tracing accuracy. Main Figure 6 shows the two primary endpoints; tracing definitions and detailed comparisons remain in Supp. Data 5. +Three blind analyses of their original 180 fields in 20 wells. Curves compare each analysis with MetaXpress for fusicoccin-A (FC-A) and Y27632, sharing limits within each endpoint. **(A–B)** Detected cells. **(C–D)** Total outgrowth. **(E–F)** Mean cell process length. **(G–H)** Mean cell median process length. **(I–J)** Total branches. **(K–L)** Total primary processes. **(M–N)** Branches per primary process. Each curve uses its own drug's two zero-dose DMSO wells as baseline. Dots: two technical wells per dose/method; whiskers: sample SD after normalization, excluding control-mean uncertainty. Doses are equally spaced; no concentration–response model was fitted. OpenHCS values average nine fields. MetaXpress branches/process divide exported well totals; per-cell quantities use exported well values. **(O–P)** Pearson r for all nine endpoints, with columns for analyses 1–3. Each coefficient uses ten matched absolute well measurements within one treatment; drugs are not pooled and normalized fold changes are not correlated. Correlation does not establish magnitude agreement or tracing accuracy. Main Figure 6 shows the two primary endpoints; tracing definitions and detailed comparisons remain in Supp. Data 5. ::: Detailed baseline and effect-size checks and the separate scientist-assisted comparison are retained in [Supp. Data 5](neurite_comparison_details.md). High correlations coexist with smaller absolute branching responses; neither method supplies tracing ground truth.