This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

A Machine Learning Approach to Robustly Determine Director Fields and Analyze Defects in Active Nematics

Yunrui Li    Zahra Zarei    Phu N. Tran    Yifei Wang    Aparna Baskaran    Seth Fraden    Michael F. Hagan    Pengyu Hong
Abstract

Active nematics are dense systems of rodlike particles that consume energy to drive motion at the level of the individual particles. They exist in natural systems like biological tissues and artificial materials such as suspensions of self-propelled colloidal particles or synthetic microswimmers. Active nematics have attracted significant attention in recent years due to their spectacular nonequilibrium collective spatiotemporal dynamics, which may enable applications in fields such as robotics, drug delivery, and materials science. The director field, which measures the direction and degree of alignment of the local nematic orientation, is a crucial characteristic of active nematic and is essential for studying topological defects. However, determining the director field is a significant challenge in many experimental systems. Although director fields can be derived from images of active nematics using traditional imaging processing methods, the accuracy of such methods are highly sensitive to the settings of the algorithms. These settings must be tuned from image-to-image due to experimental noise, intrinsic noise of the imaging technology, and perturbations caused by changes in experimental conditions. This sensitivity currently limits automatic analysis of active nematics. To address this, we developed a machine learning model for extracting reliable director fields from raw experimental images, which enables accurate analysis of topological defects. Application of the algorithm to experimental data demonstrates that the approach is robust and highly generalizable to experimental settings that are different from those in the training data. It could be a promising tool for investigating active nematics and may be generalized to other active matter systems.

Machine Learning, ICML

1 Introduction

Active materials are ubiquitous non-equilibrium systems that can be found in many natural processes and biological systems, such as cellular cytoskeletons (Saw et al., 2017; Kawaguchi et al., 2017; Prost et al., 2015), bacterial suspensions (Sokolov et al., 2007; Wensink et al., 2012; Dunkel et al., 2013), flocks of birds (Toner & Tu, 1995), and schools of fish (Katz et al., 2011). The components of such systems consume energy to drive forces or motion at the scale of individual particles, which leads to emergent macroscale collective dynamics (Marchetti et al., 2013; Ramaswamy, 2010). In this work, we study a class of active matter known as an active nematic, which describes a system of rodlike particles that are placed at sufficient density to form a nematic liquid crystal with orientational order, but are continually driven out of equilibrium by propulsion of the particles. We focus on a widely studied experimental model active nematic system, consisting of elongated bundles of microtubules and molecular motors (kinesins), in which the kinesins consume adenosine triphosphate (ATP) fuel to slide microtubules relative to each other (Figure 1) (DeCamp et al., 2015; Sanchez et al., 2012; Henkin et al., 2014). These motions produce topological defects and chaotic flows that compete with the equilibrium orientational order, producing spectacular spatiotemporal behaviors. Describing and understanding the rich behaviors that arise from this interplay is a challenge at the forefront of modern physics.

Refer to caption
Figure 1: Left: The experimental data in this work is obtained from active nematics that consist of microtubule bundles and kinesin molecular motors that bind multiple microtubules. The kinesins are powered by ATP to walk along microtubules. When kinesins bound to antiparallel microtubules walk toward their respective positive ends, they can cause the microtubules to slide relative to each other, contributing to the dynamics observed in active nematic systems. Middle: Experimental set-up of 2D active nematics, in which the materials are placed at an oil-water interface. Right: A director field (red curves, captured by PolScope) that is superimposed on the corresponding retardance image.

A remarkable characteristic of active nematics is the continuous proliferation and annihilation of topological defects in regions where the nematic orientational order is disrupted (Putzig et al., 2016; Tan et al., 2019). This can occur when the activity of the particles in the nematic is sufficiently high to give rise to a flow that deforms the nematic structure, resulting in the formation of defects. Topological defects take a variety of forms and are important for a number of reasons. Firstly, they can serve as a measure of the activity of the nematic, with a higher density of defects indicating a higher level of activity. Secondly, defects can act as sources or sinks for the flow of the nematic, influencing the overall flow patterns and dynamics of the system. Finally, defects can also affect the transport properties of the nematic, such as its viscosity or diffusivity, which can have important implications for the behavior of the nematic as a whole. Overall, the study of topological defects in active nematics is a rich and active area of research, with many interesting questions still remaining to be answered (Serra et al., 2023; Ignés-Mullol et al., 2023; Prost et al., 2015; Hagan & Baskaran, 2016; Bär et al., 2020). One important way to understand the defects is from the director fields of a given system. The director field in active nematics is crucial in detecting defects because it represents the local direction of motion of the active particles and provides a way to quantify the degree of orientational order in the material. Defects in active nematics correspond to discontinuities in the orientational order; gradients in the magnitude and direction of the surrounding director field can be used to identify defects and track their motions.

1.1 Existing methods to obtain director fields

The nematic tensor, or the QQ-tensor (Bantysh et al., 2023; Golden et al., 2023; Doostmohammadi et al., 2018; Keber et al., 2014; Ramaswamy, 2010; Doostmohammadi et al., 2016), describes the director field; that is, the degree of alignment and the direction of the local nematic orientation. A reliable director field is essential to accurately detect, measure, and track defects in active nematic systems. One way to calculate the director field from experiments is to use the PolScope (Oldenbourg et al., 2005; Zhou et al., 2014; Shribak & Oldenbourg, 2003), which is a powerful tool for visualizing and analyzing the dynamics of nematic structures. It operates by shining polarized light through the specimen, which interacts with the aligned molecules or particles in the nematic phase. This interaction alters the polarization of the light, allowing the PolScope to measure birefringence quantitatively at every single pixel in the image. The resulting retardation of light allows the PolScope to accurately determine the degree and orientation of microtubule alignment, pixel by pixel, providing important insights into the structural characteristics and behavior of liquid crystal systems. PolScope generates a pair of images - the retardance image and the corresponding director field image, at any given time point. The calculated director field enables a direct comparison between experimental observations and theoretical results. This data also can be used to train dynamics prediction models, such as proposed by Zhou et al. (2021); Colen et al. (2021). Nevertheless, certain experimental setups and controls are not feasible using PolScope. For example, some experiments use light to control the dynamics of active nematics (Zarei et al., 2023; Zhang et al., 2021; Lemma et al., 2022; Ross et al., 2019). These experiments illuminate the sample from above, which makes the traditional PolScope setup impractical. In addition, high numerical aperture condenser and objective lenses typically introduce distortions that limit the purity of polarization in a light microscope. These distortions present challenges and limitations when using a PolScope (Oldenbourg et al., 2005). Lastly, the nematic material’s small retardance values are often overshadowed by stronger background birefringence from microscope objective strain and Fresnel reflectivity. Although background correction is a standard practice, it doesn’t fully account for the microscope slide’s birefringence and is sensitive to variations across the image, optical alignment, and temperature. This can result in inaccuracies in local orientation measurements in some regions. For example, discontinuous director fields were observed in the middle of microtubule bundles, see Figure 2. This may result in false detection and inaccurate localization of defects.

Refer to caption
Figure 2: Examples of discontinuous director fields obtained by PolScope. In the highlighted areas (1) and (2), the calculated director fields contain discontinuities, while the retardance images show aligned microtubule bundles.

