Save
Download PDF

ABSTRACT

Mean squared displacement is a standard biophysical tool for characterizing the motion of particles in a thermally dominated environment, yet it is rarely formally introduced or discussed in undergraduate curriculum. Here, we provide a flexible and adaptable experimental or computational lab activity that provides a practical introduction to mean squared displacement and anomalous diffusion that includes optional experimental protocols and computational simulation techniques for data collection and discusses a variety of analysis techniques. This lab activity has been implemented both face-to-face and completely online and provides crucial experience in important research techniques, helping to bridge traditional undergraduate curriculum and modern biophysics research.

Keywords: Brownian motion; mean squared displacement; anomalous diffusion; laboratory exercises

I. INTRODUCTION

Numerically averaging data to extract meaningful physical parameters is a fundamental process in quantitative science, yet it is often taken for granted. Because of the explosion of single-particle tracking experiments and automated high-throughput microscopy, mean squared displacement (MSD) has become a standard measurement across a wide range of biophysical disciplines (1). Despite its ubiquity in biophysics research, undergraduate students are rarely formally introduced to MSD or the practical aspects of the calculation. Here, we present a flexible experimental or computational laboratory exercise that we believe fills a critical gap in undergraduate biophysics education and will better prepare the next generation of biophysicists for the challenges and rigor of interdisciplinary experimental science.

Mean squared displacement was first theoretically described by Albert Einstein in one of his 4 infamous Annus mirabilis publications of 1905 (2, 3). Nearly a century earlier, Robert Brown observed that small pollen particles suspended in water jiggle around randomly in space, a phenomenon now aptly referred to as Brownian motion, but was unable to determine the source of the motion (4). Einstein's theory connected the thermal motion of the molecules in the surrounding fluid to the Brownian motion of the pollen: the pollen particles are constantly being bombarded by fast-moving water molecules traveling in random directions. Although we cannot directly observe the motion of the water molecules, the motion of the pollen provides insight into the surrounding fluid environment. This work provided a theoretical prediction for Jean Baptiste Perrin to verify experimentally, effectively proving the still controversial atomic theory of matter (5).

A particle undergoing Brownian motion tends to travel away from its initial position, a process called diffusion. Einstein showed that the average squared distance a diffusing particle travels in 1 dimension is directly proportional to time, (x(t)x(0))2=2Dt, where the constant D is referred to as the diffusion constant of the particle, which depends on the size and shape of the object as well as material properties of the surrounding medium. Note that the factor of 2 applies to 1-dimensional diffusion; 2- and 3-dimensional diffusion have the same time dependence, but instead include factors of 4 and 6, respectively.

Einstein's theory relies on the Brownian motion of the particle being truly random: the motion at any time point should be completely uncorrelated with any previous motion. In contrast, if we consider a particle undergoing motion at a constant velocity, where at each point in time the particle is traveling at the same speed and in the same direction as the prior time point, its equation of motion would be x(t) = vt + x0, and the MSD would instead be proportional to the squared time.

Since Einstein's seminal work, it has been shown that there is essentially a continuous spectrum of MSD behavior, (x(t)x(0))2tα, where the value of α provides information about the physical environment of the particle. An α = 1 represents pure diffusion, α = 2 represents ballistic motion (constant velocity), and fractional values are generally referred to as anomalous or non-Brownian diffusion (6, 7).

Anomalous diffusion typically arises from a diffusing particle interacting with its local environment in a nonrandom or correlated manner. For instance, proteins diffusing in both prokaryotic and eukaryotic cells exhibit subdiffusive motion (α ∼ 0.7) because of viscoelastic properties of the cytoplasm that lead to anticorrelated motion (810). A number of biological systems exhibit subdiffusive motion (α < 1) because of similar mechanisms (e.g., bacterial plasmids and chromosomal loci [α ∼ 0.4] and eukaryotic cytoskeletal networks [α ∼ 0.7]) (1114). Some biological systems exhibit superdiffusive motion α > 1, typically associated with active transport (e.g., cargo carried by molecular motors) (15).

Many different physical processes can lead to anomalous diffusion (e.g., viscoelasticity, memory, short-timescale binding events, molecular crowding) that result in different values of the exponent α (14). Thus, one of the most powerful biological applications of MSD measurements is analyzing the motion of a probe particle in vivo. By experimentally determining the functional form of the MSD we can elucidate mechanical details about the physical environment of the diffusing particle that are otherwise inaccessible (Fig 1).

