Beads above cultured airway cells can move in different directions yet follow a predictable pattern
You are reading version 1. Read the latest version (2).
Why it matters
In airway cells grown from two people with DNAH11-related ciliary dyskinesia, nearby particles moved in locally predictable directions even though motion across the whole view was poorly aligned. A disordered-looking flow can therefore retain some local organization. These brief laboratory recordings do not show how well a person clears mucus.
Beating cilia, the microscopic projections that help clear the airways, move fluid and the particles suspended in it. In primary ciliary dyskinesia (PCD), an inherited disorder, cilia can still beat while particles above the cells appear to move in disarray. That leaves a question about how much coordination the cells retain: does the flow at each spot keep changing direction, or do different spots have steady flows pointing different ways?
In two microscope fields from different donors, early particle motion helped predict the direction particles would move nearby seconds later, even though directions across the field were weakly aligned. Both donors had PCD associated with DNAH11, a gene that encodes part of the motor that drives ciliary beating. One of the two fields came from a set of 12 recordings selected for a prespecified directional test. In that field, accounting for local motion reduced error in predicted velocity by 12.44% and reduced a measure of directional error from 0.502 to 0.340. Other recordings from people with the same form of PCD showed little or no such predictability.
Measuring local flow
Hadas and colleagues tracked fluorescent microspheres above cultured airway cells from 14 people with PCD and 10 healthy donors. Their CiliaTracks analysis used particle speed, the tendency of individual paths to maintain a direction, and the spread of directions to distinguish affected from unaffected cultures. They described rapid ciliary beating but disorganized particle transport in DNAH11-associated cultures. [1] Studies of normal airway tissue and cultures have shown that flow varies from place to place and that this variation matters for transport. [2,3] Pooling particle directions across a field obscures that variation.
We compared two ways of predicting the velocity of a particle late in a recording from the motion of other particles early in the same recording. The broad predictor allowed a uniform flow plus linear changes in velocity across the image. The local predictor also accounted for how much early velocities near the target location differed from that broad flow. Early observations covered approximately the first 1.5 seconds and late observations the final 1.45 seconds, with a 1.5-second gap. We divided tracks by their identifiers and used each group in turn to predict motion in the other. Each late track whose velocity we predicted is called a target. Its early neighbors had different track identifiers, and their path centers had to be at least 75 pixels (approximately 50 µm) from its path center, measured within the respective time windows.
A velocity vector includes speed as well as direction. Local information can improve a velocity prediction simply because particles move faster in some places, even if they all head the same way. We therefore scored predictions twice. Vector error measures the distance between predicted and observed velocities. Angular loss measures only the difference in direction: one minus the cosine of the angle between prediction and observation. It is zero for a correct direction, one for a perpendicular direction and two for the opposite direction. To score direction, we required at least three pixels of fitted movement in the late window.
We measured alignment across each field by its polarization: the length of the sum of all eligible late velocity vectors divided by the sum of their lengths. Polarization is one when all particles move in the same direction and approaches zero when their velocities cancel.
Results
Directional prediction in weakly aligned fields
The analysis covered 40 recordings with 39,106,667 particle positions. The initial sample contained 28 recordings: two from each of four DNAH11 donors and one from each of the other 20 donors. A further 12 DNAH11 recordings served as an internal validation sample. The directional test was exploratory in the initial sample and fixed before examination of the validation trajectories. We kept all selected fields, including those with few eligible particles or worse local predictions.
In the initial sample, recording Rep101 from donor WUPCD185_DNAH11 had weak overall alignment (polarization 0.263). Local information reduced vector error by 15.21% and angular loss from 0.519 to 0.237. In the validation sample, Rep66 from donor DNAH11_PCD133 had polarization 0.437. Local information improved both predictions there too (Table 1). In both fields, the advantage held whichever group of tracks supplied the early velocities.
Table 1. Predictions with and without local information. Rep101 and Rep66 illustrate directional prediction; in Rep50 the gain came mainly from predicting speed. Polarization includes all eligible late tracks. Predictions require enough early neighbors. Vector error includes all such targets, and angular loss includes only moving targets (at least three pixels of fitted movement). Each of the two splits by track identifier contributes equally to the reported errors.
| Recording | Sample | Polarization | Vector-error reduction | Angular loss, broad → local | Moving / all targets |
|---|---|---|---|---|---|
| Rep101 | Initial | 0.263 | 15.21% | 0.519 → 0.237 | 66 / 72 |
| Rep66 | Validation | 0.437 | 12.44% | 0.502 → 0.340 | 73 / 104 |
| Rep50 | Initial; speed contrast | 0.818 | 18.91% | 0.179 → 0.179 | 61 / 70 |
For validation we defined weak alignment as polarization below 0.5 and required at least ten moving targets in each split. Of the 12 validation recordings, only Rep66 met those criteria and showed better prediction of both velocity and direction. These thresholds describe the flow pattern of interest; they neither classify disease nor test statistical significance.
Shared image motion and fragmented tracks
A shift of the whole image could make particles appear to move together. We estimated the displacement shared by tracked particles at each frame and subtracted its cumulative effect. Vector error still fell by 15.31% with local prediction in Rep101 and by 12.22% in Rep66. After subtraction, polarization was 0.056 in Rep101 and 0.245 in Rep66. Angular loss fell from 0.564 to 0.319 in Rep101 and from 0.669 to 0.362 in Rep66.
If tracking breaks one particle path into fragments, different identifiers can refer to the same particle. We repeated the predictions after excluding every training path that passed within 75 pixels of any recorded position on the target path, even at a different time. Applying this rule to both the local neighborhood and the broad flow fit retained 71 of 72 targets in Rep101 and all 104 in Rep66. Vector error fell by 15.41% and 13.23%, respectively. The local predictor retained its directional advantage even when we combined this full-path separation rule with subtraction of shared motion (Table 2).
Table 2. Predictions after separating entire particle paths. For each target, the broad fit uses only training paths that satisfy the separation rule. Subtracting common motion changes fitted displacement and can change which targets qualify as moving.
| Recording | Challenge | Vector-error reduction | Angular loss, broad → local | Moving / all targets |
|---|---|---|---|---|
| Rep101 | Full-path separation | 15.41% | 0.531 → 0.239 | 65 / 71 |
| Rep101 | Common-motion subtraction + full-path separation | 15.50% | 0.611 → 0.320 | 59 / 71 |
| Rep66 | Full-path separation | 13.23% | 0.542 → 0.342 | 73 / 104 |
| Rep66 | Common-motion subtraction + full-path separation | 13.02% | 0.699 → 0.364 | 71 / 104 |
Selecting high-quality tracks without jumps separately in each time window, rather than filtering on quality and maximum speed over the whole recording, preserved vector gains of 14.38% in Rep101 and 18.31% in Rep66. Thus the advantage persisted when later tracking quality played no part in selecting early tracks. We also shuffled the local deviations from broad flow among the early track locations. Rep101's vector gain exceeded all 199 shuffled gains in each split. Rep66's exceeded 198 of 199 in one split and all 199 in the other, indicating that the locations carried information.
Differences among fields and donors
In Rep50, from the same donor as Rep66, local information gave the largest initial DNAH11 vector gain (18.91%) but almost no change in angular loss (Table 1). Directions already aligned strongly across the field (polarization 0.818). Adjusting velocity only along the broad predictor's direction nearly matched the full local predictor.
With full-path separation, Rep50's gain fell to 12.47%. But even without the separation rule, the gain was only 12.22% when calculated on those same retained targets. Much of the apparent decline reflected which targets remained.
Figure 1 shows all 20 DNAH11 fields in the two samples. In all four validation fields from donor DNAH11_PCD128, local prediction increased vector error. Rep102 had low polarization (0.479) and an 8.06% vector gain but no angular improvement. Rep108 showed better prediction of both velocity and direction, but its polarization of 0.613 exceeded the weak-alignment threshold. Giving each field equal weight, mean vector gains by donor were −3.74% for DNAH11_PCD128 (six fields), +8.63% for DNAH11_PCD133 (six), −3.44% for PCD188 (two) and +5.92% for WUPCD185_DNAH11 (six).

