convlstm
**ConvLSTM** is the **convolutional recurrent architecture that replaces matrix multiplications in LSTM gates with spatial convolutions** - this allows temporal memory to preserve spatial structure in feature maps instead of collapsing everything into vectors.
**What Is ConvLSTM?**
- **Definition**: LSTM variant where input-to-state and state-to-state transformations are convolution operations.
- **State Representation**: Hidden and cell states are 2D feature maps with channels.
- **Primary Use Cases**: Video prediction, precipitation nowcasting, and temporal segmentation.
- **Key Advantage**: Learns both motion dynamics and spatial layout jointly.
**Why ConvLSTM Matters**
- **Spatial Memory**: Keeps location information throughout temporal updates.
- **Temporal Continuity**: Handles evolving patterns over time better than per-frame models.
- **Interpretability**: State maps can be inspected to understand where memory is focused.
- **Flexible Integration**: Can sit between convolutional encoder and decoder in many pipelines.
- **Practical Accuracy**: Strong baseline for structured spatiotemporal forecasting tasks.
**ConvLSTM Components**
**Convolutional Gates**:
- Input, forget, and output gates use learned kernels.
- Capture local motion cues in neighborhood windows.
**Cell State Dynamics**:
- Cell state stores long-term temporal context across frames.
- Forget gate controls retention versus overwrite.
**Output Projection**:
- Hidden state can be decoded directly or passed to downstream temporal heads.
- Supports dense prediction outputs.
**How It Works**
**Step 1**:
- Feed frame feature map and previous states into convolutional gate equations.
**Step 2**:
- Update cell and hidden maps, then decode prediction or pass state to next timestep.
**Tools & Platforms**
- **PyTorch custom cells**: ConvLSTM modules for spatiotemporal tasks.
- **Weather and radar stacks**: Common deployment in nowcasting systems.
- **Video restoration pipelines**: ConvLSTM heads for temporal smoothing.
ConvLSTM is **a spatially aware recurrent memory unit that extends LSTM power into 2D temporal feature maps** - it is a durable choice when both motion and location fidelity are critical.