Fig 1Fig 1Fig 1
Fig 1 Many biological systems exhibit anomalous diffusion, where the mean squared displacement is nonlinear in time. Chromosomal loci and cytoplasmic proteins in bacteria are subdiffusive (α < 1), whereas molecular motors and other active transport are superdiffusive (α > 1), leading to variations in the functional form of the mean squared displacement. Note that figure is not to scale.

Citation: The Biophysicist 2, 1; 10.35459/tbp.2020.000157

Although popular undergraduate biophysics textbooks introduce the concepts of diffusion and MSD, most do not discuss the practical aspects of calculating MSD with the use of a variety of experimental data (16, 17). A number of laboratory exercises on characterizing diffusive systems have been described (1823), but our goal here is to provide a laboratory exercise to introduce upper-level undergraduates to MSD that is flexible, modular, and applicable to a variety of institutions, departments, and teaching modalities. In our version of the exercise we focus our analysis on one practical consideration of MSD, ergodicity, in which averaging can either be taken over a single trajectory (time averaging) or as an average over many independent trajectories (ensemble averaging) (24, 25). For purely diffusive systems, the choice to perform either averaging method is typically determined by the practical limitations of the experiment. But, systems that exhibit anomalous diffusion tend to be non-ergodic; therefore, differences between averaging methods can be another indicator of anomalous behavior (24). Thus, our version of this exercise exploits MSD to focus less on calculating specific numbers and more on answering the question: Is the system purely diffusive or not?

The first implementation of this exercise was designed to be a standalone lab in our Experimental Biophysics course to be completed over three, 3-h meetings with 3-4 students (predominantly physics majors) working together in lab groups, with students submitting individual 4–6-page lab reports. Because of COVID-19 restrictions, the second implementation was employed completely online, with students performing particle tracking and data analysis on their personal computers asynchronously. Our institution offers 2 undergraduate courses in biophysics, Computational Biophysics and Experimental Biophysics, but this exercise could be performed in any computationally intensive upper-division course (e.g., computational physics, advanced lab).

Here, we include methods for data collection with micron-scale (μm) beads in inexpensive custom-made microchambers, open-source code for creating simulated particle trajectories, and preproduced simulated particle trajectories. We also include lesson plans for data analysis with both open-source code as well as instructions for spreadsheet processing depending on the intended level of instruction.

II. SCIENTIFIC AND PEDAGOGICAL BACKGROUND

The mean squared displacement of a particle confined to move in 1 dimension is defined as 〈(x(t) − x(0))2〉, where the angle brackets represent the arithmetic mean of a set of uncorrelated trajectories. For a particle undergoing pure diffusion, the MSD is proportional to time, 〈(x(t) − x(0))2〉 = 2Dt, where D is the diffusion constant of the particle.

A. Random walk model

The diffusion of small particles is well modeled by a random walk, where the trajectory of a particle can be approximated as a set of uncorrelated steps in random directions. To understand the source of linear time dependence in a diffusive MSD, we summarize the classic approach of Howard Berg (26): we can define the position of a particle undergoing 1-dimensional diffusion as: x(n+1)=x(n)+Pd, where n represents the number of steps, d represents the step size, and P is randomly chosen as either +1 or −1. If we now consider a set of N trajectories, we can take the mean position at (n + 1) as 1Ni=1Nx(n+1)=1Ni=1N(x(n)+Pid) 1Ni=1Nx(n+1)=1Ni=1Nx(n)+1Ni=1NPid because Pi has equal probability of being +1 or −1. As N gets large the last term sums to zero, and we can see that the mean position of the particles does not evolve in time; that is, x(n+1)=x(n). Therefore, if all our particles start at x = 0, the mean position of all trajectories will remain constant (i.e., 〈 x(t)〉 = 0). If we now consider the squared position of our particle, x2(n+1)=(x(n)+Pd)2=x2(n)+P2d2+2Pdx(n), and again take the arithmetic mean of N trajectories, 1Ni=1Nx2(n+1)=1Ni=1Nx2(n)+1Ni=1NPi2d2+1Ni=1N2Pdx(n), the last term is again linear in P and should sum to zero, but now we are left with x2(n+1)x2(n)=1N(Nd2)=d2.