Alternatively, other instruments can offer more flexible control and design of the experiments, but cannot generate the corresponding director fields directly. For example, a fluorescence microscope enables direct light control (Zhang et al., 2021; Lemma et al., 2022; Ross et al., 2019) or ATP control of the system’s activities, but does not offer the capability to extract director fields. In some experiments, specialized fluorescent dyes or proteins are added at low concentrations to enable the visualization and tracking of individual microtubule movements. However, such methods only provide sparse director field information that is randomly distributed across the whole view. In these situations, one can use image processing methods to extract orientations from raw images directly from experiments, such as fluorescence images. Usually, an in-house method is developed using softwares such as MATLAB for extracting director fields from raw images (Tan et al., 2019; Shi & Ma, 2013; Blackwell et al., 2016; Duclos et al., 2020; Rezakhaniha et al., 2012). The methods follow a similar approach by first finding the gradient change of a raw image, then coarse-graining the result, and finding the smallest eigenvalue. More details are presented in Appendix A.1 and Ellis et al. (2018). In this work, we use one of the existing implementations of traditional methods developed by Michael M. Norton333Relevant code can be found on GitHub: https://github.com/wearefor/qcon_nematicdefectfinder, referred to as the “TM” in the rest of this paper.

However, the effectiveness of the TM can be limited because raw images contain complex signals arising from variations in experimental settings, noise, limitations of microscopy, etc. Examples of such limitations include the following. First, the analysis of retardance images is intrinsically difficult at regions that have low contrast, are out-of-focus, or have distortions due to a variety of effects. For example, although active nematics are assumed to be two-dimensional by imaging systems, they actually move in a shallow three-dimensional container. This three-dimensionality can influence both the illumination and the focus of the microscope, thereby altering the pixel intensity in the resultant images. Additionally, active nematic filaments, when compressed by adjacent ones, can buckle into a U shape, causing a fissure that exposes the base of the container. Such fissures often run counter to the direction of movement, which can result in a miscalculation of the local orientation. We show some examples of orientation miscalculation by the TM in noisy regions in Figure 3. Finally, the inherent variability in active nematics systems and the varying levels of activity observed across different experiments contribute to a diverse distribution of noisy regions across successive frames.

Refer to caption
Figure 3: Challenges of extracting director field information from retardance images. Left: An exemplar retardance image with complex regions highlighted. Right: Zoomed-in regions (top) and their director fields calculated by the TM (bottom). (1) Microtubule bundles are bent in sharp U-shapes to form an elongated positive defect, creating a region with a low density of microtubule bundles that exposes the container base and is hence visible as a dark horizontal “crack” across the U-shaped bundles. This “crack” highlights a sharp contrast with the surrounding microtubule arrangement. The blue arrows indicate the rough trends of the correct orientations calculated by PolScope (which we use as the ground truth), while the red arrow indicates the direction of the “crack”. Due to the sharp contrast between the “crack” and its neighborhood, the TM may erroneously identify the crack as a collection of horizontally oriented microtubule bundles and estimate the local orientation of the region to be horizontal. However, in fact, the local orientation of the microtubule bundles at the “crack” region should be vertical. (2) An over-exposed region due to fluctuations of the material in the vertical direction (along the z-axis). The TM estimates the local orientation to be nearly uniform throughout the area.

Second, the TM may require extensive manual adjustments of its parameter settings to make it work satisfactorily for different images. In other words, raw images from different experiments or conditions cannot use the same parameter setting. Sometimes, manual adjustment is needed for different images in the same video (see Figure 4 for an example). This greatly hinders large-scale reliable studies of active nematics. Many factors contribute to this challenge, such as: 1) active nematic materials can exhibit significant variations even under identical experimental conditions; 2) different imaging instruments or settings can lead to different noise distributions; that is, different characteristics or statistical patterns of errors in the acquired images; 3) the behavior of nematic materials may not be consistent across the sample (e.g. due to spatially varying activity levels or boundary conditions, which may be according to design or arise from experimentally uncontrollable variations), resulting in defects with varying sizes and mean separation distances that require different configurations of window sizes.

Refer to caption
Figure 4: Examples of the director fields extracted from retardance images using the (TM) method. The top and bottom rows show the calculated director fields of two retardance images from the same video at different times. The parameter settings of the TM were manually optimized for the top image and were then applied to the bottom image. Left column: Retardance images. Middle column: The calculated director fields are compared with those obtained by PolScope (which we use as ground truth). The differences are marked in red (the darker the bigger the difference, measured in degrees (°\degree)). Right column: Zoom-in views of the areas (1, 2, 3) marked in the First and Middle columns. The calculated local orientation is fairly accurate in the earlier frame but is much less accurate in the later frame. σ\sigma in the TM is set to 10.

1.2 Innovation and contribution

To tackle the above challenges, we developed a machine learning based technique to robustly and automatically extract director fields from raw images. Machine learning has already made significant impacts on active nematics (Cichos et al., 2020; Rabault et al., 2017; Hannel et al., 2018; Muñoz-Gil et al., 2020), and more applications are being explored. For example, we developed a machine learning technique for learning and predicting dynamics of active nematics (Zhou et al., 2021), which however relies on the availability of director fields. Using our proposed machine learning approach, not only can we reliably and robustly calculate the director fields from raw experimental data directly, but we also enable many downstream tasks such as defect detection, defect tracking, and dynamic prediction. These tasks are significantly simplified, compared to previous approaches, for raw data that does not have the director fields readily available. We benchmark our machine learning model against our in-house implementation of an image processing method (TM) that follows a similar approach to other existing methods(Tan et al., 2019; Shi & Ma, 2013; Blackwell et al., 2016; Duclos et al., 2020; Rezakhaniha et al., 2012; Ellis et al., 2018). This method takes a gray-scaled image as the input. After denoising the raw image by Gaussian Blur with standard deviation σ\sigma, it assumes that image intensities change most dramatically in the direction perpendicular to the flow of the microtubule bundles at each point. Thus, for each pixel, it calculates the intensity change matrix using convolution, which is then decomposed to obtain its eigenvalues. The local orientation centered at a specific pixel is indicated by the eigenvector associated with the smallest eigenvalue. Once the QQ-tensor is obtained, topological defects can be identified by calculating the winding number (Mermin, 1979) of each point. This is typically done by applying convolutional filters (e.g., Gaussian Kernels) of user-defined window size on each pixel on the director field obtained. More details of this method can be found in Appendix A.1. Compared with the TM, the director field information obtained by our method is more accurate, which leads to better defect detection results. Figure 5 shows an example of defects that are missed by the TM. These defects can be recovered using our machine learning models. We note that the TM defect detection results differ slightly when different parameter settings are chosen. Fig. 20 (Appendix A.6) shows examples of changing the parameter settings for individual frames. However, the TM results are consistently less accurate than those obtained by our machine learning approach, and we have tuned the TM parameters for each dataset to achieve reliable results for all frames in that dataset. In addition to increased accuracy, a key advantage of the machine learning approach is that it requires less parameter tuning.

Refer to caption
Figure 5: Comparison of defect detection by the TM and our machine learning method. Left: Positive defects detected in the director field calculated by the TM. Right: Positive defects calculated by our machine learning method. Defects missed by the TM are highlighted in solid red dots. Empty red dots indicate the defects detected in both settings. Only detected positive defects are shown for clarity. The images are 600 by 600 pixels. The defect detection window in the TM is set to 11 and the defect threshold is set to 0.2. We note that the traditional method defect detection results may be slightly different if these parameters are tuned differently (Fig. 20 in Appendix A.6), but the parameters are tuned for each set of experiments so that all frames in a given experiment achieve acceptable results. Fig. 20 (Appendix A.6) shows how these results depend on parameter settings.

