As the heartbeat detection from ballistocardiogram (BCG) signals using force sensors is interfered by respiratory effort and artifact motion, advanced signal processing algorithms are required to detect the J-peak of each BCG signal so that beat-to-beat interval can be identified. However, existing methods generally rely on rule-based detection of a fixed size, without considering the rhythm features in a large time scale covering multiple BCG signals. Methods. This paper develops a deep learning framework based on ResNet and bidirectional long short-term memory (BiLSTM) to conduct beat-to-beat detection of BCG signals. Unlike the existing methods, the proposed network takes multiscale features of BCG signals as the input and, thus, can enjoy the complementary advantages of both morphological features of one BCG signal and rhythm features of multiple BCG signals. Different time scales of multiscale features for the proposed model are validated and analyzed through experiments. Results. The BCG signals recorded from 21 healthy subjects are conducted to verify the performance of the proposed heartbeat detection scheme using leave-one-out cross-validation. The impact of different time scales on the detection performance and the performance of the proposed model for different sleep postures are examined. Numerical results demonstrate that the proposed multiscale model performs robust to sleep postures and achieves an averaged absolute error
E
abs
and an averaged relative error
E
rel
of the heartbeat interval relative to the R-R interval of 9.92 ms and 2.67 ms, respectively, which are superior to those of the state-of-the-art detection protocol. Conclusion. In this work, a multiscale deep-learning model for heartbeat detection using BCG signals is designed. We demonstrate through the experiment that the detection with multiscale features of BCG signals can provide a superior performance to the existing works. Further study will examine the ultimate performance of the multiscale model in practical scenarios, i.e., detection for patients suffering from cardiovascular disorders with night-sleep monitoring.