So we see that each successive step is a distance d away from the previous step, which in hindsight is an assumption of our model. At each successive step, we add another d2 such that after N steps, x2(N)x2(0)=Nd2.

If we assume that we take a constant number of steps per unit time, we can rewrite our MSD as (x(t)x(0))2Dt, where we define D roughly as the square of the average step size per unit time.

B. Binomial distribution and Fick's law

For a more advanced introduction to diffusion, instructors may want to discuss the continuous limit of our random stepping model. We again suggest Berg (26) as an excellent reference, but for completeness we will again summarize his approach. The most straightforward extension of the random stepping model is to represent the position of our random walker using a binomial distribution, where the probability of taking exactly L steps to the left after N random steps is p(L,N)=N!L!(NL)!(1/2)N.

The total number of steps away from the origin (S) is just the number of steps to the left minus the number of steps to the right, which we can represent as (NL), such that S(L,N)=(L(NL))=(2LN). Thus, but substituting S into our probability function, we have p(S,N)=N!(S+N2)!(SN2)!(1/2)N.

For typical experimental conditions in which the random movement of particles is driven by thermal fluctuations (e.g., tracking a protein in a cell), we assume our walker takes a large number of very small steps during our observations. In this limit, we assume N to be very large, and because we have equal probability of taking a step to the left or right, we will also assume that the net number of steps from the origin (S) is much smaller than the total number of steps taken. Using these 2 approximations, we can make use of Stirling's approximation to simplify the factorials and a Taylor expansion of the resulting logarithms (a useful exercise) to derive the ubiquitous Gaussian (normal) distribution, p(S,N)dS=1(2πN)1/2exp(S2/2N)dS, which represents the probability of finding our random walker in a region of space between S and S + dS. We can now repeat a similar approach as the last section by defining a time step τ, such that the number of steps N = t/τ, and a step size d, such that the distance from the origin is x = Sd. By substituting our expression for x and defining a new constant D = d2/2τ, we arrive at the classic probability distribution for a 1-dimensional diffusing particle, p(x,t)dx=1(4πDt)1/2exp((xx0)2/4Dt)dx, where we have generalized the initial position of the particle as x0. For any function f(x, t), the average value, or expectation value, of that function in time is given by f(x)=f(x)p(x,t)dt. Thus, the average value for the function f(x, t) = (x(t) − x0)2 is given by (x(t)x0)2=(x(t)x0)2p(x,t)dt=2Dt.

A useful extension of this derivation for advanced students is to show by direct substitution that our probability density function p(x, t) for a diffusing particle in 1 dimension is also a solution to Fick's law: p(x,t)t=D2p(x,t)x2.

III. MATERIALS AND METHODS

Our aim is that this exercise is flexible and modular such that it can be implemented in a variety of different environments and modalities. The learning objectives for our face-to-face version of this exercise focus primarily on developing and applying experimental skills and analysis techniques applicable to modern biophysical research. These include literature review, sample preparation, microscopy, automated image analysis, and data analysis. An instructor of a more theoretical course may want to instead focus more on the scientific background of MSD, whereas an instructor of a computationally intensive course may want to focus more on simulation techniques or advanced statistical analysis. Furthermore, to make this exercise as accessible and equitable as possible, all of our protocols make use of freely available, open-source software. We also provide sample simulation and analysis programs, as well as prepackaged data as Supplemental Material.

A. Data collection

To make this exercise accessible to a range of educational environments with a variety of time and equipment commitment, we provide 3 options for data collection in descending order of investment: tracking micron-sized bead diffusion by microscopy, simulating particle trajectories by molecular dynamics, and a spreadsheet of prepackaged trajectories ready for analysis.

1. Bead microscopy

The richest version of this exercise includes collecting data of real diffusing particles because it requires the student to make decisions about practical aspects of experimental science (e.g., how many trajectories to collect, how long each trajectory should be), as well as address the limitations of the data itself (e.g., beads traveling in and out of focus). The following protocol is specific for our implementation of this exercise but can be easily modified for any high-magnification optical microscope equipped with a high-resolution digital camera. Note that in this implementation, data was collected by groups of 3 students over two, 3-h lab sessions.

