Cardiac arrhythmia, a condition characterized by irregular heartbeats, often serves as an early indication of various heart ailments. With the advent of deep learning, numerous innovative models have been introduced for diagnosing arrhythmias using electrocardiogram (ECG) signals. However, recent studies solely focus on the performance of models, neglecting the interpretation of their results. This leads to a considerable lack of transparency, posing a significant risk in the actual diagnostic process. To solve this problem, this article introduces MambaCapsule, a deep neural network for ECG arrhythmias classification, which increases the explainability of the model while enhancing the accuracy. Our model utilizes Mamba for feature extraction and Capsule networks for prediction, providing not only a confidence score but also signal features. Akin to the processing mechanism of human brain, the model learns signal features and their relationship between them by reconstructing ECG signals in the predicted selection. The model evaluation was conducted on Massachusetts Institute of Technology - Beth Israel Hospital (MIT-BIH) and Physikalisch-Technische Bundesanstalt Diagnostic ECG Database (PTB) datasets, following the AAMI standard. MambaCapsule has achieved a total accuracy of 99.54% and 99.59% on the test sets, respectively. These results demonstrate the promising performance under the standard test protocol.
Designing protein sequences with desired properties is a fundamental task in protein engineering. Recent advances in deep generative models have greatly accelerated this design process. However, most existing models face the issue of distribution centralization and focus on local compositional statistics of natural sequences instead of the global semantic organization of protein space, which confines their generation to specific regions of the distribution. These problems are amplified for functional proteins, whose sequence patterns strongly correlate with semantic representations and exhibit a long-tailed functional distribution, causing existing models to miss semantic regions associated with rare but essential functions. Here, we propose ProtFlow, a generative model designed for comprehensive semantic distribution learning of protein sequences, enabling high-quality sequence generation. ProtFlow employs a rectified flow matching algorithm to efficiently capture the underlying semantic distribution of the protein design manifold, and introduces a reflow technique enabling one-step sequence generation. We construct a semantic integration network to reorganize the representation space of large protein language models, facilitating stable and compact incorporation of global protein semantics. We pretrain ProtFlow on 2.6M peptide sequences and fine-tune it on antimicrobial peptides (AMPs), a representative class of therapeutic proteins exhibiting unevenly distributed activities across pathogen targets. Experiments show that ProtFlow outperforms state-of-the-art methods in generating high-quality peptides, and AMPs with desirable activity profiles across a range of pathogens, particularly against underrepresented bacterial species. These results demonstrate ProtFlow’s effectiveness in capturing the full training distribution and its potential as a general framework for computational protein design.