Figure 1. Prediction gains and overall alignment in all 20 nonpilot DNAH11 recordings, grouped by donor in the order given above. Blue indicates the initial sample and orange the validation sample. Brackets count moving targets used to score direction. Black crosses show vector gains after full-path separation in both the local and broad fits, which can leave fewer targets than the estimates shown by dots. Positive values in the first two panels favor local prediction. The dotted line marks the prespecified polarization threshold. Points describe individual fields without sampling-error bars; fields from the same donor are not independent replicates.
Among the other 20 initial-sample fields, vector prediction worsened in all five fields associated with DNAAF5 and the single field associated with DNAAF1, two other genes linked to PCD. Some healthy fields showed substantial vector gains. Only four of ten healthy fields had at least ten targets with enough early neighbors in each split, compared with all 18 PCD fields in that sample. This difference prevents a balanced comparison between healthy and affected cultures.
Methods
Data and recording selection
We used the complete track and position tables in the public CiliaTracks archive and the source paper's supplementary table linking all 602 recordings to 24 donors. [1,4] The source investigators imaged 1.9-µm fluorescent microspheres over airway cells grown at an air–liquid interface, at 100 frames per second and 0.67 µm per pixel.
An exploratory scan included all 602 track-summary tables (10,334,671 track records) and 10,836 configurations for spatial tests. Complete position tables from 11 pilot recordings informed the predictor. We excluded these recordings from both samples. To select fields without choosing them for their flow patterns, we ranked recordings within donors using the Secure Hash Algorithm 256 (SHA256), which maps a name to a reproducible value. The input was the literal prefix “local-order-v1:” followed by the released recording name. The initial sample followed that ranking. Validation used the next four ranked recordings from each DNAH11 donor with unexamined position tables, excluding all 28 initial-sample recordings. The fourth DNAH11 donor had only three released recordings, all previously examined. No fields were added or substituted based on their results. Although the validation trajectories were unexamined at selection, their recording-level summaries had entered the exploratory scan.
We downloaded the complete compressed tables and checked their byte lengths and hashes. The position tables for the 40 recordings contained 771,636 track identifiers. Position counts matched the track summaries. Every position had an assigned track, position identifiers and track–frame pairs were unique, and frame and exported time values agreed. The exported times were frame indices; we converted them to physical time using the acquisition rate.
Estimating velocities
For each recording we selected the 150 tracks with the highest mean tracking quality over the whole recording, then excluded tracks with a reported maximum speed above five pixels per frame. For each track, we fitted horizontal and vertical position against frame by ordinary least squares in frames 0–149 and 300–444. The slopes gave the two velocity components. Each window required at least 50 positions spanning at least 50 frames from first to last, with position count divided by span at least 0.8. The center of the track within the window had to fall within pixel coordinates 100–2203 on both image axes.
Predicting late motion from early tracks
In one split, even-numbered early tracks predicted odd-numbered late tracks; the other split reversed the groups. Each required at least ten training and ten target tracks before filtering for neighbors. The broad predictor fitted each velocity component as an intercept plus linear functions of horizontal and vertical location. A residual is the difference between an observed velocity and this prediction. To reduce the influence of unusually large residuals, we followed an initial least-squares fit with 15 reweighted fits. Each track's weight was the smaller of one and 1.5 times the median residual vector length divided by that track's residual length, with a scale floor of 10⁻⁶ pixels per frame.
For each late target, we took the nearest early track centers at distances of at least 75 but less than 400 pixels (approximately 50–268 µm in every recording). We used up to eight neighbors and required at least three. The local predictor added their median residual to the broad prediction, taking the median separately for each velocity component.
Within each split, vector error was the mean Euclidean distance between predicted and observed velocities. Relative vector gain was one minus the ratio of local error to broad error. We averaged gains equally across the two splits. Angular losses also received equal weight across splits. For these losses, a moving target was one whose fitted speed times its observed frame span was at least three pixels. A zero predicted vector received an angular loss of one. Field polarization included all eligible late tracks before filtering for neighbors.
Checks on the predictions
To subtract common motion, we took all positions linked across adjacent frames, found the median horizontal and vertical increments for each frame, and subtracted the cumulative increments. This changed the fitted velocities but preserved the original spatial matching and track eligibility. To check eligibility separately in each window, we selected its top 150 tracks by mean quality and applied the five-pixel-per-frame jump filter within that window. Full-path separation used the minimum distance between any pair of recorded positions on a training path and a target path. Its strictest version also refitted the broad predictor for each target after excluding nearby paths, requiring at least ten remaining training tracks. For comparison we recomputed the original predictions on the same retained targets.
For the speed-only comparison, we projected the local correction onto the broad predictor's direction. For the spatial shuffle, we reassigned early residual vectors among fixed training locations 199 times per split. Shared neighborhoods, repeated positions and fields from the same donor create dependence. Particle counts and shuffle ranks therefore do not represent biological replication. We report descriptive estimates for fields and equal-field averages for donors, leaving missing split results missing. We used Python 3.12.16 with the numerical and data-analysis libraries NumPy 2.5.4 and pandas 3.1.0. An independent implementation reproduced all 160 split estimates for the primary and common-motion-corrected predictions across the 40 fields, including angular losses and which estimates were missing.
Interpretation
In these DNAH11-associated cultures, the spread of particle directions across an image concealed a distinction. In two weakly aligned fields from different donors, early motion near a location helped predict which way particles would move there later. Elsewhere, knowing the location helped predict mainly speed or gave no advantage at all.
Persistence here spans two windows of a 4.45-second recording. The tracks do not resolve the boundaries of local flows, the orientation of cilia or particle height. The cohort movies are available only on request, preventing direct checks for spatially varying imaging or tracking distortions. Subtracting shared motion can remove genuine flow; separating entire paths can exclude distinct particles that cross and cannot guarantee particle identity. Four donors and internal validation cannot establish how common the pattern is, and microsphere motion over cultured cells does not measure mucus clearance in patients.
References
- Hadas N, et al. Machine learning analysis of cilia driven particle transport distinguishes primary ciliary dyskinesia from normal cilia. Communications Biology (2026). Article and supplementary data.
- Ramirez-San Juan GR, et al. Multi-scale spatial heterogeneity enhances particle clearance in airway ciliary arrays. Nature Physics (2020). Article.
- Roth D, et al. Structure and function relationships of mucociliary clearance in human and rat airways. Nature Communications (2025). Article.
- Hadas N. CiliaTracks Complete Raw Track Data, CNN Input Plots and Software Applications. Zenodo (2026), record 21811519. Public archive.