Custom-made microchambers are constructed by placing 2 pieces of clear double-stick tape lengthwise on a standard microscope slide spaced approximately 1–2 mm away from each other. A standard 22 × 22-mm coverslip is placed on top of the tape, forming an open-ended channel with a volume of approximately 10 μL. A solution of suspended micron-sized silica beads can be pipetted through the channel by capillary action (Thorlabs, Newton, NJ; catalog OTKBTK), and each end can be sealed with nail polish or VALP, a heated wax mixture equal parts by weight of Vaseline (petroleum jelly), lanolin, and paraffin. A diagram of the slide design is included in Supplemental Figure S1. Note that tracking efficiency can be increased by the use of fluorescent beads (Thermo Fisher, Waltham, MA; catalog F13839), but they are not required. A variety of microscope control software and particle tracking tools are available, but in our implementation, time series images were collected by the open-source microscopy software μManager, version 1.4 (27, 28) and particle trajectories were created using the open-source particle tracking software TrackMate, version 4.0.0 (29) implemented through the open-source image-processing package Fiji (30). The frame rate and total number of frames are determined by the students and limited by the available computer memory, but typical data is on the order of 1 frame per second for at least 100 seconds.

2. Simulated particle trajectories

An alternative version of this activity that provides equally valuable experience as gathering empirical data is producing particle trajectories by a simple random walk computational simulation. If time permits, we suggest acquiring both experimental and simulated trajectories to expose students to the important practical process of extracting relevant physical parameters (e.g., the diffusion constant) from simulations and comparing them with experimental data.

Numerous platforms and languages can be used to produce random walk trajectories, including spreadsheet programs; therefore, we begin by outlining the general simulation approach in a way that can be applied to a number of different programming environments. We also include a set of GNU Octave, version 4.4.1 (31) scripts (compatible with MATLAB) that produce particle trajectories, as well as a set of preproduced trajectories as Supplemental Material.

An individual particle trajectory is simulated by a recursive Langevin dynamics approach, x(t+δt)=x(t)+ξ(2Dδt)1/2, where D is the diffusion constant, δt is the simulation timestep, and ξ is a random number pulled from a normal distribution with mean 0 and variance 1. The simulation units are determined by the choice of both D and δt (e.g., if the simulated particle has a known diffusion constant of 1 μm2/s, a choice of D = 1 and δt = 1 would give a timestep of 1 second and a distance unit of microns). To simulate higher dimensional motion, the recipe is the same, except that the random displacements in each direction should be uncorrelated, such that at each time step is x(t+δt)=x(t)+ξx(2Dδt)1/2y(t+δt)=y(t)+ξy(2Dδt)1/2z(t+δt)=z(t)+ξz(2Dδt)1/2r(t+δt)=x(t+δt)i^+y(t+δt)j^+z(t+δt)k^.

Because a significant amount of cellular-scale transport relies on biasing diffusive motion [e.g., molecular motors (32) and DNA partitioning (12, 33)], an extremely useful and relevant extension of the simulation is to introduce some bias in the motion and further characterize the resulting MSD. Bias can be introduced by either adding a constant velocity term to the recursive relation (i.e., vδt) or by pulling ξ from a normal distribution with a nonzero mean.

IV. DATA ANALYSIS

A. Visualizing mean squared displacement

The first task we have our students perform after data collection is to plot all the trajectories on a single plot (Fig 2). Because this lab occurs in an upper-division course at our institution, we have our students plot in the open-source scientific programing language GNU Octave (31), which is compatible with the widely used proprietary software Matlab, but these plots can also be easily made in any spreadsheet software (e.g., Excel, Open Office, Google Sheets). By plotting the trajectories on a single graph, fundamental properties of the average displacement for an ensemble of tracks (e.g., zero mean and nonzero squared mean) can be easily visualized. A valuable extension of this exercise is also to plot a small number of tracks (N < 5) to demonstrate the variability in the data and the necessity of analyzing enough data to produce a meaningful average (Fig 2, inset).

