Causalcall: Nanopore Basecalling Using a Temporal Convolutional Network

Jingwen Zeng, Hongmin Cai, Hong Peng, Haiyan Wang, Yue Zhang, Tatsuya AkutsuFrontiers in Genetics 2020

Abstract

Nanopore sequencing is promising because of its long read length and high speed. During sequencing, a strand of DNA/RNA passes through a biological nanopore, which causes the current in the pore to fluctuate. During basecalling, context-dependent current measurements are translated into the base sequence of the DNA/RNA strand. Accurate and fast basecalling is vital for downstream analyses such as genome assembly and detecting single-nucleotide polymorphisms and genomic structural variants. However, owing to the various changes in DNA/RNA molecules, noise during sequencing, and limitations of basecalling methods, accurate basecalling remains a challenge. In this paper, we propose Causalcall, which uses an end-to-end temporal convolution-based deep learning model for accurate and fast nanopore basecalling. Developed on a temporal convolutional network (TCN) and a connectionist temporal classification decoder, Causalcall directly identifies base sequences of varying lengths from current measurements in long time series. In contrast to the basecalling models using recurrent neural networks (RNNs), the convolution-based model of Causalcall can speed up basecalling by matrix computation. Experiments on multiple species have demonstrated the great potential of the TCN-based model to improve basecalling accuracy and speed when compared to an RNN-based model. Besides, experiments on genome assembly indicate the utility of Causalcall in reference-based genome assembly.

Introduction

Nanopore sequencing works by measuring the fluctuations in ionic current as a DNA or RNA strand passes through a microscopic pore. "Basecalling"—the process of translating these raw electrical signals into a sequence of A, C, G, and T bases—is a massive computational challenge.

Nanopore sequencing process: a DNA/RNA strand passing through a pore generates current measurements translated into a base sequence.

The current industry standard relies heavily on Recurrent Neural Networks (RNNs). While RNNs are excellent at modeling time-series data, they are inherently sequential: to calculate the current state, the model must wait for the previous state to finish. This creates a significant bottleneck, especially as sequencing throughput increases. Furthermore, noise in the signal and the variable speed at which DNA moves through the pore make it difficult to maintain high accuracy without sacrificing speed.

Methods

The authors introduce Causalcall, which utilizes a modified Temporal Convolutional Network (TCN) paired with a Connectionist Temporal Classification (CTC) decoder.

The Causalcall architecture: raw current measurements are segmented, processed through a modified TCN to generate probability distributions, and decoded via CTC into a base sequence.

The key technical innovations include:

  • Dilated Causal Convolutions: Unlike standard convolutions, these "look back" in time and use an exponentially increasing "dilation" factor. This allows the model to have a massive receptive field—seeing a long history of the signal—without needing an excessive number of layers or parameters.
  • Residual Blocks & Gated Linear Units (GLU): The model uses five stacked residual blocks. Instead of standard ReLU activation functions, it employs Gated Linear Units to better control the flow of information and select relevant features from the noisy signal.
  • Matrix Computation: Because TCNs are convolution-based, the entire sequence can be processed as a large matrix operation on a GPU, enabling massive parallelization that RNNs cannot achieve.
  • Event-Free Processing: Causalcall maps raw signal directly to bases without an intermediate "event detection" step, which often introduces errors in traditional pipelines.

Experimental Setup and Datasets

The researchers trained Causalcall on a mixed dataset of 86 GB, including Lambda phage, E. coli DNA, and Human DNA (specifically chromosome 19 from the GM12878 cell line). For evaluation, they tested the model on four distinct sets: lambda phage, E. coli, human (chromosome 13), and a benchmarking strain of K. pneumoniae (INF042). They compared Causalcall against Chiron (the primary RNN-based competitor) and Oxford Nanopore’s official tools like Guppy and Flappie.

Results and Discussion

The primary insight of this work is that for genomic signals, a sufficiently wide convolutional "view" can capture the same long-range dependencies as an RNN, but much more efficiently. By shifting to a TCN, the computational burden moves from sequential logic to matrix algebra, optimized for modern GPUs.

Speed and Accuracy

Causalcall is nearly 3x faster than Chiron, processing roughly 7,000 bases per second on a single NVIDIA 1080ti. It consistently outperformed Chiron in "identity rate" (a measure of accuracy). For example, on lambda phage, Causalcall achieved 89.21% identity compared to Chiron’s 86.03%. It also achieved the lowest insertion and mismatch rates on phage and human samples among the open-source tools tested.

Genome Assembly and Methylation

When used for reference-based genome assembly of K. pneumoniae, Causalcall produced a consensus sequence with 99.81% identity, demonstrating its readiness for real-world genomic workflows. Furthermore, Causalcall showed a low error rate in Dcm-methylation motifs, suggesting the TCN architecture is adept at capturing subtle signal changes caused by epigenetic modifications.

Limitations and Future Work

Despite its successes, Causalcall faces challenges with "homopolymers" (long stretches of the same base), where the signal is often flat. Future iterations may integrate a "flip-flop" state strategy to address this. Additionally, while faster than other open-source tools, it trails behind highly optimized proprietary tools like Guppy. The authors plan to rewrite Causalcall in C++ to close this gap. Finally, the performance of any deep learning model is capped by its training data; high-quality, diverse training sets remain a critical bottleneck for the field.

Summary updated

BibTeX
@inproceedings{zeng2020causalcall,
  author = {Jingwen Zeng and Hongmin Cai and Hong Peng and Haiyan Wang and Yue Zhang and Tatsuya Akutsu},
  title = {{Causalcall: Nanopore Basecalling Using a Temporal Convolutional Network}},
  booktitle = {Frontiers in Genetics},
  year = {2020},
  doi = {10.3389/fgene.2019.01332},
}
Figure