In summary, the main contributions of our work include the following:

  • We developed a robust machine learning approach to accurately extract director fields from raw microscopy images of active nematics. Our approach is able to handle raw images captured under various experimental settings (e.g., lighting, activity levels of active nematics, microscope lens, etc.).

  • We used a masking strategy to correct some regions of director fields calculated by the PolScope that are inaccurate due to sub-optimal retardance images, such as over-/under-exposure, out-of-focus regions, etc.

  • We demonstrate promising downstream applications using the director fields generated by our model, including defect detection, defect orientation, defect tracking, etc.

  • To facilitate defect tracking as a downstream task, we utilized a matching algorithm across several consecutive frames and evaluated outcomes across frames. This approach enabled us to enhance tracking accuracy by filling in gaps for absent defects in a particular frame, while not in others.

2 Methods

We used the PolScope data (each sample is a pair of a retardance image and its corresponding director field) to train a deep learning model for extracting local orientation information from retardance images. Using the director fields extracted by our approach, we were able to improve defect detection and tracking.

2.1 Improving training data

In most cases, PolScope works well in capturing the retardance images of active nematics and correctly calculating the corresponding director fields. However, PolScope occasionally produces sub-optimal local orientation calculations (examples in Figure 2), which can hamper the efforts to build a machine learning model to extract director fields. Fortunately, such errors can be automatically corrected using machine learning. Specifically, we adopted the Masked Image Modeling (MIM) (Xie et al., 2022) method (see Figure 6 Top) that randomly masks out patches in an image decided by a mask size and a masking ratio, and trained a machine learning model to reproduce the masked-out patches using the rest of the image. We chose the mask size as 10x10 pixels and the masking ratio as 30% of the whole image. To make this selection, we tried several different mask sizes (6x6, 10x10 and 20x20 pixels) and different masking ratios (20%, 30% and 50%), and found the chosen setting produced the lowest Mean Absolute Error (MAE) of 0.0241. Once trained, the MIM model can be applied to improve director fields not used in training. Two examples are shown in Figure 6 Bottom to visualize the effects of this process.

Refer to caption
Figure 6: Correcting the PolScope director fields via Masked Image Modeling (MIM), which trains a machine learning model (the Swin Transformer(Liu et al., 2022) in our case) to improve local orientation calculation. Top: In each iteration of the training process, a director field is sampled and several patches in it are randomly masked out (e.g., black patches in the middle image). The MIM machine learning model imputes the masked patches. The loss is calculated as the mean square error between the imputation results and the ground-truth (i.e., the corresponding patches in the input), and is used to update the parameters of the MIM machine learning model. Bottom: Two examples of local orientation correction are shown. The left, middle, and right columns are the retardance images, the PolScope director fields, and the corrected director fields, respectively.

2.2 Director field extraction using machine learning

Using the corrected director field as the target output, we can train our machine learning model to learn the proper mapping between the retardance image to its corresponding director field. Figure 7 illustrates the architecture of our machine learning model, which consists of a Gabor filter (Fogel & Sagi, 1989; Bianconi & Fernández, 2007) layer followed by a ResNet structure (He et al., 2016). Gabor filters are a set of filters widely used for texture analysis. Each filter can be tuned to detect spatially local signals with certain frequency components in a certain direction at a certain scale. One can use an array of Gabor filters to help perform multi-scale analysis of spatial patterns in active nematics, such as defects, vortices, or other patterns. More technical details about Gabor filters are provided in Appendix A.2. In our model, we used two sets of Gabor Filters, the first set has a smaller wavelength that aims to detect higher spatial frequencies and finer details, while the second set has a larger wavelength, aiming to capture global features. For each set of filters, 64 filters are used, each with a different combination of 8 orientation values and 8 scale values. For the ResNet, 16 blocks are used, as shown in Figure 7. Among the 16 ResNet blocks, 4 different channel dimensions are used: 64, 128, 256, and 512. More detailed configurations can be found in Appendix A.3.

Refer to caption
Figure 7: The deep learning model for extracting director fields from PolScope retardance images. Top: Complete model pipeline. Bottom: Details of the ResNet Structure in Top. Blue and white boxes indicate convolution layers and batch normalization operations. A ReLU activation function (Maas et al., 2013) is used except for the output layer, which uses a sigmoid activation function. In total, 16 ResNet blocks are used.

2.3 Defect analysis

One can detect defects by computing the winding numbers of individual points in the director fields (Mermin, 1979) by counting the local orientation changes centralized at each point within a predefined window size. Nevertheless, the director fields are discretized at the pixel level, which can lead to inaccurate winding number calculations. Some defects may not be detected even from more accurate director fields such as those calculated by PolScope (see Figure 18 in Appendix A.6) and our machine learning approach (see Figure 8, Left), due to various factors. These include over-exposed regions in the raw image, leading to an over-smoothed director field; or regions with high local defect densities, where the distance between the defects is smaller than the window size when calculating the winding number. The director fields calculated by our method significantly improve defect detection results (see Figure 11 in the Experiments section). However, in a non-equilibrium system of active nematics where speed and density change, it is possible that a defect is detected in one frame but missed in the next (see Figure 8 Right). This can cause the defect tracking algorithm to lose track of detects in consecutive frames and result in inaccurate measurement of defect annihilation and proliferation rates.

To tackle this problem, we match defects detected in three consecutive frames (at time points t1t-1, tt, and t+1t+1) using a graduated assignment algorithm (Gold & Rangarajan, 1996), and use the matching results to recover missing defects in the tt-th frame. The coordinates of the rescued defects are interpolated using the coordinates of their matched defects at time t1t-1 and t+1t+1. This allows for more accurate defect detection and tracking over time, see Figure 12, Figure 13, and Figure 14. Please refer to Section 3.3 and 3.4 for more results and discussions.

Refer to caption
Figure 8: Example situations that lead to inaccurate defect tracking. Left: Challenging raw images. A raw image with a high density of defects while the light exposure is uneven. The winding number calculation from director fields generated by the machine learning model can be less accurate in comparison to regions with even exposure. Red arrows show positive defects and blue tricuspoids show negative defects. Red rectangles mark places where defects are missed. Right: Inconsistency between frames. As the active nematic system evolves, some defects can be detected in one frame but may be missed in another. This could lead to inaccurate conclusions of defect statistics such as their rates of annihilation and proliferation. When tracking defects in a sequence, the missed defects can be interpolated by our tracking algorithm. Only positive defects are marked by red dots for clarity.

Finally, we trained a model with four ResNet blocks (32, 64, 128, and 256 channels, respectively) to estimate the orientation of a defect. The input to the model is a 64 ×\times 64 patch centered at a defect, and the output is the angle of the defect. The model error is also measured by the Mean Absolute Error (MAE) between the estimated angles and the manually labeled ground-truth.

3 Experiments

In this section, we will illustrate our training process and model performance. In total, 48,000 retardance and director field images are used for training and testing the machine learning model. Specifically, we randomly selected 40,000 image pairs to train the neural network, and the remaining 8,000 images for performance testing. We present results obtained by applying the model to the test set of data. We chose the PolScope dataset to train the model because it is the only instrument that can produce retardance and director field images at the same time. The director field images are first corrected using the masking strategy, then used as the training targets for the machine learning model. The retardance images are inputs to our machine learning model. The predicted director field is compared with the corrected director field and the learning goal is to achieve maximum similarity. Since the orientations of microtubule bundles have head-tail symmetry, we translate the orienation to the QQ-tensor and use the Mean Squared Error (MSE) to measure the learning error as follows.

Qxx=cos2(qi),Qxy=cos(qi)sin(qi),Q_{xx}=\cos^{2}(q_{i}),\quad Q_{xy}=\cos(q_{i})\sin(q_{i}),
Loss=1Di=1D[(QxxpredictQxxtarget)2+(QxypredictQxytarget)2]\text{Loss}=\frac{1}{D}\sum_{i=1}^{D}\left[(Q_{xx}^{\text{predict}}-Q_{xx}^{\text{target}})^{2}+(Q_{xy}^{\text{predict}}-Q_{xy}^{\text{target}})^{2}\right]

