2D class averaging is a critical denoising procedure where extracted particle images are iteratively aligned, compared, and grouped into homogeneous classes based on similarity. By averaging many identically oriented projections, the random background noise cancels out while the consistent structural signal of the macromolecule is reinforced, producing high-contrast 2D class averages that represent distinct views of the particle.
Glossary
2D Class Averaging

What is 2D Class Averaging?
A computational image processing step in single-particle cryo-electron microscopy that aligns and averages thousands of noisy 2D particle projections to improve the signal-to-noise ratio, revealing distinct molecular orientation views and enabling the rejection of junk particles before 3D reconstruction.
This step serves as a stringent quality control gate, as classes that fail to converge into recognizable structural features indicate junk particles, aggregates, or denatured protein. The clean set of 2D class averages provides the essential input for subsequent ab initio 3D reconstruction and initial model generation, directly influencing the final resolution of the Coulomb potential density map.
Key Characteristics of 2D Class Averaging
A computational step that aligns and averages similar particle projections to improve signal-to-noise ratio, revealing distinct orientation views and discarding junk particles before 3D reconstruction.
Signal-to-Noise Ratio Enhancement
The fundamental purpose of 2D class averaging is to overcome the extremely low signal-to-noise ratio (SNR) inherent in cryo-EM micrographs. By aligning and averaging thousands of similar particle projections, the coherent signal (the macromolecule's projection) adds constructively while the incoherent noise (shot noise, amorphous ice background) adds in quadrature. This results in a theoretical SNR improvement proportional to the square root of the number of particles averaged. A class average generated from 500 particles yields approximately a 22-fold SNR improvement over a single raw particle, making secondary structural elements like alpha-helices visually discernible for the first time.
Maximum Likelihood Classification
Modern 2D class averaging employs maximum likelihood estimation (MLE) rather than simple K-means clustering. The algorithm iteratively computes the probability that each particle image belongs to each class based on cross-correlation scores, applying a regularization term (typically a Wiener filter) to prevent overfitting to noise. Key aspects include:
- Expectation-Maximization (EM): The E-step calculates class assignment probabilities; the M-step updates the class average images
- Marginalization over alignment: Each particle's translational and rotational alignment is treated as a hidden variable, integrated out probabilistically
- Resolution-dependent weighting: Higher spatial frequencies are down-weighted according to the estimated SNR at each resolution shell This probabilistic framework, implemented in RELION and cryoSPARC, is robust against the reference bias that plagued earlier deterministic approaches.
Junk Particle Rejection
A critical secondary function of 2D classification is the computational removal of non-macromolecular contaminants. Classes that converge to featureless blobs, ice contamination, carbon edges, or aggregated denatured protein are identified and their constituent particles excluded from subsequent 3D reconstruction. This in silico purification step is essential because:
- Carbon edges produce strong, anisotropic scattering that corrupts orientation assignment
- Denatured aggregates exhibit no coherent internal features, degrading alignment accuracy
- Ice crystals introduce diffraction spots that dominate the Fourier transform
- Overlapping particles violate the single-particle assumption, producing uninterpretable averages A typical cryo-EM dataset may see 20-40% of initially picked particles discarded during this stage, dramatically improving the final map quality.
Orientation View Distribution
The gallery of 2D class averages provides a direct diagnostic of angular sampling completeness. Each distinct class average represents a specific projection direction of the macromolecule's 3D density. A well-behaved sample will produce class averages spanning all possible orientations, while preferred orientation artifacts manifest as a limited set of repeated views. Key indicators include:
- Top views vs. side views: Membrane proteins often adsorb to the air-water interface in a single orientation, producing only top-down projections
- Class occupancy: The number of particles assigned to each class indicates the relative frequency of that orientation
- Missing views: Gaps in the angular distribution predict anisotropic resolution in the final 3D reconstruction This diagnostic step often determines whether a dataset is suitable for high-resolution structure determination or requires sample optimization.
Alignment Precision and Interpolation
The translational and rotational alignment of raw particles during class averaging must achieve sub-pixel precision to avoid blurring high-resolution features. Modern implementations use Fourier-space cross-correlation with padding to achieve translational accuracy of 0.1 pixels or better. Rotational alignment employs polar Fourier transforms or adaptive band-limit schemes that progressively include higher frequencies as the class average improves. Critical algorithmic details include:
- Cubic or Lanczos interpolation: Higher-order interpolation kernels preserve high-frequency information during image rotation
- Centering heuristics: Initial translational alignment often uses a low-pass filtered reference to avoid trapping in local optima
- Symmetry handling: For particles with known point-group symmetry, rotational alignment is restricted to the asymmetric unit to avoid redundant computations Alignment errors accumulate as the square of the spatial frequency, making precise interpolation essential for achieving near-atomic resolution.
Computational Efficiency and GPU Acceleration
2D classification of modern cryo-EM datasets containing millions of particles is computationally intensive, requiring efficient implementations. GPU acceleration has reduced processing times from weeks to hours. Key optimization strategies include:
- Batch processing: Particles are processed in mini-batches sized to fit GPU memory (typically 500-2000 particles per batch)
- FFT-based alignment: Translational cross-correlation is computed via fast Fourier transforms, reducing complexity from O(N²) to O(N log N)
- On-the-fly downsampling: Initial iterations use heavily binned particles (e.g., 4x or 8x downsampling) to rapidly converge class averages before switching to full-resolution data
- Multi-GPU parallelization: RELION's implementation distributes particle subsets across multiple GPUs using MPI, achieving near-linear scaling A dataset of 5 million particles can be classified into 100 classes in approximately 4-6 hours on a modern 4-GPU workstation.
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
Clear, technical answers to the most common questions about the computational alignment and classification of single-particle cryo-EM projections.
2D class averaging is a computational image processing step in single-particle cryo-EM that computationally aligns and averages thousands of noisy 2D projection images of identical macromolecules to improve the signal-to-noise ratio (SNR). The process works by iteratively comparing raw particle images against a set of reference averages, assigning each particle to the class it most resembles, and then re-averaging the aligned particles to produce sharper, denoised 2D views. This reveals distinct orientation views of the molecule, such as top, side, and oblique projections, while simultaneously identifying and discarding junk particles, ice contamination, or aggregates that would degrade the final 3D reconstruction. Algorithms like Maximum Likelihood Estimation (MLE) and Expectation-Maximization (EM) are commonly used to perform this unsupervised classification, with software packages like RELION and cryoSPARC providing GPU-accelerated implementations.
Related Terms
Explore the computational steps that precede and follow 2D class averaging in the single-particle analysis pipeline.
Particle Picking
The computational identification and extraction of individual macromolecular projections from noisy micrographs. Modern approaches use deep learning models like Topaz and crYOLO, which are trained on annotated datasets to distinguish true particles from carbon edges and ice contamination. Accurate particle picking is the critical first step—errors here propagate through the entire pipeline, reducing the quality of 2D class averages and the final 3D reconstruction.
Contrast Transfer Function (CTF) Correction
A mathematical function describing how the microscope's objective lens aberrations modulate image contrast as a function of spatial frequency. CTF correction must be applied to restore the true signal before 2D classification. The CTF oscillates between positive and negative contrast, creating characteristic Thon rings in the Fourier transform. Software like CTFFIND4 estimates defocus and astigmatism parameters to computationally reverse these phase flips.
3D Reconstruction
The computational determination of a macromolecule's Coulomb potential density map from its 2D projections. After 2D class averaging has identified good particles and their relative orientations, algorithms like weighted back-projection or iterative refinement in RELION and cryoSPARC combine these views into a 3D volume. The process relies on the central section theorem, which states that each 2D projection corresponds to a central slice through the 3D Fourier transform.
Gold-Standard FSC
A resolution estimation method that splits the particle dataset into two independent half-sets before 3D reconstruction. The Fourier Shell Correlation (FSC) between the two resulting maps measures the consistency of the reconstruction as a function of spatial frequency. The gold-standard procedure prevents overfitting and noise correlation, providing an unbiased resolution estimate. The 0.143 cutoff criterion is the accepted standard for reporting cryo-EM map resolution.
Heterogeneous Refinement
A computational classification method that sorts particle images into structurally distinct 3D classes. While 2D class averaging separates views and removes junk, heterogeneous refinement resolves compositional or conformational heterogeneity—such as a ligand-bound versus unbound state—that may coexist in a single sample. This is essential for studying dynamic macromolecular machines and separating functional states.
Bayesian Polishing
A per-particle, beam-induced motion correction algorithm implemented in RELION. It uses a Bayesian framework to model and reverse radiation damage and movement trajectories for each individual particle. By operating on the 3D reconstruction's reference projections, it achieves higher accuracy than global frame alignment alone, restoring high-resolution signal that is critical after good 2D classes have been selected.

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