diff --git a/paper/manuscript.md b/paper/manuscript.md index 6cbdb852b..9ea4ea09e 100644 --- a/paper/manuscript.md +++ b/paper/manuscript.md @@ -24,19 +24,15 @@ 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 organizes image processing and measurement into reusable pipelines that researchers tune for each assay [@Carpenter2006; @McQuin2018]. +Self-driving laboratories couple experimental selection, automated execution and interpretation in an iterative feedback cycle [@Abolhasani2023]. In microscopy-based screening, this cycle depends on converting images into measurements that can inform subsequent decisions. Yet the required analysis is rarely fixed: changes in cell type, staining, imaging conditions or biological endpoint can demand new segmentation, tracking and quantification strategies. CellProfiler represented a major advance in biological image analysis by pioneering an accessible, reproducible framework for assembling complex image-processing workflows, fundamentally transforming the ability of researchers to extract quantitative phenotypic information from high-throughput microscopy data [@Carpenter2006; @McQuin2018]. Its success illustrates both the value of reusable analyses and the continuing need to adapt workflows to individual assays. For autonomous experimentation, the challenge is therefore not simply to invoke an image-processing algorithm, but to make the analytical workflow itself adaptable, verifiable and accessible to both scientists and automated systems. -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]. +The open-source bioimage-analysis ecosystem provides many of the capabilities needed for this work. ImageJ and Fiji offer mature processing functions, macros and plugins [@Schneider2012; @Schindelin2012]. Napari provides an extensible, Python-based platform for interactive multidimensional image visualization and analysis with a plugin architecture that enables integration with other bioimage-analysis tools [@Napari]. OMERO supports image and metadata management [@Allan2012], and Icy combines visualization with extensible analysis tools [@deChaumont2012]. Specialized algorithms for image correction, denoising, segmentation and quantitative measurement further expand what laboratories can accomplish. However, combining these capabilities can require coordinating software dependencies, data interfaces, image metadata and intermediate outputs, creating challenges for maintenance and reproducibility [@Ouyang2023]. These challenges become more consequential when an analysis must be repeatedly revised as an experiment evolves. -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. +Considerable progress has been made in interoperability. Existing approaches connect ImageJ with Python, generate graphical controls from Python functions, enable exchange of processing and measurement tasks between platforms, and coordinate modular algorithms through plugins and containerized workflows [@Rueden2022PyImageJ; @NapariMagicgui; @Dobson2021; @Prigent2022; @Weisbart2024; @Schapiro2022]. These developments reduce the need to rebuild established tools, but connecting software does not by itself ensure that scientists and AI agents can develop and revise the same analysis. Autonomous microscopy requires a persistent, editable workflow whose processing choices and outputs remain understandable as changes are made. In particular, quantitative measurements must remain traceable to the source images and detected structures so scientists can determine whether an analysis measures the intended biology. -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. +AI-assisted bioimage-analysis systems are beginning to reduce the burden of selecting methods, generating code and troubleshooting workflows. The BioImage.IO Chatbot connects users with computational bioimaging resources [@Lei2024], Omega supports conversational analysis and code correction [@Royer2024], and Agentic-J describes a multi-agent approach to image-analysis scripting, debugging and quality assurance [@Johanns2026]. Nevertheless, an analysis that runs successfully is not necessarily scientifically valid as exemplified by BIABench reports of variability across agent attempts and difficulties with complex imaging tasks [@Pan2026BIABench]. OpenHCS addresses this challenge through a shared, editable analysis that scientists and agents can access using graphical controls, Python and agent-facing operations. The Model Context Protocol (MCP) provides a standardized way for agents to discover and invoke those operations [@MCP]. Within the same workflow, agents can inspect intermediate detections and revise methods, while scientists can examine the resulting measurements, trace them to the source images and modify the analysis. Such inspection supports iterative correction. -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. - -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. +Here, we present OpenHCS, an open-source platform designed to support reproducible and autonomous bioimage analysis by enabling scientists and AI agents to develop, execute, and refine shared analytical workflows. We examine its ability to preserve and accelerate established analytical workflows and to enable AI agents to independently develop, execute and refine analyses across diverse microscopy applications. These studies investigate whether autonomous image analysis can be combined with the transparency, flexibility and scientific oversight needed to support the analytical component of self-driving laboratories. ## Materials and Methods @@ -197,6 +193,8 @@ Matched image inspection exposed errors that overall scores could hide. Agents c 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. +Existing integrations show why carrying validated analyses onto current software matters. The [napari-n2v revision cited here](https://github.com/juglab/napari-n2v/tree/0e9fee355d5f51c8ec0f0a6a3b9e4c71fe35237e) reports incompatibility with TensorFlow 2.16 and later and marks the plugin as “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 [@RunCellposeDocumentation], which reached end of life on 31 October 2025 [@Python39Release]. + 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.