where qq is the director field orientation angle at each pixel in the input images.

3.1 Extract director fields from retardance images

Figure 9 illustrates the advantage of our machine learning model over the TM on the PolScope retardance images. Using the polished director fields calculated by PolScope as the ground-truth, our trained machine learning model extracts more accurate director fields compared to the TM. We tested our model on 120 randomly selected retardance images excluded from the training set. Using the corresponding director fields calculated by PolScope as the ground-truth, we calculated the error of our model and the TM method. Our approach achieves a mean absolute error (MAE) of 8.8 degrees per location with a standard deviation of 1.46. As a comparison, the MAE of the TM approach is 18.1 per location with a standard deviation of 2.6.

Refer to caption
Figure 9: Comparison of the director fields extracted from PolScope retardance images by the traditional image analysis method (TM) and our machine learning (ML) method. Left: Heatmap showing the difference between the director fields calculated by TM and ML, overlaid on the retardance image. Darker colors indicate bigger discrepencies in local orientation measured by degree. Right: Zoom-in views of two regions (1 & 2) marked in the Left showing director fields calculated by PolScope (which are used as the ground truth), TM, and ML. σ\sigma is set to 13.

3.2 Generalize to fluorescence images

The proposed machine learning approach is trained using PolScope retardance images and calculated director fields. However, once trained, it can be applied to raw images produced at other magnifications, by other microscope instruments, or under different experimental settings (e.g., activity levels or boundary conditions). There are various methods to control the behavior of active nematics, such as changing the concentration of ATP and motor proteins, applying hard boundaries, etc (Keber et al., 2014; Opathalage et al., 2019; Thijssen et al., 2021; Zhao et al., 2020; Hardoüin et al., 2019; Lemma et al., 2019). However, these methods control activity with only limited precision, and do not enable spatially varying activity profiles. To enable greater control over activity and the ability to change activity in space and time, researchers have developed light-sensitive motor proteins (Zhang et al., 2021; Lemma et al., 2022; Ross et al., 2019), with which the active nematic’s activity and dynamics can be regulated by varying the spatiotemporal patterns of applied light intensity.

To create an active nematic, we combined microtubules, kinesin motors, ATP, and bundling agents, and sediment the mixture on an oil-water interface. In the light-activated active nematic, the kinesin motors are equipped with light-sensitive domains, namely “iLID”and “micro”. When exposed to blue light, these domains bind together rigidly, creating a light-sensitive cluster that generates relative sliding for anti-parallel microtubules. To illuminate the sample, we used a Digital Light Processor (DLP) projector that projected 460 nm wavelength light from above onto the sample and we took data using a fluorescent microscope. However, the PolScope setup, which involves a universal compensator and an analyzer for circularly polarized light, limits access to the stage and does not allow us to use the DLP mounted to the stage for light-activated experiments. Additionally, data acquisition with PolScope requires taking 5 images in different polarization settings to calculate the retardance image and its director field (Shribak & Oldenbourg, 2003), which limits the frame rate for taking data. For example, with a camera exposure time of 500 ms, it takes 670 ms to capture a single image and roughly 3.4 sec for five images. The impact of these exposure times on the observations becomes noticeable when the nematic speed is high, as the motion between frames is difficult to document, and consequently, tracking defects becomes less precise. While the PolScope microscope has some advantages, such as calculating the director field without the need to label the proteins, it is not suitable for all experiments, such as the light-activated active nematic. Hence, it is desirable that our director field extraction model, which was trained on PolScope retardance images, can generalize well to other raw images. Our proposed machine learning model performs well on fluorescence images of active nematics with different microscope magnifications (see Figure 10) in an unconfined 2-dimensional experimental setting. Moreover, our model also generalize well to confined containers with different boundary conditions (see Figure 17 in Appendix A.6, and videos in the supplementary material). The authors highlight that even in the presence of unbound microtubules floating along the z-axis of the 3D container, which is not aligned with the local orientation within the 2D nematic system under investigation, the machine learning algorithm adeptly filters out these elements, ensuring reliable calculation of the director field.

Refer to caption
Figure 10: Exemplar performance of the machine learning (ML) model on fluorescence images with different microscope magnification settings. The left, middle, and right columns are the input raw images, director fields extracted by our ML model, and director fields superimposed on raw images, respectively. The model was trained on the retardance and director field data captured at 4x. It generalizes well to fluorescence images captured with microscope settings that were not used to produce training data. Within the RAM memory constraint, our model can calculate the director field for varying input sizes. Here, all images are cropped to 512 by 512 pixels for fair comparison.

3.3 Defect detection

The defect detection results using the director fields extracted by our approach are substantially better than those obtained using the director fields extracted by the TM (details in Appendix A.1). Figure 11 visualizes the defect detection results from raw images in one experiment using fluorescence microscope, which was not used to train our director field extraction model.

Refer to caption
Figure 11: Example results of our approach to improve defect detection results on fluorescence images. (a) The boxes highlight the regions where the TM (left) produces false positives, while our method (right) produces correct results. (b) The boxes highlight one noisy region where the TM (left) fails to detect the positive and negative defect pair. Our method (right) is less sensitive to such noise and succeeds in detecting the defect pair. σ\sigma is set to 11.

To evaluate the defect detection results, we manually labeled defects in 40 fluorescence images (not used in model training) from one experiment as the ground-truth. Fluorescence microscopy enables a light-responsive system that allows researchers to combine a considerable quantity of ATP with microtubules and regulate its behavior using light intensity. When the light intensity is increased, a larger number of motor proteins and microtubules become attached, leading to increased system activity and ultimately resulting in more defects. Figure 12 and 13 show the performance of our approach in both low and high light intensity experiments. Note that the high-intensity sample (Figure 13) has not reached steady-state, and thus the number of defects is increasing over time. Using the director fields extracted by our machine learning model, the numbers of defects closely track the hand-labeled ground-truth. Moreover, we closely observed the defect location generated by both methods. Compared with the manually annotated location, if the detected location is within a 40-pixel radius, which is roughly half of the averaged defect size (100um, 77 pixels), it is considered a precise detection. The size of the raw image is 1296×12801296\times 1280. Figure 14 compares the percentage of precise detections using both methods. The director field extracted by our machine learning model enables better defect detection results (both defect detection rate and location).

Refer to caption
Figure 12: Comparison of defect detection performance by the TM and machine learning ML methods on fluorescence image sequences captured under low lighting intensity (0.130.13 mW/cm2). The interval between frames is 7 seconds. The green curves indicate the ground-truth, which was manually annotated. The blue and red curves are the defect detection results using the director fields calculated by the TM and our ML method respectively. On average, the TM produces 6.75 detection errors per frame whereas the ML method produces 2.25 detection errors per frame. For the TM, the window size is set to 9 and the defect threshold is set to 0.2.
Refer to caption
Figure 13: Comparison of defect detection performance by the TM and machine learning ML methods on fluorescence image sequences captured under high lighting intensity (2.012.01 mW/cm2). On average, the TM produces 6.26 detection errors per frame whereas our ML method produces 3.41 detection errors per frame. For the TM, the window size is set to 11 and the defect threshold is set to 0.3.
Refer to caption
Figure 14: Precision of defect detection by TM and ML methods. The percentage of precise defect detections is shown for each method for a raw image size of 1296×12801296\times 1280. A defect detection is considered precise if the detected defect is within a threshold distance from the manually labeled defect. Center Line: threshold of 40 pixels. Lower Boundary: threshold of 30 pixels. Upper Boundary: threshold of 50 pixels. The defect threshold is set to 0.2.

