Abstract
Nanopore sequencing translates raw electrical signals from DNA translocation into base sequences. However, variable translocation speeds pose a significant challenge for traditional fixed-stride Convolutional Neural Networks (CNNs). We present dynamic pooling, a novel neural network layer that adaptively adjusts its subsampling rate to normalize signal speed. Our models, Heron and Osprey, leverage this technique to achieve state-of-the-art accuracy and real-time processing speeds on standard desktop CPUs. Experimental results demonstrate that dynamic pooling effectively "time-warps" signals, significantly reducing error rates and computational overhead compared to existing high-accuracy base callers.
Introduction: The Challenge of Variable Translocation Speed
Nanopore sequencing works by measuring changes in electrical current as a DNA molecule is threaded through a microscopic pore. Ideally, the DNA would move at a constant speed; however, in practice, it stutters and zips unpredictably. A single DNA base might remain in the pore for anywhere from 1 to 50 readouts.
Most modern base callers use CNNs with fixed-size filters and striding. This approach is inherently flawed for variable-speed data: if the DNA moves too quickly, a fixed-stride CNN may skip a base; if it moves too slowly, the network wastes computation on redundant signals. To address this, we developed a network capable of mapping raw signals into a uniform speed space before processing.
The Dynamic Pooling Mechanism
The core innovation of this work is the Dynamic Pooling layer. Unlike standard pooling layers with fixed ratios, this layer predicts three components for every input point: a feature vector ($f_i$), a point importance weight ($w_i$), and a length factor ($m_i$).
By calculating the cumulative sum of these length factors, the network maps the raw signal into a "fractional pooling space" where the DNA appears to move at a constant rate. This operation is continuous and differentiable, allowing the network to learn the optimal translocation speed through standard backpropagation. Interestingly, the learned pooling factors show a strong correlation ($r^2$ up to 0.82) with actual physical DNA speed, indicating the model successfully discovers the underlying physics of the sequencing process.
Model Architectures: Heron and Osprey
We implemented dynamic pooling in two distinct architectures:
- Heron: A high-accuracy model incorporating Gated Linear Units (GLU) and a Recurrent Neural Aligner (RNA) to model complex dependencies between predicted bases.
- Osprey: A "lite" model optimized for maximum throughput, utilizing variable receptive fields to balance accuracy with computational efficiency.
Experimental Results
The models were evaluated on diverse genomic datasets, including Klebsiella pneumoniae, Mouse, Rice, and a multi-species "Zymoset." Using diverse organisms is critical as different DNA contexts affect translocation speed and signal quality.
Accuracy and Efficiency
Heron consistently outperformed Oxford Nanopore’s experimental high-accuracy caller, Bonito (v0.3.1). For example, on the Rice dataset, Heron reduced the error rate by approximately 33-40% compared to baselines.
As shown in the results table, Heron with dynamic pooling achieves the highest accuracy on several benchmarks while maintaining a higher processing speed (0.41M signals/s) than the Bonito 0.3.x series.
CPU-Based Real-Time Sequencing
By using dynamic pooling to reduce redundancy early in the pipeline, the Osprey model achieves real-time speeds (1.45 to 1.88 million signals per second) on a standard 4-core desktop CPU (i7-7700K). This represents a significant improvement over the industry-standard Guppy caller, which manages roughly 0.5 million signals/s on similar hardware. This efficiency democratizes nanopore sequencing by removing the requirement for high-end GPU acceleration for live monitoring.
Conclusion
Dynamic pooling provides a "variable-speed transmission" for nanopore base callers, effectively handling the stochastic nature of DNA translocation. While currently optimized for 1D sequences, this approach sets a new standard for efficient, high-accuracy genomic analysis on commodity hardware. Future work will focus on refining the Recurrent Neural Aligner to better handle specific DNA motifs and exploring multidimensional applications of dynamic pooling.
Summary updated