Fig 2Fig 2Fig 2
Fig 2 The displacement trajectories of 150 different simulated beads by ensembleRun is plotted above. The full distribution of tracks exhibits zero mean displacement with a width of approximately (2Dt)1/2 symmetric about the mean. The inset shows a nonzero mean displacement for a small number of trajectories, demonstrating the practical necessity of carefully considering the number of independent trajectories used in mean squared displacement analysis.

Citation: The Biophysicist 2, 1; 10.35459/tbp.2020.000157

B. Computing mean squared displacement

The next task for our students is to determine the mean squared displacement MSD(t) = 〈(x(t) − x(0))2〉, where the average should be taken over a set of uncorrelated trajectories. Typically an experiment will either produce a large set of uncorrelated trajectories by default (e.g., tracking the diffusion of many fluorescent beads in a single field of view) or produce a small set of long trajectories (e.g., the motion of a fluorescently tagged protein in a cell).

In the prior case, which we refer to as the ensemble method, computing the MSD is relatively straightforward. The process can be performed in a number of ways, but here we give a procedure for finding the MSD with a simple spreadsheet program by importing the trajectory data as columns on a spreadsheet. For each column (trajectory), subtract the value of the first time point from all successive time points and then square all of the values in the column. This should be the squared displacement for each trajectory. To compute the average at each time point [e.g., MSD(t)], simply average over all the rows at that time point, producing a new column of data, the MSD(t). Additional statistical parameters can be calculated at this point as well (e.g., the variance, standard deviation, and standard error), if applicable to the lesson. An example GNU Octave (31) script for calculating the ensemble MSD is included as Supplemental Material.

The latter case, which we refer to as the time-average method, is qualitatively straightforward but computationally more difficult than the ensemble method. The basic approach is to break a longer single trajectory of time duration N into many individual, nonoverlapping subtracks of length Δt. For each subtrack, the squared displacement from the final position to the initial position can be calculated, and then the MSD(Δt) for that particular time value is the average value of the displacement for all of the subtracks. The process is then repeated for a new set of nonoverlapping tracks of length (t + 1), and so on until the trajectory can no longer be split into independent overlapping tracks (t/N < 2).

Because the single trajectory is being cut into nonoverlapping pieces, the number of independent trajectories used for averaging drops precipitously with increasing window size, drastically increasing the standard error. To mitigate this effect, Qian et al. (34) developed an analysis method that allows for splitting single trajectories into overlapping, and thus correlated, subtrajectories. In this approach, referred to as the sliding window averaging method, the trajectory is again split into tracks of length Δt, but now the first track is from (t0t0 + Δt), the second track from (t1t1 + Δt), and so on. Just as before, the squared displacement for each subtrack is calculated, and the average is the MSD(Δt) for that window size. Although the sliding window method drastically increases the number of subtrajectories used in the average, the correlation between subtrajectories becomes an issue as the window size increases. As the window size approaches the length of the total trajectory, the squared displacements become nearly identical because the first and last points of each subtrajectory are very near each other, and thus the average is no longer meaningful. To account for correlated tracks, Qian et al. (34) modified the standard error to SE=2Dt[2t2+13t(Nt+1)]1/2, where N is again the total number of time points in the track. A representation of the process for creating uncorrelated single tracks, as well as correlated sliding window tracks, is shown in Figure 3. An example of a GNU Octave (31) script for calculating both the uncorrelated time average and sliding window MSDs is included as Supplemental Material.

Fig 3Fig 3Fig 3
Fig 3 Visualizing the time average and sliding window methods for a single trajectory (center). The larger green box encloses 1 of 3 uncorrelated tracks used in the time average method shown above the single trajectory. The smaller orange box represents one of the many correlated tracks used in the sliding window method shown below the main trajectory.

Citation: The Biophysicist 2, 1; 10.35459/tbp.2020.000157

C. Fitting mean squared displacement

The final set of analysis that we have our students perform is fitting their MSD functions, calculating relevant statistics, and testing for ergodicity. To first order, if their trajectories are purely diffusive and uncorrelated, their data should be well modeled by a proportional fit, where the slope of the line is proportional to the diffusion constant. The Stokes-Einstein equation, D=kbT6πηR, famously relates the diffusion constant of a spherical particle of radius R to the thermodynamic energy (kbT) dissipated by friction because of the viscous diffusive medium (dynamic viscosity η). By calculating the empirical value of the diffusion coefficient from MSD data, students can compare their results to a theoretical value for a known particle size or determine physical properties of the system (e.g., temperature, viscosity). If the trajectories are created through simulations, similar learning objectives could be achieved by adjusting parameters in the track simulations and measuring the effects. A more advanced or computationally intensive implementation of this lab could include an expanded error analysis of the diffusion constant or more statistically advanced methods for determining the diffusion constant (e.g., maximum likelihood estimates), described thoroughly in the literature (3537).

