May 08, 2024

Public workspaceCapturing and Processing Slaking Images With a Multi-Well Plate V.3

Capturing and Processing Slaking Images With a Multi-Well Plate
  • 1USDA-ARS NSARU;
  • 2Washington State University;
  • 3USDA-ARS NLAE
Open access
Protocol CitationClaire Phillips, Robert E Meadows III, Joaquin Casanova, Bryan Emmett 2024. Capturing and Processing Slaking Images With a Multi-Well Plate. protocols.io https://dx.doi.org/10.17504/protocols.io.36wgqjmk5vk5/v3Version created by Claire L Phillips
Manuscript citation:
Phillips, C.L., Casanova, J.J., Emmett, B.D. A high throughput approach for measuring soil slaking index. Submitted to Soil Science Society of America Journal (July 2023).
License: This is an open access protocol distributed under the terms of the Creative Commons Attribution License,  which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited
Protocol status: Working
We use this protocol and it's working
Created: July 18, 2023
Last Modified: May 08, 2024
Protocol Integer ID: 99456
Funders Acknowledgement:
USDA-ARS
Grant ID: 5030-12000-015
USDA-ARS
Grant ID: 2090-11000-0080
Abstract
This describes a process to measure soil wet aggregate stability through slaking, or rapid immersion it water. It uses a multi-well plate to process many aggregates at one time. Air dry, pea-sized aggregates (3-10 mm) are submerged in water and time lapse images are collected with a web cam to measure their dispersion (slaking) over 10 minutes. Image-J software is used to measure the projected area of the aggregates over time. Python code is also provided to automate image analysis. Slaking index is calculated from the change in projected area of the aggregates. This protocol accompanies a manuscript Phillips et al. submitted to Soil Science Society of America Journal (July 2023)
Guidelines
This method is suitable for soils with moderate to high wet aggregate stability. It is not suitable for highly unstable aggregates that are likely to completely disintegrate when submerged.
Materials
  • Multi-well tray (see notes below and GitHub - cafltar/PySlake).
  • A computer with these programs: Microsoft’s “Camera” application, or equivalent. ImageJ (https://imagej.nih.gov/ij/download.html) R (https://cran.r-project.org/bin/windows/base/)
  • A light colored or clear soaking dish that can accommodate the multi-well tray. If using a clear dish, place a sheet of white paper underneath it.
  • A webcam and data cable
  • A tripod or bench-mounted support to hold the webcam
  • Two bench top lights to illuminate the peds.
  • A means of diffusing or bouncing the lights to prevent reflections on the water surface. The lights can be aimed at large pieces of white paper placed behind and above the tray to indirectly illuminate the tray.

Figure M1. A set-up for collecting slaking images.
Figure M1. A set-up for collecting slaking images.

Options for making a multi-well tray

We provide a 3D print file for a multi-well tray with dimensions that we found to be optimal: GitHub - cafltar/PySlake

However, many possible materials can be used for the multi-will tray if the user does not have access to a 3D printer.

The original SLAKES application required a light-colored or transparent dish, to create high contrast between the dark peds and a light background. We used light-colored materials for early versions of the multi-well tray (Fig M2-A and B). The image processing protocol presented here works especially well for processing such images, because making the image binary allows the light background materials disappear.

For later versions we constructed a green tray (Fig M2-C), and the distinctive color allowed us to automate identifying the location of each well. Python code found here (GitHub - cafltar/PySlake) can be used as an alternative to the Image-J process in this method.
Figure M2. Examples of different kinds of multi-well trays evaluated for slaking. (A) A 6-well culture plate with 3.5 cm diameter wells (Corning part number 3516). (B) A polyethylene 36-compartment box with 2.5 × 3 cm compartments. The
bottom was cut away with a hot knife, and nylon mesh glued on to provide support for soil peds. (C) A 20-well tray made with a three-dimensional printer, 4.75 cm diameter wells.
Figure M2. Examples of different kinds of multi-well trays evaluated for slaking. (A) A 6-well culture plate with 3.5 cm diameter wells (Corning part number 3516). (B) A polyethylene 36-compartment box with 2.5 × 3 cm compartments. The bottom was cut away with a hot knife, and nylon mesh glued on to provide support for soil peds. (C) A 20-well tray made with a three-dimensional printer, 4.75 cm diameter wells.
Our preferred tray design (Fig M2-C) has overall dimensions of 17 × 26 cm, which fits in many commercially available flat-bottomed tubs. It has 20 wells with individual diameters of 4.5 cm and a 1 cm wall height. The overall size allowed the camera projection to be almost straight-down across the whole tray, without distortion or obstruction at the edges. The tray design also incorporated stand-offs to receive 12 mm diameter nuts and bolts, which provided extra mass to help submerge the tray quickly.

Nylon mesh fabric (~1 mm opening), commercially sold in fabric stores as bridal veil, was secured with cyanoacrylate glue to the bottom of the tray as a platform for the peds.

Before start
Obtain a soil sample containing at least 20 pea-sized aggregates and air dry it.
Sample preparation
Sample preparation
Start with air-dried soil that was not previously sieved. It is recommended to measure at least 20 pea-sized (3 to 10 mm) aggregates per soil sample. More replication is useful for unstable soils. See Phillips et al. (submitted 2023) for more information on necessary replication.

If the soil sample is consolidated and does not have enough pea-sized aggregates, it can be sieved through a 6 mm mesh sieve to break it up.
Establish how you will count the wells (across or down) and create a spreadsheet identifying the sample in each well.
Example Document: Download SiteName P16_P17_P20_Time4_Samples.csvSiteName P16_P17_P20_Time4_Samples.csv

The well plate we provided a 3D print file for has a notch in the upper left corner to identify the first column and row.
WIN_20230623_10_27_07_Pro.jpg

Make sure the tray is clean and dry, and the mesh is secured to the bottom (no tears or gaps).
Place an air-dried pea-sized aggregate (3-10 mm in diameter) in the center of each well.
1dryagg.jpg

Use webcam to collect images
Use webcam to collect images
In Microsoft Windows, type camera into search bar to find Camera app
In the Camera app, select the correct webcam by toggling the rotate camera icon in the upper right corner.
image.png

Take a reference image of the dry aggregates.
15camera with tray.jpg

Adjust the brightness as needed to ensure strong contrast between the aggregates and the background.
Draw a light line in permanent marker around the well plate so you can return it to the same location consistently.
2outline.jpg

Carefully remove the multi-well tray from the soaking dish. Fill the dish with at least 2 cm water.
In the Camera App toggle the time lapse to 5 seconds.
image.png


Time lapse may need to be turned on in the settings of the Camera App.
image.png


Set up a timer for ten minutes and begin the time lapse. Transfer the multi-well tray with the dry aggregates to the pan filled with water. Quickly and carefully submerge the aggregates. Place them in the same location as the in the reference photo.
16 handhands.jpg


Let the time lapse run at a 5 second interval for the first minute of recording, then toggle the time lapse to the 10 second interval without pausing or stopping the time lapse.

Within the file directory where project data will be saved create a folder representing the sample that was tested. E.g. C:\Users\REM\Documents\SLAKES\SampleNameTime1_Depth1
Within the Samples folder create a folder for the images collected from the sample. E.g. C:\Users\REM\Documents\SLAKES\SampleNameTime1_Depth1\Images
Move the captured images to the Images folder created in step 12.1 Go to . The default save location for the Camera app is the Camera Roll subfolder in the active user's Pictures folder. E.g. C:\Users\REM\Pictures\Camera Roll

Ensure the Camera Roll folder Go to is empty before starting a different sample.

Process The images in ImageJ
Process The images in ImageJ
With ImageJ open, import the collected images. This can be done by dragging and dropping the images from the image folder created in step 12.1. Go to The images can also be imported through ImageJ by selecting 'File' from the menu followed by 'import' and then 'Image sequence'.
3Imageseq.jpg


If importing through the Drag and Drop method the images will need to be converted to a stack. From the menu select 'Image', 'Stacks', and 'Images to Stack'.
4Img2stk.jpg


Navigate the image stack with the left and right arrow keys. Make sure the images are in order. Delete any images with hands or other interference in them. Through the menu select 'Image', 'Stacks' and 'Delete Slice'.
5delslice.jpg


Set the Scale of the Image with the Straight Line Tool in ImageJ.
Drag the Straight Line Tool across a well plate.
6linetool.jpg


In the ImageJ menu go to 'Analyze' and 'Set Scale'. Enter the measured length of the single well in the Known distance section, Change the Unit of length to mm.
image.png


Crop the image stack down to the area with just the well plate in it by selecting using the square selection tool and from the menu selecting 'Image' and 'Crop'.
7Cropandsoils.jpg


Change the image stack to the 8-bit format by selecting 'Image', 'Type', and '8-bit'.
8bit how convenient.jpg


In the Menu select 'Analyze', 'Tools' and 'ROI Manager' to open the Region of Interest (ROI) Manager tool.
9ROI.jpg


Use the oval or rectangle tool to select the first well.
In the ROI Manager click Add or use the T as a shortcut to add the selection to the ROI manager tool.
Check the Show All checkbox to confirm numbers and locations as you add each individual well.
10ROIdos.jpg


Make the image stack a set of Binary images.
In the Menu select 'Process', 'Binary', and 'Make Binary'.
11binary.jpg


Images in the stack should generate a red layer over the soil aggregates. If any shadows are picked up during this stage they will also appear in red. If this happens cancel the Make Binary action and adjust the Contrast through the Menu by selecting Image then Adjust and Brightness/Contrast until shadows no longer appear in the selected ROIs.
12binarydos.jpg


Uncheck the "Black background" box.
In the Menu select 'Analyze' then 'Set Measurements'. This will open the Set Measurements menu, which dictates what the ROI manager will analyze.
13setmeas.jpg


In the Set Measurements menu select Area, Stack position, and Limit to Threshold. The Redirect to dropdown should be set to None and the Decimal places box should be set to 3.
image.png


From the ROI manager window select 'More' and 'Multi Measure' to open the Multi Measure menu.
14MultiMeas.jpg


In the Multi Measure menu check the boxes for 'Measure all # Slices' and One row per slice.
Save the Multi Measure results in the sample folder created in step 12 Go to . The filename should match the format being used with '_Results' appended at the end.
E.g. SampleNameTime1_Depth1_Results.csv
Computations
Computations
Several versions of slaking index calculations have been suggested. The slaking index originally recommended by Fajardo et al. (2016) involved fitting a rise-to-threshold (Goempertz function) model to timeseries of aggregate area, and computing the function's limit as the slaking index (SI).

Flynn et al. (2020) recommended instead computing the observed change in aggregate area over time:

SI600 = (A600 - A0)/A0

where A0 is the initial projected area of the dry aggregate and A600 is the projected area after 600 seconds of slaking. Note that higher SI600 value indicates lower aggregate stability, as a less stable ped will spread out more over time.

By contrast, Rieke et al. (2022) reported a slaking score as 1/(1 + SI600), such that higher values indicate greater aggregate stability, which follows the same direction as other aggregate stability measures.


This R script provides example code for using the Image-J output to plot area timeseries and compute slaking index following Flynn et al. (2020). Download ComputeSlakingIndex.RComputeSlakingIndex.R

Slaking index tends to follow a log-normal distribution with a long right tail. Because arithmetic means are influenced by high outliers, it is recommended to use a geometric mean (and geometric standard deviation) to summarize the aggregates for each soil sample.

The geometric mean is equivalent to computing the arithmetic mean of log-transformed data, and back-transforming the mean: .
Protocol references
Fajardo, M., Alex.B. McBratney, D.J. Field, and B. Minasny. 2016. Soil slaking assessment using image recognition. Soil and Tillage Research 163: 119–129. doi: 10.1016/j.still.2016.05.018
Flynn, K.D., D.K. Bagnall, and C.L.S. Morgan. 2020. Evaluation of SLAKES, a smartphone application for quantifying aggregate stability, in high‐clay soils. Soil Sci Soc Am J 84(2): 345–353. doi: 10.1002/saj2.20012.
Phillips, C.L., Casanova, J.J., Emmett, B.D. A high throughput approach for measuring soil slaking index. Submitted to Soil Science Society of America Journal (submitted July 2023).

Rieke, E.L., D.K. Bagnall, C.L.S. Morgan, K.D. Flynn, J.A. Howe, et al. 2022. Evaluation of aggregate stability methods for soil health. Geoderma 428: 116156. doi: 10.1016/j.geoderma.2022.116156.