MotionCor2 performs per-frame alignment of cryo-EM movies by iteratively estimating global and local motion trajectories using a patch-based rigid body model. The algorithm divides each micrograph into overlapping patches, calculates cross-correlation shifts relative to a central reference, and applies a dose-weighted averaging scheme that optimally down-weights later frames to compensate for cumulative radiation damage.
Glossary
MotionCor2

What is MotionCor2?
MotionCor2 is a GPU-accelerated software package that corrects for beam-induced specimen motion in cryo-electron microscopy by aligning and averaging dose-fractionated movie frames, restoring high-resolution signal lost to global and local drift.
Implemented on CUDA-enabled GPUs, MotionCor2 achieves real-time processing speeds by parallelizing the computationally intensive Fourier-space operations. The software outputs a motion-corrected, dose-weighted micrograph and per-particle motion trajectories, which can be used for subsequent Bayesian polishing in RELION to further refine high-resolution reconstructions.
Key Features of MotionCor2
MotionCor2 is a widely used software for aligning and averaging dose-fractionated cryo-EM movie frames. It corrects both global and local beam-induced specimen motion using a GPU-accelerated, patch-based algorithm to restore high-resolution signal.
Global Motion Correction
Estimates and corrects the overall translation and rotation of the entire micrograph across all movie frames. This step removes the dominant, large-scale drift caused by stage instability and initial beam-induced movement. The algorithm uses a cross-correlation approach to align each frame to a running average, iteratively refining the alignment until convergence. This single, rigid-body transformation is applied uniformly to the entire field of view before local refinement.
Patch-Based Local Motion Correction
Divides the micrograph into a grid of overlapping patches and independently tracks the trajectory of each patch across frames. This models non-uniform, anisotropic motion caused by beam-induced doming, bubbling, or warping of the vitreous ice. The local shifts are fitted to a time-varying polynomial model to produce a smooth, per-pixel motion trajectory. This step is critical for recovering high-resolution information at the edges and corners of the image.
Dose-Weighted Frame Averaging
Applies an optimal exposure-dependent weighting to each movie frame before summation. Later frames receive lower weights because radiation damage progressively destroys high-resolution structural features. The weighting scheme is derived from the cumulative electron dose and the measured critical exposure curve of the specimen. This maximizes the signal-to-noise ratio in the final, motion-corrected micrograph, preserving low-resolution contrast while optimizing high-resolution detail.
GPU Acceleration with CUDA
Leverages NVIDIA CUDA to parallelize the computationally intensive cross-correlation and polynomial fitting operations. By offloading these tasks to the GPU, MotionCor2 achieves real-time processing speeds, correcting a full movie stack in seconds rather than minutes. This acceleration is essential for high-throughput cryo-EM pipelines where thousands of movies must be processed during data collection. The implementation uses FFT-accelerated alignment on the GPU for maximum throughput.
Outputs for Downstream Processing
Generates several critical outputs for the single-particle analysis pipeline:
- Motion-corrected micrograph: The dose-weighted sum of aligned frames.
- Per-frame shift traces: X/Y translation plots for global and local motion diagnostics.
- Local motion map: A vector field showing the magnitude and direction of local movement.
- Defect and outlier pixel maps: Identifies bad pixels or detector artifacts for masking. These outputs are directly compatible with RELION, cryoSPARC, and other major processing suites.
Anisotropic Magnification Correction
Corrects for geometric distortions introduced by the electron optics and detector, including elliptical distortion and magnification anisotropy. These systematic errors cause the image to be stretched or compressed differently along orthogonal axes. MotionCor2 applies a calibrated affine transformation to restore the true geometry of the specimen, which is essential for accurate particle alignment and high-resolution 3D reconstruction. The calibration parameters are typically derived from a known reference standard like a gold cross-grating.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Direct answers to common technical questions about the GPU-accelerated beam-induced motion correction software that is foundational to modern cryo-EM data processing pipelines.
MotionCor2 is a GPU-accelerated software package that corrects for beam-induced specimen motion in cryo-electron microscopy (cryo-EM) by aligning and averaging dose-fractionated movie frames. It operates by dividing each raw movie frame into a grid of overlapping patches, then iteratively measuring and correcting both global frame shifts (rigid translation of the entire field of view) and local deformations (non-uniform movement within the image plane) using a multi-reference, patch-based alignment algorithm. The core mechanism relies on maximizing the cross-correlation between each patch and a running average reference, applying a dose-dependent weighting scheme that progressively down-weights later frames to account for cumulative radiation damage. This dual global-local correction produces a motion-corrected, dose-weighted micrograph sum with significantly improved high-resolution signal retention, making it an essential preprocessing step before particle picking and 3D reconstruction in single-particle analysis (SPA).
Related Terms
MotionCor2 is a critical early step in the cryo-EM data processing pipeline. Explore the interconnected concepts that precede and follow beam-induced motion correction.
Direct Electron Detector (DED)
The hardware foundation enabling MotionCor2's algorithms. DEDs like the Gatan K3 or Falcon 4 directly detect electrons with high quantum efficiency and fast readout speeds, capturing the dose-fractionated movies that MotionCor2 aligns. Without DED technology producing multiple sub-frames, per-frame motion correction would be impossible.
Dose Weighting
A computational compensation applied during or after frame alignment. Because radiation damage accumulates with each electron dose, later movie frames contain less high-resolution information. Dose weighting applies an optimal exposure-dependent filter that down-weights later frames, maximizing the signal-to-noise ratio in the final averaged micrograph.
Contrast Transfer Function (CTF)
Once MotionCor2 produces a motion-corrected micrograph, the next step is CTF estimation and correction. The CTF is a mathematical function describing how the microscope's objective lens aberrations modulate image contrast as a function of spatial frequency. Tools like CTFFIND4 or Gctf model these oscillations to computationally restore the true signal.
Bayesian Polishing
An alternative per-particle motion correction algorithm implemented in RELION. Unlike MotionCor2's global frame alignment, Bayesian polishing uses a probabilistic framework to model and reverse radiation damage and beam-induced movement trajectories for each individual particle after extraction. It is often run as a final refinement step to squeeze out additional resolution.
Single-Particle Analysis (SPA)
The overarching cryo-EM technique that MotionCor2 serves. In SPA, thousands of 2D projections of identical macromolecules in random orientations are computationally combined to reconstruct a 3D density map. MotionCor2's frame alignment is the first computational step in this pipeline, ensuring that particle images are sharp enough for subsequent picking and classification.
Gold-Standard FSC
The resolution estimation method used to validate the final 3D reconstruction downstream of MotionCor2. The particle dataset is split into two independent half-sets for independent refinement, and their Fourier Shell Correlation (FSC) is compared. The gold-standard approach prevents overfitting and ensures that resolution claims are not inflated by aligning noise.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us