Electrocardiography and photoplethysmography are non-invasive techniques that measure signals from the cardiovascular system. While the cycles of the two measurements are highly correlated, the correlation between the waveforms has rarely been studied. Measuring the photoplethysmogram (PPG) is much easier and more convenient than the electrocardiogram (ECG). Recent research has shown that PPG can be used to reconstruct the ECG, indicating that practitioners can gain a deep understanding of the patients’ cardiovascular health using two physiological signals (PPG and ECG) while measuring only PPG. This study proposes a subject-based deep learning model that reconstructs an ECG using a PPG and is based on the bidirectional long short-term memory model. Because the ECG waveform may vary from subject to subject, this model is subject-specific. The model was tested using 100 records from the MIMIC III database. Of these records, 50 had a circulatory disease. The results show that a long ECG signal could be effectively reconstructed from PPG, which is, to our knowledge, the first attempt in this field. A length of 228 s of ECG was constructed by the model, which was trained and validated using 60 s of PPG and ECG signals. To segment the data, a different approach that segments the data into short time segments of equal length (and that do not rely on beats and beat detection) was investigated. Segmenting the PPG and ECG time series data into equal segments of 1-min width gave the optimal results. This resulted in a high Pearson’s correlation coefficient between the reconstructed 228 s of ECG and referenced ECG of 0.818, while the root mean square error was only 0.083 mV, and the dynamic time warping distance was 2.12 mV per second on average.
Robust Reconstruction of Electrocardiogram Using Photoplethysmography: A Subject-Based Model