Abstract
Bacterial motility is often a crucial virulence factor for pathogenic species. A common approach to study bacterial motility is fluorescent labeling, which allows detection of individual bacterial cells in a population or in host tissues. However, the use of fluorescent labeling can be hampered by protein expression stability and/or interference with bacterial physiology. Here, we apply machine learning to microscopic image analysis for label-free motion tracking of the zoonotic bacterium Leptospira interrogans on cultured animal cells. We use various leptospiral strains isolated from a human patient or animals, as well as mutant strains. Strains associated with severe disease, and mutant strains lacking outer membrane proteins (OMPs), tend to display fast mobility and reduced adherence on cultured kidney cells. Our method does not require fluorescent labeling or genetic manipulation, and thus could be applied to study motility of many other bacterial species.
Similar content being viewed by others
Introduction
The locomotive ability of bacteria allows them to actively explore environments favorable for their growth, facilitating their proliferation. Though diverse forms of bacterial motility are known, the flagellum has been the primary machinery. The rotation of extracellular flagella possessed by, for example, Escherichia coli, Salmonella enterica, and Vibrio cholera, propels the bacteria through interaction with fluids1,2,3. Some species employ extracellular flagella for swarming over surfaces covered with viscous agents4. When the species are causative agents of diseases, motility is usually involved in invasion, migration within the host, and disease development1,2,5. Thus, understanding the responsibility of motility as a virulence factor will lead to the development of medications and the proposal of novel strategies for protecting against infection.
Leptospirosis is an emerging zoonosis spreading globally. Regarding the threat to human health, the spirochete pathogens of leptospirosis, Leptospira spp., have caused ~1 million severe cases and ~60,000 deaths yearly6. Pathogenic Leptospira spp. have been classified into more than 250 serovars, and clinical signs in infected animals differ depending on the combination of host species and Leptospira serovars7,8,9. Susceptible animals, including humans, can develop severe manifestations, such as jaundice, pulmonary hemorrhage, and nephritis, whereas rodents are asymptomatic carriers for particular serovars. Some animals, such as dogs, maintain the host-adopted pathogens after recovery from the disease. Leptospira spp. colonize in the kidneys of particular reservoir animals and are excreted in the urine. Bacteria excreted into the environment infect animals through the percutaneous or permucosal route. In the host body, Leptospira spp. migrate to specific organs and break tissues7,8,9,10. Leptospira spp. have two flagella in the periplasmic space11. It is believed that the rotation of the periplasmic flagella (PFs) beneath the outer membrane drives the rolling of the spiral body12. The PF-dependent rotation of the cell body produces the thrust needed to swim in liquid media and crawl on a solid surface (Fig. 1). In other words, spirochetes have an amphibious motility system13. Animal experiments have shown that motility-deficient mutants were attenuated14,15, suggesting that leptospiral virulence likely involves motility. However, the beneficial role of motility for leptospiral pathogenicity remains unclear.
Direct observation of bacteria in various conditions, such as in solutions, tissues, and artificial microstructures, has been the conventional method for investigating disease mechanisms in terms of pathogen dynamics and motility mechanisms16,17,18,19. These experiments usually pursue representative bacteria in a crowd or detect bacteria dwelling in living cells, which requires labeling the objects with fluorescent proteins or dyes. However, not all bacterial strains can endure genetic engineering and express fluorescent proteins. Labeling can possibly affect bacterial physiology and dynamics. We previously used a green fluorescent protein (GFP) to observe Leptospira spp. over the cultured kidney cells. The experiment showed that the pathogenic species L. interrogans, which causes leptospirosis, moved more actively than the saprophytic L. biflexa16. We attempted to label several pathogenic strains with a GFP, but only two strains yielded fluorescence and were available. Hence, label-free techniques allow experiments that are not restricted by the properties of biological samples.
In this study, we developed a method for label-free motion tracking to elucidate the mechanism by which leptospirosis spirochetes move on host cells. Our label-free bacterial tracking method uses machine learning-based image processing that highlights moving objects by subtracting the background from raw images. The processed images allowed label-free analysis of bacteria motility on the cultured animal cells, providing insight into the mechanism of leptospiral locomotion on host cells and the significance of motility as a virulence factor.
Results
Label-free motion tracking
We used a dark-field microscope to observe a thin cell body of L. interrogans (~100 nm in width). In the in vitro infection assay (Fig. 1), scattering from cultured cells prevents the visualization of bacteria (Fig. 2a, Step 1 and Supplementary Movie S1). Therefore, we first obtained brightness distributions of individual pixels in the time axis direction and then subtracted the background cluster from the raw image by the pixel (Fig. 2a, Step 2, 2b, and Supplementary Movie S2). We recognized the background (mainly signals from cultured cells) in the complex distribution using a Gaussian mixture model (GMM). The GMM was sequentially updated every time a new pixel value was added through maximum a posteriori (MAP) estimation (Fig. 2c, d)20,21. The background subtraction results processed by the pixel were integrated (Fig. 2a, Step 3 and Supplementary Movie S3), and bacteria were recognized according to area and shape (Fig. 2a, Step 4 and Supplementary Movie S4). As such, we successfully determined the locomotion trajectories of bacteria without labeling by tracking their centroids based on the frame (green lines in Fig. 2a, Step 5 and Supplementary Movie S5).
Confined crawling in association with reservoir host cells
We first compared the Leptospira swimming and crawling motility between two pairs of the leptospiral strain and host species. One of the pairs, L. interrogans serovar Manilae vs. NRK (normal rat kidney) cells, was used as an example of asymptomatic because rats are known to be typically asymptomatic carriers of serovar Manilae strains22. The other pair, L. interrogans serogroup Hebdomadis strain D-OW16-2K (isolated from a seriously ill dog) vs. MDCK (Madin–Darby canine kidney) cells, was assumed to develop severe disease. In the asymptomatic pair, leptospires swam smoothly, but their translational locomotion was reduced while crawling in association with the kidney cells (Fig. 3a, left panels). In contrast, leptospires in the severely symptomatic pair showed long-distance migration on the cell surface (Fig. 3a, right panels). We previously observed crawling of GFP-labeled L. interrogans on kidney cells, showing higher mobility of pathogenic strains than a non-pathogenic strain16. The present label-free experiment showed a similar tendency.
The previous study using GFP-labeled strains showed that the crawling speed of leptospires was not associated with disease severity16. However, the label-free experiment revealed that leptospires swam faster in the asymptomatic pair than in the severely symptomatic pair (Fig. 3b, upper panel) but that the opposite was true for crawling speed (Fig. 3b, lower panel). We also evaluated the two-dimensional movements of leptospires according to the time plot of the mean square displacement (MSD) < r2(Δt) > = < ∣r(t + Δt) − r(t)∣2 > (Fig. 3c). It is known that the < r2(Δt) > of particles moving unidirectionally is proportional to Δt2, whereas that of diffusive motion is proportional to Δt23. Every < r2(Δt) > plot of leptospires showed a quadratic curve at a very short time scale (∝Δt2) and a proportional line at a longer time scale (∝Δt. See also log–log plots). The observed time dependences of < r2(Δt) > represent bacteria moving in a direction for a short duration and those showing diffusion for an extended duration. A swimming analysis of E. coli proposed a model determining the duration for smooth unidirectional locomotion: \( < {r}^{2}({{\Delta }}t) > =2{v}_{0}^{2}\tau [t-\tau (1-\exp (-{{\Delta }}t/\tau ))]\), where v0 is the speed at which the bacterium swims in one direction and τ is the duration of the ballistic swimming24,25. Applying the model to the leptospiral locomotion showed that τ ≃ 1 s. The predicted duration for ballistic swimming agrees with the change in the time dependence of < r2(Δt) > observed in Fig. 3c. We determined the diffusion coefficients of swimming (Ds) and crawling (Dc) using linear regression to the regime proportional to Δt. Accordingly, we found that leptospires in the asymptomatic pair diffused more readily by swimming than those in the severely symptomatic pair but that the opposite was true for the magnitude of diffusion by crawling (Fig. 3c). These results suggest that the confined behavior of leptospires on tissue cells enables host animals to carry the bacteria without apparent clinical signs.
Leptospires crawl faster on dog kidney cells
Focusing on speeds, we examined the motility of various Leptospira strains (Supplementary Table S1) over NRK and MDCK. Swimming speed does not seem to be related to the host-bacteria combination, but crawling speed is likely to be faster for strains infected to MDCK (Fig. 4a).
Such a tendency could be seen more clearly by comparing the speeds measured on MDCK and NRK (Fig. 4b). Most of the measured strains showed faster crawling on MDCK (MDCK/NRK > 1). Dogs are susceptible to many pathogenic Leptospira serovar strains, and in some cases serious illness develops8. Although virulence of serovar Manilae strain in dogs remains unclear, anti-serovar Manilae antibodies were frequently detected in dogs in the Philippines, indicating the infectivity of the serovar to dogs26. Among the strains measured, some strains, such as serogroups Australis and Autumnalis (Autum), showed no significant enhancement of crawling. Therefore, these results suggest that crawling is not a sole determinant of virulence but is involved in the pathogenicity of Leptospira along with many other virulence factors.
OMPs contribute to crawling
The crawling of the periodontal spirochete Treponema denticola involves dentilisin, a protein located on the outer membrane27. Studies on Leptospira crawling also showed the possible contribution of outer membrane proteins (OMPs)28 and lipopolysaccharides (LPS)13 to surface locomotion, but the responsible Leptospira cell surface molecules remain unidentified. Note that the leptospiral OMPs LenA and LigA have the ability to bind to the host cells29,30,31,32. Examining the effect of the deficiency of LenA and LigA on the adhesion of L. interrogans serovar Manilae, we found that both disruptions reduced the leptospiral adherence to NRK cells (Fig. 5a).
The malfunction of LenA and LigA affected the swimming speed (Supplementary Note 1 and Fig. S1). The swimming speed is given by free cell rotation without interaction with surfaces (equivalent to v0 in the crawling model described later). We thus evaluated the crawling ability by normalizing the crawling speed vCR with the swimming speed vSW: vCR/vSW. The crawling ability of L. interrogans serovar Manilae on its reservoir’s cells (NRK) was facilitated by the LenA and LigA deficiency (Fig. 5). These results suggested that LenA and LigA could be involved in adhesion and crawling along with LPS and other unknown adhesins. LenA binds to the complement regulatory protein factor H, suggesting the contribution of the protein to immune evasion29. LigA has the ability to bind to fibrinogen and extracellular matrix proteins (e.g., collagen and laminin)31. The targeted repression of the ligA expression attenuated L. interrogans serovar Manilae, suggesting the significance of LigA as a virulence factor33. On MDCK cells, the crawling ability of lenA mutant was also enhanced, whereas few adherent and crawling cells were observed in the ligA mutant (Supplementary Note 1 and Fig. S2), suggesting that LigA might be a crucial adhesin for the leptospiral colonization to dogs.
Inverse correlation between adhesion and crawling
We examined the relationship between the Leptospira adhesivity and crawling ability vCR/vSW. Figure 6a shows an inverse correlation between adhesion and vCR/vSW. In agreement with Fig. 4b, leptospires tend to adhere more strongly to NRK cells, suppressing crawling.
When a bacterium is propelled at the velocity of v by the rotation of helical flagella or helical cell body with the wavelength of λ at the frequency of f, the conversion efficiency from the rotation to translation can be evaluated by (v/λ)/f. The value indicates the degree of slippery. For example, Vibrio alginolyticus shows (v/λ)/f ≃ 0.07, indicating that the bacterium migrates by only 7% of the flagellar wavelength upon one flagellar revolution34. We have shown that L. biflexa showed (v/λ)/f ≃ 0.2 when swimming and ≃ 1 when crawling (λ ≃ 0.6 μm)13. Using the reported values of (v/λ)/f and λ together with the speeds measured in this study (vSW and vCR), we predicted the cell body rotation rates during swimming (fSW) and crawling (fCR). In Fig. 6b, the host-bacteria pairs were arranged in order of adhesivity, showing an tendency of fCR/fSW increasing with the decrease in adhesivity. This suggests that the sluggish crawling speed can be attributed to the deceleration of the cell rotation due to the strong adhesion to kidney cells. From the aspect of pathogenicity, strong adhesivity of bacteria would be advantageous to be maintained in the host, while weak adherence enables bacteria to explore a wide range of the host tissue. For Leptospira spp., fast and diffusive crawling would gain a chance to penetrate the deeper side of the tissue10,18, while they have a risk of elimination by a flow of body fluid. These are likely to be a trade-off relationship that pathogenic bacteria are imposed, which is as well as physiological constraints observed between growth and survival35, and migration and colonization36.
Crawling model
We demonstrate Leptospira crawling using a simple two-state model (Fig. 7a)37,38. Crawling occurs through successive binding and detachment of adhesins against the host cells with rate constants kon for binding and koff for detachment. A bacterium has Nad adhesins in total. Note that the effective Nad, \({N}_{{{{{{{{\rm{ad}}}}}}}}}^{{\prime} }\), is defined by the number of host receptors per bacterial length Nr: If Nad ≪ Nr, \({N}_{{{{{{{{\rm{ad}}}}}}}}}^{{\prime} }={N}_{{{{{{{{\rm{ad}}}}}}}}}\); if Nad > Nr, \({N}_{{{{{{{{\rm{ad}}}}}}}}}^{{\prime} }={N}_{{{{{{{{\rm{r}}}}}}}}}\). The bound adhesins are linked with the host cells via a spring with the spring constant κ, and koff depends on the extension of the spring x: \({k}_{{{{{{{{\rm{off}}}}}}}}}(x)={k}_{{{{{{{{\rm{off}}}}}}}}}^{{\prime} }\exp [\kappa x/\kappa l]\), where l represents the typical length at which the bound OMP is released38. The force balance of motion in low Reynolds numbers, where the inertia can be negligible, is described by \(F-\gamma {v}_{{{{{{{{\rm{CR}}}}}}}}}-\kappa \mathop{\sum }\nolimits_{i=1}^{{N}_{{{{{{{{\rm{ad}}}}}}}}}^{{\prime} }}{x}_{i}=0\), where F is the propulsive force produced by a Leptospira bacterium, γ is the viscous drag coefficient, vCR is the crawling velocity, and xi is the spring extension of the ith adhesin. Therefore, \({v}_{{{{{{{{\rm{CR}}}}}}}}}=(F/\gamma )-(\kappa /\gamma )\mathop{\sum }\nolimits_{i=1}^{{N}_{{{{{{{{\rm{ad}}}}}}}}}^{{\prime} }}{x}_{i}\). Scaling vCR by the velocity without bonds F/γ ( ≡ v0) yields \({v}_{{{{{{{{\rm{CR}}}}}}}}}/{v}_{{{{{{{{\rm{0}}}}}}}}}=1-(\kappa /F)\mathop{\sum }\nolimits_{i=1}^{{N}_{{{{{{{{\rm{ad}}}}}}}}}^{{\prime} }}{x}_{i}\). Here we assumed that κ/F = 1 for qualitative discussion.
Our experiments suggested that excessive adherence of leptospires decreased the crawling speed. Moreover, the combination of leptospiral strains and host species affected adherence and crawling (Fig. 6). A plausible cause for these phenomena could be a difference in kinetic parameters by the bacterium-host combination. The two-state model assuming \({N}_{{{{{{{{\rm{ad}}}}}}}}}^{{\prime} }={N}_{{{{{{{{\rm{ad}}}}}}}}}\) qualitatively demonstrated that an increment of \({k}_{{{{{{{{\rm{off}}}}}}}}}^{{\prime} }/{k}_{{{{{{{{\rm{on}}}}}}}}}\) decreased the fraction of the bound adhesins \({n}_{{{{{{{{\rm{on}}}}}}}}}/{N}_{{{{{{{{\rm{ad}}}}}}}}}^{{\prime} }\) (Fig. 7b), affecting vCR/v0 anti-correlatively (Fig. 7c). L. interrogans serovar Manilae might be adapted to rats in terms of stronger adhesin binding to the ligands on the kidney cells. We also found that the reduced number of OMPs by gene knockout facilitated crawling (Fig. 5). The tendency was shown by the model in the \({N}_{{{{{{{{\rm{ad}}}}}}}}}^{{\prime} }\) dependence of vCR/v0 (Fig. 7c). Given that Nr is likely not uniform in living cells and Nad can differ among bacteria, the bond strength acting on bacteria would accidentally change with locomotion (Fig. 7d, upper panel). This would be observed as speed fluctuation of crawling (Fig. 7d, lower panel). Spatial-temporal variation of \({N}_{{{{{{{{\rm{ad}}}}}}}}}^{{\prime} }\) may promote diversity in bacterial dynamics and ecology within the host body.
Quantitative modeling using practical values of parameters will be a subject for future studies. For example, the kinetic property of adhesins, assumed to be unity in the present model, is obviously diverse in the actual bacteria and host cell combinations32. κ and γ determine the relaxation time of the system by γ/κ. κ could be characterized by the interaction between bacterial adhesins and receptors on the host cells, whereas γ is governed by the environmental viscosity and bacterial morphology (especially size). Viscosity may differ according to bacterial habitat within the host body. Leptospires, which have a wide cell length range (~5 μm in the shortest and >20 μm in the longest), are observed in a population. Also, F is related to torque produced by the flagellar motor39,40. Although some of the values will be obtained as a fitting parameter, further model study should help determine the underlying physics of bacterial motility on surfaces.
Discussion
Adhesion is crucial for bacterial infection and pathogenicity, followed by invasion or toxin injection. For several motile bacteria, external flagella could have a role of adhesin, such as H2 and H6 of enteropathogenic E. coli (EPEC) and H7 of enterohemorrhagic E. coli (EHEC)41,42. Flagella-mediated adhesion of the genus Salmonella is serovar-dependent, which is essential for serovars Enteritidis and Dublin but not for serovar Typhimurium43. In this study, we showed that flagella-independent adhesion of Leptospira bacteria allows their movement on kidney cells. Our experiments using clinical isolates and OMP-deficient mutants showed an inverse correlation between bacterial adhesion and crawling. The responsibility of motility for virulence was reaffirmed by plotting the asymptomatic and severely symptomatic pairs data on the inverse correlation between adherence and crawling. In addition, a simple numerical analysis suggested the significance of bacterial adhesion for mobility in the bacteria–host interface. There is an enormous combination between pathogenic leptospires and host species, suggesting that the pathogenic mechanism includes a complicated battle between bacteria and hosts, which involves immune response and gene regulation. An abundance of proteins in the outer membrane of pathogenic leptospires have different adhesion affinities to host cell components32, and some of them, such as LigA examined in this study, show host-specific properties (Supplementary Fig. S2). Furthermore, although the present study focused on phenomena occurring a few hours after arrival at the organ, longer monitoring is needed for tangible discussions of pathogenesis and persistent infection in specific tissues. Identification of receptors on host cells involved in the adhesion and crawling of Leptospira spp. and their practical relevance to pathogenesis are future subjects.
None of our label-free experiments would have been successful without employing machine learning for motion analysis. Background subtraction has been a common process to detect intrusive objects in scene analysis of a surveillance system. We succeeded at introducing the computer vision technique to the in vitro bacterial infection assay, which can be applicable to diverse living cells in which probe labeling or genetic manipulations are difficult. In addition, the method will be useful for single molecule tracking to study membrane protein diffusion or turnover, which is generally difficult to detect due to low signal intensity, even if the target molecule is fluorescently labeled. There have been other methods developed to remove background noise from video data. In regard to their applications to infectious disease research, a method was developed to remove the background from video data of bacteria-derived scattering in patient biopsy by subtracting the minimum brightness on the time axis, the median brightness of all frames, and the local spatial background44. This method does not require cumbersome sample pretreatment and yet enables rapid diagnosis and antibiotic susceptibility testing over a wide range of bacterial concentrations. Thus, the background subtraction method is expected to contribute to diverse research aimed at elucidating the living system.
Methods
Bacteria and animal cells
Bacterial strains used in this study are listed in Supplementary Table S1. The Leptospira strains except L. interrogans serogroup Autumnalis strain D-SA11-5K were cultured in Ellinghausen-McCullough–Johnson–Harris (EMJH) liquid medium45 at 30 °C for 3–5 days; the Autumnalis strain was cultured in modified Korthof’s liquid medium46 at 30 °C for 3–5 days. E. coli β2163 was grown in LB medium supplemented with 0.3 mM diaminopimelate47. The mammalian kidney epithelial cell lines used were MDCK-NBL2 (dog) and NRK-52E (rat). Kidney cells were maintained in Eagle’s minimum essential medium (MEM) (Sigma-Aldrich, Darmstadt, Germany) for MDCK and Dulbecco’s modified Eagle’s medium (DMEM) (Thermo Fisher Scientific, MA, United States) for NRK containing 10% fetal bovine serum (Nacalai Tesque, Kyoto, Japan) and 1% antibiotic/antimycotic mixed solution (Nacalai Tesque) at 37 °C and 5% CO2.
Transposon insertion mutants
lenA::Tn and ligA::Tn mutants were obtained by random insertion mutagenesis of the L. interrogans strain UP-MMC-NIID using Himar1, which was conducted by conjugation with E. coli β2163 harboring pCjTKS2, as described previously48. After conjugation, cells were spread on a plate of EMJH agar (1.4% Bacto Agar, BD, USA) containing kanamycin at a final concentration of 25 μg/mL using glass beads (Bac’n’Roll Beads, Nippon Gene, Japan). The transposon insertion site was identified using semi-random PCR48 with some modifications: the concentration of primers for the first and second PCR was reduced to 0.2 μM. The transposon was inserted into 259 bp of the 738-bp lenA gene and 3154 bp of the 3675-bp ligA gene, respectively.
Expression and purification of recombinant GST/LenA fusion protein and production of anti-LenA serum
The DNA fragment corresponding to the amino acid position 27-241 of LenA from L. interrogans UP-MMC-NIID (WP_000809541) was amplified with PrimeSTAR GXL DNA polymerase (TaKaRa Bio) by using the upstream primer GSTSal-LenA-F (5'-CCCGGAATTCCCGGGTCAAGAAGCGCAGATCTTAGG-3') and the downstream primer GSTSal-LenA-R (5'-ATGCGGCCGCTCGAGTCCGAATTTTCCCGCAAGTG-3'). After an initial 1 min denaturation at 95 °C, the reaction mixture was subjected to 30 cycles of denaturation at 98 °C for 10 s, annealing at 55 °C for 15 s, and extension at 72 °C for 1 min. The PCR product was purified, and cloned into SalI-digested GST vector pGEX-6P-1 (Cytiva) by NEBuilder HiFi DNA Assembly cloning (New England BioLabs). To express the GST fusion protein, the plasmid was transformed into E. coli BL21. GST fusion protein expressed in E. coli BL21 was purified using glutathione Sepharose 4B (Cytiva) according to the supplier’s instruction. For the production of antiserum against LenA, 30 μg of purified GST/LenA fusion protein was subjected to SDS-PAGE, from which the corresponding band was excised. The excised gel was injected into a female mouse with complete Freund’s adjuvant and giving booster injections of the same amount of protein without adjuvant 2, 4, and 6 weeks later. The mouse was maintained at 23 ± 2 °C with 55 ± 5% humidity in a 12 h-light/12 h-dark cycle. The production of antiserum for LenA was approved by the animal research committee of National Institute of Infectious Diseases.
SDS-PAGE and immunoblotting experiments
About 1.5 × 108 cells of wild-type and lenA::Tn and ligA::Tn mutant cells suspended in SDS-PAGE sample buffer were subjected to SDS-PAGE and Western blotting. The blot was incubated with antisera raised against LenA described above and the C-terminal portion of LigA49. The dilutions of antisera were 500-fold and 1000-fold for anti-LenA and anti-LigA, respectively, and the secondary antibody, goat anti-mouse IgG (H+L)-HRP conjugate (Bio-Rad Labotatories, Inc.), was diluted at 1:25,000 (Supplementary Fig. S3).
Motility and adhesion assays
The cell density of the cultured leptospires were adjusted to 1 × 108 bacteria/mL (OD420 ~0.1) using cultured media (EMJH or Korthof’s medium). The bacterial suspension (20 μL) was infused to a chamber slide (SCS-N04, Matsunami Glass Ind., Ltd., Japan) where kidney cell monolayers were constructed as described previously16. After incubation for 15 min at 23 °C, Leptospira cells were observed using a dark-field microscope (BX53, × 40 UPlanFL N, × 5 relay lens, Olympus, Tokyo, Japan) and recorded using a CCD camera (WAT- 910HX, Watec Co., Yamagata, Japan) at a frame rate of 30 Hz. The number of bacteria attached to the kidney cells were counted, and then swimming cells in liquid phase and crawling cells on kidney cells were measured using the image analytical program written in-house with Python.
Background subtraction
The background model estimation method was based on ref. 20 with some modifications. Assuming a statistical model representing the background image (BG) without intrusive objects, we determined the appearance of masses of pixels that deviated from the modeled BG as intrusive foreground objects (FG).
Consider a single pixel value in grayscale x(t) at time t and a training set HT = {x(t), ⋯ , x(t−T)} at time interval T. Given that the data set could possibly contain values corresponding to not only BG but also FG, the estimated probability density function from HT is denoted as \(\hat{p}({x}^{(t)}| {H}_{T},BG+FG)\). Such pixel value distribution comprising multiple components can be modeled using multi-peak Gaussian (GMM):
where m is the number of each component in the order of the weighting parameter \({\hat{\pi }}_{m}\) (\(\mathop{\sum }\nolimits_{m=1}^{M}{\hat{\pi }}_{m}=1\)), M is the total number of components (i.e., m = 1 ~ M), and \({\hat{\mu }}_{m}\) and \({\hat{\sigma }}_{m}^{2}\) are the estimated values of the mean and variance, respectively. A new pixel value obtained at time t + 1, x(t+1), was classified based on the Mahalanobis distance, and GMM parameters are updated using the following equations (Fig. 2c, d):
In short, the distribution at time t + 1 is predicted based on a set of images obtained before t. Repeating data acquisition and parameter estimation corresponds to learning a model for the scene. The decay parameter α(=0.001) affects the detection performance of bacteria. The background subtraction method recognizes a moving foreground against a static background. α is one of the parameters that determine the ‘time limit’ for being recognized as the foreground: If a bacterium remains immobile longer than the time limit, it is recognized as background, which is the limitation of this analysis (Supplementary Note 2 and and Supplementary Fig. S4). δm is the Euclidian distance from the mean of the cluster m (\(=\! {x}^{(t)}-{\hat{\mu }}_{m}\)). \({o}_{m}^{(t)}\) determines the cluster where the new data is classified by setting \({o}_{m}^{(t)}=1\) for the closest cluster and \({o}_{m}^{(t)}=0\) for others. When the new data does not belong to any existing cluster, a new cluster m = M + 1 is generated with \({\hat{\pi }}_{M+1}=\alpha\), \({\hat{\mu }}_{M+1}={x}^{(t)}\), and \({\hat{\sigma }}_{M+1}={\sigma }_{0}\). Equation (2) was obtained using MAP estimation20. MAP P(π∣n) is determined by a likelihood function P(n∣π) and a prior distribution P(π) as follows:
where \({{{{{{{\bf{n}}}}}}}}=\left\{{{{{{{{{\bf{n}}}}}}}}}_{{{{{{{{\rm{1}}}}}}}}},{{{{{{{{\bf{n}}}}}}}}}_{2},\cdots \,,{{{{{{{{\bf{n}}}}}}}}}_{{{{{{{{\rm{T}}}}}}}}}\right\}\,\)\(({{{{{{{{\bf{n}}}}}}}}}_{{{{{{{{\rm{t}}}}}}}}}=\{{o}_{1}^{(t)},{o}_{2}^{(t)},\cdots \,,{o}_{M}^{(t)}\})\) indicates to which of the m components the t-th data belongs. For example, the Mahalanobis distance determined the classification of the t-th data to m = 1, \({o}_{1}^{(t)}=1\) and \({o}_{2 \sim M}^{(t)}=0\) as described above. P(n∣π) was a multinominal distribution:
Therefore, the Dirichlet distribution was set as P(π):
where Z is the beta function. The hyperparameter cm was set in the range of − 1 < cm < 0, assuming GMM comprising the dominant component with large \({\hat{\pi }}_{m}\) (i.e., BG signal from cultured cells) and the other minor components with small \({\hat{\pi }}_{m}\) (i.e., FG signal mainly from bacteria) (Supplementary Note 3 and Supplementary Fig. S5). In Eq. (2), cT = − cm/T.
Extraction of the targeted segments
Following the background subtraction processed by the pixels, the masses of pixels (segments) expected to be bacteria were extracted from the binarized images. First, dotted holes were filled by the dilation process, and then noise objects were removed using the erosion process. Next, the segments were screened according to area and aspect ratio based on the bacterial size (5–20 μm in length and ~150 nm in width). The aspect ratio was determined by ellipse fitting, and segments with <2 were excluded from the tracking objects. Migration velocities determined by the background subtraction method developed in this study were consistent with the results obtained by a conventional method, and the robustness of the present method against image quality (contrast and noise) was verified (Supplementary Note 4 and Supplementary Fig. S6).
When bacterial density is high, the overlapping of bacteria increases, and images at the moment of overlap are excluded by Step 4 of Fig. 2. Since the present study targets moving bacteria, the bacterial overlapping is temporary, and thus the tracking data before and after the overlap can be used for the measurement of motility. However, if the density of bacteria is extremely high and they are moving very slowly (the overlapping time is longer than the time limit discussed in Supplementary Fig. S4), the overlapping area could be recognized as background and excluded from the target of measurement. This problem did not occur under the present experimental condition (~1 × 108 bacteria/mL), but care should be taken in experiments using high bacterial densities.
Tracking of bacteria
Data set of object centroids obtained by ellipse fitting were compared to associate the same objects between frames. Consider consecutive frames k containing m objects and k + 1 containing n objects, having a data set of centroids ak,n = (xk,n, yk,n) and ak+1,m = (xk+1,m, yk+1,m), respectively. Calculating the square of distance ∣ak,n − ak+1,m∣2 for n × m pairs, identifying the closest pair as the same bacteria. Swimming and crawling speeds and MSD were obtained from locomotion trajectories of individual bacteria. Speeds were determined by line fitting to accumulative displacements of the bacterial centroids.
Simulation
\(\mathop{\sum }\nolimits_{i=1}^{N}{x}_{i}\) at the (j + 1)th event was stochastically given by determining the bound or unbound state for individual adhesins (i = 1 ~ N) at the jth. Random numbers were generated for each adhesin, and whether the bound adhesin at j gets to the unbound state at j + 1 and vice versa was determined based on kon and koff(x). koff of xi,j depends on vCR at j.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Data availability
The raw tracking data of individual bacterial locomotion have been deposited in figshare with the identifier https://doi.org/10.6084/m9.figshare.24464290. Source data are provided with this paper.
Code availability
The computer codes used for this study have been deposited in GitHub (https://github.com/shuichi-nakamura-e8/Label-free-bacterial-motion-tracking.git).
References
Josenhans, C. & Suerbaum, S. The role of motility as a virulence factor in bacteria. Int. J. Med. Microbiol. 291, 605–614 (2002).
Haiko, J. & Westerlund-Wikström, B. The role of the bacterial flagellum in adhesion and virulence. Biology 2, 1242–1267 (2013).
Guentzel, M. & Berry, L. Motility as a virulence factor for vibrio cholerae. Infect. Immun. 11, 890–897 (1975).
Kearns, D. B. A field guide to bacterial swarming motility. Nat. Rev. Microbiol. 8, 634–644 (2010).
Stevens, J. M., Galyov, E. E. & Stevens, M. P. Actin-dependent movement of bacterial pathogens. Nat. Rev. Microbiol. 4, 91–101 (2006).
Costa, F. et al. Global morbidity and mortality of leptospirosis: a systematic review. PLoS Negl. Trop. Dis. 9, e0003898 (2015).
Bharti, A. R. et al. Leptospirosis: a zoonotic disease of global importance. Lancet Infect. Dis. 3, 757–771 (2003).
Adler, B. & de la Peña Moctezuma, A. Leptospira and leptospirosis. Vet. Microbiol. 140, 287–296 (2010).
Picardeau, M. Virulence of the zoonotic agent of leptospirosis: still terra incognita? Nat. Rev. Microbiol. 15, 297–307 (2017).
Miyahara, S. et al. Destruction of the hepatocyte junction by intercellular invasion of leptospira causes jaundice in a hamster model of Weil’s disease. Int. J. Exp. Pathol. 95, 271–281 (2014).
Nakamura, S. Spirochete flagella and motility. Biomolecules 10, 550 (2020).
Takabe, K., Kawamoto, A., Tahara, H., Kudo, S. & Nakamura, S. Implications of coordinated cell-body rotations for leptospira motility. Biochem. biophys. Res. Commun. 491, 1040–1046 (2017).
Tahara, H. et al. The mechanism of two-phase motility in the spirochete leptospira: swimming and crawling. Sci. Adv. 4, eaar7975 (2018).
Lambert, A. et al. Flaa proteins in leptospira interrogans are essential for motility and virulence but are not required for formation of the flagellum sheath. Infect. Immun. 80, 2019–2025 (2012).
Wunder Jr, E. A. et al. A novel flagellar sheath protein, FCPA, determines filament coiling, translational motility and virulence for the leptospira spirochete. Mol. Microbiol. 101, 457–470 (2016).
Xu, J., Koizumi, N. & Nakamura, S. Crawling motility on the host tissue surfaces is associated with the pathogenicity of the zoonotic spirochete leptospira. Front. Microbiol. 11, 1886 (2020).
Harman, M. W. et al. The heterogeneous motility of the Lyme disease spirochete in gelatin mimics dissemination through tissue. Proc. Natl. Acad. Sci. USA 109, 3059–3064 (2012).
Sebastián, I. et al. Disassembly of the apical junctional complex during the transmigration of leptospira interrogans across polarized renal proximal tubule epithelial cells. Cell. Microbiol. 23, e13343 (2021).
Nakamura, S. Motility of the zoonotic spirochete leptospira: Insight into association with pathogenicity. Int. J. Mol. Sci. 23, 1859 (2022).
Zivkovic, Z. & Van Der Heijden, F. Efficient adaptive density estimation per image pixel for the task of background subtraction. Pattern Recogn. Lett. 27, 773–780 (2006).
Stauffer, C. & Grimson, W. E. L. Adaptive background mixture models for real-time tracking. In Proceedings. 1999 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (Cat. No PR00149) Vol. 2, 246–252 (IEEE, 1999).
Villanueva, S. Y. et al. Serologic and molecular studies of leptospira and leptospirosis among rats in the Philippines. Am. J. Trop. Med. Hyg. 82, 889 (2010).
Kusumi, A., Sako, Y. & Yamamoto, M. Confined lateral diffusion of membrane receptors as studied by single particle tracking (nanovid microscopy). effects of calcium-induced differentiation in cultured epithelial cells. Biophys. J. 65, 2021–2040 (1993).
Wu, M., Roberts, J. W., Kim, S., Koch, D. L. & DeLisa, M. P. Collective bacterial dynamics revealed using a three-dimensional population-scale defocused particle tracking technique. Appl. Environ. Microbiol. 72, 4987–4994 (2006).
Wu, X.-L. & Libchaber, A. Particle diffusion in a quasi-two-dimensional bacterial bath. Phys. Rev. Lett. 84, 3017 (2000).
Gloriani, N. G., Villanueva, S., Yanagihara, Y. & Yoshida, S. et al. Identification of prevalent leptospira serovars infecting water buffaloes, cows, dogs, pigs, and rats in the Philippines. Southeast Asian J. Trop. Med. Public Health 47, 766–73 (2016).
Kokubu, E., Kikuchi, Y., Okamoto-Shibayama, K., Nakamura, S. & Ishihara, K. Crawling motility of Treponema denticola modulated by outer sheath protein. Microbiol. Immunol. 65, 551–558 (2021).
Charon, N. W., Lawrence, C. W. & O’Brien, S. Movement of antibody-coated latex beads attached to the spirochete Leptospira interrogans. Proc. Natl. Acad. Sci. USA 78, 7166–7170 (1981).
Verma, A. et al. Lfha, a novel factor h-binding protein of Leptospira interrogans. Infect. Immun. 74, 2659–2666 (2006).
Matsunaga, J. et al. Pathogenic leptospira species express surface-exposed proteins belonging to the bacterial immunoglobulin superfamily. Mol. Microbiol. 49, 929–946 (2003).
Choy, H. A. et al. Physiological osmotic induction of Leptospira interrogans adhesion: Liga and ligb bind extracellular matrix proteins and fibrinogen. Infect. Immun. 75, 2441–2450 (2007).
Robbins, G. T. et al. Evaluation of cell binding activities of leptospira ecm adhesins. PLoS Negl. Trop. Dis. 9, e0003712 (2015).
Pappas, C. J. & Picardeau, M. Control of gene expression in Leptospira spp. by transcription activator-like effectors demonstrates a potential role for liga and ligb in Leptospira interrogans virulence. Appl. Environ. Microbiol. 81, 7888–7892 (2015).
Magariyama, Y. et al. Simultaneous measurement of bacterial flagellar rotation rate and swimming speed. Biophys. J. 69, 2154–2162 (1995).
Ferenci, T. Trade-off mechanisms shaping the diversity of bacteria. Trends Microbiol. 24, 209–223 (2016).
Colin, R., Ni, B., Laganenka, L. & Sourjik, V. Multiple functions of flagellar motility and chemotaxis in bacterial physiology. FEMS Microbiol. Rev. 45, fuab038 (2021).
Sato, K. & Toda, A. Dynamical stability in the capillary flow of polymer melt: a modeling with statistical stick-slip process. J. Phys. Soc. Japan 68, 77–85 (1999).
Wada, H., Nakane, D. & Chen, H.-Y. Bidirectional bacterial gliding motility powered by the collective transport of cell surface proteins. Phys. Rev. Lett. 111, 248102 (2013).
Nakamura, S., Leshansky, A., Magariyama, Y., Namba, K. & Kudo, S. Direct measurement of helical cell motion of the spirochete leptospira. Biophys. J. 106, 47–54 (2014).
Beeby, M. et al. Diverse high-torque bacterial flagellar motors assemble wider stator rings using a conserved protein scaffold. Proc. Natl. Acad. Sci. USA 113, E1917–E1926 (2016).
Girón, J. A., Torres, A. G., Freer, E. & Kaper, J. B. The flagella of enteropathogenic Escherichia coli mediate adherence to epithelial cells. Mol. Microbiol. 44, 361–379 (2002).
Mahajan, A. et al. An investigation of the expression and adhesin function of h7 flagella in the interaction of Escherichia coli o157: H7 with bovine intestinal epithelium. Cell. Microbiol. 11, 121–137 (2009).
Olsen, J. E. et al. The role of flagella and chemotaxis genes in host pathogen interaction of the host adapted salmonella enterica serovar Dublin compared to the broad host range serovar s. typhimurium. BMC Microbiol. 13, 1–11 (2013).
Zhang, F. et al. Rapid antimicrobial susceptibility testing on clinical urine samples by video-based object scattering intensity detection. Anal. Chem. 93, 7011–7021 (2021).
Koizumi, N. & Picardeau, M. Leptospira spp (Springer, 2020).
Faine, S., Adler, B., Bolin, C. & Perolat, P. Leptospira and leptospirosis, 2nd Edition. (MediSci Press, 1999).
Demarre, G. et al. A new family of mobilizable suicide plasmids based on broad host range r388 plasmid (incw) and rp4 plasmid (incpα) conjugative machineries and their cognate Escherichia coli host strains. Res. Microbiol. 156, 245–255 (2005).
Slamti, L. & Picardeau, M. Construction of a library of random mutants in the spirochete Leptospira biflexa using a mariner transposon. In Mobile Genetic Elements, (ed. Bigot, Y.) 169–176 (Springer, 2012). https://link.springer.com/book/10.1007/978-1-61779-603-6.
Koizumi, N. & Watanabe, H. Leptospiral immunoglobulin-like proteins elicit protective immunity. Vaccine 22, 1545–1552 (2004).
Acknowledgements
We thank Dr. J. Xu (University of the Ryukyus) for his technical support and Dr. S. Toyabe (Tohoku University) for the insightful discussion. This work was supported by the JSPS KAKENHI: 21H02727 for S.N. and 19K07571 and 22K07062 for N.K.
Author information
Authors and Affiliations
Contributions
K.A., N.K., and S.N. planned the project and wrote the manuscript. K.A., N.K., and S.N. carried out the experiments and data analysis. K.A. and S.N. set up the optical system. K.A. made programs for data analysis. All authors contributed to the article and approved the submitted version.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Communications thanks Shaopeng Wang and the other, anonymous, reviewers for their contribution to the peer review of this work. A peer review file is available.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Source data
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Abe, K., Koizumi, N. & Nakamura, S. Machine learning-based motion tracking reveals an inverse correlation between adhesivity and surface motility of the leptospirosis spirochete. Nat Commun 14, 7703 (2023). https://doi.org/10.1038/s41467-023-43366-0
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41467-023-43366-0
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.