3.4 Defect tracking

Once defects are detected, we can track them over time. This can be achieved by matching the locations of defects across different frames using the graduated assignment algorithm (Gold & Rangarajan, 1996). This article proposed a fast and accurate graph matching algorithm using nonlinear optimization and graduated non-convexity to avoid poor local minima. This algorithm allows matching between graphs of different node numbers. This fits well with our system because it enables handling the spontaneous birth and annihilation of defects. However, it is possible that one defect is detected in one frame, but disappears in the next frame. This could be due to defect annihilation or a mistake in the defect detection process. To deal with the latter, we apply the matching algorithm to three consecutive frames. Using the matching results, we can interpolate the locations of the defects that are missed in the middle frame but are detected in the preceding and succeeding frames. Figure 15 illustrates the tracking results on three image sequences captured under different lighting conditions.

Refer to caption
Figure 15: Examples of recovering missed defects. Fluorescence images were used, and the examples are from different regions of the sample, where defect density and lighting conditions vary. Each row shows three consecutive frames. The missing positive defects (red circle) in the middle frame are interpolated using their counterparts in the preceding and succeeding frames. Only positive defects are shown for clarity.

3.5 Defect angle estimation

One natural extension from the foundation of an accurate director field is to identify the microtubule angles at the defect locations, which may provide insights into the dynamics of the active nematic system. This can be conveniently achieved using a similar CNN network introduced in Section 2.2 and Section 2.3. The image processing method (TM) can also derive approximate defect orientations (details are in Appendix A.1). To obtain accurate angles at defect locations, we manually labeled 800 defects using the Python package “PyQt5”, out of which, 390 were negative and 410 were positive defects. We ran our model and the TM on the same images and compared the angle differences with the ground-truth. Among these defects, our model and the TM resulted in average errors (defined as the difference in detected angle from the ground-truth angle) of 9.869.86^{\circ} and 14.3314.33^{\circ} respectively. The comparison results are summarized in Figure 16.

Refer to caption
Figure 16: Error distribution of the estimated detect orientations in absolute angle differences. Compared with the manually labeled orientation for each defect, the machine learning model achieved an average error of 9.869.86^{\circ}, whereas the TM error is 14.3314.33^{\circ}.

4 Conclusions and Discussions

We present a machine learning based approach for automatically extracting director fields from images of active nematics, which enables downstream analyses, such as topological defect detection and tracking, defect orientation estimation, and related characteristics. Our approach is less sensitive to noise and can generalize to images captured by settings (e.g., microscope instruments, lighting conditions, and camera focus) not encountered in the training phase. Comparison of results from applying our method and the traditional method (TM) to experimental data demonstrates the superior performance of the machine learning approach. Despite the advances relative to traditional image processing methods, we note that our method does not entirely eliminate noise, particularly in suboptimal regions such as overexposed areas or those containing additional microtubule filaments above the plane of the active nematics. Furthermore, as our model is trained on PolScope images, its performance may vary slightly when applied to raw images from other microscopy techniques due to differences in noise distributions. Nevertheless, machine learning models have consistently demonstrated their potential in the realm of Soft Matter research, providing precise and automated solutions for diverse tasks, from dynamic predictions (Zhou et al., 2021) to defect analyses (Minor et al., 2020; Chowdhury et al., 2023). Our algorithm can be further improved by training on other types of microscopy images.

By employing the suggested machine learning method, we can obtain director fields with greater accuracy. This enhances the reliability of detecting and pinpointing defects. Such improved data is vital for addressing scientific questions regarding the time taken for a system to reach a steady state, the spatial distribution of defects, and their rates of annihilation and proliferation. In the future, we plan to use the calculated director field to do dynamics forecasting. In other words, given a short time sequence of images from an active nematics experiment, we aim to predict the subsequent time evolution of the sample. The more accurate calculation of director fields and detection of defects should lead to improvements over current algorithms (Zhou et al., 2021; Colen et al., 2021). Forecasting is the first step toward being able to control the behaviors of an active nematics system, by actuating with light or other external control inputs. Similarly, we hope to use this approach to derive statistics of the system’s characteristics and link them with the dynamics of active nematic systems. More broadly, our approach could be generalized to other active matter and soft matter systems.

Appendix A Appendix

A.1 Traditional image processing method used

The traditional image processing method used as a benchmark in this paper is from Michael M. Norton. The steps are below:

  • Calculate the intensity change of a given image.

    • Apply a Gaussian filter:

      G(x,y)=12πσ2exp(x2+y22σ2)I(x,y),G(x,y)=\frac{1}{2\pi\sigma^{2}}\exp{(-\frac{x^{2}+y^{2}}{2\sigma^{2}})}*I(x,y),

      where G(x,y)G(x,y) is the smoothed image, σ\sigma is the standard deviation of the Gaussian filter, I(x,y)I(x,y) is the original image, and * is the convolutional operator.

    • Compute the gradient:

      G(x,y)=(xG,yG),where\nabla G(x,y)=\left(\nabla_{x}G,\nabla_{y}G\right)\text{,}\text{where}
      xG(x,y)=Gx(x,y)andyG(x,y)=Gy(x,y),\nabla_{x}G(x,y)=\frac{\partial G}{\partial x}(x,y)\text{and}\nabla_{y}G(x,y)=\frac{\partial G}{\partial y}(x,y),
    • Compute the gradient magnitude:

      G(x,y)=(xG(x,y))2+(yG(x,y))2.\|\nabla G(x,y)\|=\sqrt{\left(\nabla_{x}G(x,y)\right)^{2}+\left(\nabla_{y}G(x,y)\right)^{2}}.

      Optionally, compute the gradient direction:

      θ(x,y)=atan2(yG(x,y),xG(x,y)),\theta(x,y)=\operatorname{atan2}(\nabla_{y}G(x,y),\nabla_{x}G(x,y)),

      where θ\theta is the angle of the gradient vector with respect to the x-axis, and atan2\operatorname{atan2} is the four-quadrant inverse tangent that returns values in the closed interval [π-\pi, π\pi].

  • Derive orientation.

    • Since the microtubule bundles have head-tail symmetry, we can use the rank-2 gradient tensor:

      H(x,y)=H(x,y)=
      [(xG(x,y))2xG(x,y)yG(x,y)xG(x,y)yG(x,y)(yG(x,y))2].\begin{bmatrix}(\nabla_{x}G(x,y))^{2}&\nabla_{x}G(x,y)\nabla_{y}G(x,y)\\ \nabla_{x}G(x,y)\nabla_{y}G(x,y)&(\nabla_{y}G(x,y))^{2}\end{bmatrix}.
    • Compute the eigenvalues of the gradient tensor:

      λ1(x,y),λ2(x,y)=\lambda_{1}(x,y),\lambda_{2}(x,y)=
      12[tr(H(x,y))±tr(H(x,y))24det(H(x,y))],\frac{1}{2}\left[\operatorname{tr}(H(x,y))\pm\sqrt{\operatorname{tr}(H(x,y))^{2}-4\det(H(x,y))}\right],

      where tr(H(x,y))\operatorname{tr}(H(x,y))

      is the trace of H(x,y)H(x,y) and det(H(x,y))\det(H(x,y)) is the determinant of H(x,y)H(x,y).

    • The eigenvalues λ1\lambda_{1} and λ2\lambda_{2} represent the strength of the gradient at each pixel in the direction of the two corresponding eigenvectors. The director field should be the smaller of the two eigenvalues (Blackwell et al., 2016).

