vivoBodySeg: Machine learning-based analysis of C. elegans immobilized in vivoChip for automated developmental toxicity testing | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Article vivoBodySeg: Machine learning-based analysis of C. elegans immobilized in vivoChip for automated developmental toxicity testing Andrew DuPlissis, Abhishri Medewar, Evan Hegarty, Adam Laing, and 4 more This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-4796642/v1 This work is licensed under a CC BY 4.0 License Status: Published Journal Publication published 02 Jan, 2025 Read the published version in Scientific Reports → Version 1 posted 12 You are reading this latest preprint version Abstract Developmental toxicity (DevTox) tests evaluate the adverse effects of chemical exposures on an organism's development. While large animal tests are currently heavily relied on, the development of new approach methodologies (NAMs) is encouraging industries and regulatory agencies to evaluate these novel assays. Several practical advantages have made C. elegans a useful model for rapid toxicity testing and studying developmental biology. Although the potential to study DevTox is promising, current low-resolution and labor-intensive methodologies prohibit the use of C. elegans for sub-lethal DevTox studies at high throughputs. With the recent availability of a large-scale microfluidic device, vivoChip, we can now rapidly collect 3D high-resolution images of ~ 1,000 C. elegans from 24 different populations. In this paper, we demonstrate DevTox studies using a 2.5D U-Net architecture (vivoBodySeg) that can precisely segment C. elegans in images obtained from vivoChip devices, achieving an average Dice score of 97.80. The fully automated platform can analyze 36 GB data from each device to phenotype multiple body parameters within 35 min on a desktop PC at speeds ~ 140× faster than the manual analysis. Highly reproducible DevTox parameters (4–8% CV) and additional autofluorescence-based phenotypes allow us to assess the toxicity of chemicals with high statistical power. Biological sciences/Biotechnology/Assay systems Physical sciences/Engineering/Biomedical engineering Physical sciences/Nanoscience and technology/Techniques and instrumentation/Imaging techniques Biological sciences/Developmental biology/Experimental organisms/Model invertebrates/Caenorhabditis elegans Physical sciences/Mathematics and computing/Software U-Net few-shot learning C. elegans developmental toxicity microfluidics high-throughput screening Figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Introduction Traditional developmental toxicity (DevTox) studies have relied on mammalian models such as mice, rats, and rabbits to study adverse effects on their development when exposed to chemicals. Scientific and technological advances have led to the development of new approach methodologies (NAMs), such as in silico , in vitro , or small model organisms ( C. elegans , daphnia , zebrafish embryo), reducing the use of vertebrates. Among model organisms, C. elegans , has several unique advantages, including small body size, ease of culture, homologous genes to humans, conserved xenobiotic pathways, several organ systems, etc., making it suitable for high-throughput toxicology screening platforms. Developmental parameters from C. elegans models have demonstrated high concordance with mammalian toxicity endpoints and outperformed other small model organism species in some situations [1–9]. Although C. elegans have been used as a model organism in major discoveries in the fields of neurodegeneration, aging, and toxicology assessments [5, 9–18], these studies either had low throughput or used gross phenotypes. Specifically, the automated studies were performed by either taking low-resolution images of C. elegans from well plates [19–22] or 1D scattering signal using a flow cytometer to extract developmental parameters [2, 23–25]. Both technologies rely on using anesthetics to reduce worm movement, which is known to have adverse effects on worms, causing their bodies to shrink or curl, eventually introducing errors in the body length measurements [22, 25]. Flow cytometers can provide such data from a large number of worms, however, with high variability (coefficient of variance, CV > 20%) [26]. Plate-based assays also demonstrate poor statistical power due to the small number of worms used per well to avoid overlap and thus simplify image analysis [22, 26–28]. We previously developed a microfluidic-based immobilization method to collect high-resolution images of many C. elegans without using anesthetics and eliminate their random orientation [29–32]. This microfluidic device, called vivoChip, facilitates rapid immobilization of thousands of C. elegans from multiple different populations in parallel microchannels. Specifically, the vivoChip enables collecting high-resolution images from 40 microfluidic channels for each population of C. elegans with each worm body spanning over thousands of pixels (5,056 × 354 pixels per channel). Imaging a long microchannel allows us to capture the entire C. elegans body in a single field of view (FOV) and avoid image stitching. The vivoChip can immobilize worms with a wide range of body sizes, which is an outcome of the adverse effects on worms’ development and health when exposed to high concentrations of toxic chemicals. Such images of worms with different body sizes demonstrate a variety of contrast levels, resulting in additional challenges during image analysis. DevTox analysis of such high-resolution data obtained from vivoChip devices is very time-consuming and necessitates automation. Several machine learning (ML)-based vision systems have been developed for the segmentation of C. elegans bodies in images obtained by plate readers to analyze their growth and behavioral parameters [33, 34]. These systems, however, face difficulties in multi-object identification in a dense setting with overlapping specimens [35]. Imaging C. elegans using vivoChip overcomes this concern by immobilizing up to 40 worms side by side within 40 parallel microchannels per population. Automated C. elegans body segmentation of the vivoChip images requires processing full 3D image stacks to precisely detect the worm and correctly identify its boundaries from high-frequency content that spans the entire volume. In this paper, we present vivoBodySeg, an ML-based model to automatically segment C. elegans bodies immobilized inside the vivoChip devices and, thus, streamline accurate and multiparametric DevTox studies. To create extensive and balanced ground truth data, we developed a user-friendly toolbox that enables the visualization, classification, and segmentation of vivoChip-generated C. elegans images. vivoBodySeg utilizes a 2.5D U-Net architecture with an attention mechanism at the bottleneck that is trained for classification and semantic segmentation of the C. elegans body. The model achieves highly accurate segmentation with a Dice score of 97.8% across a heterogeneous population of C. elegans . The predicted segmentations are indistinguishable from humans while taking ~ 150× less time. Further, we demonstrate that with a careful fine-tuning procedure using only a small number of samples and four hours of training, we are able to segment a phenotypically disparate population with a Dice score of ~ 97%, providing a 2% improvement to the based model. This automated image analysis pipeline reduces human error, eliminates user bias, and achieves repeatable high-accuracy analysis of DevTox parameters. Methods C. elegans culture and chemical treatment. C. elegans culture and chemical treatment are performed according to previously published protocols [29, 30, 36]. Briefly, N2 C. elegans strains ( Caenorhabditis Natural Diversity Resource - CaeNDR) are collected from gravid adults by sodium hypochlorite treatment and developed into synchronized larvae 1 (L1) stage worms overnight. L1s are placed in a 24-well plate with HB101 food in S media. The L1 larvae are treated with Methylmercury (II) hydroxide (CH 3 Hg, CAS# 1184-57-2, Sigma), a known developmental toxicant [37, 38], in conventional 24-well plastic plates with solvent controls. The plates are incubated at 20°C for 72 hours until the worms in the control wells reach the day 1 (D1) stage of adulthood. The experiments are repeated five times using five vivoChip-24x devices on three different days. High-resolution imaging of C. elegans. To acquire high-resolution images of worms, we load all 24 populations into a 24-well microfluidic device (vivoChip-24x, vivoVerse) in M9 buffer after 72 hours of chemical treatment in conventional plates. Underneath each well of the vivoChip-24x device, there are 40 parallel, gently tapering 3 mm long microfluidic trapping channels to trap C. elegans (Figs. 1 a-c). The vivoChip-24x device contains a total of 960 trapping channels. A custom-designed gasket seals the device to provide fluidic connections to all wells. A single input in the gasket applies fluidic pressure to push the worms into individual channels (1 animal per channel) using intermittent ON/OFF fluidic pressure cycles. Once all channels fill up with worms as they are immobilized inside the parallel, narrowing channels, a constant fluid pressure holds them still for performing blur-free imaging. Automated high-resolution imaging is then performed on all 960 channels to collect time-lapse and z-stack brightfield images, and z-stack fluorescence images within 30 minutes using a customized automated microscope (IX73, Evident) with a high-quantum efficiency, fast, and large area camera (IRIS15, Teledyne). All 40 channels underneath each well are imaged in 5 FOVs using 10×, 0.4NA objective. Each FOV includes 8 channels. The entire worm volume is captured with 10 z-slices at 6-micron steps centered around the best focal plane of a fiduciary marker. We also collected 5 time-lapse 3D hyperstack images at 1-second intervals (Fig. 1 d). Following the time-lapse brightfield imaging, a single z-stack of autofluorescence images is also acquired using a GFP filter set using the same objective. There are 2 types of vivoChip-24x devices used in this study to accommodate the complete immobilization of C. elegans of different body sizes. The first device, the vivoChip-24x-3L device, has 3-layer microchannels with different heights that can immobilize young adult (YA) to Day 1 adult (D1) stage worms ( Supplementary Fig. 1a ). The second device, the vivoChip-24x-4L device, has an additional layer (4 layers in total) to reduce the microchannel dimensions further to enable immobilization of smaller larvae state (L4) worms as well ( Supplementary Fig. 1b ). We used the 4-layer (4L) microfluidic chip (vivoChip-24x-4L) for testing toxicants in a wide range of concentrations that may result in widely different sizes of C. elegans from young L4 up to D1 adult stage. Pre-processing of images Images are automatically uploaded to a local server for processing and analysis. Each channel is then cropped into individual hyperstacks by clipping the full FOV hyperstack into eight 150 µm wide sections (Fig. 1 e). The cropping is centered around each predicted channel centerline, which is determined in relation to the fiduciary marker (Fig. 1 g). Manual segmentation for ground truth data Manually annotating each volumetric image of individual C. elegans is done with an in-house graphical user interface (GUI) toolbox (vivoSegmenter). The GUI allows the user to scroll over multiple z-plane images and time points for each cropped channel. Since the morphology of the segmented worm body in a given channel does not change substantially between time points, users only consider the first time point. In the GUI, the user first selects one of the 3 classes for each channel: no worm (empty channel), partial worm (a partially visible worm is present inside the channel), or full worm (a full worm body is present in the channel). Users then segment full worms by clicking multiple points along the worm bodies in different z-slices in each cropped channel presented by the GUI. Specifically, the GUI registers the coordinates (x, y, and z) of the points as the users click on the image. Once all the points are entered and closed to encompass the worm, a polygon is created by connecting all the points as vertices. Most of the C. elegans body segmentation requires users to examine 3 to 5 z-slices. While depth information is important for clearly delineating boundaries, wide-field microscopy lacks the optical sectioning required to produce fine-grained segmentation over depth. We, therefore, collapse all segmentation polygons, namely our ground truth, into a single 2D binary image. Finally, each channel is assigned a class label (full, partial, or empty). A single polygon is then generated for the full worm class label only. Data pre-processing for ML analysis Our network is designed to work with either a full z-stack image volume or a subset of the data volume. Specifically, while we collect 10 focal planes per time point during imaging, we have found that successfully solving most vision-related problems was optimally done with a subset of a single volume centered on a relevant focal plane (Fig. 1 f). Finding this central focal plane of a cropped channel can be done by taking the Laplace transform of each z-slice and selecting the one with the highest frequency components [39, 40]. We note that the mode (most occurring value) of the z-values from all the vertices the user clicks for worm segmentation is the same z-plane that we estimate as the best focal plane through the Laplace transform. After identifying the central plane, \(\:N\) planes from focal planes from each side are collected and stacked along the channel dimension ( \(\:H\times\:W\) ) to form a 2.5D tensor, together represented as a \(\:(2N+1)\times\:H\times\:W\) tensor. For each cropped channel, the height (H) of the image is fixed to 5,056 pixels and the width (W) to some value between 340 ≤ W ≤ 360 pixels depending on the cropping process. To obtain a similar size for all 960 channels and make the size suitable for our network, images are padded on both sides to obtain a fixed width of 384 pixels. In practice, we found using \(\:N=1\:\) (3 z-stack images) to be the optimal configuration for this problem, as expanding beyond 3 z-slices did not improve performance. vivoBodySeg architecture for C. elegans body analysis We propose a 2.5D U-Net for vivoBodySeg model with an attention mechanism at the bottleneck for the classification and semantic segmentation of C. elegans [41]. The proposed architecture consists of the following sub-networks: a fully convolutional encoder, a bottleneck layer consisting of a small vision transformer (ViT), and a fully convolutional decoder (Fig. 2 a). This network produces two outputs: a pixel-wise segmentation over classes produced by the decoder and an image-wise classification over classes produced at the bottleneck layer. Drawing terminology from previous work, an N.5D CNN refers to a convolution neural network (CNN) that processes N + 1 dimensions but only N of them in a convolutional manner [42]. The last dimension is stacked over the channel/feature dimension in a manner similar to how spectral information is often treated. Each layer of our vivoBodySeg network is defined by the same residual convolutional layer in both the encoder and decoder; the general design of this layer follows what is proposed by He et. al. in their work on the ResNet architecture (Fig. 2 b) [43]. Following the standard practice for models that perform semantic segmentation, the final decoder layer is followed by a set of linear layers and the softmax function to produce a soft segmentation. To augment the standard convolutional approach, we introduce a ViT at the bottleneck to enable efficient, long-range communication between embedded voxels (Fig. 2 c). While standard images collected by non-scientific cameras may span hundreds of pixels, our images with Iris15 camera span over 5,056 pixels along the worm length. By replacing the standard convolutional bottleneck with a ViT, our goal is to ease the classification task as relevant image patches span thousands of pixels. The output of our ViT is routed to two separate sub-networks: the convolutional decoder and the classification subnetwork. The classifier we designed involves the pooled attention mechanism introduced by Lee et. al. with a single seed vector followed by a series of linear layers to produce a vector with elements such that we can use it for our classification task [44]. Unlike a standard ViT that generates a tokenized version of our image through a linear embedding of voxels [45] or a secondary generative model such as a VQ-VAE [46], the encoder of our U-Net serves as our embedding mechanism. Upon reaching the bottleneck, the 4D tensor is rearranged into a tokenized format, \(\:{X}_{e}=Flatten\left({F}_{enc}\left(X\right)\right)\in\:{\mathbb{R}}^{B,\frac{H}{S}\times\:\frac{W}{S},C}\) where \(\:s\) is equal to \(\:{2}^{Layers}\) and \(\:c=256\) , and combined with learnable positional encodings. Following this step, the data is processed as a sequence by a small 4-layer ViT. Following the standard design introduced by Vaswani et. al. for natural language processing, data is first normalized and routed to a multi-head self-attention block. Following a residual connection, data is once again normalized and routed to a feed-forward network where we maintain the standard feature expansion e.g., \(\:\left|{C}_{FFN}\right|=4*\left|{C}_{MHSA}\right|\) [47]. The input and output of the self-attention block are also connected by a residual connection. Our code and network configuration files for the vivoBodySeg framework are available for academic use upon request. Network training, validation, and testing for C. elegans images The training set includes 3,637 channels acquired using the vivoChip-24x-3L devices from experiments conducted for different treatment conditions. In 81% of the channels, the entire body of C. elegans is fully present within the channel (full worm), 14% of these examples are worms only partially visible within a channel (partial worm), and 5% are examples of purely empty channels (no worm). We split the entire data in an 8:1:1 ratio between the training, validation, and testing sets, where the percentages of class distribution are consistent across all sets. We utilize horizontal and vertical flips, small rotations, and contrast adjustments to enhance the underlying dataset. Each training step randomly selects a mini batch of 32 images and serves as examples in a single forward pass. We use an AdamW optimizer with an initial learning rate of 2×10 − 4 and weight decay of 1×10 − 2 [48]. During training, the learning rate is scheduled according to cosine annealing with warm restarts ( \(\:{W}_{0}=10,\:F=2\) ) over 1,200 total epochs [49]. We update our network according to our loss functions for segmentation and image classification. Only full worms are sent to the decoder for learning segmentation, and the weights are updated. All vivoBodySeg networks are trained on a computer with 128 GB of memory and an A6000 GPU with 48 GB of VRAM. Post-processing and inference to find C. elegans body parameters During inference or testing, we only consider those channels with full worms and apply a simple set of post-processing procedures to clean the data and extract relevant endpoints. During post-processing, a threshold of 0.50 is applied to the output such that we form a binary mask indicative of the C. elegans body. After this step, the connected component analysis identifies large binary objects as the worm bodies (trained to detect L4 up to adult stage worms) and removes all small objects outside this binary mask (such as laid eggs, small larvae, debris, etc.) present within the channel. The binary mask is used to estimate three body parameters: length, area, and volume. The body length is retrieved from the longest spanning tree in the skeleton of the binary mask. The binary object provides the area of the C. elegans body. The total volume is estimated by taking into account the known height of each pixel inside the predicted C. elegans mask. Evaluation metrics for model performance When evaluating our network, we report several metrics to quantify the overall segmentation quality. To understand general network performance, we use the Dice score to track validation progress and to quantify how the model works in a test setting. We use the Wilcoxon signed rank sum test to assess whether the mean Dice score ranks differ between models. We then use our post-processed data to further elucidate the model accuracy by reporting the ratio of the predicted skeleton length over the ground truth skeleton length. We also estimate the volume ratio (predicted volume to the ground truth volume) and classification accuracy using the weighted F1 score. To compare the model performance with human scorers, we calculate the Dice score from the segmentation for multiple scientists and compare it with the Dice score estimated between the predicted mask and the ground truth segmentation data. Autofluorescence analysis We measure the autofluorescence signal within the predicted body mask using the fluorescence image captured with a GFP filter set. First, we create a maximum-intensity projection image from all 10 z-stacks. Using the control wells with 0.2% DMSO treatment, we determine a threshold intensity above which the brightest 5% of the pixels lie. These 5% pixels correspond to the granules of lysosomes in the worm gut, which are major contributors to the increase in autofluorescence under stressors. We calculate the average pixel intensity considering the pixels with an intensity above this threshold and within the predicted body mask for all worms. We use the average autofluorescence value per unit body length and per unit body area to identify dose-dependent responses to a chemical treatment. Statistical analysis of dose-dependent body parameters For developmental toxicity assays, body parameters and autofluorescence signals are calculated for each worm. The individual worm values are filtered to remove all measurements from worms with body lengths and autofluorescence signals significantly deviating from the median using the Tukey fences (1.5 * the interquartile range). Worms with measurements outside these fences are removed from the analysis. After filtering, we use the remaining worms to estimate the well average (µ) and standard deviation (σ) for body length, area, and volume. The data is presented as average ± standard error of the mean (SEM) from multiple replicates. We calculate the coefficient of variance ( \(\:CV=\sigma\:/\mu\:\) ) from all the control wells. The average values for each body parameter and autofluorescence signal are plotted for different concentrations, and the effective concentration (EC 10 ) value for the 10% change in the parameter is fitted from datasets with a 4-parameter, variable slope Hill function using the “Find ECanything” nonlinear fit function of GraphPad Prism. The slope bottom and top are constrained to zero (for length, area, and volume) and left unconstrained (for autofluorescence signal), respectively. The EC 10 values are presented with ± 95% confidence interval (CI) values for each parameter. To calculate the lowest observable adverse effect level (LOAEL) for each phenotype, we test for normality (Shapiro-Wilk test) and identify the first dose where the phenotype departs significantly ( p -value < 0.05) from the baseline value of the control population using Welch ANOVA with post hoc Dunnett’s T3 multiple comparison tests. Results A 2.5D U-Net vivoBodySeg model segments C. elegans body. Making use of our training corpus, we trained a base model (U-Net with no attention, vivoBodySeg-2D) alongside an improved U-Net model making use of the attention bottleneck (vivoBodySeg-2D, Att) and the 2.5D U-Net with an attention bottleneck (vivoBodySeg-2.5D, Att). All three models were trained and validated using our in-house computational power ( Supplementary Fig. 2 ). We tested all three models on an unseen \(\:M=362\:\) test samples. We calculated segmentation accuracy using the Dice score, length ratio, volume ratio, and classification accuracy for all three models (Table 1 ). We note the length and volume ratios are highly correlated with predicted body segmentation. We found vivoBodySeg-2.5D, Att to be highly performant, with an average Dice score of 97.80 ± 0.08, a length ratio of 0.991 ± 0.001, and a volume ratio of 1.008 ± 0.002. The vivoBodySeg-2.5D, Att model classified all 362 test images into three groups (301 full worms, 48 partial worms, and 13 no worms) with a weighted F1 score of 0.995. The model could detect C. elegans bodies with high accuracy completely inside the field of view and ignore foreign particles with high confidence ( Supplementary Fig. 3 ). Table 1 Test results of the proposed U-Net models using 362 images Model name Dice score Length ratio Volume ratio Weighted F1 score vivoBodySeg-2D (no attention) 96.62 ± 0.12 0.987 ± 0.002 1.026 ± 0.003 0.986 vivoBodySeg-2D, Att (with attention) 97.24 ± 0.10 0.988 ± 0.001 0.999 ± 0.003 1.000 vivoBodySeg-2.5D, Att (2.5D, with attention) 97.80 ± 0.08 0.991 ± 0.001 1.008 ± 0.002 0.995 While understanding how our model performs with respect to manual segmentations, we wanted to compare our models’ results with respect to a population of human scorers. Five scientists segmented the same 20 channels with C. elegans to calculate the values of Dice scores associated with inter-individual variability. We calculated Dice scores between all 5 scorers and found the average to be 96.10 ± 0.12 ( n = 200) (Fig. 3 a). We then estimated the Dice scores for all three models using 301 body segmentations (under the full worm classification) from two of the scorers as the test sample set. vivoBodySeg-2.5D, Att had 9% of the samples with a Dice score below the average value of 96.10% compared to the 31% for vivoBodySeg-2D (Fig. 3 b and Supplementary Fig. 4a-b ). Few-shot learning to improve the body detection for smaller worms immobilized in vivoChip-24x-4L device New chemicals are often tested with a wide range of concentrations to identify lethal doses in a dose-finding experiment. In such assays, several worm populations are developmentally arrested or severely retarded, causing small-size worms. In addition, such highly potent chemical conditions cause a heterogeneous worm population with variable body sizes. To study such conditions, we treated C. elegans populations with high doses of a reference toxicant CH 3 Hg, where the C. elegans are expected to have slow development and thus significantly smaller body sizes and lower image contrasts. Beyond the mildly dissimilar microfluidic environment, the differences between the larvae and adult C. elegans are visually profound. The developmentally retarded worms (young L4) are transparent, have no eggs, and have fewer gut granules than normally grown adult C. elegans (Figs. 4 a-d). Using vivoBodySeg-2.5D, Att, we measured a zero-shot Dice score (94.90 ± 0.47) on the images obtained with vivoChip-24x-4L device with phenotypically different worms (Table 2 ). Since vivoBodySeg-2.5D, Att was highly performant on images acquired with vivoChip-24x-3L devices (Dice score of 97.80 ± 0.08), we wanted to understand few-shot learning (FSL) performance on a phenotypically different population of worm images that are obtained with vivoChip-24x-4L devices. For this test, we used 512 and 107 channel images from vivoChip-24x-4L for training and testing, respectively. We fine-tuned the network in five steps with varying amounts of training data to understand the impact of dataset size on the fine-tuning process. The training was performed with 32 (6.3%), 64 (12.5%), 128 (25.0%), 256 (50.0%), and 512 (100.0%) training samples from the vivoChip-24x-4L device. To avoid catastrophic forgetting, an equal number of worms from the previous 3L dataset was mixed with this new 4L data. Each split was trained with a batch size of 32 over 250 epochs, where we followed a cosine annealed one-cycle learning rate scheduler and a maximum learning rate of \(\:{10}^{-6}\) . All the trained models were tested with \(\:M=362\) (from vivoChip-24x-3L) images and \(\:M=107\) (vivoChip-24x-4L) images. To understand model improvement, we report the Dice scores and classification accuracies using weighted F1 scores for worm images acquired with vivoChip-24x-3L (adult worms only) and vivoChip-24x-4L (L4 up to adult worms) devices (Table 2 and Supplementary Figs. 5a-b ). Table 2 Dice score for the few-shot learning of vivoBodySeg-2.5D, Att model with different amounts of training data (6.3% – 100% of 512 images). Number of images (%) vivoChip-24x-3L device vivoChip-24x-4L device Dice score Weighted F1 score Dice score Weighted F1 score 0 (0.0%) 97.80 ± 0.08 0.995 94.90 ± 0.47 0.860 32 (6.3%) 96.57 ± 0.14 0.938 95.90 ± 0.31 0.986 64 (12.5%) 96.95 ± 0.12 0.971 95.93 ± 0.30 0.986 128 (25.0%) 97.28 ± 0.11 0.992 96.52 ± 0.32 0.986 256 (50.0%) 97.32 ± 0.10 0.995 96.90 ± 0.25 0.986 512 (100.0%) 97.39 ± 0.11 0.995 96.91 ± 0.19 0.986 While phenotypic differences between the two populations reduced the performance of our baseline model (vivoBodySeg-2.5D, Att), we were able to finetune its performance in detecting worm bodies across a wide range of worm populations within four hours of additional training (Figs. 5 a-f). While the ideal corpus represents any unseen test set, the fine-tuning strategies deployed here allowed us to process new and highly disparate data classes with hundreds rather than thousands of examples. Although the final vivoBodySeg-2.5D, Att (trained with 512 images) model detected the adults with slightly lower accuracy (Dice score 97.39 ± 0.11 from 97.80 ± 0.08) for images from vivoChip-24x-3L devices, the performance improved immensely for the new class of data (Dice score 96.91 ± 0.19 from 94.90 ± 0.47). The final vivoBodySeg-2.5D, Att (100.0%) model detected adult worms imaged in the vivoChip-24x-3L with similar accuracy as the baseline model, before finetuning ( Supplementary Fig. 6 ). We achieved a weighted F1 score of 0.986 using the final vivoBodySeg-2.5D, Att model compared to 0.860 estimated with the baseline model before the FSL approach was implemented. Studying developmental toxicology in C. elegans with methyl mercury exposure We exposed age-synchronized C. elegans larvae to 12 concentrations of CH 3 Hg in 0.2% DMSO for 72 hours in plastic well plates and imaged them using the vivoChip-24x-4L device. The experiment was repeated five times to identify batch-to-batch variability and estimate the coefficient of variability parameters from the 0.2% DMSO controls (Fig. 6 a). We analyzed all the 4,800 microfluidic channels from 5 independent experiments using the final vivoBodySeg model (few-shot learning with 512 images) to automatically identify channels with C. elegans and estimate the body parameters (length, area, and volume). The inference code with this model analyzed a full chip with 1,200 brightfield images in 35 minutes. We obtained highly similar assay results in all the body parameters, studied from all five chip experiments. The coefficient of variance (CV) between the DMSO controls from 5 replicates for the body length (3.7%), body area (7.9%), and body volume (8.0%) were much below the 30% threshold, accepted CV values in a similar guideline using a similar species in the OECD test guideline [50]. The values indicate that we have a robust automated developmental toxicity (DevTox) assay using C. elegans models that can detect small changes in the body parameters with high confidence. To demonstrate the utility of our DevTox assay, we performed a dose-response study on the CH 3 Hg, a reference toxicant tested in C. elegans and other species including humans [17, 37, 38, 51–55]. The average body parameters from five experiments consistently decreased with increased CH 3 Hg concentration (Figs. 6 b-d). The body volume (EC 10 = 0.46, 0.32–0.63 µM, ± 95% CI) and body area (EC 10 = 0.46, 0.32–0.64 µM) show toxicity effects at slightly lower concentrations than the body length (EC 10 = 0.78, 0.56–1.05 µM). The LOAEL values for all three body parameters were estimated as 1.0 µM. The worms exposed to the highest dose (9.0 µM) of the toxicant only develop to the early L4 stage. These smallest worms were, thus, trapped in the fourth layer of the microchannels, towards the exit with the smallest channel height, matching our body parameters calculated using the model (Fig. 6 e). The autofluorescence signal in C. elegans , as in mammalian cells, is found in the granules of lysosomes, which are present in their intestine [56]. The intestinal autofluorescence is known to increase with age of the worm [57–59] and when exposed to toxicants [60, 61]. We utilized predicted body masks to analyze the autofluorescence signal within each C. elegans body and identify the change in the average autofluorescence signal in a quantitative manner. The average autofluorescence signal per unit body length for 9.0 µM CH 3 Hg (2.23 ± 0.09) is ~ 2× higher than the value for 0.5 µM CH 3 Hg (1.17 ± 0.06) in a statistically significant manner ( p -value < 0.001). The average autofluorescence signal per unit body length for 0.5 µM CH 3 Hg is similar to the baseline value for DMSO control (1.15 ± 0.01, p -value = 0.63, Fig. 6 f). On the other hand, the average autofluorescence signal per unit body area for worms treated with 9.0 µM CH 3 Hg (0.081 ± 0.008) increased by ~ 3× than the value for 0.5 µM CH 3 Hg (0.027 ± 0.001, p -value = 0.002, Supplementary Fig. 7 ). The EC 10 values for the average autofluorescence signal per unit body length (1.59 µM, 95% CI is 1.27–1.93 µM) is lower than the value for per unit body area (2.98 µM, 95% CI is 2.48–8.44 µM). The LOAEL values for autofluorescence per unit length and per unit area are 2.5 µM and 1.5 µM, respectively. The increase in the autofluorescence signal was delayed compared to the developmental features and is likely to be a less sensitive parameter for toxicology assessment for CH 3 Hg. Additionally, we found that C. elegans exposed to high doses of CH 3 Hg showed slow motility when observed in their culture plates, agreeing with the previously published correlation between high autofluorescence and locomotion [61]. Discussion This study presents an ML-based image analysis platform to perform DevTox studies using C. elegans as a NAMs model. This platform enables rapid high-content analysis of thousands of C. elegans images collected as they are immobilized in parallel channels of a large-scale microfluidic platform, vivoChip-24x. DevTox assessment is one of the mandatory tests needed for human and environmental risk assessment of new chemicals before they are approved for commercial use. Due to the large number of chemicals currently in commercial use (85,000) and more than 2,500 new ones added every year [62], industries are seeking innovative solutions to assess chemicals in a high-throughput manner with high predictive power. C. elegans has been used as one of the in vivo models for early drug discovery and toxicology screens. To improve assay sensitivity, capture multiple phenotypes, and facilitate high-content image-based analyses, we developed an automated imaging and image-analysis pipeline to quantify multiple phenotypes in C. elegans models. We used vivoChip technology to capture brightfield, fluorescence, multiple z-stack, and time-lapse images from 960 C. elegans and 24 populations in each vivoChip device. Our vivoChips are fabricated using plastic instead of PDMS to lower chemical absorption. The microfluidic channels are sealed with a thin substrate to allow the capturing of high-resolution images with sufficient contrast from transparent worm body parts such as the tail tip or young larvae with reduced gut granules. The ML-based vivoBodySeg, trained with the images obtained using vivoChip-24x devices, is highly performant in two different experimental settings using 3-layer and 4-layer devices. By including a ViT at the bottleneck layer of our encoder, we can easily communicate features that span the entire image length in a memory-efficient manner. Further, by accounting for the information from multiple z-stack images in a multiplicative manner, the overall network generates volumetric features without relying on higher dimensional convolutions. We find this model highly accurate and indistinguishable from our highly trained scientists for segmenting an arbitrary dataset. The model can analyze data from one vivoChip-24x experiment (~ 1,000 animals, 9,600 single-channel images, 36 GB data) in 35 minutes using a single desktop PC (with 128 GB of memory and an A6000 GPU with 48 GB of VRAM) compared to 5,000 minutes for uninterrupted expert analysis hours. Our C. elegans DevTox analysis includes accurate measurements of worm length, body area, and volume, as they prove to be highly useful developmental endpoints with different levels of sensitivities. Automated analysis of C. elegans developmental parameters is currently available using length estimation with the COPAS Biosorter via 1D signal analysis or plate readers via low-resolution image analysis [21–23, 27]. While several groups have used these tools to analyze C. elegans bodies, these assays provide data with a high amount of variability and poor statistical power [26]. Advancements in microfluidic technologies have enabled on-chip C. elegans imaging and quantifying body parameters using conventional image processing [63, 64]. Unfortunately, these platforms acquire low-resolution images and introduce a high amount of variability in their body parameters. The machine learning pipeline that we developed can analyze the data obtained from our fully automated and scalable vivoChip-24x devices and provide body measurements with high statistical power. Based on the average observed variance in the body parameters, we found a > 80% power to identify a 4% change in length and area, and a 7% change in volume using experimental replicates. The fully automated ML-based approach eliminates user bias, does not suffer from user fatigue, helps reduce assay costs, and achieves high throughput to screen many chemicals in a low-resource setting. To demonstrate the implementation of our DevTox assay powered with ML analysis, we conducted a study with a well-characterized toxicant CH 3 Hg at 18 different doses ranging from 0.5 to 9.0 µM concentrations and 0.2% DMSO solvent. We quantified DevTox using the effects on the body length, area, and volume parameters in a dose-dependent manner. We found lower EC 10 for the body area and volume (0.46 µM) than the body length (0.78 µM) in the N2 strain, indicating the area and volume parameters are more sensitive parameters of DevTox. We noticed that the worm populations with severe developmental defects due to exposure to higher concentrations of CH 3 Hg have higher intestinal autofluorescence signals than the control worms, indicating a possible increase in stress levels from toxicity response. During autofluorescence analysis, we found a few examples where the predicted body mask, especially the tip of the tail or the head of a worm, did not match completely due to body movement between frames. This problem is less concerning for autofluorescence analysis due to the signal being localized to the body region that is completely immobilized. To improve immobilization and hold the entire worm body still during the imaging, the worms can be immobilized with a low concentration of anesthetic solution or gel material. The machine learning pipeline, combined with our scalable microfluidic technologies, can provide rapid DevTox parameters of new and in-use active ingredients using C. elegans models. To the best of our knowledge, this is the first study demonstrating automated, high-throughput quantifications of C. elegans volume, which is analogous to body weight measurements as used in standard DevTox and ecotoxicology tests with animals. In the future, we aim to expand the DevTox assays with other endpoints such as reproduction endpoints using in-utero embryonic phenotypes. The DevTox parameters have high statistical power and can provide toxicology endpoints from C. elegans models for read-across strategies, which are currently being developed by several industries to establish NAMs and understand fit-for-purpose toxicology assays. Declarations Acknowledgments: The authors would like to thank the National Institutes of Health for the Small Business Innovation Research grants from NIEHS (R43ES033579 and R44ES033579) and NIMH (R43MH118841 and R44MH118841). We would like to thank Thao Vu and Laura Murphy for their help in manual segmentations. We also thank Nikko Chavez and Jacob Moore for the initial version of the image acquisition setup. Some strains were provided by the CGC, which is funded by the NIH Office of Research Infrastructure Programs (P40 OD010440). We thank The Caenorhabditis Natural Diversity Resource (CaeNDR) for providing the N2 strain. Author Contributions: A.D. and A.M. designed, trained, and validated the machine learning models. S.G. developed image acquisition and segmentation software. A.S., A.L., and E.H. ran the experiments. A.D., A.M., A.L., and S.M. analyzed the data, prepared the plot, and performed the statistics. S.M. and A.B. conceptualized the projects, planned the experiments, and finalized the discussion of the results. A.D., S.M., and A.B. prepared the manuscript. Data Availability: The datasets generated during and/or analyzed during the current study are available from the corresponding authors upon reasonable request. Conflict of Interests Statement: E.H., S.M., and A.B. are co-founders of vivoVerse, LLC and its Associates. A.D., A.S., A.L., E.H., S.M., and A.B. are inventors of several approved and pending patents. References Boyd, W.A., et al., A high-throughput method for assessing chemical toxicity using a Caenorhabditis elegans reproduction assay. Toxicol Appl Pharmacol, 2010. 245 (2): p. 153-9. Boyd, W.A., et al., Developmental Effects of the ToxCast Phase I and Phase II Chemicals in Caenorhabditis elegans and Corresponding Responses in Zebrafish, Rats, and Rabbits. Environ Health Perspect, 2016. 124 : p. 586-93. Boyd, W.A., et al., Medium- and high-throughput screening of neurotoxicants using C. elegans. Neurotoxicology and Teratology, 2010. 32 : p. 68-73. Harlow, P.H., et al., Comparative metabolism of xenobiotic chemicals by cytochrome P450s in the nematode Caenorhabditis elegans. Sci Rep, 2018. 8 : p. 13333. Harlow, P.H., et al., The nematode Caenorhabditis elegans as a tool to predict chemical activity on mammalian development and identify mechanisms influencing toxicological outcome. Sci Rep, 2016. 6 : p. 22965. Hunt, P.R., The C. elegans model in toxicity testing. J Appl Toxicol, 2017. 37 : p. 50-59. Hunt, P.R., Building Confidence in the Use of NAMs data for Risk Analysis: C. elegans as a Case Study , J. Camacho, Editor. 2021. Hunt, P.R., J.A. Camacho, and R.L. Sprando, Caenorhabditis elegans for predictive toxicology. Current Opinion in Toxicology, 2020. 23-24 : p. 23-28. Hunt, P.R., et al., C. elegans Development and Activity Test detects mammalian developmental neurotoxins. Food Chem Toxicol, 2018. 121 : p. 583-592. Morley, J.F., et al., The threshold for polyglutamine-expansion protein aggregation and cellular toxicity is dynamic and influenced by aging in Caenorhabditis elegans. Proc. Natl. Acad. Sci. USA, 2002. 99 : p. 10417-22. Link, C.D., Expression of human beta-amyloid peptide in transgenic Caenorhabditis elegans. Proc. Natl. Acad. Sci. USA, 1995. 92 : p. 9368-72. Lakso, M., et al., Dopaminergic neuronal loss and motor deficits in Caenorhabditis elegans overexpressing human alpha-synuclein. J Neurochem, 2003. 86 (1): p. 165-72. Dillin, A., et al., Rates of behavior and aging specified by mitochondrial function during development. Science, 2002. 298 (5602): p. 2398-401. Lee, S.S., et al., DAF-16 target genes that control C. elegans life-span and metabolism. Science, 2003. 300 (5619): p. 644-7. Xiong, H., C. Pears, and A. Woollard, An enhanced C. elegans based platform for toxicity assessment. Sci Rep, 2017. 7 : p. 9839. Cole, R.D., G.L. Anderson, and P.L. Williams, The nematode Caenorhabditis elegans as a model of organophosphate-induced mammalian neurotoxicity. Toxicology and Applied Pharmacology, 2004. 194 : p. 248-256. Helmcke, K.J., et al., Characterization of the effects of methylmercury on Caenorhabditis elegans. Toxicol Appl Pharmacol, 2009. 240 (2): p. 265-72. Leung, M.C., et al., Caenorhabditis elegans generates biologically relevant levels of genotoxic metabolites from aflatoxin B1 but not benzo[a]pyrene in vivo. Toxicol Sci, 2010. 118 (2): p. 444-53. Leung, C.K., et al., High-throughput screening and biosensing with fluorescent C. elegans strains. J Vis Exp, 2011. Leung, C.K., et al., An ultra high-throughput, whole-animal screen for small molecule modulators of a specific genetic pathway in Caenorhabditis elegans. PLoS One, 2013. 8 : p. e62166. Nyaanga, J., et al., Changes in body shape implicate cuticle stretch in C. elegans growth control. Cells Dev, 2022. 170 : p. 203780. Gosai, S.J., et al., Automated high-content live animal drug screening using C. elegans expressing the aggregation prone serpin alpha1-antitrypsin Z. PLoS ONE, 2010. 5 : p. e15460. Pulak, R., Techniques for analysis, sorting, and dispensing of C. elegans on the COPAS flow-sorting system. Methods Mol. Biol., 2006. 351 : p. 275-86. Shimko, T.C. and E.C. Andersen, COPASutils: an R package for reading, processing, and visualizing data from COPAS large-particle flow cytometers. PLoS One, 2014. 9 : p. e111090. Smith, M.V., et al., A discrete time model for the analysis of medium-throughput C. elegans growth data. PLoS One, 2009. 4 (9): p. e7018. Moore, B.T., J.M. Jordan, and L.R. Baugh, WormSizer: high-throughput analysis of nematode size and shape. PLoS One, 2013. 8 (2): p. e57142. Wahlby, C., et al., An image analysis toolbox for high-throughput C. elegans assays. Nat. Methods, 2012. 9 : p. 714-6. Koopman, M., et al., Assessing motor-related phenotypes of Caenorhabditis elegans with the wide field-of-view nematode tracking platform. Nat Protoc, 2020. 15 (6): p. 2071-2106. Mondal, S., et al., Large-scale microfluidics providing high-resolution and high-throughput screening of Caenorhabditis elegans poly-glutamine aggregation model. Nat. Commun., 2016. 7 : p. 13023. Mondal, S., et al., High-Content Microfluidic Screening Platform Used To Identify sigma2R/Tmem97 Binding Ligands that Reduce Age-Dependent Neurodegeneration in C. elegans SC_APP Model. ACS Chem Neurosci, 2018. Ben-Yakar, A., High-Content and High-Throughput In Vivo Drug Screening Platforms Using Microfluidics. Assay Drug Dev Technol, 2019. 17 : p. 8-13. Mondal, S. and A. Ben-Yakar, Chapter 11- Caenorhabditis elegans-on-a-chip: microfluidic platforms for high-resolution imaging and phenotyping , in Organ-on-a-chip , J. Hoeng, D. Bovard, and M.C. Peitsch, Editors. 2020, Academic Press. p. 363-390. Deserno, M. and K. Bozek, WormSwin: Instance segmentation of C. elegans using vision transformer. Sci Rep, 2023. 13 (1): p. 11021. Bates, K., K.N. Le, and H. Lu, Deep learning for robust and flexible tracking in behavioral studies for C. elegans. PLoS Comput Biol, 2022. 18 (4): p. e1009942. Layana Castro, P.E., A.G. Garvi, and A.J. Sanchez-Salmeron, Automatic segmentation of Caenorhabditis elegans skeletons in worm aggregations using improved U-Net in low-resolution image sequences. Heliyon, 2023. 9 (4): p. e14715. Stiernagle, T., Maintenance of C. elegans. WormBook, 2006: p. 1-11. Ke, T., et al., Genetic factors in methylmercury-induced neurotoxicity: What have we learned from Caenorhabditis elegans models? Adv Neurotoxicol, 2023. 9 : p. 271-290. Hu, K., et al., Ecotoxicity Risk of Low-Dose Methylmercury Exposure to Caenorhabditis elegans: Multigenerational Toxicity and Population Discrepancy. Chem Res Toxicol, 2021. 34 (4): p. 1114-1123. Groen, F.C., I.T. Young, and G. Ligthart, A comparison of different focus functions for use in autofocus algorithms. Cytometry, 1985. 6 : p. 81-91. Sun, Y., S. Duthaler, and B.J. Nelson, Autofocusing in computer microscopy: selecting the optimal focus algorithm. Microsc. Res. Tech., 2004. 65 : p. 139-49. Torbunov, D., et al., UVCGAN: UNet Vision Transformer cycle-consistent GAN for unpaired image-to-image translation. arXiv e-prints, 2022: p. arXiv:2203.02557. Avesta, A., et al., Comparing 3D, 2.5D, and 2D Approaches to Brain Image Auto-Segmentation. Bioengineering (Basel), 2023. 10 (2). He, K., et al., Deep Residual Learning for Image Recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016: p. 770-778. Lee, J., et al., Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks. arXiv e-prints, 2018: p. arXiv:1810.00825. Dosovitskiy, A., et al., An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. arXiv e-prints, 2020: p. arXiv:2010.11929. van den Oord, A., O. Vinyals, and K. Kavukcuoglu, Neural Discrete Representation Learning. arXiv e-prints, 2017: p. arXiv:1711.00937. Vaswani, A., et al., Attention Is All You Need. arXiv e-prints, 2017: p. arXiv:1706.03762. Loshchilov, I. and F. Hutter, Decoupled Weight Decay Regularization. arXiv e-prints, 2017: p. arXiv:1711.05101. Loshchilov, I. and F. Hutter, SGDR: Stochastic Gradient Descent with Warm Restarts. arXiv e-prints, 2016: p. arXiv:1608.03983. OECD Test No. 207: Earthworm, Acute Toxicity Tests . 1984. Tsuchiya, H., et al., Placental transfer of heavy metals in normal pregnant Japanese women. Arch Environ Health, 1984. 39 (1): p. 11-7. Hong, Y.S., Y.M. Kim, and K.E. Lee, Methylmercury exposure and health effects. J Prev Med Public Health, 2012. 45 (6): p. 353-63. Diez, S., Human health effects of methylmercury exposure. Rev Environ Contam Toxicol, 2009. 198 : p. 111-32. Nagashima, K., A review of experimental methylmercury toxicity in rats: neuropathology and evidence for apoptosis. Toxicol Pathol, 1997. 25 (6): p. 624-31. Glazer, L. and C.H. Brennan, Developmental Exposure to Low Concentrations of Methylmercury Causes Increase in Anxiety-Related Behaviour and Locomotor Impairments in Zebrafish. Int J Mol Sci, 2021. 22 (20). Tan, C.H., et al., Fluorescence dynamics of lysosomal-related organelle flashing in the intestinal cells of Caenorhabditis elegans. bioRxiv, 2023. Clokey, G.V. and L.A. Jacobson, The autofluorescent "lipofuscin granules" in the intestinal cells of Caenorhabditis elegans are secondary lysosomes. Mech Ageing Dev, 1986. 35 (1): p. 79-94. Davis, B.O., Jr., G.L. Anderson, and D.B. Dusenbery, Total luminescence spectroscopy of fluorescence changes during aging in Caenorhabditis elegans. Biochemistry, 1982. 21 (17): p. 4089-95. Klass, M.R., Aging in the nematode Caenorhabditis elegans: major biological and environmental factors influencing life span. Mech Ageing Dev, 1977. 6 (6): p. 413-29. Shen, L., et al., Toxicity evaluation in nematode Caenorhabditis elegans after chronic metal exposure. Environ Toxicol Pharmacol, 2009. 28 (1): p. 125-32. Wu, Q., et al., Chromium exhibits adverse effects at environmental relevant concentrations in chronic toxicity assay system of nematode Caenorhabditis elegans. Chemosphere, 2012. 87 (11): p. 1281-7. DTSC. Chemicals of Emerging Concern . 2024 [cited 2024 July 17, 2024]. Atakan, H.B., et al., Automated high-content phenotyping from the first larval stage till the onset of adulthood of the nematode Caenorhabditis elegans. Lab Chip, 2018. 19 (1): p. 120-135. Rahman, M., et al., NemaLife chip: a micropillar-based microfluidic culture device optimized for aging studies in crawling C. elegans. Sci Rep, 2020. 10 (1): p. 16190. Additional Declarations Competing interest reported. E.H., S.M., and A.B. are co-founders of vivoVerse, LLC and its Associates. A.D., A.S., A.L., E.H., S.M., and A.B. are inventors of several approved and pending patents. Supplementary Files vivoBodySegSupp.pdf Cite Share Download PDF Status: Published Journal Publication published 02 Jan, 2025 Read the published version in Scientific Reports → Version 1 posted Editorial decision: Revision requested 04 Nov, 2024 Reviews received at journal 03 Nov, 2024 Reviewers agreed at journal 23 Oct, 2024 Reviews received at journal 05 Sep, 2024 Reviews received at journal 05 Sep, 2024 Reviewers agreed at journal 26 Aug, 2024 Reviewers agreed at journal 26 Aug, 2024 Reviewers invited by journal 13 Aug, 2024 Editor assigned by journal 13 Aug, 2024 Editor invited by journal 05 Aug, 2024 Submission checks completed at journal 31 Jul, 2024 First submitted to journal 24 Jul, 2024 You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-4796642","acceptedTermsAndConditions":true,"allowDirectSubmit":false,"archivedVersions":[],"articleType":"Article","associatedPublications":[],"authors":[{"id":345196080,"identity":"9aee8967-793b-4147-810b-b463fa21189a","order_by":0,"name":"Andrew DuPlissis","email":"","orcid":"","institution":"vivoVerse, LLC","correspondingAuthor":false,"prefix":"","firstName":"Andrew","middleName":"","lastName":"DuPlissis","suffix":""},{"id":345196081,"identity":"f81a2852-b2c2-4622-8778-5c92e6f49349","order_by":1,"name":"Abhishri Medewar","email":"","orcid":"","institution":"vivoVerse, LLC","correspondingAuthor":false,"prefix":"","firstName":"Abhishri","middleName":"","lastName":"Medewar","suffix":""},{"id":345196082,"identity":"fa773008-9eb0-4bf9-ad6f-5b7304dd4565","order_by":2,"name":"Evan Hegarty","email":"","orcid":"","institution":"vivoVerse, LLC","correspondingAuthor":false,"prefix":"","firstName":"Evan","middleName":"","lastName":"Hegarty","suffix":""},{"id":345196083,"identity":"72f1f82d-3efe-4e45-a166-781d141d8297","order_by":3,"name":"Adam Laing","email":"","orcid":"","institution":"vivoVerse, LLC","correspondingAuthor":false,"prefix":"","firstName":"Adam","middleName":"","lastName":"Laing","suffix":""},{"id":345196084,"identity":"6197b286-4daf-481b-82d2-817725974edf","order_by":4,"name":"Amber Shen","email":"","orcid":"","institution":"vivoVerse, LLC","correspondingAuthor":false,"prefix":"","firstName":"Amber","middleName":"","lastName":"Shen","suffix":""},{"id":345196087,"identity":"43b91bc4-fbd0-4b27-9009-734d43f9e273","order_by":5,"name":"Sebastian Gomez","email":"","orcid":"","institution":"vivoVerse, LLC","correspondingAuthor":false,"prefix":"","firstName":"Sebastian","middleName":"","lastName":"Gomez","suffix":""},{"id":345196090,"identity":"bfc36d6d-0179-4253-bc71-ef53eba221ae","order_by":6,"name":"Sudip Mondal","email":"","orcid":"","institution":"vivoVerse, LLC","correspondingAuthor":false,"prefix":"","firstName":"Sudip","middleName":"","lastName":"Mondal","suffix":""},{"id":345196091,"identity":"82ac67db-50b1-4d41-a7c3-9480861c3bf2","order_by":7,"name":"Adela Ben-Yakar","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABDUlEQVRIiWNgGAWjYBACAwiVwMDA3gCkChAyjA0EtfAcAFJALg/xWiQSIFyCWszZew8w89SkyZvPfJ344YEBQ+J+9h7Djz8YbGQ3HMCuxbLnXAIzz7Ecwzm3czdLAB2W2MNzLFmahyHNGJcWgxs55r952CoYZ0jnboBokUg+IM3AcDgRp5b7bwyYef5V2M+QPLv5B1iL/MPmnz8Y/uPWcoPHgJm3LSdxhgTvNqgtzMckeBgO4NRi2ZNjwDi3Ly15Bk/uNosEAwnjnjNpadY8BsnGM3FoMWc/Y8Dw5luy7Qz2s5tv/qiwkW1vP2MMZNjJ9uHQAgJMPAi2BMzBuJWDAOMP/PKjYBSMglEw0gEAH+1bDcdNbHQAAAAASUVORK5CYII=","orcid":"","institution":"vivoVerse, LLC","correspondingAuthor":true,"prefix":"","firstName":"Adela","middleName":"","lastName":"Ben-Yakar","suffix":""}],"badges":[],"createdAt":"2024-07-24 15:48:58","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-4796642/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-4796642/v1","draftVersion":[],"editorialEvents":[{"content":"https://doi.org/10.1038/s41598-024-84842-x","type":"published","date":"2025-01-02T15:57:15+00:00"}],"editorialNote":"","failedWorkflow":false,"files":[{"id":64005283,"identity":"baaa81fd-9499-4139-8c6c-3982c2fceb91","added_by":"auto","created_at":"2024-09-04 21:36:34","extension":"png","order_by":1,"title":"Figure 1","display":"","copyAsset":false,"role":"figure","size":256624,"visible":true,"origin":"","legend":"\u003cp\u003e\u003cstrong\u003eHigh-resolution \u003c/strong\u003e\u003cem\u003e\u003cstrong\u003eC. elegans\u003c/strong\u003e\u003c/em\u003e\u003cstrong\u003e body images are acquired using a vivoChip-24x platform.\u003c/strong\u003e (\u003cstrong\u003ea\u003c/strong\u003e) Schematic of vivoChip-24x technology to immobilize \u003cem\u003eC. elegans\u003c/em\u003e and capture their high-resolution images from 24 different populations and 40 worms per population. (\u003cstrong\u003eb\u003c/strong\u003e) Schematic of 1 well out of the 24 wells. The top of the device has a well. Underneath each well, there are 40 parallel immobilization channels. (\u003cstrong\u003ec\u003c/strong\u003e) Brightfield image of 40 adult \u003cem\u003eC. elegans\u003c/em\u003e immobilized inside microfluidic channels within vivoChip-24x-3L device. Scale bar is 1 mm. (\u003cstrong\u003ed\u003c/strong\u003e) Graphic to demonstrate a z-stack of 10 images collected for each FOV (8 channels per FOV with 10×, 0.4 NA objective). For each FOV, we collect 50 images over 5 time points and 10 z-stacks (z-step size of 6 µm) per time point (1 s time interval). (\u003cstrong\u003ee\u003c/strong\u003e) We crop each channel for the first time point. (\u003cstrong\u003ef\u003c/strong\u003e) We identify the best focal plane for analysis and use 3 slices, including the image below and above the focal plane to train the network. (\u003cstrong\u003eg\u003c/strong\u003e) The location of the worm within the channel is used to determine the channel height based on its position with respect to the fiduciary cross mark present within each well of the vivoChip-24x.\u003c/p\u003e","description":"","filename":"floatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-4796642/v1/6de108dbb3c4346126ddb09f.png"},{"id":64006012,"identity":"8b555187-b49a-4da7-a411-104cb25e6d49","added_by":"auto","created_at":"2024-09-04 21:44:34","extension":"png","order_by":2,"title":"Figure 2","display":"","copyAsset":false,"role":"figure","size":51457,"visible":true,"origin":"","legend":"\u003cp\u003e\u003cstrong\u003eThe U-Net architecture of vivoBodySeg for automated analysis of \u003c/strong\u003e\u003cem\u003e\u003cstrong\u003eC. elegans\u003c/strong\u003e\u003c/em\u003e\u003cstrong\u003e body.\u003c/strong\u003e (\u003cstrong\u003ea\u003c/strong\u003e) Schematic of our 4-layer U-Net. (\u003cstrong\u003eb\u003c/strong\u003e) Overview of our basic convolutional layer that defines our computation in our encoder and decoder. (\u003cstrong\u003ec\u003c/strong\u003e) Overview of vision transformer (viT).\u003c/p\u003e","description":"","filename":"floatimage2.png","url":"https://assets-eu.researchsquare.com/files/rs-4796642/v1/8422186ad902de815e97efb7.png"},{"id":64006716,"identity":"d7dc14f1-80a9-4bfa-8f42-d5e204ec79a4","added_by":"auto","created_at":"2024-09-04 21:52:34","extension":"png","order_by":3,"title":"Figure 3","display":"","copyAsset":false,"role":"figure","size":63430,"visible":true,"origin":"","legend":"\u003cp\u003e\u003cstrong\u003eComparison of Dice scores for body segmentation by multiple scorers and by different vivoBodySeg models.\u003c/strong\u003e (\u003cstrong\u003ea\u003c/strong\u003e) Dice scores for each possible pair of five individual scorers for a subset of 20 channels. (\u003cstrong\u003eb\u003c/strong\u003e) The Dice score for all 301 test samples for three vivoBodySeg models arranged with worm numbers representing low to high Dice scores. The grey area represents the mean ± 2×standard deviation (µ ± 2σ) values for the Dice score from the segmentations of 5 individual scorers. Using the Wilcoxon signed rank sum test, the mean Dice score of vivoBodySeg-2.5D, Att was significantly higher than that of vivoBodySeg-2D and vivoBodySeg -2D, Att (\u003cem\u003ep\u003c/em\u003e-value \u0026lt;0.001).\u003c/p\u003e","description":"","filename":"floatimage3.png","url":"https://assets-eu.researchsquare.com/files/rs-4796642/v1/e8bdc1243828871edef321fc.png"},{"id":64005281,"identity":"55f73121-4ae1-40c1-84ed-a1318e0702dd","added_by":"auto","created_at":"2024-09-04 21:36:34","extension":"png","order_by":4,"title":"Figure 4","display":"","copyAsset":false,"role":"figure","size":128298,"visible":true,"origin":"","legend":"\u003cp\u003e\u003cstrong\u003eImages of \u003c/strong\u003e\u003cem\u003e\u003cstrong\u003eC. elegans\u003c/strong\u003e\u003c/em\u003e\u003cstrong\u003e with developmental defects captured using two vivoChip-24x device designs.\u003c/strong\u003e (\u003cstrong\u003ea\u003c/strong\u003e) Image of 40 trapping channels from the 3-layer chip (vivoChip-24x-3L) with immobilized worms from a control population boxed in green (left panel) and a population that was treated with 4 µM CH\u003csub\u003e3\u003c/sub\u003eHg in 0.2% DMSO boxed in red (right panel). (\u003cstrong\u003eb\u003c/strong\u003e) Image of 40 trapping channels from a 4-layer chip (vivoChip-24x-4L) with immobilized worms from a control population boxed in green (left panel) and a population that was treated with 8 µM CH\u003csub\u003e3\u003c/sub\u003eHg in 0.2% DMSO (right panel). Scale bar = 1 mm. (\u003cstrong\u003ec\u003c/strong\u003e, \u003cstrong\u003ed\u003c/strong\u003e) High-magnification images of a single control worm (green box) and a CH\u003csub\u003e3\u003c/sub\u003eHg-treated worm (red box). Scale bar = 200 µm.\u003c/p\u003e","description":"","filename":"floatimage4.png","url":"https://assets-eu.researchsquare.com/files/rs-4796642/v1/352c2b1825cfa352224f9b80.png"},{"id":64005280,"identity":"f11afdac-35f1-4af0-b4a3-2de114149baf","added_by":"auto","created_at":"2024-09-04 21:36:34","extension":"png","order_by":5,"title":"Figure 5","display":"","copyAsset":false,"role":"figure","size":75037,"visible":true,"origin":"","legend":"\u003cp\u003e\u003cstrong\u003eImproved worm detection using the few-shot learning of vivoBodySeg model.\u003c/strong\u003e Images of a young L4 (\u003cstrong\u003ea\u003c/strong\u003e) and an adult stage (\u003cstrong\u003eb\u003c/strong\u003e) \u003cem\u003eC. elegans\u003c/em\u003e, imaged in the vivoChip-24x-4L device. (\u003cstrong\u003ec\u003c/strong\u003e, \u003cstrong\u003ed\u003c/strong\u003e) Results from the baseline vivoBodySeg-2.5D, Att model with zero-shot learning. The model wrongly classified the channel as having a partial worm and thus discarded it for further analysis. (\u003cstrong\u003ee\u003c/strong\u003e, \u003cstrong\u003ef\u003c/strong\u003e) Results from the vivoBodySeg-2.5D, Att model with few-shot learning using 512 images. The model correctly predicted the worm mask and classified the channel images. Raw image, predicted mask, binary mask, and skeleton are compared. The scale bar is 200 μm.\u003c/p\u003e","description":"","filename":"floatimage5.png","url":"https://assets-eu.researchsquare.com/files/rs-4796642/v1/d6fc980392960492cf67b7e8.png"},{"id":64006013,"identity":"7449ee17-8242-4ec5-8a1f-d46c8aa76025","added_by":"auto","created_at":"2024-09-04 21:44:34","extension":"png","order_by":6,"title":"Figure 6","display":"","copyAsset":false,"role":"figure","size":93003,"visible":true,"origin":"","legend":"\u003cp\u003e\u003cstrong\u003eAutomated body parameter and autofluorescence analysis using the vivoBodySeg model. \u003c/strong\u003e(\u003cstrong\u003ea\u003c/strong\u003e) Map showing exposure of 24 \u003cem\u003eC. elegans\u003c/em\u003e populations with CH\u003csub\u003e3\u003c/sub\u003eHg (0.5 – 9.0 µM) and 0.2% DMSO. The experiment was repeated with 5 vivoChip-24-4L devices. The data from all 5 experiments were used to quantify average body length (\u003cstrong\u003eb\u003c/strong\u003e), body area (\u003cstrong\u003ec\u003c/strong\u003e), and body volume (\u003cstrong\u003ed\u003c/strong\u003e). The data are presented as mean ± SEM (\u003cem\u003en\u003c/em\u003e = 5 repeats). The solid line represents the Hill-function fit to the experimental data. The dotted line represents the EC\u003csub\u003e10\u003c/sub\u003e for each parameter. The coefficient of variation (CV) is indicated for the control wells. (\u003cstrong\u003ee\u003c/strong\u003e) Example images of worms from 0.5 µM and 9.0 µM CH\u003csub\u003e3\u003c/sub\u003eHg. Brightfield (BF) and autofluorescence (AF) images obtained using the GFP filter are shown. The scale bar is 200 µm. (\u003cstrong\u003ef\u003c/strong\u003e) Average autofluorescence intensity per unit body length for CH\u003csub\u003e3\u003c/sub\u003eHg and DMSO control populations. The data are presented as mean ± SEM (\u003cem\u003en\u003c/em\u003e ≥ 4 repeats). The dotted line represents the EC\u003csub\u003e10\u003c/sub\u003e value. The solid line represents the LOAEL value of 1.0 μM for length, area, and volume (\u003cstrong\u003eb\u003c/strong\u003e – \u003cstrong\u003ed\u003c/strong\u003e) and 2.5 μM for Avg int/length (\u003cstrong\u003ef\u003c/strong\u003e).\u003c/p\u003e","description":"","filename":"floatimage6.png","url":"https://assets-eu.researchsquare.com/files/rs-4796642/v1/d6f34cffa5a7ddcddf4238ee.png"},{"id":73093479,"identity":"2b37dc79-45ee-4969-a550-124ad68018ab","added_by":"auto","created_at":"2025-01-06 16:20:40","extension":"pdf","order_by":0,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1720798,"visible":true,"origin":"","legend":"","description":"","filename":"manuscript.pdf","url":"https://assets-eu.researchsquare.com/files/rs-4796642/v1/220ed88c-6490-4176-9bd2-cdc96a4c039d.pdf"},{"id":64005286,"identity":"ff4d375b-d740-4c3d-a770-cb20328655c6","added_by":"auto","created_at":"2024-09-04 21:36:35","extension":"pdf","order_by":10,"title":"","display":"","copyAsset":false,"role":"supplement","size":418680,"visible":true,"origin":"","legend":"","description":"","filename":"vivoBodySegSupp.pdf","url":"https://assets-eu.researchsquare.com/files/rs-4796642/v1/f2c64677bdfed3c9362d0121.pdf"}],"financialInterests":"Competing interest reported. E.H., S.M., and A.B. are co-founders of vivoVerse, LLC and its Associates. A.D., A.S., A.L., E.H., S.M., and A.B. are inventors of several approved and pending patents.","formattedTitle":"vivoBodySeg: Machine learning-based analysis of C. elegans immobilized in vivoChip for automated developmental toxicity testing","fulltext":[{"header":"Introduction","content":"\u003cp\u003eTraditional developmental toxicity (DevTox) studies have relied on mammalian models such as mice, rats, and rabbits to study adverse effects on their development when exposed to chemicals. Scientific and technological advances have led to the development of new approach methodologies (NAMs), such as \u003cem\u003ein silico\u003c/em\u003e, \u003cem\u003ein vitro\u003c/em\u003e, or small model organisms (\u003cem\u003eC. elegans\u003c/em\u003e, \u003cem\u003edaphnia\u003c/em\u003e, zebrafish embryo), reducing the use of vertebrates. Among model organisms, \u003cem\u003eC. elegans\u003c/em\u003e, has several unique advantages, including small body size, ease of culture, homologous genes to humans, conserved xenobiotic pathways, several organ systems, etc., making it suitable for high-throughput toxicology screening platforms. Developmental parameters from \u003cem\u003eC. elegans\u003c/em\u003e models have demonstrated high concordance with mammalian toxicity endpoints and outperformed other small model organism species in some situations [1\u0026ndash;9].\u003c/p\u003e \u003cp\u003eAlthough \u003cem\u003eC. elegans\u003c/em\u003e have been used as a model organism in major discoveries in the fields of neurodegeneration, aging, and toxicology assessments [5, 9\u0026ndash;18], these studies either had low throughput or used gross phenotypes. Specifically, the automated studies were performed by either taking low-resolution images of \u003cem\u003eC. elegans\u003c/em\u003e from well plates [19\u0026ndash;22] or 1D scattering signal using a flow cytometer to extract developmental parameters [2, 23\u0026ndash;25]. Both technologies rely on using anesthetics to reduce worm movement, which is known to have adverse effects on worms, causing their bodies to shrink or curl, eventually introducing errors in the body length measurements [22, 25]. Flow cytometers can provide such data from a large number of worms, however, with high variability (coefficient of variance, CV\u0026thinsp;\u0026gt;\u0026thinsp;20%) [26]. Plate-based assays also demonstrate poor statistical power due to the small number of worms used per well to avoid overlap and thus simplify image analysis [22, 26\u0026ndash;28].\u003c/p\u003e \u003cp\u003eWe previously developed a microfluidic-based immobilization method to collect high-resolution images of many \u003cem\u003eC. elegans\u003c/em\u003e without using anesthetics and eliminate their random orientation [29\u0026ndash;32]. This microfluidic device, called vivoChip, facilitates rapid immobilization of thousands of \u003cem\u003eC. elegans\u003c/em\u003e from multiple different populations in parallel microchannels. Specifically, the vivoChip enables collecting high-resolution images from 40 microfluidic channels for each population of \u003cem\u003eC. elegans\u003c/em\u003e with each worm body spanning over thousands of pixels (5,056 \u0026times; 354 pixels per channel). Imaging a long microchannel allows us to capture the entire \u003cem\u003eC. elegans\u003c/em\u003e body in a single field of view (FOV) and avoid image stitching. The vivoChip can immobilize worms with a wide range of body sizes, which is an outcome of the adverse effects on worms\u0026rsquo; development and health when exposed to high concentrations of toxic chemicals. Such images of worms with different body sizes demonstrate a variety of contrast levels, resulting in additional challenges during image analysis.\u003c/p\u003e \u003cp\u003eDevTox analysis of such high-resolution data obtained from vivoChip devices is very time-consuming and necessitates automation. Several machine learning (ML)-based vision systems have been developed for the segmentation of \u003cem\u003eC. elegans\u003c/em\u003e bodies in images obtained by plate readers to analyze their growth and behavioral parameters [33, 34]. These systems, however, face difficulties in multi-object identification in a dense setting with overlapping specimens [35]. Imaging \u003cem\u003eC. elegans\u003c/em\u003e using vivoChip overcomes this concern by immobilizing up to 40 worms side by side within 40 parallel microchannels per population. Automated \u003cem\u003eC. elegans\u003c/em\u003e body segmentation of the vivoChip images requires processing full 3D image stacks to precisely detect the worm and correctly identify its boundaries from high-frequency content that spans the entire volume.\u003c/p\u003e \u003cp\u003eIn this paper, we present vivoBodySeg, an ML-based model to automatically segment \u003cem\u003eC. elegans\u003c/em\u003e bodies immobilized inside the vivoChip devices and, thus, streamline accurate and multiparametric DevTox studies. To create extensive and balanced ground truth data, we developed a user-friendly toolbox that enables the visualization, classification, and segmentation of vivoChip-generated \u003cem\u003eC. elegans\u003c/em\u003e images. vivoBodySeg utilizes a 2.5D U-Net architecture with an attention mechanism at the bottleneck that is trained for classification and semantic segmentation of the \u003cem\u003eC. elegans\u003c/em\u003e body. The model achieves highly accurate segmentation with a Dice score of 97.8% across a heterogeneous population of \u003cem\u003eC. elegans\u003c/em\u003e. The predicted segmentations are indistinguishable from humans while taking\u0026thinsp;~\u0026thinsp;150\u0026times; less time. Further, we demonstrate that with a careful fine-tuning procedure using only a small number of samples and four hours of training, we are able to segment a phenotypically disparate population with a Dice score of ~\u0026thinsp;97%, providing a 2% improvement to the based model. This automated image analysis pipeline reduces human error, eliminates user bias, and achieves repeatable high-accuracy analysis of DevTox parameters.\u003c/p\u003e"},{"header":"Methods","content":"\u003cp\u003e \u003cem\u003eC. elegans culture and chemical treatment.\u003c/em\u003e \u003c/p\u003e \u003cp\u003e \u003cem\u003eC. elegans\u003c/em\u003e culture and chemical treatment are performed according to previously published protocols [29, 30, 36]. Briefly, N2 \u003cem\u003eC. elegans\u003c/em\u003e strains (\u003cem\u003eCaenorhabditis\u003c/em\u003e Natural Diversity Resource - CaeNDR) are collected from gravid adults by sodium hypochlorite treatment and developed into synchronized larvae 1 (L1) stage worms overnight. L1s are placed in a 24-well plate with HB101 food in S media. The L1 larvae are treated with Methylmercury (II) hydroxide (CH\u003csub\u003e3\u003c/sub\u003eHg, CAS# 1184-57-2, Sigma), a known developmental toxicant [37, 38], in conventional 24-well plastic plates with solvent controls. The plates are incubated at 20\u0026deg;C for 72 hours until the worms in the control wells reach the day 1 (D1) stage of adulthood. The experiments are repeated five times using five vivoChip-24x devices on three different days.\u003c/p\u003e \u003cp\u003e \u003cem\u003eHigh-resolution imaging of C. elegans.\u003c/em\u003e \u003c/p\u003e \u003cp\u003eTo acquire high-resolution images of worms, we load all 24 populations into a 24-well microfluidic device (vivoChip-24x, vivoVerse) in M9 buffer after 72 hours of chemical treatment in conventional plates. Underneath each well of the vivoChip-24x device, there are 40 parallel, gently tapering 3 mm long microfluidic trapping channels to trap \u003cem\u003eC. elegans\u003c/em\u003e (Figs.\u0026nbsp;\u003cspan refid=\"Fig1\" class=\"InternalRef\"\u003e1\u003c/span\u003ea-c). The vivoChip-24x device contains a total of 960 trapping channels. A custom-designed gasket seals the device to provide fluidic connections to all wells. A single input in the gasket applies fluidic pressure to push the worms into individual channels (1 animal per channel) using intermittent ON/OFF fluidic pressure cycles. Once all channels fill up with worms as they are immobilized inside the parallel, narrowing channels, a constant fluid pressure holds them still for performing blur-free imaging. Automated high-resolution imaging is then performed on all 960 channels to collect time-lapse and z-stack brightfield images, and z-stack fluorescence images within 30 minutes using a customized automated microscope (IX73, Evident) with a high-quantum efficiency, fast, and large area camera (IRIS15, Teledyne). All 40 channels underneath each well are imaged in 5 FOVs using 10\u0026times;, 0.4NA objective. Each FOV includes 8 channels. The entire worm volume is captured with 10 z-slices at 6-micron steps centered around the best focal plane of a fiduciary marker. We also collected 5 time-lapse 3D hyperstack images at 1-second intervals (Fig.\u0026nbsp;\u003cspan refid=\"Fig1\" class=\"InternalRef\"\u003e1\u003c/span\u003ed). Following the time-lapse brightfield imaging, a single z-stack of autofluorescence images is also acquired using a GFP filter set using the same objective.\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003eThere are 2 types of vivoChip-24x devices used in this study to accommodate the complete immobilization of \u003cem\u003eC. elegans\u003c/em\u003e of different body sizes. The first device, the vivoChip-24x-3L device, has 3-layer microchannels with different heights that can immobilize young adult (YA) to Day 1 adult (D1) stage worms (\u003cb\u003eSupplementary Fig.\u0026nbsp;1a\u003c/b\u003e). The second device, the vivoChip-24x-4L device, has an additional layer (4 layers in total) to reduce the microchannel dimensions further to enable immobilization of smaller larvae state (L4) worms as well (\u003cb\u003eSupplementary Fig.\u0026nbsp;1b\u003c/b\u003e). We used the 4-layer (4L) microfluidic chip (vivoChip-24x-4L) for testing toxicants in a wide range of concentrations that may result in widely different sizes of \u003cem\u003eC. elegans\u003c/em\u003e from young L4 up to D1 adult stage.\u003c/p\u003e \u003cdiv id=\"Sec3\" class=\"Section2\"\u003e \u003ch2\u003ePre-processing of images\u003c/h2\u003e \u003cp\u003e Images are automatically uploaded to a local server for processing and analysis. Each channel is then cropped into individual hyperstacks by clipping the full FOV hyperstack into eight 150 \u0026micro;m wide sections (Fig.\u0026nbsp;\u003cspan refid=\"Fig1\" class=\"InternalRef\"\u003e1\u003c/span\u003ee). The cropping is centered around each predicted channel centerline, which is determined in relation to the fiduciary marker (Fig.\u0026nbsp;\u003cspan refid=\"Fig1\" class=\"InternalRef\"\u003e1\u003c/span\u003eg).\u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec4\" class=\"Section2\"\u003e \u003ch2\u003eManual segmentation for ground truth data\u003c/h2\u003e \u003cp\u003eManually annotating each volumetric image of individual \u003cem\u003eC. elegans\u003c/em\u003e is done with an in-house graphical user interface (GUI) toolbox (vivoSegmenter). The GUI allows the user to scroll over multiple z-plane images and time points for each cropped channel. Since the morphology of the segmented worm body in a given channel does not change substantially between time points, users only consider the first time point. In the GUI, the user first selects one of the 3 classes for each channel: no worm (empty channel), partial worm (a partially visible worm is present inside the channel), or full worm (a full worm body is present in the channel). Users then segment full worms by clicking multiple points along the worm bodies in different z-slices in each cropped channel presented by the GUI. Specifically, the GUI registers the coordinates (x, y, and z) of the points as the users click on the image. Once all the points are entered and closed to encompass the worm, a polygon is created by connecting all the points as vertices. Most of the \u003cem\u003eC. elegans\u003c/em\u003e body segmentation requires users to examine 3 to 5 z-slices. While depth information is important for clearly delineating boundaries, wide-field microscopy lacks the optical sectioning required to produce fine-grained segmentation over depth. We, therefore, collapse all segmentation polygons, namely our ground truth, into a single 2D binary image. Finally, each channel is assigned a class label (full, partial, or empty). A single polygon is then generated for the full worm class label only.\u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec5\" class=\"Section2\"\u003e \u003ch2\u003eData pre-processing for ML analysis\u003c/h2\u003e \u003cp\u003eOur network is designed to work with either a full z-stack image volume or a subset of the data volume. Specifically, while we collect 10 focal planes per time point during imaging, we have found that successfully solving most vision-related problems was optimally done with a subset of a single volume centered on a relevant focal plane (Fig.\u0026nbsp;\u003cspan refid=\"Fig1\" class=\"InternalRef\"\u003e1\u003c/span\u003ef). Finding this central focal plane of a cropped channel can be done by taking the Laplace transform of each z-slice and selecting the one with the highest frequency components [39, 40]. We note that the mode (most occurring value) of the z-values from all the vertices the user clicks for worm segmentation is the same z-plane that we estimate as the best focal plane through the Laplace transform. After identifying the central plane, \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:N\\)\u003c/span\u003e\u003c/span\u003e planes from focal planes from each side are collected and stacked along the channel dimension (\u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:H\\times\\:W\\)\u003c/span\u003e\u003c/span\u003e) to form a 2.5D tensor, together represented as a \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:(2N+1)\\times\\:H\\times\\:W\\)\u003c/span\u003e\u003c/span\u003e tensor. For each cropped channel, the height (H) of the image is fixed to 5,056 pixels and the width (W) to some value between 340\u0026thinsp;\u0026le;\u0026thinsp;W \u0026le; 360 pixels depending on the cropping process. To obtain a similar size for all 960 channels and make the size suitable for our network, images are padded on both sides to obtain a fixed width of 384 pixels. In practice, we found using \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:N=1\\:\\)\u003c/span\u003e\u003c/span\u003e(3 z-stack images) to be the optimal configuration for this problem, as expanding beyond 3 z-slices did not improve performance.\u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec6\" class=\"Section2\"\u003e \u003ch2\u003evivoBodySeg architecture for C. elegans body analysis\u003c/h2\u003e \u003cp\u003eWe propose a 2.5D U-Net for vivoBodySeg model with an attention mechanism at the bottleneck for the classification and semantic segmentation of \u003cem\u003eC. elegans\u003c/em\u003e [41]. The proposed architecture consists of the following sub-networks: a fully convolutional encoder, a bottleneck layer consisting of a small vision transformer (ViT), and a fully convolutional decoder (Fig.\u0026nbsp;\u003cspan refid=\"Fig2\" class=\"InternalRef\"\u003e2\u003c/span\u003ea). This network produces two outputs: a pixel-wise segmentation over classes produced by the decoder and an image-wise classification over classes produced at the bottleneck layer.\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003eDrawing terminology from previous work, an N.5D CNN refers to a convolution neural network (CNN) that processes N\u0026thinsp;+\u0026thinsp;1 dimensions but only N of them in a convolutional manner [42]. The last dimension is stacked over the channel/feature dimension in a manner similar to how spectral information is often treated. Each layer of our vivoBodySeg network is defined by the same residual convolutional layer in both the encoder and decoder; the general design of this layer follows what is proposed by He \u003cem\u003eet. al.\u003c/em\u003e in their work on the ResNet architecture (Fig.\u0026nbsp;\u003cspan refid=\"Fig2\" class=\"InternalRef\"\u003e2\u003c/span\u003eb) [43]. Following the standard practice for models that perform semantic segmentation, the final decoder layer is followed by a set of linear layers and the softmax function to produce a soft segmentation.\u003c/p\u003e \u003cp\u003eTo augment the standard convolutional approach, we introduce a ViT at the bottleneck to enable efficient, long-range communication between embedded voxels (Fig.\u0026nbsp;\u003cspan refid=\"Fig2\" class=\"InternalRef\"\u003e2\u003c/span\u003ec). While standard images collected by non-scientific cameras may span hundreds of pixels, our images with Iris15 camera span over 5,056 pixels along the worm length. By replacing the standard convolutional bottleneck with a ViT, our goal is to ease the classification task as relevant image patches span thousands of pixels. The output of our ViT is routed to two separate sub-networks: the convolutional decoder and the classification subnetwork. The classifier we designed involves the pooled attention mechanism introduced by Lee \u003cem\u003eet. al.\u003c/em\u003e with a single seed vector followed by a series of linear layers to produce a vector with elements such that we can use it for our classification task [44].\u003c/p\u003e \u003cp\u003eUnlike a standard ViT that generates a tokenized version of our image through a linear embedding of voxels [45] or a secondary generative model such as a VQ-VAE [46], the encoder of our U-Net serves as our embedding mechanism. Upon reaching the bottleneck, the 4D tensor is rearranged into a tokenized format, \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:{X}_{e}=Flatten\\left({F}_{enc}\\left(X\\right)\\right)\\in\\:{\\mathbb{R}}^{B,\\frac{H}{S}\\times\\:\\frac{W}{S},C}\\)\u003c/span\u003e\u003c/span\u003e where \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:s\\)\u003c/span\u003e\u003c/span\u003e is equal to \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:{2}^{Layers}\\)\u003c/span\u003e\u003c/span\u003e and \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:c=256\\)\u003c/span\u003e\u003c/span\u003e, and combined with learnable positional encodings. Following this step, the data is processed as a sequence by a small 4-layer ViT. Following the standard design introduced by Vaswani \u003cem\u003eet. al.\u003c/em\u003e for natural language processing, data is first normalized and routed to a multi-head self-attention block. Following a residual connection, data is once again normalized and routed to a feed-forward network where we maintain the standard feature expansion e.g., \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:\\left|{C}_{FFN}\\right|=4*\\left|{C}_{MHSA}\\right|\\)\u003c/span\u003e\u003c/span\u003e [47]. The input and output of the self-attention block are also connected by a residual connection. Our code and network configuration files for the vivoBodySeg framework are available for academic use upon request.\u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec7\" class=\"Section2\"\u003e \u003ch2\u003eNetwork training, validation, and testing for C. elegans images\u003c/h2\u003e \u003cp\u003eThe training set includes 3,637 channels acquired using the vivoChip-24x-3L devices from experiments conducted for different treatment conditions. In 81% of the channels, the entire body of \u003cem\u003eC. elegans\u003c/em\u003e is fully present within the channel (full worm), 14% of these examples are worms only partially visible within a channel (partial worm), and 5% are examples of purely empty channels (no worm). We split the entire data in an 8:1:1 ratio between the training, validation, and testing sets, where the percentages of class distribution are consistent across all sets.\u003c/p\u003e \u003cp\u003eWe utilize horizontal and vertical flips, small rotations, and contrast adjustments to enhance the underlying dataset. Each training step randomly selects a mini batch of 32 images and serves as examples in a single forward pass. We use an AdamW optimizer with an initial learning rate of 2\u0026times;10\u003csup\u003e\u0026minus;\u0026thinsp;4\u003c/sup\u003e and weight decay of 1\u0026times;10\u003csup\u003e\u0026minus;\u0026thinsp;2\u003c/sup\u003e [48]. During training, the learning rate is scheduled according to cosine annealing with warm restarts (\u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:{W}_{0}=10,\\:F=2\\)\u003c/span\u003e\u003c/span\u003e) over 1,200 total epochs [49]. We update our network according to our loss functions for segmentation and image classification. Only full worms are sent to the decoder for learning segmentation, and the weights are updated. All vivoBodySeg networks are trained on a computer with 128 GB of memory and an A6000 GPU with 48 GB of VRAM.\u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec8\" class=\"Section2\"\u003e \u003ch2\u003ePost-processing and inference to find C. elegans body parameters\u003c/h2\u003e \u003cp\u003eDuring inference or testing, we only consider those channels with full worms and apply a simple set of post-processing procedures to clean the data and extract relevant endpoints. During post-processing, a threshold of 0.50 is applied to the output such that we form a binary mask indicative of the \u003cem\u003eC. elegans\u003c/em\u003e body. After this step, the connected component analysis identifies large binary objects as the worm bodies (trained to detect L4 up to adult stage worms) and removes all small objects outside this binary mask (such as laid eggs, small larvae, debris, etc.) present within the channel. The binary mask is used to estimate three body parameters: length, area, and volume. The body length is retrieved from the longest spanning tree in the skeleton of the binary mask. The binary object provides the area of the \u003cem\u003eC. elegans\u003c/em\u003e body. The total volume is estimated by taking into account the known height of each pixel inside the predicted \u003cem\u003eC. elegans\u003c/em\u003e mask.\u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec9\" class=\"Section2\"\u003e \u003ch2\u003eEvaluation metrics for model performance\u003c/h2\u003e \u003cp\u003eWhen evaluating our network, we report several metrics to quantify the overall segmentation quality. To understand general network performance, we use the Dice score to track validation progress and to quantify how the model works in a test setting. We use the Wilcoxon signed rank sum test to assess whether the mean Dice score ranks differ between models. We then use our post-processed data to further elucidate the model accuracy by reporting the ratio of the predicted skeleton length over the ground truth skeleton length. We also estimate the volume ratio (predicted volume to the ground truth volume) and classification accuracy using the weighted F1 score. To compare the model performance with human scorers, we calculate the Dice score from the segmentation for multiple scientists and compare it with the Dice score estimated between the predicted mask and the ground truth segmentation data.\u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec10\" class=\"Section2\"\u003e \u003ch2\u003eAutofluorescence analysis\u003c/h2\u003e \u003cp\u003eWe measure the autofluorescence signal within the predicted body mask using the fluorescence image captured with a GFP filter set. First, we create a maximum-intensity projection image from all 10 z-stacks. Using the control wells with 0.2% DMSO treatment, we determine a threshold intensity above which the brightest 5% of the pixels lie. These 5% pixels correspond to the granules of lysosomes in the worm gut, which are major contributors to the increase in autofluorescence under stressors. We calculate the average pixel intensity considering the pixels with an intensity above this threshold and within the predicted body mask for all worms. We use the average autofluorescence value per unit body length and per unit body area to identify dose-dependent responses to a chemical treatment.\u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec11\" class=\"Section2\"\u003e \u003ch2\u003eStatistical analysis of dose-dependent body parameters\u003c/h2\u003e \u003cp\u003eFor developmental toxicity assays, body parameters and autofluorescence signals are calculated for each worm. The individual worm values are filtered to remove all measurements from worms with body lengths and autofluorescence signals significantly deviating from the median using the Tukey fences (1.5 * the interquartile range). Worms with measurements outside these fences are removed from the analysis. After filtering, we use the remaining worms to estimate the well average (\u0026micro;) and standard deviation (σ) for body length, area, and volume. The data is presented as average\u0026thinsp;\u0026plusmn;\u0026thinsp;standard error of the mean (SEM) from multiple replicates. We calculate the coefficient of variance (\u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:CV=\\sigma\\:/\\mu\\:\\)\u003c/span\u003e\u003c/span\u003e) from all the control wells. The average values for each body parameter and autofluorescence signal are plotted for different concentrations, and the effective concentration (EC\u003csub\u003e10\u003c/sub\u003e) value for the 10% change in the parameter is fitted from datasets with a 4-parameter, variable slope Hill function using the \u0026ldquo;Find ECanything\u0026rdquo; nonlinear fit function of GraphPad Prism. The slope bottom and top are constrained to zero (for length, area, and volume) and left unconstrained (for autofluorescence signal), respectively. The EC\u003csub\u003e10\u003c/sub\u003e values are presented with \u0026plusmn;\u0026thinsp;95% confidence interval (CI) values for each parameter. To calculate the lowest observable adverse effect level (LOAEL) for each phenotype, we test for normality (Shapiro-Wilk test) and identify the first dose where the phenotype departs significantly (\u003cem\u003ep\u003c/em\u003e-value\u0026thinsp;\u0026lt;\u0026thinsp;0.05) from the baseline value of the control population using Welch ANOVA with \u003cem\u003epost hoc\u003c/em\u003e Dunnett\u0026rsquo;s T3 multiple comparison tests.\u003c/p\u003e \u003c/div\u003e"},{"header":"Results","content":"\u003cp\u003e \u003cem\u003eA 2.5D U-Net vivoBodySeg model segments C. elegans body.\u003c/em\u003e \u003c/p\u003e \u003cp\u003eMaking use of our training corpus, we trained a base model (U-Net with no attention, vivoBodySeg-2D) alongside an improved U-Net model making use of the attention bottleneck (vivoBodySeg-2D, Att) and the 2.5D U-Net with an attention bottleneck (vivoBodySeg-2.5D, Att). All three models were trained and validated using our in-house computational power (\u003cb\u003eSupplementary Fig.\u0026nbsp;2\u003c/b\u003e). We tested all three models on an unseen \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:M=362\\:\\)\u003c/span\u003e\u003c/span\u003etest samples. We calculated segmentation accuracy using the Dice score, length ratio, volume ratio, and classification accuracy for all three models (Table\u0026nbsp;\u003cspan refid=\"Tab1\" class=\"InternalRef\"\u003e1\u003c/span\u003e). We note the length and volume ratios are highly correlated with predicted body segmentation. We found vivoBodySeg-2.5D, Att to be highly performant, with an average Dice score of 97.80\u0026thinsp;\u0026plusmn;\u0026thinsp;0.08, a length ratio of 0.991\u0026thinsp;\u0026plusmn;\u0026thinsp;0.001, and a volume ratio of 1.008\u0026thinsp;\u0026plusmn;\u0026thinsp;0.002. The vivoBodySeg-2.5D, Att model classified all 362 test images into three groups (301 full worms, 48 partial worms, and 13 no worms) with a weighted F1 score of 0.995. The model could detect \u003cem\u003eC. elegans\u003c/em\u003e bodies with high accuracy completely inside the field of view and ignore foreign particles with high confidence (\u003cb\u003eSupplementary Fig.\u0026nbsp;3\u003c/b\u003e).\u003c/p\u003e \u003cp\u003e \u003cdiv class=\"gridtable\"\u003e\u003ctable float=\"Yes\" id=\"Tab1\" border=\"1\"\u003e \u003ccaption language=\"En\"\u003e \u003cdiv class=\"CaptionNumber\"\u003eTable 1\u003c/div\u003e \u003cdiv class=\"CaptionContent\"\u003e \u003cp\u003eTest results of the proposed U-Net models using 362 images\u003c/p\u003e \u003c/div\u003e \u003c/caption\u003e \u003ccolgroup cols=\"5\"\u003e \u003cdiv align=\"left\" class=\"colspec\" colname=\"c1\" colnum=\"1\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\"\u0026plusmn;\" class=\"colspec\" colname=\"c2\" colnum=\"2\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\"\u0026plusmn;\" class=\"colspec\" colname=\"c3\" colnum=\"3\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\"\u0026plusmn;\" class=\"colspec\" colname=\"c4\" colnum=\"4\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\".\" class=\"colspec\" colname=\"c5\" colnum=\"5\"\u003e\u003c/div\u003e \u003cthead\u003e \u003ctr\u003e \u003cth align=\"left\" colname=\"c1\"\u003e \u003cp\u003eModel name\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colname=\"c2\"\u003e \u003cp\u003eDice score\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colname=\"c3\"\u003e \u003cp\u003eLength ratio\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colname=\"c4\"\u003e \u003cp\u003eVolume ratio\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colname=\"c5\"\u003e \u003cp\u003eWeighted\u003c/p\u003e \u003cp\u003eF1 score\u003c/p\u003e \u003c/th\u003e \u003c/tr\u003e \u003c/thead\u003e \u003ctbody\u003e \u003ctr\u003e \u003ctd align=\"left\" colname=\"c1\"\u003e \u003cp\u003evivoBodySeg-2D\u003c/p\u003e \u003cp\u003e(no attention)\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c2\"\u003e \u003cp\u003e96.62\u0026thinsp;\u0026plusmn;\u0026thinsp;0.12\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c3\"\u003e \u003cp\u003e0.987\u0026thinsp;\u0026plusmn;\u0026thinsp;0.002\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c4\"\u003e \u003cp\u003e1.026\u0026thinsp;\u0026plusmn;\u0026thinsp;0.003\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c5\"\u003e \u003cp\u003e0.986\u003c/p\u003e \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd align=\"left\" colname=\"c1\"\u003e \u003cp\u003evivoBodySeg-2D, Att\u003c/p\u003e \u003cp\u003e(with attention)\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c2\"\u003e \u003cp\u003e97.24\u0026thinsp;\u0026plusmn;\u0026thinsp;0.10\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c3\"\u003e \u003cp\u003e0.988\u0026thinsp;\u0026plusmn;\u0026thinsp;0.001\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c4\"\u003e \u003cp\u003e0.999\u0026thinsp;\u0026plusmn;\u0026thinsp;0.003\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c5\"\u003e \u003cp\u003e1.000\u003c/p\u003e \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd align=\"left\" colname=\"c1\"\u003e \u003cp\u003evivoBodySeg-2.5D, Att (2.5D, with attention)\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c2\"\u003e \u003cp\u003e97.80\u0026thinsp;\u0026plusmn;\u0026thinsp;0.08\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c3\"\u003e \u003cp\u003e0.991\u0026thinsp;\u0026plusmn;\u0026thinsp;0.001\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c4\"\u003e \u003cp\u003e1.008\u0026thinsp;\u0026plusmn;\u0026thinsp;0.002\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c5\"\u003e \u003cp\u003e0.995\u003c/p\u003e \u003c/td\u003e \u003c/tr\u003e \u003c/tbody\u003e \u003c/colgroup\u003e \u003c/table\u003e\u003c/div\u003e \u003c/p\u003e \u003cp\u003eWhile understanding how our model performs with respect to manual segmentations, we wanted to compare our models\u0026rsquo; results with respect to a population of human scorers. Five scientists segmented the same 20 channels with \u003cem\u003eC. elegans\u003c/em\u003e to calculate the values of Dice scores associated with inter-individual variability. We calculated Dice scores between all 5 scorers and found the average to be 96.10\u0026thinsp;\u0026plusmn;\u0026thinsp;0.12 (\u003cem\u003en\u003c/em\u003e\u0026thinsp;=\u0026thinsp;200) (Fig.\u0026nbsp;\u003cspan refid=\"Fig3\" class=\"InternalRef\"\u003e3\u003c/span\u003ea). We then estimated the Dice scores for all three models using 301 body segmentations (under the full worm classification) from two of the scorers as the test sample set. vivoBodySeg-2.5D, Att had 9% of the samples with a Dice score below the average value of 96.10% compared to the 31% for vivoBodySeg-2D (Fig.\u0026nbsp;\u003cspan refid=\"Fig3\" class=\"InternalRef\"\u003e3\u003c/span\u003eb and \u003cb\u003eSupplementary Fig.\u0026nbsp;4a-b\u003c/b\u003e).\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cdiv id=\"Sec13\" class=\"Section2\"\u003e \u003ch2\u003eFew-shot learning to improve the body detection for smaller worms immobilized in vivoChip-24x-4L device\u003c/h2\u003e \u003cp\u003eNew chemicals are often tested with a wide range of concentrations to identify lethal doses in a dose-finding experiment. In such assays, several worm populations are developmentally arrested or severely retarded, causing small-size worms. In addition, such highly potent chemical conditions cause a heterogeneous worm population with variable body sizes. To study such conditions, we treated \u003cem\u003eC. elegans\u003c/em\u003e populations with high doses of a reference toxicant CH\u003csub\u003e3\u003c/sub\u003eHg, where the \u003cem\u003eC. elegans\u003c/em\u003e are expected to have slow development and thus significantly smaller body sizes and lower image contrasts.\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003eBeyond the mildly dissimilar microfluidic environment, the differences between the larvae and adult \u003cem\u003eC. elegans\u003c/em\u003e are visually profound. The developmentally retarded worms (young L4) are transparent, have no eggs, and have fewer gut granules than normally grown adult \u003cem\u003eC. elegans\u003c/em\u003e (Figs.\u0026nbsp;\u003cspan refid=\"Fig4\" class=\"InternalRef\"\u003e4\u003c/span\u003ea-d). Using vivoBodySeg-2.5D, Att, we measured a zero-shot Dice score (94.90\u0026thinsp;\u0026plusmn;\u0026thinsp;0.47) on the images obtained with vivoChip-24x-4L device with phenotypically different worms (Table\u0026nbsp;\u003cspan refid=\"Tab2\" class=\"InternalRef\"\u003e2\u003c/span\u003e). Since vivoBodySeg-2.5D, Att was highly performant on images acquired with vivoChip-24x-3L devices (Dice score of 97.80\u0026thinsp;\u0026plusmn;\u0026thinsp;0.08), we wanted to understand few-shot learning (FSL) performance on a phenotypically different population of worm images that are obtained with vivoChip-24x-4L devices. For this test, we used 512 and 107 channel images from vivoChip-24x-4L for training and testing, respectively. We fine-tuned the network in five steps with varying amounts of training data to understand the impact of dataset size on the fine-tuning process. The training was performed with 32 (6.3%), 64 (12.5%), 128 (25.0%), 256 (50.0%), and 512 (100.0%) training samples from the vivoChip-24x-4L device. To avoid catastrophic forgetting, an equal number of worms from the previous 3L dataset was mixed with this new 4L data. Each split was trained with a batch size of 32 over 250 epochs, where we followed a cosine annealed one-cycle learning rate scheduler and a maximum learning rate of \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:{10}^{-6}\\)\u003c/span\u003e\u003c/span\u003e. All the trained models were tested with \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:M=362\\)\u003c/span\u003e\u003c/span\u003e (from vivoChip-24x-3L) images and \u003cspan class=\"InlineEquation\"\u003e\u003cspan class=\"mathinline\"\u003e\\(\\:M=107\\)\u003c/span\u003e\u003c/span\u003e (vivoChip-24x-4L) images. To understand model improvement, we report the Dice scores and classification accuracies using weighted F1 scores for worm images acquired with vivoChip-24x-3L (adult worms only) and vivoChip-24x-4L (L4 up to adult worms) devices (Table\u0026nbsp;\u003cspan refid=\"Tab2\" class=\"InternalRef\"\u003e2\u003c/span\u003e and \u003cb\u003eSupplementary Figs.\u0026nbsp;5a-b\u003c/b\u003e).\u003c/p\u003e \u003cp\u003e \u003cdiv class=\"gridtable\"\u003e\u003ctable float=\"Yes\" id=\"Tab2\" border=\"1\"\u003e \u003ccaption language=\"En\"\u003e \u003cdiv class=\"CaptionNumber\"\u003eTable 2\u003c/div\u003e \u003cdiv class=\"CaptionContent\"\u003e \u003cp\u003eDice score for the few-shot learning of vivoBodySeg-2.5D, Att model with different amounts of training data (6.3% \u0026ndash; 100% of 512 images).\u003c/p\u003e \u003c/div\u003e \u003c/caption\u003e \u003ccolgroup cols=\"5\"\u003e \u003cdiv align=\"left\" class=\"colspec\" colname=\"c1\" colnum=\"1\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\"\u0026plusmn;\" class=\"colspec\" colname=\"c2\" colnum=\"2\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\".\" class=\"colspec\" colname=\"c3\" colnum=\"3\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\"\u0026plusmn;\" class=\"colspec\" colname=\"c4\" colnum=\"4\"\u003e\u003c/div\u003e \u003cdiv align=\"char\" char=\".\" class=\"colspec\" colname=\"c5\" colnum=\"5\"\u003e\u003c/div\u003e \u003cthead\u003e \u003ctr\u003e \u003cth align=\"left\" colname=\"c1\" morerows=\"1\" rowspan=\"2\"\u003e \u003cp\u003eNumber of images (%)\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colspan=\"2\" nameend=\"c3\" namest=\"c2\"\u003e \u003cp\u003evivoChip-24x-3L device\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colspan=\"2\" nameend=\"c5\" namest=\"c4\"\u003e \u003cp\u003evivoChip-24x-4L device\u003c/p\u003e \u003c/th\u003e \u003c/tr\u003e \u003ctr\u003e \u003cth align=\"left\" colname=\"c2\"\u003e \u003cp\u003eDice score\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colname=\"c3\"\u003e \u003cp\u003eWeighted\u003c/p\u003e \u003cp\u003eF1 score\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colname=\"c4\"\u003e \u003cp\u003eDice score\u003c/p\u003e \u003c/th\u003e \u003cth align=\"left\" colname=\"c5\"\u003e \u003cp\u003eWeighted\u003c/p\u003e \u003cp\u003eF1 score\u003c/p\u003e \u003c/th\u003e \u003c/tr\u003e \u003c/thead\u003e \u003ctbody\u003e \u003ctr\u003e \u003ctd align=\"left\" colname=\"c1\"\u003e \u003cp\u003e0 (0.0%)\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c2\"\u003e \u003cp\u003e97.80\u0026thinsp;\u0026plusmn;\u0026thinsp;0.08\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c3\"\u003e \u003cp\u003e0.995\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c4\"\u003e \u003cp\u003e94.90\u0026thinsp;\u0026plusmn;\u0026thinsp;0.47\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c5\"\u003e \u003cp\u003e0.860\u003c/p\u003e \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd align=\"left\" colname=\"c1\"\u003e \u003cp\u003e32 (6.3%)\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c2\"\u003e \u003cp\u003e96.57\u0026thinsp;\u0026plusmn;\u0026thinsp;0.14\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c3\"\u003e \u003cp\u003e0.938\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c4\"\u003e \u003cp\u003e95.90\u0026thinsp;\u0026plusmn;\u0026thinsp;0.31\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c5\"\u003e \u003cp\u003e0.986\u003c/p\u003e \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd align=\"left\" colname=\"c1\"\u003e \u003cp\u003e64 (12.5%)\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c2\"\u003e \u003cp\u003e96.95\u0026thinsp;\u0026plusmn;\u0026thinsp;0.12\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c3\"\u003e \u003cp\u003e0.971\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c4\"\u003e \u003cp\u003e95.93\u0026thinsp;\u0026plusmn;\u0026thinsp;0.30\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c5\"\u003e \u003cp\u003e0.986\u003c/p\u003e \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd align=\"left\" colname=\"c1\"\u003e \u003cp\u003e128 (25.0%)\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c2\"\u003e \u003cp\u003e97.28\u0026thinsp;\u0026plusmn;\u0026thinsp;0.11\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c3\"\u003e \u003cp\u003e0.992\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c4\"\u003e \u003cp\u003e96.52\u0026thinsp;\u0026plusmn;\u0026thinsp;0.32\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c5\"\u003e \u003cp\u003e0.986\u003c/p\u003e \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd align=\"left\" colname=\"c1\"\u003e \u003cp\u003e256 (50.0%)\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c2\"\u003e \u003cp\u003e97.32\u0026thinsp;\u0026plusmn;\u0026thinsp;0.10\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c3\"\u003e \u003cp\u003e0.995\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c4\"\u003e \u003cp\u003e96.90\u0026thinsp;\u0026plusmn;\u0026thinsp;0.25\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c5\"\u003e \u003cp\u003e0.986\u003c/p\u003e \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd align=\"left\" colname=\"c1\"\u003e \u003cp\u003e512 (100.0%)\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c2\"\u003e \u003cp\u003e97.39\u0026thinsp;\u0026plusmn;\u0026thinsp;0.11\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c3\"\u003e \u003cp\u003e0.995\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\"\u0026plusmn;\" colname=\"c4\"\u003e \u003cp\u003e96.91\u0026thinsp;\u0026plusmn;\u0026thinsp;0.19\u003c/p\u003e \u003c/td\u003e \u003ctd align=\"char\" char=\".\" colname=\"c5\"\u003e \u003cp\u003e0.986\u003c/p\u003e \u003c/td\u003e \u003c/tr\u003e \u003c/tbody\u003e \u003c/colgroup\u003e \u003c/table\u003e\u003c/div\u003e \u003c/p\u003e \u003cp\u003eWhile phenotypic differences between the two populations reduced the performance of our baseline model (vivoBodySeg-2.5D, Att), we were able to finetune its performance in detecting worm bodies across a wide range of worm populations within four hours of additional training (Figs.\u0026nbsp;\u003cspan refid=\"Fig5\" class=\"InternalRef\"\u003e5\u003c/span\u003ea-f). While the ideal corpus represents any unseen test set, the fine-tuning strategies deployed here allowed us to process new and highly disparate data classes with hundreds rather than thousands of examples. Although the final vivoBodySeg-2.5D, Att (trained with 512 images) model detected the adults with slightly lower accuracy (Dice score 97.39\u0026thinsp;\u0026plusmn;\u0026thinsp;0.11 from 97.80\u0026thinsp;\u0026plusmn;\u0026thinsp;0.08) for images from vivoChip-24x-3L devices, the performance improved immensely for the new class of data (Dice score 96.91\u0026thinsp;\u0026plusmn;\u0026thinsp;0.19 from 94.90\u0026thinsp;\u0026plusmn;\u0026thinsp;0.47). The final vivoBodySeg-2.5D, Att (100.0%) model detected adult worms imaged in the vivoChip-24x-3L with similar accuracy as the baseline model, before finetuning (\u003cb\u003eSupplementary Fig.\u0026nbsp;6\u003c/b\u003e). We achieved a weighted F1 score of 0.986 using the final vivoBodySeg-2.5D, Att model compared to 0.860 estimated with the baseline model before the FSL approach was implemented.\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec14\" class=\"Section2\"\u003e \u003ch2\u003eStudying developmental toxicology in C. elegans with methyl mercury exposure\u003c/h2\u003e \u003cp\u003eWe exposed age-synchronized \u003cem\u003eC. elegans\u003c/em\u003e larvae to 12 concentrations of CH\u003csub\u003e3\u003c/sub\u003eHg in 0.2% DMSO for 72 hours in plastic well plates and imaged them using the vivoChip-24x-4L device. The experiment was repeated five times to identify batch-to-batch variability and estimate the coefficient of variability parameters from the 0.2% DMSO controls (Fig.\u0026nbsp;\u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e6\u003c/span\u003ea). We analyzed all the 4,800 microfluidic channels from 5 independent experiments using the final vivoBodySeg model (few-shot learning with 512 images) to automatically identify channels with \u003cem\u003eC. elegans\u003c/em\u003e and estimate the body parameters (length, area, and volume). The inference code with this model analyzed a full chip with 1,200 brightfield images in 35 minutes. We obtained highly similar assay results in all the body parameters, studied from all five chip experiments. The coefficient of variance (CV) between the DMSO controls from 5 replicates for the body length (3.7%), body area (7.9%), and body volume (8.0%) were much below the 30% threshold, accepted CV values in a similar guideline using a similar species in the OECD test guideline [50]. The values indicate that we have a robust automated developmental toxicity (DevTox) assay using \u003cem\u003eC. elegans\u003c/em\u003e models that can detect small changes in the body parameters with high confidence.\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003eTo demonstrate the utility of our DevTox assay, we performed a dose-response study on the CH\u003csub\u003e3\u003c/sub\u003eHg, a reference toxicant tested in \u003cem\u003eC. elegans\u003c/em\u003e and other species including humans [17, 37, 38, 51\u0026ndash;55]. The average body parameters from five experiments consistently decreased with increased CH\u003csub\u003e3\u003c/sub\u003eHg concentration (Figs.\u0026nbsp;\u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e6\u003c/span\u003eb-d). The body volume (EC\u003csub\u003e10\u003c/sub\u003e\u0026thinsp;=\u0026thinsp;0.46, 0.32\u0026ndash;0.63 \u0026micro;M, \u0026plusmn; 95% CI) and body area (EC\u003csub\u003e10\u003c/sub\u003e\u0026thinsp;=\u0026thinsp;0.46, 0.32\u0026ndash;0.64 \u0026micro;M) show toxicity effects at slightly lower concentrations than the body length (EC\u003csub\u003e10\u003c/sub\u003e\u0026thinsp;=\u0026thinsp;0.78, 0.56\u0026ndash;1.05 \u0026micro;M). The LOAEL values for all three body parameters were estimated as 1.0 \u0026micro;M. The worms exposed to the highest dose (9.0 \u0026micro;M) of the toxicant only develop to the early L4 stage. These smallest worms were, thus, trapped in the fourth layer of the microchannels, towards the exit with the smallest channel height, matching our body parameters calculated using the model (Fig.\u0026nbsp;\u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e6\u003c/span\u003ee).\u003c/p\u003e \u003cp\u003eThe autofluorescence signal in \u003cem\u003eC. elegans\u003c/em\u003e, as in mammalian cells, is found in the granules of lysosomes, which are present in their intestine [56]. The intestinal autofluorescence is known to increase with age of the worm [57\u0026ndash;59] and when exposed to toxicants [60, 61]. We utilized predicted body masks to analyze the autofluorescence signal within each \u003cem\u003eC. elegans\u003c/em\u003e body and identify the change in the average autofluorescence signal in a quantitative manner. The average autofluorescence signal per unit body length for 9.0 \u0026micro;M CH\u003csub\u003e3\u003c/sub\u003eHg (2.23\u0026thinsp;\u0026plusmn;\u0026thinsp;0.09) is ~\u0026thinsp;2\u0026times; higher than the value for 0.5 \u0026micro;M CH\u003csub\u003e3\u003c/sub\u003eHg (1.17\u0026thinsp;\u0026plusmn;\u0026thinsp;0.06) in a statistically significant manner (\u003cem\u003ep\u003c/em\u003e-value\u0026thinsp;\u0026lt;\u0026thinsp;0.001). The average autofluorescence signal per unit body length for 0.5 \u0026micro;M CH\u003csub\u003e3\u003c/sub\u003eHg is similar to the baseline value for DMSO control (1.15\u0026thinsp;\u0026plusmn;\u0026thinsp;0.01, \u003cem\u003ep\u003c/em\u003e-value\u0026thinsp;=\u0026thinsp;0.63, Fig.\u0026nbsp;\u003cspan refid=\"Fig7\" class=\"InternalRef\"\u003e6\u003c/span\u003ef). On the other hand, the average autofluorescence signal per unit body area for worms treated with 9.0 \u0026micro;M CH\u003csub\u003e3\u003c/sub\u003eHg (0.081\u0026thinsp;\u0026plusmn;\u0026thinsp;0.008) increased by ~\u0026thinsp;3\u0026times; than the value for 0.5 \u0026micro;M CH\u003csub\u003e3\u003c/sub\u003eHg (0.027\u0026thinsp;\u0026plusmn;\u0026thinsp;0.001, \u003cem\u003ep\u003c/em\u003e-value\u0026thinsp;=\u0026thinsp;0.002, \u003cb\u003eSupplementary Fig.\u0026nbsp;7\u003c/b\u003e). The EC\u003csub\u003e10\u003c/sub\u003e values for the average autofluorescence signal per unit body length (1.59 \u0026micro;M, 95% CI is 1.27\u0026ndash;1.93 \u0026micro;M) is lower than the value for per unit body area (2.98 \u0026micro;M, 95% CI is 2.48\u0026ndash;8.44 \u0026micro;M). The LOAEL values for autofluorescence per unit length and per unit area are 2.5 \u0026micro;M and 1.5 \u0026micro;M, respectively. The increase in the autofluorescence signal was delayed compared to the developmental features and is likely to be a less sensitive parameter for toxicology assessment for CH\u003csub\u003e3\u003c/sub\u003eHg. Additionally, we found that \u003cem\u003eC. elegans\u003c/em\u003e exposed to high doses of CH\u003csub\u003e3\u003c/sub\u003eHg showed slow motility when observed in their culture plates, agreeing with the previously published correlation between high autofluorescence and locomotion [61].\u003c/p\u003e \u003c/div\u003e"},{"header":"Discussion","content":"\u003cp\u003eThis study presents an ML-based image analysis platform to perform DevTox studies using \u003cem\u003eC. elegans\u003c/em\u003e as a NAMs model. This platform enables rapid high-content analysis of thousands of \u003cem\u003eC. elegans\u003c/em\u003e images collected as they are immobilized in parallel channels of a large-scale microfluidic platform, vivoChip-24x. DevTox assessment is one of the mandatory tests needed for human and environmental risk assessment of new chemicals before they are approved for commercial use. Due to the large number of chemicals currently in commercial use (85,000) and more than 2,500 new ones added every year [62], industries are seeking innovative solutions to assess chemicals in a high-throughput manner with high predictive power. \u003cem\u003eC. elegans\u003c/em\u003e has been used as one of the \u003cem\u003ein vivo\u003c/em\u003e models for early drug discovery and toxicology screens. To improve assay sensitivity, capture multiple phenotypes, and facilitate high-content image-based analyses, we developed an automated imaging and image-analysis pipeline to quantify multiple phenotypes in \u003cem\u003eC. elegans\u003c/em\u003e models. We used vivoChip technology to capture brightfield, fluorescence, multiple z-stack, and time-lapse images from 960 \u003cem\u003eC. elegans\u003c/em\u003e and 24 populations in each vivoChip device. Our vivoChips are fabricated using plastic instead of PDMS to lower chemical absorption. The microfluidic channels are sealed with a thin substrate to allow the capturing of high-resolution images with sufficient contrast from transparent worm body parts such as the tail tip or young larvae with reduced gut granules.\u003c/p\u003e \u003cp\u003eThe ML-based vivoBodySeg, trained with the images obtained using vivoChip-24x devices, is highly performant in two different experimental settings using 3-layer and 4-layer devices. By including a ViT at the bottleneck layer of our encoder, we can easily communicate features that span the entire image length in a memory-efficient manner. Further, by accounting for the information from multiple z-stack images in a multiplicative manner, the overall network generates volumetric features without relying on higher dimensional convolutions. We find this model highly accurate and indistinguishable from our highly trained scientists for segmenting an arbitrary dataset. The model can analyze data from one vivoChip-24x experiment (~\u0026thinsp;1,000 animals, 9,600 single-channel images, 36 GB data) in 35 minutes using a single desktop PC (with 128 GB of memory and an A6000 GPU with 48 GB of VRAM) compared to 5,000 minutes for uninterrupted expert analysis hours.\u003c/p\u003e \u003cp\u003eOur \u003cem\u003eC. elegans\u003c/em\u003e DevTox analysis includes accurate measurements of worm length, body area, and volume, as they prove to be highly useful developmental endpoints with different levels of sensitivities. Automated analysis of \u003cem\u003eC. elegans\u003c/em\u003e developmental parameters is currently available using length estimation with the COPAS Biosorter via 1D signal analysis or plate readers via low-resolution image analysis [21\u0026ndash;23, 27]. While several groups have used these tools to analyze \u003cem\u003eC. elegans\u003c/em\u003e bodies, these assays provide data with a high amount of variability and poor statistical power [26]. Advancements in microfluidic technologies have enabled on-chip \u003cem\u003eC. elegans\u003c/em\u003e imaging and quantifying body parameters using conventional image processing [63, 64]. Unfortunately, these platforms acquire low-resolution images and introduce a high amount of variability in their body parameters. The machine learning pipeline that we developed can analyze the data obtained from our fully automated and scalable vivoChip-24x devices and provide body measurements with high statistical power. Based on the average observed variance in the body parameters, we found a\u0026thinsp;\u0026gt;\u0026thinsp;80% power to identify a 4% change in length and area, and a 7% change in volume using experimental replicates. The fully automated ML-based approach eliminates user bias, does not suffer from user fatigue, helps reduce assay costs, and achieves high throughput to screen many chemicals in a low-resource setting.\u003c/p\u003e \u003cp\u003eTo demonstrate the implementation of our DevTox assay powered with ML analysis, we conducted a study with a well-characterized toxicant CH\u003csub\u003e3\u003c/sub\u003eHg at 18 different doses ranging from 0.5 to 9.0 \u0026micro;M concentrations and 0.2% DMSO solvent. We quantified DevTox using the effects on the body length, area, and volume parameters in a dose-dependent manner. We found lower EC\u003csub\u003e10\u003c/sub\u003e for the body area and volume (0.46 \u0026micro;M) than the body length (0.78 \u0026micro;M) in the N2 strain, indicating the area and volume parameters are more sensitive parameters of DevTox. We noticed that the worm populations with severe developmental defects due to exposure to higher concentrations of CH\u003csub\u003e3\u003c/sub\u003eHg have higher intestinal autofluorescence signals than the control worms, indicating a possible increase in stress levels from toxicity response. During autofluorescence analysis, we found a few examples where the predicted body mask, especially the tip of the tail or the head of a worm, did not match completely due to body movement between frames. This problem is less concerning for autofluorescence analysis due to the signal being localized to the body region that is completely immobilized. To improve immobilization and hold the entire worm body still during the imaging, the worms can be immobilized with a low concentration of anesthetic solution or gel material.\u003c/p\u003e \u003cp\u003eThe machine learning pipeline, combined with our scalable microfluidic technologies, can provide rapid DevTox parameters of new and in-use active ingredients using \u003cem\u003eC. elegans\u003c/em\u003e models. To the best of our knowledge, this is the first study demonstrating automated, high-throughput quantifications of \u003cem\u003eC. elegans\u003c/em\u003e volume, which is analogous to body weight measurements as used in standard DevTox and ecotoxicology tests with animals. In the future, we aim to expand the DevTox assays with other endpoints such as reproduction endpoints using \u003cem\u003ein-utero\u003c/em\u003e embryonic phenotypes. The DevTox parameters have high statistical power and can provide toxicology endpoints from \u003cem\u003eC. elegans\u003c/em\u003e models for read-across strategies, which are currently being developed by several industries to establish NAMs and understand fit-for-purpose toxicology assays.\u003c/p\u003e"},{"header":"Declarations","content":"\u003cp\u003e\u003cstrong\u003eAcknowledgments:\u003c/strong\u003e The authors would like to thank the National Institutes of Health for the Small Business Innovation Research grants from NIEHS (R43ES033579 and R44ES033579) and NIMH (R43MH118841 and R44MH118841). We would like to thank Thao Vu and Laura Murphy for their help in manual segmentations. We also thank Nikko Chavez and Jacob Moore for the initial version of the image acquisition setup. Some strains were provided by the CGC, which is funded by the NIH Office of Research Infrastructure Programs (P40 OD010440). We thank \u003cem\u003eThe Caenorhabditis\u0026nbsp;\u003c/em\u003eNatural Diversity Resource (CaeNDR) for providing the N2 strain.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eAuthor Contributions:\u0026nbsp;\u003c/strong\u003eA.D. and A.M. designed, trained, and validated the machine learning models. S.G. developed image acquisition and segmentation software. A.S., A.L., and E.H. ran the experiments. A.D., A.M., A.L., and S.M. analyzed the data, prepared the plot, and performed the statistics. S.M. and A.B. conceptualized the projects, planned the experiments, and finalized the discussion of the results. A.D., S.M., and A.B. prepared the manuscript.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eData Availability:\u003c/strong\u003e The datasets generated during and/or analyzed during the current study are available from the corresponding authors upon reasonable request.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eConflict of Interests Statement:\u0026nbsp;\u003c/strong\u003eE.H., S.M., and A.B. are co-founders of vivoVerse, LLC and its Associates. A.D., A.S., A.L., E.H., S.M., and A.B. are inventors of several approved and pending patents.\u003c/p\u003e"},{"header":"References","content":"\u003col\u003e\n\u003cli\u003eBoyd, W.A., et al., \u003cem\u003eA high-throughput method for assessing chemical toxicity using a Caenorhabditis elegans reproduction assay.\u003c/em\u003e Toxicol Appl Pharmacol, 2010. \u003cstrong\u003e245\u003c/strong\u003e(2): p. 153-9.\u003c/li\u003e\n\u003cli\u003eBoyd, W.A., et al., \u003cem\u003eDevelopmental Effects of the ToxCast Phase I and Phase II Chemicals in Caenorhabditis elegans and Corresponding Responses in Zebrafish, Rats, and Rabbits.\u003c/em\u003e Environ Health Perspect, 2016. \u003cstrong\u003e124\u003c/strong\u003e: p. 586-93.\u003c/li\u003e\n\u003cli\u003eBoyd, W.A., et al., \u003cem\u003eMedium- and high-throughput screening of neurotoxicants using C. elegans.\u003c/em\u003e Neurotoxicology and Teratology, 2010. \u003cstrong\u003e32\u003c/strong\u003e: p. 68-73.\u003c/li\u003e\n\u003cli\u003eHarlow, P.H., et al., \u003cem\u003eComparative metabolism of xenobiotic chemicals by cytochrome P450s in the nematode Caenorhabditis elegans.\u003c/em\u003e Sci Rep, 2018. \u003cstrong\u003e8\u003c/strong\u003e: p. 13333.\u003c/li\u003e\n\u003cli\u003eHarlow, P.H., et al., \u003cem\u003eThe nematode Caenorhabditis elegans as a tool to predict chemical activity on mammalian development and identify mechanisms influencing toxicological outcome.\u003c/em\u003e Sci Rep, 2016. \u003cstrong\u003e6\u003c/strong\u003e: p. 22965.\u003c/li\u003e\n\u003cli\u003eHunt, P.R., \u003cem\u003eThe C. elegans model in toxicity testing.\u003c/em\u003e J Appl Toxicol, 2017. \u003cstrong\u003e37\u003c/strong\u003e: p. 50-59.\u003c/li\u003e\n\u003cli\u003eHunt, P.R., \u003cem\u003eBuilding Confidence in the Use of NAMs data for Risk Analysis: C. elegans as a Case Study\u003c/em\u003e, J. Camacho, Editor. 2021.\u003c/li\u003e\n\u003cli\u003eHunt, P.R., J.A. Camacho, and R.L. Sprando, \u003cem\u003eCaenorhabditis elegans for predictive toxicology.\u003c/em\u003e Current Opinion in Toxicology, 2020. \u003cstrong\u003e23-24\u003c/strong\u003e: p. 23-28.\u003c/li\u003e\n\u003cli\u003eHunt, P.R., et al., \u003cem\u003eC. elegans Development and Activity Test detects mammalian developmental neurotoxins.\u003c/em\u003e Food Chem Toxicol, 2018. \u003cstrong\u003e121\u003c/strong\u003e: p. 583-592.\u003c/li\u003e\n\u003cli\u003eMorley, J.F., et al., \u003cem\u003eThe threshold for polyglutamine-expansion protein aggregation and cellular toxicity is dynamic and influenced by aging in Caenorhabditis elegans.\u003c/em\u003e Proc. Natl. Acad. Sci. USA, 2002. \u003cstrong\u003e99\u003c/strong\u003e: p. 10417-22.\u003c/li\u003e\n\u003cli\u003eLink, C.D., \u003cem\u003eExpression of human beta-amyloid peptide in transgenic Caenorhabditis elegans.\u003c/em\u003e Proc. Natl. Acad. Sci. USA, 1995. \u003cstrong\u003e92\u003c/strong\u003e: p. 9368-72.\u003c/li\u003e\n\u003cli\u003eLakso, M., et al., \u003cem\u003eDopaminergic neuronal loss and motor deficits in Caenorhabditis elegans overexpressing human alpha-synuclein.\u003c/em\u003e J Neurochem, 2003. \u003cstrong\u003e86\u003c/strong\u003e(1): p. 165-72.\u003c/li\u003e\n\u003cli\u003eDillin, A., et al., \u003cem\u003eRates of behavior and aging specified by mitochondrial function during development.\u003c/em\u003e Science, 2002. \u003cstrong\u003e298\u003c/strong\u003e(5602): p. 2398-401.\u003c/li\u003e\n\u003cli\u003eLee, S.S., et al., \u003cem\u003eDAF-16 target genes that control C. elegans life-span and metabolism.\u003c/em\u003e Science, 2003. \u003cstrong\u003e300\u003c/strong\u003e(5619): p. 644-7.\u003c/li\u003e\n\u003cli\u003eXiong, H., C. Pears, and A. Woollard, \u003cem\u003eAn enhanced C. elegans based platform for toxicity assessment.\u003c/em\u003e Sci Rep, 2017. \u003cstrong\u003e7\u003c/strong\u003e: p. 9839.\u003c/li\u003e\n\u003cli\u003eCole, R.D., G.L. Anderson, and P.L. Williams, \u003cem\u003eThe nematode Caenorhabditis elegans as a model of organophosphate-induced mammalian neurotoxicity.\u003c/em\u003e Toxicology and Applied Pharmacology, 2004. \u003cstrong\u003e194\u003c/strong\u003e: p. 248-256.\u003c/li\u003e\n\u003cli\u003eHelmcke, K.J., et al., \u003cem\u003eCharacterization of the effects of methylmercury on Caenorhabditis elegans.\u003c/em\u003e Toxicol Appl Pharmacol, 2009. \u003cstrong\u003e240\u003c/strong\u003e(2): p. 265-72.\u003c/li\u003e\n\u003cli\u003eLeung, M.C., et al., \u003cem\u003eCaenorhabditis elegans generates biologically relevant levels of genotoxic metabolites from aflatoxin B1 but not benzo[a]pyrene in vivo.\u003c/em\u003e Toxicol Sci, 2010. \u003cstrong\u003e118\u003c/strong\u003e(2): p. 444-53.\u003c/li\u003e\n\u003cli\u003eLeung, C.K., et al., \u003cem\u003eHigh-throughput screening and biosensing with fluorescent C. elegans strains.\u003c/em\u003e J Vis Exp, 2011.\u003c/li\u003e\n\u003cli\u003eLeung, C.K., et al., \u003cem\u003eAn ultra high-throughput, whole-animal screen for small molecule modulators of a specific genetic pathway in Caenorhabditis elegans.\u003c/em\u003e PLoS One, 2013. \u003cstrong\u003e8\u003c/strong\u003e: p. e62166.\u003c/li\u003e\n\u003cli\u003eNyaanga, J., et al., \u003cem\u003eChanges in body shape implicate cuticle stretch in C. elegans growth control.\u003c/em\u003e Cells Dev, 2022. \u003cstrong\u003e170\u003c/strong\u003e: p. 203780.\u003c/li\u003e\n\u003cli\u003eGosai, S.J., et al., \u003cem\u003eAutomated high-content live animal drug screening using C. elegans expressing the aggregation prone serpin alpha1-antitrypsin Z.\u003c/em\u003e PLoS ONE, 2010. \u003cstrong\u003e5\u003c/strong\u003e: p. e15460.\u003c/li\u003e\n\u003cli\u003ePulak, R., \u003cem\u003eTechniques for analysis, sorting, and dispensing of C. elegans on the COPAS flow-sorting system.\u003c/em\u003e Methods Mol. Biol., 2006. \u003cstrong\u003e351\u003c/strong\u003e: p. 275-86.\u003c/li\u003e\n\u003cli\u003eShimko, T.C. and E.C. Andersen, \u003cem\u003eCOPASutils: an R package for reading, processing, and visualizing data from COPAS large-particle flow cytometers.\u003c/em\u003e PLoS One, 2014. \u003cstrong\u003e9\u003c/strong\u003e: p. e111090.\u003c/li\u003e\n\u003cli\u003eSmith, M.V., et al., \u003cem\u003eA discrete time model for the analysis of medium-throughput C. elegans growth data.\u003c/em\u003e PLoS One, 2009. \u003cstrong\u003e4\u003c/strong\u003e(9): p. e7018.\u003c/li\u003e\n\u003cli\u003eMoore, B.T., J.M. Jordan, and L.R. Baugh, \u003cem\u003eWormSizer: high-throughput analysis of nematode size and shape.\u003c/em\u003e PLoS One, 2013. \u003cstrong\u003e8\u003c/strong\u003e(2): p. e57142.\u003c/li\u003e\n\u003cli\u003eWahlby, C., et al., \u003cem\u003eAn image analysis toolbox for high-throughput C. elegans assays.\u003c/em\u003e Nat. Methods, 2012. \u003cstrong\u003e9\u003c/strong\u003e: p. 714-6.\u003c/li\u003e\n\u003cli\u003eKoopman, M., et al., \u003cem\u003eAssessing motor-related phenotypes of Caenorhabditis elegans with the wide field-of-view nematode tracking platform.\u003c/em\u003e Nat Protoc, 2020. \u003cstrong\u003e15\u003c/strong\u003e(6): p. 2071-2106.\u003c/li\u003e\n\u003cli\u003eMondal, S., et al., \u003cem\u003eLarge-scale microfluidics providing high-resolution and high-throughput screening of Caenorhabditis elegans poly-glutamine aggregation model.\u003c/em\u003e Nat. Commun., 2016. \u003cstrong\u003e7\u003c/strong\u003e: p. 13023.\u003c/li\u003e\n\u003cli\u003eMondal, S., et al., \u003cem\u003eHigh-Content Microfluidic Screening Platform Used To Identify sigma2R/Tmem97 Binding Ligands that Reduce Age-Dependent Neurodegeneration in C. elegans SC_APP Model.\u003c/em\u003e ACS Chem Neurosci, 2018.\u003c/li\u003e\n\u003cli\u003eBen-Yakar, A., \u003cem\u003eHigh-Content and High-Throughput In Vivo Drug Screening Platforms Using Microfluidics.\u003c/em\u003e Assay Drug Dev Technol, 2019. \u003cstrong\u003e17\u003c/strong\u003e: p. 8-13.\u003c/li\u003e\n\u003cli\u003eMondal, S. and A. Ben-Yakar, \u003cem\u003eChapter 11- Caenorhabditis elegans-on-a-chip: microfluidic platforms for high-resolution imaging and phenotyping\u003c/em\u003e, in \u003cem\u003eOrgan-on-a-chip\u003c/em\u003e, J. Hoeng, D. Bovard, and M.C. Peitsch, Editors. 2020, Academic Press. p. 363-390.\u003c/li\u003e\n\u003cli\u003eDeserno, M. and K. Bozek, \u003cem\u003eWormSwin: Instance segmentation of C. elegans using vision transformer.\u003c/em\u003e Sci Rep, 2023. \u003cstrong\u003e13\u003c/strong\u003e(1): p. 11021.\u003c/li\u003e\n\u003cli\u003eBates, K., K.N. Le, and H. Lu, \u003cem\u003eDeep learning for robust and flexible tracking in behavioral studies for C. elegans.\u003c/em\u003e PLoS Comput Biol, 2022. \u003cstrong\u003e18\u003c/strong\u003e(4): p. e1009942.\u003c/li\u003e\n\u003cli\u003eLayana Castro, P.E., A.G. Garvi, and A.J. Sanchez-Salmeron, \u003cem\u003eAutomatic segmentation of Caenorhabditis elegans skeletons in worm aggregations using improved U-Net in low-resolution image sequences.\u003c/em\u003e Heliyon, 2023. \u003cstrong\u003e9\u003c/strong\u003e(4): p. e14715.\u003c/li\u003e\n\u003cli\u003eStiernagle, T., \u003cem\u003eMaintenance of C. elegans.\u003c/em\u003e WormBook, 2006: p. 1-11.\u003c/li\u003e\n\u003cli\u003eKe, T., et al., \u003cem\u003eGenetic factors in methylmercury-induced neurotoxicity: What have we learned from Caenorhabditis elegans models?\u003c/em\u003e Adv Neurotoxicol, 2023. \u003cstrong\u003e9\u003c/strong\u003e: p. 271-290.\u003c/li\u003e\n\u003cli\u003eHu, K., et al., \u003cem\u003eEcotoxicity Risk of Low-Dose Methylmercury Exposure to Caenorhabditis elegans: Multigenerational Toxicity and Population Discrepancy.\u003c/em\u003e Chem Res Toxicol, 2021. \u003cstrong\u003e34\u003c/strong\u003e(4): p. 1114-1123.\u003c/li\u003e\n\u003cli\u003eGroen, F.C., I.T. Young, and G. Ligthart, \u003cem\u003eA comparison of different focus functions for use in autofocus algorithms.\u003c/em\u003e Cytometry, 1985. \u003cstrong\u003e6\u003c/strong\u003e: p. 81-91.\u003c/li\u003e\n\u003cli\u003eSun, Y., S. Duthaler, and B.J. Nelson, \u003cem\u003eAutofocusing in computer microscopy: selecting the optimal focus algorithm.\u003c/em\u003e Microsc. Res. Tech., 2004. \u003cstrong\u003e65\u003c/strong\u003e: p. 139-49.\u003c/li\u003e\n\u003cli\u003eTorbunov, D., et al., \u003cem\u003eUVCGAN: UNet Vision Transformer cycle-consistent GAN for unpaired image-to-image translation.\u003c/em\u003e arXiv e-prints, 2022: p. arXiv:2203.02557.\u003c/li\u003e\n\u003cli\u003eAvesta, A., et al., \u003cem\u003eComparing 3D, 2.5D, and 2D Approaches to Brain Image Auto-Segmentation.\u003c/em\u003e Bioengineering (Basel), 2023. \u003cstrong\u003e10\u003c/strong\u003e(2).\u003c/li\u003e\n\u003cli\u003eHe, K., et al., \u003cem\u003eDeep Residual Learning for Image Recognition.\u003c/em\u003e 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016: p. 770-778.\u003c/li\u003e\n\u003cli\u003eLee, J., et al., \u003cem\u003eSet Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks.\u003c/em\u003e arXiv e-prints, 2018: p. arXiv:1810.00825.\u003c/li\u003e\n\u003cli\u003eDosovitskiy, A., et al., \u003cem\u003eAn Image is Worth 16x16 Words: Transformers for Image Recognition at Scale.\u003c/em\u003e arXiv e-prints, 2020: p. arXiv:2010.11929.\u003c/li\u003e\n\u003cli\u003evan den Oord, A., O. Vinyals, and K. Kavukcuoglu, \u003cem\u003eNeural Discrete Representation Learning.\u003c/em\u003e arXiv e-prints, 2017: p. arXiv:1711.00937.\u003c/li\u003e\n\u003cli\u003eVaswani, A., et al., \u003cem\u003eAttention Is All You Need.\u003c/em\u003e arXiv e-prints, 2017: p. arXiv:1706.03762.\u003c/li\u003e\n\u003cli\u003eLoshchilov, I. and F. Hutter, \u003cem\u003eDecoupled Weight Decay Regularization.\u003c/em\u003e arXiv e-prints, 2017: p. arXiv:1711.05101.\u003c/li\u003e\n\u003cli\u003eLoshchilov, I. and F. Hutter, \u003cem\u003eSGDR: Stochastic Gradient Descent with Warm Restarts.\u003c/em\u003e arXiv e-prints, 2016: p. arXiv:1608.03983.\u003c/li\u003e\n\u003cli\u003eOECD \u003cem\u003eTest No. 207: Earthworm, Acute Toxicity Tests\u003c/em\u003e. 1984.\u003c/li\u003e\n\u003cli\u003eTsuchiya, H., et al., \u003cem\u003ePlacental transfer of heavy metals in normal pregnant Japanese women.\u003c/em\u003e Arch Environ Health, 1984. \u003cstrong\u003e39\u003c/strong\u003e(1): p. 11-7.\u003c/li\u003e\n\u003cli\u003eHong, Y.S., Y.M. Kim, and K.E. Lee, \u003cem\u003eMethylmercury exposure and health effects.\u003c/em\u003e J Prev Med Public Health, 2012. \u003cstrong\u003e45\u003c/strong\u003e(6): p. 353-63.\u003c/li\u003e\n\u003cli\u003eDiez, S., \u003cem\u003eHuman health effects of methylmercury exposure.\u003c/em\u003e Rev Environ Contam Toxicol, 2009. \u003cstrong\u003e198\u003c/strong\u003e: p. 111-32.\u003c/li\u003e\n\u003cli\u003eNagashima, K., \u003cem\u003eA review of experimental methylmercury toxicity in rats: neuropathology and evidence for apoptosis.\u003c/em\u003e Toxicol Pathol, 1997. \u003cstrong\u003e25\u003c/strong\u003e(6): p. 624-31.\u003c/li\u003e\n\u003cli\u003eGlazer, L. and C.H. Brennan, \u003cem\u003eDevelopmental Exposure to Low Concentrations of Methylmercury Causes Increase in Anxiety-Related Behaviour and Locomotor Impairments in Zebrafish.\u003c/em\u003e Int J Mol Sci, 2021. \u003cstrong\u003e22\u003c/strong\u003e(20).\u003c/li\u003e\n\u003cli\u003eTan, C.H., et al., \u003cem\u003eFluorescence dynamics of lysosomal-related organelle flashing in the intestinal cells of Caenorhabditis elegans.\u003c/em\u003e bioRxiv, 2023.\u003c/li\u003e\n\u003cli\u003eClokey, G.V. and L.A. Jacobson, \u003cem\u003eThe autofluorescent \u0026quot;lipofuscin granules\u0026quot; in the intestinal cells of Caenorhabditis elegans are secondary lysosomes.\u003c/em\u003e Mech Ageing Dev, 1986. \u003cstrong\u003e35\u003c/strong\u003e(1): p. 79-94.\u003c/li\u003e\n\u003cli\u003eDavis, B.O., Jr., G.L. Anderson, and D.B. Dusenbery, \u003cem\u003eTotal luminescence spectroscopy of fluorescence changes during aging in Caenorhabditis elegans.\u003c/em\u003e Biochemistry, 1982. \u003cstrong\u003e21\u003c/strong\u003e(17): p. 4089-95.\u003c/li\u003e\n\u003cli\u003eKlass, M.R., \u003cem\u003eAging in the nematode Caenorhabditis elegans: major biological and environmental factors influencing life span.\u003c/em\u003e Mech Ageing Dev, 1977. \u003cstrong\u003e6\u003c/strong\u003e(6): p. 413-29.\u003c/li\u003e\n\u003cli\u003eShen, L., et al., \u003cem\u003eToxicity evaluation in nematode Caenorhabditis elegans after chronic metal exposure.\u003c/em\u003e Environ Toxicol Pharmacol, 2009. \u003cstrong\u003e28\u003c/strong\u003e(1): p. 125-32.\u003c/li\u003e\n\u003cli\u003eWu, Q., et al., \u003cem\u003eChromium exhibits adverse effects at environmental relevant concentrations in chronic toxicity assay system of nematode Caenorhabditis elegans.\u003c/em\u003e Chemosphere, 2012. \u003cstrong\u003e87\u003c/strong\u003e(11): p. 1281-7.\u003c/li\u003e\n\u003cli\u003eDTSC. \u003cem\u003eChemicals of Emerging Concern\u003c/em\u003e. 2024 [cited 2024 July 17, 2024].\u003c/li\u003e\n\u003cli\u003eAtakan, H.B., et al., \u003cem\u003eAutomated high-content phenotyping from the first larval stage till the onset of adulthood of the nematode Caenorhabditis elegans.\u003c/em\u003e Lab Chip, 2018. \u003cstrong\u003e19\u003c/strong\u003e(1): p. 120-135.\u003c/li\u003e\n\u003cli\u003eRahman, M., et al., \u003cem\u003eNemaLife chip: a micropillar-based microfluidic culture device optimized for aging studies in crawling C. elegans.\u003c/em\u003e Sci Rep, 2020. \u003cstrong\u003e10\u003c/strong\u003e(1): p. 16190.\u003c/li\u003e\n\u003c/ol\u003e"}],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":true,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":false,"highlight":"","institution":"","isAcceptedByJournal":true,"isAuthorSuppliedPdf":false,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":false,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"
[email protected]","identity":"scientific-reports","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"scirep","sideBox":"Learn more about [Scientific Reports](http://www.nature.com/srep/)","snPcode":"","submissionUrl":"","title":"Scientific Reports","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"stoa","reportingPortfolio":"Scientific Reports","inReviewEnabled":true,"inReviewRevisionsEnabled":true},"keywords":"U-Net, few-shot learning, C. elegans, developmental toxicity, microfluidics, high-throughput screening","lastPublishedDoi":"10.21203/rs.3.rs-4796642/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-4796642/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eDevelopmental toxicity (DevTox) tests evaluate the adverse effects of chemical exposures on an organism's development. While large animal tests are currently heavily relied on, the development of new approach methodologies (NAMs) is encouraging industries and regulatory agencies to evaluate these novel assays. Several practical advantages have made \u003cem\u003eC. elegans\u003c/em\u003e a useful model for rapid toxicity testing and studying developmental biology. Although the potential to study DevTox is promising, current low-resolution and labor-intensive methodologies prohibit the use of \u003cem\u003eC. elegans\u003c/em\u003e for sub-lethal DevTox studies at high throughputs. With the recent availability of a large-scale microfluidic device, vivoChip, we can now rapidly collect 3D high-resolution images of ~\u0026thinsp;1,000 \u003cem\u003eC. elegans\u003c/em\u003e from 24 different populations. In this paper, we demonstrate DevTox studies using a 2.5D U-Net architecture (vivoBodySeg) that can precisely segment \u003cem\u003eC. elegans\u003c/em\u003e in images obtained from vivoChip devices, achieving an average Dice score of 97.80. The fully automated platform can analyze 36 GB data from each device to phenotype multiple body parameters within 35 min on a desktop PC at speeds\u0026thinsp;~\u0026thinsp;140\u0026times; faster than the manual analysis. Highly reproducible DevTox parameters (4\u0026ndash;8% CV) and additional autofluorescence-based phenotypes allow us to assess the toxicity of chemicals with high statistical power.\u003c/p\u003e","manuscriptTitle":"vivoBodySeg: Machine learning-based analysis of C. elegans immobilized in vivoChip for automated developmental toxicity testing","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2024-09-04 21:36:29","doi":"10.21203/rs.3.rs-4796642/v1","editorialEvents":[{"type":"communityComments","content":0},{"type":"decision","content":"Revision requested","date":"2024-11-04T11:21:47+00:00","index":"","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2024-11-03T20:31:59+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"292406077547769190845065088383329977170","date":"2024-10-23T14:06:18+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2024-09-06T00:32:10+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2024-09-05T12:18:10+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"177677226013979129096832886617918973273","date":"2024-08-26T11:53:44+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"201003951887244377029620674530388440218","date":"2024-08-26T10:39:07+00:00","index":"hide","fulltext":""},{"type":"reviewersInvited","content":"","date":"2024-08-13T12:36:06+00:00","index":"","fulltext":""},{"type":"editorAssigned","content":"","date":"2024-08-13T12:27:43+00:00","index":"","fulltext":""},{"type":"editorInvited","content":"","date":"2024-08-05T17:09:33+00:00","index":"","fulltext":""},{"type":"checksComplete","content":"","date":"2024-07-31T10:03:02+00:00","index":"","fulltext":""},{"type":"submitted","content":"Scientific Reports","date":"2024-07-24T15:46:09+00:00","index":"","fulltext":""}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"scientific-reports","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"scirep","sideBox":"Learn more about [Scientific Reports](http://www.nature.com/srep/)","snPcode":"","submissionUrl":"","title":"Scientific Reports","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"stoa","reportingPortfolio":"Scientific Reports","inReviewEnabled":true,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"f3df0d0c-86a1-4529-9110-c1a7852249c9","owner":[],"postedDate":"September 4th, 2024","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"published-in-journal","subjectAreas":[{"id":36585021,"name":"Biological sciences/Biotechnology/Assay systems"},{"id":36585022,"name":"Physical sciences/Engineering/Biomedical engineering"},{"id":36585023,"name":"Physical sciences/Nanoscience and technology/Techniques and instrumentation/Imaging techniques"},{"id":36585024,"name":"Biological sciences/Developmental biology/Experimental organisms/Model invertebrates/Caenorhabditis elegans"},{"id":36585025,"name":"Physical sciences/Mathematics and computing/Software"}],"tags":[],"updatedAt":"2025-01-06T16:04:57+00:00","versionOfRecord":{"articleIdentity":"rs-4796642","link":"https://doi.org/10.1038/s41598-024-84842-x","journal":{"identity":"scientific-reports","isVorOnly":false,"title":"Scientific Reports"},"publishedOn":"2025-01-02 15:57:15","publishedOnDateReadable":"January 2nd, 2025"},"versionCreatedAt":"2024-09-04 21:36:29","video":"","vorDoi":"10.1038/s41598-024-84842-x","vorDoiUrl":"https://doi.org/10.1038/s41598-024-84842-x","workflowStages":[]},"version":"v1","identity":"rs-4796642","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-4796642","identity":"rs-4796642","version":["v1"]},"buildId":"qtupq5eGEP_6zYnWcrvyt","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.