COS 126

The Atomic Nature of Matter
Programming Assignment

Due: Wednesday, 11:59pm

Under major construction.

Re-affirm the atomic nature of matter by tracking the motion of particles undergoing Brownian motion, fitting this data to Einstein's model, and estimating Avogadro's number.

Historical perspective. Reference. The atom plays a central role in 20th century physics and chemistry, but prior to 1908 the reality of atoms and molecules was not universally accepted. In 1827, the botanist Robert Brown observed the random erratic motion of wildflower pollen grains immersed in water using a microscope. This motion would later become known as Brownian motion. Einstein hypothesized that this Brownian motion was the result of millions of tiny water molecules colliding with the larger pollen grain particles. (demo) In one of his "miraculous year" (1905) papers, Einstein formulated a quantitative theory of Brownian motion in an attempt to justify the "existence of atoms of definite finite size." His theory provided experimentalists with a method to count molecules with an ordinary microscope by observing their collective effect on a larger immersed particle. In 1908 Jean Baptiste Perrin used the recently invented ultramicroscope to experimentally validate Einstein's kinetic theory of Brownian motion, thereby providing the first direct evidence supporting the atomic nature of matter. For this work, Perrin won the 1926 Nobel Prize in physics.

The problem. In this assignment, you will redo a version of Perrin's experiment. Your task is greatly simplified because with modern video and computer technology (in conjunction with your programming skills), it is possible to accurately measure and track the motion of an immersed particle undergoing Brownian motion. We supply video microscopy data of polystyrene spheres ("beads") suspended in water, undergoing Brownian motion. Your task is to write a program to analyze this data, determine how much each bead moves between observations, fit this data to Einstein's model, and estimate Avogadro's number.

The data.  Each dataset contains a sequence of 640-by-480 gray-scale JPEG images of beads immersed in water. The data was acquired by William Ryu using fluorescent imaging. Here is a movie of several beads undergoing Brownian motion. A typical raw image is shown below.

frame of polystyrene spheres immmersed in water

Each image shows a two-dimensional cross section of a microscope slide at a depth of 50 microns. The beads move in and out of the microscope's field of view. Beads also move in the z-direction, so they can move in and out of the microscope's depth of focus; this results in halos and can also result in beads disappearing from the image. Here are some key parameters.

Particle identification. The first challenge is to identify the beads amidst the noisy data. Each image 640-by-480 pixels, and each pixel is colored a shade of gray from 0 to 255. Lighter pixels correspond to beads (foreground) and darker particles to water (background). We break the problem into two independent pieces: (i) classifying the pixels as foreground or background, and (ii) finding the disc-shaped clumps of foreground pixels that comprise each bead.

Particle tracking. The second step is to determine how far a bead moved from one time step to the next. We assume the data is such that each bead moves a relatively small amount, and that two beads do not collide. (However, we must account for the possibility that the bead disappears from the frame, either by departing the microscope's field of view in the x or y direction, or moving out of the microscope's depth of focus in the z direction.) Thus, for each bead at time t + Δt, we calculate the closest bead at time t (in Euclidean distance) and identify these two as the same beads. However, if the distance is too large (greater than XYZ) we assume that one of the beads has either just begun or ended its journey. We record the displacement that each bead travels in the Δt units of time.

Data analysis. Einstein theory of Brownian motion connects macroscopic properties (radius, diffusivity) of the beads to microscopic properties (temperature, viscosity) of the fluid in which the beads are immersed. This theory enables us to estimate Avogadro's number with an ordinary microscope by observing the collective effect of millions of water molecules on the beads.


This assignment was created by David Botstein, Tamara Broderick, Daniel Marlow, William Ryu, and Kevin Wayne.
Copyright © 2004