After the director field is calculated, topological defects can be identified from regions of rapid rotation of the director field (Shi & Ma, 2013; Tan et al., 2019). The winding number is used to measure the change. The winding number is a mathematical concept that describes the number of times a curve, typically a closed curve, wraps around a given point in a plane. In the context of liquid crystals and active nematics, the winding number is a topological concept that captures the number of times the director rotates around a closed loop in the director field. More formally, it quantifies how many times the director completes a full rotation (360 degrees) when one traverses a closed curve in the plane of the field. It is a useful tool in topology and geometry for characterizing the behavior of curves and shapes. To calculate the winding number using the director field, we can choose a point in the space and numerically count the local orientation change around this point. Applying a threshold, the topological defect can be detected.

To deduce the intrinsic orientation of a defect, a circular window is defined around every detected defect location. For every pixel along this window, the local orientation of the director field is noted. Then, the angle originating from this pixel to the defect’s center is computed. Next, we compute the scalar product of these two angles. Then, the pixel yielding the maximum scalar product value indicates the direction in the director field most closely aligned with a line radiating from the defect’s core. We use the orientation of the director field in this specific pixel as a proxy to infer the intrinsic orientation of the defect.

A.2 Details of the Gabor filter

A Gabor filter (Fogel & Sagi, 1989) is a type of linear filter used in image processing that is designed to respond to specific frequencies or orientations in an image. In the context of Polscope images of active nematics, Gabor filters can be used to enhance the visibility of the nematic texture and reduce the effects of noise. Eq. (1) gives the equation of the Gabor filter. It is composed of two components: a complex sinusoidal wave and a Gaussian kernel. The Gaussian kernel allows the filter to respond to features of varying sizes, while the sinusoidal wave allows the filter to respond to features of varying orientations. By computing the Gabor response at multiple scales and orientations, features such as texture, edges, and corners can be identified and used to segment and classify the image.

gλ,θ,ϕ,σ,γ(x,y)=exp(x2+λ2y22σ2)cos(2πxλ+ϕ)\displaystyle g_{\lambda,\theta,\phi,\sigma,\gamma}(x,y)=\exp{(-\frac{x^{\prime 2}+\lambda^{2}y^{\prime 2}}{2\sigma^{2}})}\cos(\frac{2\pi x^{\prime}}{\lambda}+\phi) (1)

where

x=xcosθ+ysinθ,y=xsinθ+ycosθ.\displaystyle x^{\prime}=x\cos\theta+y\sin\theta,\quad y^{\prime}=-x\sin\theta+y\cos\theta.

Here, xx and yy are the coordinates of image pixels, σ\sigma is the width of the Gaussian kernel, θ\theta is the angle of the wave function, ϕ\phi is the phase, and λ\lambda is the wavelength.

A.3 Model parameters of the Gabor filter and ResNet blocks

For each wavelength, we use 64 Gabor filters with different orientations and scale values. The orientations take values with an additive interval of π8\frac{\pi}{8} from [0.75,0.75+π8,0.75+π4,0.75+3π8,0.75+π2,0.75+5π8,0.75+3π4,0.75+7π8][0.75,0.75+\frac{\pi}{8},0.75+\frac{\pi}{4},0.75+\frac{3\pi}{8},0.75+\frac{\pi}{2},0.75+\frac{5\pi}{8},0.75+\frac{3\pi}{4},0.75+\frac{7\pi}{8}]. The scales take values with a multiplicative interval of 2\sqrt{2} from 0.750.75 to 0.75×270.75\times\sqrt{2}^{7}.

In the ResNet structure shown in Figure 7, each block comprises two sets of convolutional and batch normalization layers linked by ReLU activation (Maas et al., 2013). The input is reintroduced to the output after the second batch normalization layer to guarantee reliable and resilient gradient computation. To begin the ResNet architecture, a single convolutional and batch normalization layer is employed to project the grayscale input image onto 64 channels. The subsequent three blocks continue to extract image features on 64 channels. In the subsequent four blocks, the results are projected to 128 channels. Following this, six blocks are used to capture higher-level features on 256 channels. The last three blocks extract global features on 512 channels. Following the completion of the ResNet blocks, the 512-channel image is projected back to grayscale using two convolutional layers. The purpose of increasing the number of dimensions is to allow the network to capture more complex and abstract features from the input image. With a higher number of channels, the convolutional layers can learn to detect more diverse patterns and structures within the image, leading to better performance.

A.4 Data augmentation

Data augmentation is a technique used to increase the size and diversity of a training dataset. In our model, we have applied a set of random transformations to the original data, including cropping, rotating, or adding noise. In active nematics experiments, free or extra microtubule filaments may float in the container, making the local orientation calculation difficult or inaccurate. To alleviate this, we proactively add random white lines in the input image to simulate the extra filaments. The transformed data is then added to the original dataset, increasing its size and variety, which helps to improve the performance of the machine learning model. Data augmentation can also help to reduce overfitting and make the model more robust to unseen data. By augmenting the training data with a variety of random transformations, we can help the model learn more generalizable features, which can improve its performance on new data.

A.5 Tracking visualization over longer sequences

With the matching algorithm discussed in Section 3.4, we can perform defect tracking over a long sequence of images. Please refer to the supplementary material for a video of tracking results.

A.6 More supporting figures

Figure 17 illustrates the machine learning model’s capability in processing fluorescence images of a 2D active nematic system with varying boundary conditions. The authors highlight that even in the presence of unbound microtubules floating along the z-axis of the 3D container, which is not aligned with the local orientation within the 2D nematic layer, the machine learning model adeptly filters out these elements, ensuring an accurate calculation of the director field.

Figure 18 showcases some examples in which some defects cannot be detected from the PolScope-calculated director field. We note that the local orientation by PolScope calculation is mostly accurate and the defect detection accuracy is generally good. The main contribution of this work is to develop a robust model that is less sensitive to noises in raw images and can be applied to experimental images from a variety of instruments.

Figure 19 visualizes the 40-pixel threshold used to evaluate defect detection accuracy.

Figure 20 demonstrates the defect detection results using the TM generated director field. It is an extended analysis to Fig. 5.

Refer to caption
Figure 17: Machine Learning model performance on 2-dimensional fluorescence images with boundary conditions. The left, middle, and right columns are the input raw images, director fields extracted by our ML model, and director fields superimposed on raw images, respectively. Take the top row as an example: the red arrows on the raw image point to unbound microtubules drifting in the z-axis of the container. These microtubules do not correspond with the local orientation of the 2D nematic layer under investigation. Despite these extraneous elements, the machine learning model effectively computes the director field.
Refer to caption
Figure 18: Some examples of missed defects using PolScope calculated director fields. The missed defects are highlighted by red boxes. This issue is due to noises in retardance images, such as under-/over- exposure, and exposure change; or it can occur in crowded regions where the defect density is high.
Refer to caption
Figure 19: Visualization of the 40-pixel threshold (red circle) used in the evaluation of defect detection accuracy discussed in Section 3.3 and Figure 14.
Refer to caption
Figure 20: An extension to Fig. 5 to show how the results of the TM depend on the key parameter values of window size and defect detection threshold. We find that changes in the window size parameter may alter the defect detection results, but 4-5 defects remain undetected (solid red dots for each parameter setting) even for optimal values. Setting the defect detection threshold lower can lead to finding more defects, but also leads to multiple defects in one location (red box), or detection of non-existing defects (orange box).

Conflicts of Interest

There are no conflicts of interest to declare.

Acknowledgements