If the particles are undergoing pure diffusion, where each time step is completely uncorrelated, the process should be ergodic, and either time averaging a single track or ensemble averaging a set of tracks should provide the same diffusion coefficient. However, a practical consideration must be addressed in any experimental design: the statistical significance of the mean. In most cases, the primary consideration is the amount of data for a given interval of time. For ensemble averaging, we always have the same number of data points to average, and thus the standard error grows linearly. For single-track averaging, though, the number of data points diminishes with increased window size. For small time intervals, the single track may have a lower standard error than the ensemble (Fig 4A), whereas for long intervals, the ensemble will win, as seen in the inset of Figure 4A. The correlated time steps used in the sliding window method can reduce the standard error of a long track at smaller time steps, as seen in Figure 4B; however, the corrected standard error grows rapidly at larger time steps (Fig 4B, inset). Therefore, if one is interested in exploring short-timescale dynamics, an experiment should be designed to capture a small number of long trajectories, whereas a large number of shorter trajectories is more appropriate for long-timescale investigations.

Fig 4Fig 4Fig 4
Fig 4 (A) The mean squared displacement (MSD) for the sliding window average (orange) and ensemble average (blue) methods. At smaller time intervals the sliding window method has significantly smaller standard error, whereas for larger time intervals the ensemble method has lower standard error because of correlation in the sliding window method. (B) MSD for the sliding window average (orange) and the uncorrelated time average (red) methods. Again, the sliding window is less noisy at short time intervals but its standard error grows dramatically with increasing time intervals because of strong correlations.

Citation: The Biophysicist 2, 1; 10.35459/tbp.2020.000157

V. RESULTS AND DISCUSSION

We have employed this lab twice in our Experimental Biophysics lab course in 2 different modalities: face-to-face and completely online (because of COVID-19 restrictions). In the face-to-face version, students prepared slides and took data during the first 3-hour lab session, took additional data and began analysis in the second session, and completed analysis in the final session. In the online version, students were provided movie files of diffusing beads and performed particle tracking and analysis on their own computers asynchronously over a 3-week period. The use of free, open-source software was especially important to provide an equitable online learning environment. While lab groups and online discussion boards were facilitated through our learning management system (Canvas), the majority of students appeared to have completed the exercise alone.

The most challenging component of the lab for students is the computational analysis, specifically the time-averaged (sliding window) method for determining the MSD from a single trajectory. This is due to both conceptual misunderstanding and the computational challenge. In both teaching modalities, we initially provided little detail on how to calculate the averages, relying on the students to perform background literature review, which is a primary learning outcome of the course. This approach worked much better in the face-to-face version, where analysis was performed in the lab under instructor supervision, than in the online version, where analysis was performed individually and asynchronously. Because the primary goal of our version of the exercise was to verify ergodicity, the inconsistencies in time average analysis caused many students to arrive at the wrong conclusions. In whatever modality we employ this exercise next, we plan on providing more detailed instructions on how to compute the averages to alleviate student confusion and frustration and ensure that they arrive at the correct conclusions.

VI. CONCLUSION

Because of the relatively young age and broad skillset of the field of biophysics, many of the standard research techniques used in graduate school and beyond have yet to be formally integrated into the undergraduate curriculum. Mean squared displacement has become a ubiquitous tool for characterizing biological systems, especially since the advent of fluorescence microscopy and sophisticated particle tracking algorithms. We believe that this flexible and adaptable activity can be successfully implemented in upper-division undergraduate courses across multiple disciplines and modalities, including courses that do not have a biological focus. The concepts discussed and skills gained are applicable to a broad range of science, technology, engineering, and math careers and will help the next generation of biophysicists be more prepared for our dynamic and rapidly expanding field.

  • Download PDF
Copyright: © 2021 Biophysical Society.