Lecture4 030326.pptx
📚 Lecture4_030326.pptx (1).pdf
Brief overview
This document introduces image reconstruction from inverse problems, emphasizing the challenges of ill-posedness and the role of regularization. It then explores deep learning's application to image reconstruction and analysis, discussing both its advantages and potential pitfalls concerning robustness.
Key points
- Image reconstruction as an inverse problem and iterative optimization
- Deep learning strategies for image reconstruction, including direct mapping and hybrid schemes
- Robustness issues and potential pitfalls in deep learning for image analysis
- Image registration: problem definition, deformation models, and learning-based methods
- Metrics and loss functions for evaluating image reconstruction and registration
1. Image reconstruction from inverse problems
1.1 The inverse problem formulation
- Image reconstruction aims to estimate an image 'x' from indirect measurements 'y'.
- This process is modeled by the equation: y=Ax+v, where 'A' is the forward operator and 'v' represents additive noise.
- The forward operator 'A' maps the image space to the measurement space, describing the physics of data acquisition.
📝 Example: In Computed Tomography (CT), 'x' is the object's internal structure, and 'y' is the measured sinogram data acquired by X-ray projections 6.
- Reconstruction is fundamentally an inverse problem because it seeks to recover the unknown image from observable measurements 5.

1.2 Ill-posedness in image reconstruction
- Directly inverting the forward operator 'A' to recover 'x' from 'y' (y=Ax) is often not feasible due to ill-posedness.
- Ill-posed problems exhibit one or more of the following characteristics:
- A solution may not exist.
- The solution may not be unique.
- The solution may be highly sensitive to small perturbations in the input data (unstable).
- In medical imaging, ill-posedness is exacerbated by factors such as low-dose acquisition in CT or k-space undersampling in MRI, leading to increased noise and data sparsity.
🔑 Important: Ill-posedness implies that a direct analytical solution is unreliable; iterative and regularized approaches are necessary for stable and meaningful reconstructions 10.
1.3 Iterative reconstruction as an optimization problem
- Image reconstruction can be framed as an optimization problem: finding an image 'x' that minimizes a divergence (or loss) function 'D' between the measured data 'y' and the data predicted by the forward model 'A(x)'.
- A common objective is to minimize the Mean Squared Error (MSE): x∗=x∈CxNargmin21∥A(x)−y∥22.
- This minimization can be performed iteratively, progressively updating the estimated image 'x' to reduce the loss function 12.
🔑 Important: Iterative methods update the image estimate step-by-step to converge towards a solution that best fits the observed measurements 11.
1.4 The challenge of overfitting and regularization
- Directly minimizing the data fidelity term (e.g., MSE) can lead to overfitting, where the reconstruction inadvertently fits the noise 'v' present in the measurements.
- This occurs because the reconstruction becomes too sensitive to the specific data values, including their noisy components.
- Regularization is employed to counteract overfitting by incorporating prior knowledge or assumptions about the nature of the desired image.
🔑 Important: Regularization introduces a trade-off between fitting the measurements and adhering to prior assumptions, thereby improving the stability and quality of the reconstructed image 13.
- Regularization is achieved by adding a regularization term 'R(x)' to the objective function, weighted by a parameter 'α': x∗=x∈CxNargmin(∥A(x)−y∥22+αR(x)).
- The parameter 'α' controls the balance:
- Higher 'α': stronger constraints, potentially lower fidelity to measurements, reduced overfitting.
- Lower 'α': less constraint, higher fidelity to measurements, increased risk of overfitting 14.
1.5 Total Variation (TV) regularization
- Total Variation (TV) is a popular regularization technique that assumes piecewise constant or smooth images are more likely solutions.
- It penalizes the magnitude of image gradients, effectively encouraging solutions with fewer and sharper edges, thus reducing staircase artifacts in reconstructions with high TV weights.
- The TV regularization term is defined as 'R(x)=∥Dx∥1', where 'D' approximates the image gradient using finite differences.
- Increasing the TV weight 'α' leads to images with lower total variation but may sacrifice fidelity to the measured data.
| TV Weight | Reconstructed Image Characteristics |
|---|---|
| Low | Higher fidelity to measurements, risk of noise/overfitting |
| High | Smoother image, reduced noise, potential loss of fine details |
🔑 Important: TV regularization is particularly effective for images with sharp edges and piecewise constant regions, such as those often found in medical imaging 15.
🔑 Important: Image reconstruction from inverse problems critically relies on balancing data fidelity with regularization to obtain robust and interpretable results from noisy and incomplete measurements.
2. Deep learning approaches for image reconstruction
2.1 Overview of deep learning for image reconstruction
Deep learning models offer an alternative to traditional iterative reconstruction methods by learning the mapping from measurement data to an image directly from a dataset. Instead of treating each reconstruction as a new, independent problem, deep learning leverages prior knowledge of image structures and artifacts.
The core components for a deep learning approach include a convolutional neural network (CNN) architecture with trainable weights, an optimizer, an appropriate loss function, and suitable training data.
The fundamental goal is to optimize a CNN to transform measurement data (y) into an image (x), represented as x=fθ(y), where fθ denotes the CNN with its trainable parameters θ 18.
2.1.1 Strategies for learning
Several strategies exist for applying deep learning to image reconstruction, differing in where the CNN is applied in the reconstruction pipeline:
| Strategy | Measurement Domain Input | Image Domain Input | Forward Model Usage |
|---|---|---|---|
| Pre-processing | CNN input | N/A | Explicitly used post-CNN |
| Post-processing | N/A | CNN input | Explicitly used pre-CNN |
| Direct mapping | CNN input | N/A | Not explicitly used |
| Hybrid schemes | Varies | Varies | Explicitly used |
- Data consistency enforcement: Minimizing the difference between forward-projected reconstructed images and the original measurements, denoted as D(A(x),y).
- Forward model (A) utilization: Deciding whether to explicitly incorporate the physics of the imaging system into the learning process 19.
2.2 Architectures and methodologies
2.2.1 Direct mapping architectures
- DeepPET: Employs an encoder-decoder architecture for direct PET image reconstruction. The encoder maps sinogram data to feature maps, and the decoder reconstructs the PET image from these features 20.
- AUTOMAP (Automated Mapping): Aims to bypass modality-specific, handcrafted reconstruction steps by learning a single, general mapping x∗=fθ(y). This approach can handle complex sensor data but may require large datasets and risk generating physically inconsistent results 21.
2.2.2 Pre-processing strategy
This approach uses a CNN in the measurement domain to improve data quality (y) before applying a non-learned reconstruction algorithm (e.g., FBP) to the enhanced measurements (y^). The process is often represented as y→CNN→y^→A−1→x.
A U-Net architecture is commonly used for this task 22.
2.2.3 Post-processing strategy
Here, an initial image is obtained using a standard reconstruction algorithm (x0), and then a CNN in the image domain is applied to refine the image quality (x). The sequence is y→x0→CNN→x.
Residual encoder-decoder networks are frequently employed in this strategy 23.
2.2.4 Residual learning
Residual learning, inspired by residual connections, simplifies training by learning the difference between an input and the target output. The output (x) is formulated as the input (xinput) plus a learned residual function f(⋅): x=xinput+f(xinput).
This approach is particularly effective when the target image is expected to be close to the input image 24.