This work was primarily supported by the Department of Energy (DOE) DE-SC0022291 (YL, PNT, YW, SF, MFH, PH). The experimental data acquisition and curation was supported by the Brandeis NSF MRSEC, Bioinspired Soft Materials, DMR-2011846 (ZZ). We also acknowledge computational support from the Brandeis HPCC which is partially supported by DMR-MRSEC2011486 and NSF OAC-1920147.

References

  • Bantysh et al. (2023) Bantysh, O., Nambisan, J., Martínez-Prat, B., Fernández-Nieves, A., Sagués, F., and Ignés-Mullol, J. First order alignment transition in an interfaced active nematic. arXiv preprint arXiv:2303.05589, 2023.
  • Bär et al. (2020) Bär, M., Großmann, R., Heidenreich, S., and Peruani, F. Self-propelled rods: Insights and perspectives for active matter. Annual Review of Condensed Matter Physics, 11:441–466, 2020.
  • Bianconi & Fernández (2007) Bianconi, F. and Fernández, A. Evaluation of the effects of gabor filter parameters on texture classification. Pattern recognition, 40(12):3325–3335, 2007.
  • Blackwell et al. (2016) Blackwell, R., Sweezy-Schindler, O., Baldwin, C., Hough, L. E., Glaser, M. A., and Betterton, M. Microscopic origins of anisotropic active stress in motor-driven nematic liquid crystals. Soft Matter, 12(10):2676–2687, 2016.
  • Chowdhury et al. (2023) Chowdhury, R. A., Green, A. A., Park, C. S., Maclennan, J. E., and Clark, N. A. Topological defect coarsening in quenched smectic-c films analyzed using artificial neural networks. Physical Review E, 107(4):044701, 2023.
  • Cichos et al. (2020) Cichos, F., Gustavsson, K., Mehlig, B., and Volpe, G. Machine learning for active matter. Nature Machine Intelligence, 2(2):94–103, 2020.
  • Colen et al. (2021) Colen, J., Han, M., Zhang, R., Redford, S. A., Lemma, L. M., Morgan, L., Ruijgrok, P. V., Adkins, R., Bryant, Z., Dogic, Z., et al. Machine learning active-nematic hydrodynamics. Proceedings of the National Academy of Sciences, 118(10):e2016708118, 2021.
  • DeCamp et al. (2015) DeCamp, S. J., Redner, G. S., Baskaran, A., Hagan, M. F., and Dogic, Z. Orientational order of motile defects in active nematics. Nature materials, 14(11):1110–1115, 2015.
  • Doostmohammadi et al. (2016) Doostmohammadi, A., Adamer, M. F., Thampi, S. P., and Yeomans, J. M. Stabilization of active matter by flow-vortex lattices and defect ordering. Nature communications, 7(1):10557, 2016.
  • Doostmohammadi et al. (2018) Doostmohammadi, A., Ignés-Mullol, J., Yeomans, J. M., and Sagués, F. Active nematics. Nature Communications, 9(1):3246, August 2018. ISSN 2041-1723. doi: 10.1038/s41467-018-05666-8. URL https://www.nature.com/articles/s41467-018-05666-8. Number: 1 Publisher: Nature Publishing Group.
  • Duclos et al. (2020) Duclos, G., Adkins, R., Banerjee, D., Peterson, M. S., Varghese, M., Kolvin, I., Baskaran, A., Pelcovits, R. A., Powers, T. R., Baskaran, A., et al. Topological structure and dynamics of three-dimensional active nematics. Science, 367(6482):1120–1124, 2020.
  • Dunkel et al. (2013) Dunkel, J., Heidenreich, S., Drescher, K., Wensink, H. H., Bär, M., and Goldstein, R. E. Fluid dynamics of bacterial turbulence. Physical review letters, 110(22):228102, 2013.
  • Ellis et al. (2018) Ellis, P. W., Pearce, D. J., Chang, Y.-W., Goldsztein, G., Giomi, L., and Fernandez-Nieves, A. Curvature-induced defect unbinding and dynamics in active nematic toroids. Nature Physics, 14(1):85–90, 2018.
  • Fogel & Sagi (1989) Fogel, I. and Sagi, D. Gabor filters as texture discriminator. Biological cybernetics, 61(2):103–113, 1989.
  • Gold & Rangarajan (1996) Gold, S. and Rangarajan, A. A graduated assignment algorithm for graph matching. IEEE Transactions on pattern analysis and machine intelligence, 18(4):377–388, 1996.
  • Golden et al. (2023) Golden, M., Grigoriev, R. O., Nambisan, J., and Fernandez-Nieves, A. Physically informed data-driven modeling of active nematics. Science Advances, 9(27):eabq6120, 2023.
  • Hagan & Baskaran (2016) Hagan, M. F. and Baskaran, A. Emergent self-organization in active materials. Current opinion in cell biology, 38:74–80, 2016.
  • Hannel et al. (2018) Hannel, M. D., Abdulali, A., O’Brien, M., and Grier, D. G. Machine-learning techniques for fast and accurate feature localization in holograms of colloidal particles. Optics express, 26(12):15221–15231, 2018.
  • Hardoüin et al. (2019) Hardoüin, J., Hughes, R., Doostmohammadi, A., Laurent, J., Lopez-Leon, T., Yeomans, J. M., Ignés-Mullol, J., and Sagués, F. Reconfigurable flows and defect landscape of confined active nematics. Communications Physics, 2(1):121, 2019.
  • He et al. (2016) He, K., Zhang, X., Ren, S., and Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016.
  • Henkin et al. (2014) Henkin, G., DeCamp, S. J., Chen, D. T., Sanchez, T., and Dogic, Z. Tunable dynamics of microtubule-based active isotropic gels. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 372(2029):20140142, 2014.
  • Ignés-Mullol et al. (2023) Ignés-Mullol, J., Hardoüin, J., Doré, C., Laurent, J., Lopez-Leon, T., and Sagués, F. Active boundary layers in confined active nematics. Bulletin of the American Physical Society, 2023.
  • Katz et al. (2011) Katz, Y., Tunstrøm, K., Ioannou, C. C., Huepe, C., and Couzin, I. D. Inferring the structure and dynamics of interactions in schooling fish. Proceedings of the National Academy of Sciences, 108(46):18720–18725, 2011.
  • Kawaguchi et al. (2017) Kawaguchi, K., Kageyama, R., and Sano, M. Topological defects control collective dynamics in neural progenitor cell cultures. Nature, 545(7654):327–331, 2017.
  • Keber et al. (2014) Keber, F. C., Loiseau, E., Sanchez, T., DeCamp, S. J., Giomi, L., Bowick, M. J., Marchetti, M. C., Dogic, Z., and Bausch, A. R. Topology and dynamics of active nematic vesicles. Science, 345(6201):1135–1139, 2014.
  • Lemma et al. (2019) Lemma, L. M., DeCamp, S. J., You, Z., Giomi, L., and Dogic, Z. Statistical properties of autonomous flows in 2d active nematics. Soft matter, 15(15):3264–3272, 2019.
  • Lemma et al. (2022) Lemma, L. M., Varghese, M., Ross, T. D., Thomson, M., Baskaran, A., and Dogic, Z. Spatiotemporal patterning of extensile active stresses in microtubule-based active fluids. arXiv preprint arXiv:2209.06277, 2022.
  • Liu et al. (2022) Liu, Z., Ning, J., Cao, Y., Wei, Y., Zhang, Z., Lin, S., and Hu, H. Video swin transformer. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp.  3202–3211, 2022.
  • Maas et al. (2013) Maas, A. L., Hannun, A. Y., Ng, A. Y., et al. Rectifier nonlinearities improve neural network acoustic models. In Proc. icml, volume 30, pp.  3. Atlanta, Georgia, USA, 2013.
  • Marchetti et al. (2013) Marchetti, M. C., Joanny, J. F., Ramaswamy, S., Liverpool, T. B., Prost, J., Rao, M., and Simha, R. A. Hydrodynamics of soft active matter. Reviews of Modern Physics, 85(3):1143–1189, July 2013. doi: 10.1103/RevModPhys.85.1143. URL https://link.aps.org/doi/10.1103/RevModPhys.85.1143. Publisher: American Physical Society.
  • Mermin (1979) Mermin, N. D. The topological theory of defects in ordered media. Reviews of Modern Physics, 51(3):591, 1979.
  • Minor et al. (2020) Minor, E. N., Howard, S. D., Green, A. A., Glaser, M. A., Park, C. S., and Clark, N. A. End-to-end machine learning for experimental physics: Using simulated data to train a neural network for object detection in video microscopy. Soft Matter, 16(7):1751–1759, 2020.
  • Muñoz-Gil et al. (2020) Muñoz-Gil, G., Garcia-March, M. A., Manzo, C., Martín-Guerrero, J. D., and Lewenstein, M. Single trajectory characterization via machine learning. New Journal of Physics, 22(1):013010, 2020.
  • Oldenbourg et al. (2005) Oldenbourg, R. et al. Polarization microscopy with the lc-polscope. Live cell imaging: A laboratory manual, pp.  205–237, 2005.
  • Opathalage et al. (2019) Opathalage, A., Norton, M. M., Juniper, M. P., Langeslay, B., Aghvami, S. A., Fraden, S., and Dogic, Z. Self-organized dynamics and the transition to turbulence of confined active nematics. Proceedings of the National Academy of Sciences, 116(11):4788–4797, 2019.
  • Prost et al. (2015) Prost, J., Jülicher, F., and Joanny, J.-F. Active gel physics. Nature physics, 11(2):111–117, 2015.
  • Putzig et al. (2016) Putzig, E., Redner, G. S., Baskaran, A., and Baskaran, A. Instabilities, defects, and defect ordering in an overdamped active nematic. Soft matter, 12(17):3854–3859, 2016.
  • Rabault et al. (2017) Rabault, J., Kolaas, J., and Jensen, A. Performing particle image velocimetry using artificial neural networks: a proof-of-concept. Measurement Science and Technology, 28(12):125301, 2017.
  • Ramaswamy (2010) Ramaswamy, S. The mechanics and statistics of active matter. Annu. Rev. Condens. Matter Phys., 1(1):323–345, 2010.
  • Rezakhaniha et al. (2012) Rezakhaniha, R., Agianniotis, A., Schrauwen, J. T. C., Griffa, A., Sage, D., Bouten, C. v., Van De Vosse, F., Unser, M., and Stergiopulos, N. Experimental investigation of collagen waviness and orientation in the arterial adventitia using confocal laser scanning microscopy. Biomechanics and modeling in mechanobiology, 11:461–473, 2012.
  • Ross et al. (2019) Ross, T. D., Lee, H. J., Qu, Z., Banks, R. A., Phillips, R., and Thomson, M. Controlling organization and forces in active matter through optically defined boundaries. Nature, 572(7768):224–229, 2019.
  • Sanchez et al. (2012) Sanchez, T., Chen, D. T., DeCamp, S. J., Heymann, M., and Dogic, Z. Spontaneous motion in hierarchically assembled active matter. Nature, 491(7424):431–434, 2012.
  • Saw et al. (2017) Saw, T. B., Doostmohammadi, A., Nier, V., Kocgozlu, L., Thampi, S., Toyama, Y., Marcq, P., Lim, C. T., Yeomans, J. M., and Ladoux, B. Topological defects in epithelia govern cell death and extrusion. Nature, 544(7649):212–216, 2017.
  • Serra et al. (2023) Serra, M., Lemma, L., Giomi, L., Dogic, Z., and Mahadevan, L. Defect-mediated dynamics of coherent structures in active nematics. Nature Physics, pp.  1–7, 2023.
  • Shi & Ma (2013) Shi, X.-q. and Ma, Y.-q. Topological structure dynamics revealing collective evolution in active nematics. Nature communications, 4(1):3013, 2013.
  • Shribak & Oldenbourg (2003) Shribak, M. and Oldenbourg, R. Techniques for fast and sensitive measurements of two-dimensional birefringence distributions. Applied Optics, 42(16):3009–3017, 2003.
  • Sokolov et al. (2007) Sokolov, A., Aranson, I. S., Kessler, J. O., and Goldstein, R. E. Concentration dependence of the collective dynamics of swimming bacteria. Physical review letters, 98(15):158102, 2007.
  • Tan et al. (2019) Tan, A. J., Roberts, E., Smith, S. A., Olvera, U. A., Arteaga, J., Fortini, S., Mitchell, K. A., and Hirst, L. S. Topological chaos in active nematics. Nature Physics, 15(10):1033–1039, 2019.
  • Thijssen et al. (2021) Thijssen, K., Khaladj, D. A., Aghvami, S. A., Gharbi, M. A., Fraden, S., Yeomans, J. M., Hirst, L. S., and Shendruk, T. N. Submersed micropatterned structures control active nematic flow, topology, and concentration. Proceedings of the National Academy of Sciences, 118(38):e2106038118, 2021.
  • Toner & Tu (1995) Toner, J. and Tu, Y. Long-range order in a two-dimensional dynamical xy model: how birds fly together. Physical review letters, 75(23):4326, 1995.
  • Wensink et al. (2012) Wensink, H. H., Dunkel, J., Heidenreich, S., Drescher, K., Goldstein, R. E., Löwen, H., and Yeomans, J. M. Meso-scale turbulence in living fluids. Proceedings of the national academy of sciences, 109(36):14308–14313, 2012.
  • Xie et al. (2022) Xie, Z., Zhang, Z., Cao, Y., Lin, Y., Bao, J., Yao, Z., Dai, Q., and Hu, H. Simmim: A simple framework for masked image modeling. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp.  9653–9663, 2022.
  • Zarei et al. (2023) Zarei, Z., Berezney, J., Hensley, A., Lemma, L., Senbil, N., Dogic, Z., and Fraden, S. Light-activated microtubule-based two-dimensional active nematic. Soft matter, 19(35):6691–6699, 2023.
  • Zhang et al. (2021) Zhang, R., Redford, S. A., Ruijgrok, P. V., Kumar, N., Mozaffari, A., Zemsky, S., Dinner, A. R., Vitelli, V., Bryant, Z., Gardel, M. L., et al. Spatiotemporal control of liquid crystal structure and dynamics through activity patterning. Nature materials, 20(6):875–882, 2021.
  • Zhao et al. (2020) Zhao, L., Yao, L., Golovaty, D., Ignés-Mullol, J., Sagués, F., and Carme Calderer, M. Stability analysis of flow of active extensile fibers in confined domains. Chaos: An Interdisciplinary Journal of Nonlinear Science, 30(11):113105, 2020.
  • Zhou et al. (2014) Zhou, S., Sokolov, A., Lavrentovich, O. D., and Aranson, I. S. Living liquid crystals. Proceedings of the National Academy of Sciences, 111(4):1265–1270, 2014.
  • Zhou et al. (2021) Zhou, Z., Joshi, C., Liu, R., Norton, M. M., Lemma, L., Dogic, Z., Hagan, M. F., Fraden, S., and Hong, P. Machine learning forecasting of active nematics. Soft matter, 17(3):738–747, 2021.