2.2.5 Hybrid schemes
Hybrid methods seek to combine the strengths of deep learning (e.g., learning complex priors) with iterative approaches (e.g., data consistency). The optimization problem x∗=argminxD(A(x),y)+λR(x) is reconsidered, where the CNN acts as the regularizer R(x), and data consistency D(A(x),y) is enforced 25.
- Cascaded CNNs: These architectures integrate CNNs with data consistency (DC) blocks, often used for undersampled MRI reconstruction. Each DC block enforces data consistency by combining the available measurements with the CNN's estimated data, iteratively improving the solution 26.
2.3 Metrics and loss functions
2.3.1 Image quality metrics
While qualitative assessment (e.g., radiologist's perception of pathology) is preferred, quantitative metrics are commonly used:
| Metric | Type | Formula / Description | Pros | Cons |
|---|---|---|---|---|
| Mean Squared Error (MSE) | Voxel-wise | 2n1∑i=1n(xi−xi∗)2 | Simple, differentiable | Blurred images, scale-dependent, poor correlation with perception |
| Peak Signal-to-Noise Ratio (PSNR) | Voxel-wise | 20log10(MSEmax(V)) | Expresses quality in dB | Same limitations as MSE, doesn't consider structure |
| Structural Similarity Index Measure (SSIM) | Perceptual | Measures luminance, contrast, and structure locally. Higher values are better. | Considers local intensity distributions and structure | More complex to compute |
The Mean Squared Error (MSE) is a ubiquitous loss function for regression problems, but its averaging nature can lead to blurred images.

2.3.2 Loss functions
- MSE: Easy to implement and differentiate, but often results in blurred outputs due to averaging.
- L1 Loss: A preferred alternative, defined as LL1(x,x∗)=n1∑i=1n∣xi−xi∗∣, which yields better visual quality and fewer artifacts, with less sensitivity to outliers.
- Combined Loss: Loss functions can be combined, for instance, by including (1−SSIM) to incorporate perceptual quality alongside pixel-wise accuracy.
🔑 Important: While MSE is a default, L1 loss and perceptual metrics like SSIM often yield superior visual results and are preferred for image reconstruction tasks where fine details and structures are critical 33.
3. Robustness and pitfalls in deep learning for image analysis
3.1 Robustness concerns in deep learning for imaging
Deep learning models in image reconstruction and registration can exhibit fragility, where minor input perturbations lead to significant output variations. This lack of robustness raises concerns about the trustworthiness of "black box" methods, especially when they do not explicitly enforce data consistency or incorporate physical principles.
Analyzing the sensitivity to such perturbations is crucial for understanding model reliability.
🔑 Important: The core issue is that small input changes can cause large output deviations, undermining confidence in models that lack inherent physical constraints.
A critical aspect of robustness is understanding how 'black box' models react to adversarial or noisy inputs. Research aims to identify the smallest perturbation that yields the largest change in the model's output.
If ∣f(y+Δr)−f(y)∣ is large for a small ∣∣Δr∣∣, the model is considered unstable.
🔑 Important: The goal is to find minimal input perturbations that cause maximal output divergence, highlighting model instability.
The impact of structural changes on model outputs can be substantial. Even slight modifications to input images, such as adding small perturbations (r1,r2,r3,r4), can lead to dramatically different reconstructions or registrations when processed by certain deep learning architectures 36.

3.2 Introduction to image registration
Image registration is the process of aligning two or more images acquired at different times, from different viewpoints, or from different sensors. Its primary goal is to establish spatial correspondences between pixels or voxels in these images, thereby enabling direct comparison and analysis of anatomical or functional information.
This technique is vital across numerous medical imaging applications, including:
- Radiotherapy planning and delivery.
- Detecting changes in tissues or organs over time.
- Monitoring tumor growth or shrinkage.
- Aligning serial histopathology slides.
- Guiding surgical interventions.
- Improving segmentation accuracy.
🔑 Important: Registration is fundamental for multi-temporal, multi-view, or multi-modal image analysis, providing a common spatial framework 37 38.
3.2.1 Formalizing image registration
The image registration problem can be formalized by defining a fixed image F and a moving image M. A deformation field, denoted by ϕ, is applied to the moving image to align it with the fixed image.
The objective is to find the optimal deformation ϕ∗ that minimizes a distance or dissimilarity metric D between the transformed moving image (M∘ϕ) and the fixed image (F).
The optimization problem is expressed as: ϕ∗=ϕargminD(M∘ϕ,F) The choice of the dissimilarity criterion D is crucial and depends on the specific characteristics of the images being registered 39.
3.2.2 Dimensions of image registration
Image registration can be categorized along two primary dimensions: patient and modality.
-
Patient Dimensions:
-
Intra-patient: Registering images from the same patient, acquired at different times (e.g., serial CT scans). These are generally easier as anatomy is identical.
-
Inter-patient: Registering images from different patients. This is typically more challenging due to variations in anatomy.
-
Modality Dimensions:
-
Uni-modal: Registering images from the same imaging modality (e.g., CT to CT). Usually simpler due to similar intensity patterns.
-
Multi-modal: Registering images from different modalities (e.g., CT to MRI). This is more difficult due to differing intensity characteristics.
🔑 Important: Intra-patient and uni-modal registration are generally easier than inter-patient and multi-modal registration due to anatomical and intensity similarities, respectively 40.
3.3 Registration approaches
Image registration methods can be broadly classified into feature-driven and intensity-driven approaches
3.3.1 Feature-driven registration
Feature-driven registration aligns images by identifying and matching salient features, such as fiducial points, lines, or contours. These features are often manually annotated or automatically extracted.
- Features: Points (fiducials), lines, volumes (e.g., segmentation masks).
- Drawback: Relies on accurate feature detection and correspondence, which can be challenging 41.
3.3.2 Intensity-driven registration
Intensity-driven registration aligns images by maximizing the similarity of intensity values between corresponding regions. This approach does not require explicit feature extraction and is a primary focus in deep learning-based registration methods.
Key challenges include:
- Determining appropriate similarity measures for uni-modal registration.
- Defining robust similarity measures for multi-modal registration 42.
3.4 Deformation models
The choice of deformation model dictates the complexity and flexibility of the transformation applied to the moving image.
| Deformation Model | Description | Degrees of Freedom | Complexity |
|---|---|---|---|
| Translation | Shifts the image by a vector (tx,ty,tz) | 3 (in 3D) | Low |
| Rigid | Translation + Rotation; preserves distances and angles | 6 (in 3D) | Medium |
| Affine | Translation, Rotation, Scaling, Shearing; preserves parallelism | 12 (in 3D) | High |
| Deformable | Localized, non-linear transformations (e.g., B-splines, dense displacement fields) | Very High | Very High |
The number of parameters increases significantly with the complexity of the deformation model 44 45.
🔑 Important: Deformation models range from simple global transformations (translation, rigid, affine) to complex local and non-linear deformations 43.
More complex deformations, such as those described by a dense displacement field u(x), allow for local variations and are often modeled using underlying basis functions like B-splines to manage the high dimensionality 46.
3.5 Conventional vs. Deep Learning Registration
3.5.1 Conventional iterative registration
Traditional registration methods typically employ an iterative optimization process. Starting with an initial deformation estimate ϕ0, subsequent iterations refine the deformation by minimizing a similarity metric D.
This process involves an optimizer, an interpolator, and a transformation model.
🔑 Important: Iterative registration refines the deformation step-by-step, which can be computationally intensive 47.
3.5.2 Deep learning registration
Deep learning approaches aim to accelerate registration by training a neural network to directly predict the deformation field from input images. Once trained, a new image pair can be registered with a single forward pass, significantly reducing inference time compared to iterative methods.
🔑 Important: Deep learning registration offers rapid inference after offline training, eliminating the need for iterative optimization per image pair 48.
3.6 Deep learning frameworks for registration
3.6.1 Supervised learning
In supervised deep learning registration, a neural network is trained on a dataset of image pairs (F,M) for which the ground truth deformation ϕref is known. The network learns to predict an estimated deformation field ϕ^ from the input images.
The training objective is typically to minimize the Mean Squared Error (MSE) between the predicted and reference deformations.
- Input: Fixed and Moving images (IF,IM).
- Output: Estimated deformation field (e.g., TPS grid displacements ux,uy,uz).
- Loss function: Mean Squared Error (MSE) against reference deformation.
- Inference: Single feed-forward pass 49.
3.6.2 Unsupervised learning (e.g., VoxelMorph)
Unsupervised learning frameworks, such as VoxelMorph, are designed for scenarios where ground truth deformations are unavailable. These methods indirectly optimize the deformation field by jointly training a CNN to generate the deformation and a spatial transformer to apply it.
The loss function typically comprises a similarity term Lsim (e.g., MSE, NCC) between the fixed image and the transformed moving image, and a regularization term Lsmooth to encourage smooth deformations.
The core components include:
- A UNet-like architecture to predict the registration field ϕ.
- A spatial transformer to apply ϕ to the moving image m, producing m∘ϕ.
- Loss functions: Lsmooth(ϕ) and Lsim(f,m∘ϕ).
🔑 Important: Unsupervised methods train without ground truth deformations by optimizing image similarity and deformation smoothness 50.
3.7 Spatial transformer networks
Spatial transformer networks are crucial for enabling backpropagation of gradients through the registration process in unsupervised learning. They allow the network to learn transformations by explicitly incorporating a differentiable transformation module.
- Function: The spatial transformer block applies the predicted deformation ϕ to the moving image m, resulting in the transformed image m∘ϕ.
- Differentiability: For the optimization to work, this transformation must be differentiable with respect to the predicted deformation field.
- Architecture: Typically involves a localization network (to predict transformation parameters) and a grid generator/sampler module.
🔑 Important: The spatial transformer is essential for backpropagating gradients from similarity losses to the deformation prediction network 51 52.
3.7.1 Grid generator and sampler
The spatial transformer operates via a grid generator and a sampler. The grid generator defines a regular grid in the output image space (V).
For each point in V, it determines the corresponding location in the input image space (U) based on the predicted deformation ϕ. The sampler then retrieves the intensity value from U at this location.
- Grid Generator: Maps output grid points to input image locations using the deformation ϕ.
- Sampler: Extracts intensity values from the input image at continuous locations.
🔑 Important: The grid generator and sampler implement the spatial transformation, but require interpolation due to continuous sampling locations 53.
3.7.2 Interpolation
To sample intensity values from the input image at continuous locations determined by the grid generator, interpolation is necessary. Differentiable interpolation methods, such as linear, cubic, bilinear, or bicubic interpolation, ensure that the entire spatial transformer module (including the sampling process) is differentiable.
This differentiability is what allows gradients to flow back to the deformation prediction network.
🔑 Important: Differentiable interpolation (e.g., linear, cubic) is key to making the spatial transformer and thus VoxelMorph fully differentiable 54.
3.8 Pitfalls: Physically inconsistent results
A significant pitfall in deep learning for image analysis, particularly in registration and reconstruction, is the generation of physically inconsistent results. Models that do not explicitly enforce physical constraints may produce outputs that violate known physical laws or anatomical plausibility.
🔑 Important: Deep learning models can generate results that are not physically or anatomically plausible if not constrained by relevant principles.
For instance, in image registration, an overly aggressive or poorly regularized deformable model could lead to self-intersections of anatomical structures or unrealistic tissue deformation. Similarly, in image reconstruction, a model might generate artifacts that are statistically plausible but physically impossible.
Addressing these pitfalls often involves incorporating physics-informed loss functions, regularization terms, or domain-specific knowledge directly into the deep learning framework.
🔑 Important: Incorporating physical constraints (e.g., data consistency, anatomical plausibility) into deep learning models is crucial to avoid generating unrealistic outputs 35.
4. Metrics and loss functions for image reconstruction and registration
4.1 Choosing loss functions for reconstruction vs registration
-
Reconstruction losses: generally good reconstruction losses are also good registration losses..
-
Registration unimodal setting: intensity-based losses (e.g., MSE/L1/SSIM) are suitable only for uni-modal registration..
-
Registration multimodal setting: when modalities differ (e.g., MR–CT/PET), use information-theoretic losses instead of pixelwise intensity losses..
🔑 Important: If modalities are not comparable, intensity losses fail; switch to information-theoretic objectives.
Common loss families (what to recall)
| Type | When/Condition | Property | Effect |
|---|---|---|---|
| MSE/L2 | recon & uni-modal reg | penalizes intensity differences | encourages brightness matching |
| L1 | recon & uni-modal reg | robust to outliers | preserves edges better than MSE |
| SSIM | recon & uni-modal reg | structural agreement | encourages local pattern similarity |
| Mutual-information losses | multimodal reg | alignment via shared statistical structure | boosts alignment when intensities differ |
4.2 Mutual information: the information-theoretic metric for multimodal registration
-
Mutual information (MI): measures how much information one image provides about the other.
-
Entropy terms: MI can be written using entropy and joint entropy.
I(M,F)=H(M)+H(F)−H(M,F) 57.
-
Entropy: for a discrete distribution p(i), H(I)=−∑ip(i)logp(i). 58.
-
Joint entropy: for a 2D histogram over (I,J), H(I,J)=−∑i,jpi,jlogpi,j..
-
Alignment intuition: aligned images produce a more constrained joint histogram (lower joint entropy), hence higher MI.
key relationship in minimal form
aligned ⇒ lower joint entropy ⇒ higher mutual information.
Joint entropy behavior (why MI improves alignment)
-
Similarity vs joint spread: the more similar the marginal relationship, the more points lie on a line in the joint histogram.
-
Misalignment consequence: misaligned images yield a more spread joint histogram, increasing joint entropy and reducing MI.
| Alignment state | Joint histogram behavior | Mutual information effect |
|---|---|---|
| Perfect alignment | more concentrated structure | higher MI |
| Small offset | increased spread | reduced MI |
| Large offset | strongly spread distribution | much lower MI |
59> 📝 Example: Two identical MRIs aligned give higher MI than versions offset by 2 mm or 5 mm 60.
4.3 Combined losses and deformation regularization
-
Combined losses: use both intensity/feature similarity and regularization terms.
-
Training vs inference: auxiliary components (e.g., feature extraction/auxiliary information) may be used in training but not necessarily at inference.
Generic unsupervised objective structure
- Registration objective: conventional registration solves a data term plus an explicit regularizer.
ϕ∗∈argminϕD(M∘ϕ,F)+IR(ϕ)..
- Learning-based losses: total loss combines similarity and regularization, with optional auxiliary terms (e.g., guidance/segmentation) 61.
Explicit regularization via Jacobian determinant
-
Rationale: high-parameter deformations can become implausible; regularize the deformation field 62.
-
Jacobian determinant: in 2D with displacement u(x), the local volume change depends on detJu.
-
Interpretation:
-
detJu<0: folding
-
detJu<1: shrinkage
-
detJu=1: no change
-
detJu>1: expansion
-
detJu→0: tearing risk (extreme compression).
-
Regularization penalty: penalize deviations from “no pathological deformation” using ∣1−detJϕ(x)∣ over Ω.
ϕ∗∈argminϕD(M∘ϕ,F)+∣Ω∣1∫Ω∣1−detJϕ(x)∣dx..
| Jacobian determinant regime | Geometric meaning | Why it matters |
|---|---|---|
| detJϕ(x)<0 | folding | nonphysical overlap changes |
| detJϕ(x)<1 | shrinkage | volume collapses locally |
| detJϕ(x)=1 | no change | locally preserves volume |
| detJϕ(x)>1 | expansion | over-stretching artifacts |
-
Core idea: diffeomorphic deformations are (theoretically) invertible, preventing folding 64.
-
Flow formulation: the deformation follows an ODE with velocity field u(ϕ(t)) and initial condition ϕ=x .
-
Invertibility claim: invertible deformation implies “no folding” in theory; numerics may still introduce some folding.
-
Deep learning variant: predict a velocity field instead of the deformation, then obtain the deformation via differentiable integration 66.
🔑 Important: Explicit Jacobian penalties control local volume pathologies; diffeomorphic parameterizations enforce invertibility by construction (up to numerical errors) 63 65.
4.4 Metrics for registration quality: FRE vs TRE
-
Metric–loss separation: in registration, metrics are ideally independent of the losses used for optimization.
-
Point-based evaluation: registration metrics test whether transformed points match targets; more evaluation points yields more reliable assessment.
Fiducial error types (generalization vs optimization)
-
FRE (fiducial registration error): compute error on points used during optimization; characterized as “weak” evaluation.
-
TRE (target registration error): compute error on held-out points; characterized as “strong” evaluation.
-
Interpretation: TRE assesses generalization, while FRE does not.
| Error metric | Points used | What it measures | Generalization? |
|---|---|---|---|
| FRE | during optimization | fit quality on training/optimization points | limited |
| TRE | held-out | fit quality on unseen targets | yes |
TRE measures generalization; FRE reflects optimization fit.
Why pixelwise metrics are unreliable here
-
Pixelwise unreliability: pixel-level similarity metrics can be misleading for registration accuracy.
-
Practical evaluation: “sort and match pixels” is not the right basis for measuring registration accuracy; tissue/ROI correspondences matter 67.
📝 Example: In histopathology registration, TRE corresponds to error of warped/registered positions against target positions 69.
🔑 Important: For exam-ready registration evaluation, remember: use TRE (held-out points) for strong, generalizable accuracy assessment; FRE only reflects optimization-stage fit 68.
© 2026 Maeve. All rights reserved. This content is protected by copyright.