Electrocardiography (ECG) and photoplethysmography (PPG) are non-invasive methods used to quantify signals originating from the cardiovascular system. Although there is a strong correlation between the cycles of the two measures, the correlation between the waveforms has received little attention in research. Measuring the PPG is significantly simpler and more convenient compared to the ECG measure. Recent research has demonstrated that PPG signals can be utilized to rebuild the ECG signals, suggesting that healthcare professionals might acquire a comprehensive comprehension of patients' cardiovascular well-being by only measuring PPG. With the advancement of artificial intelligence, the deep learning model has made significant progress in reconstructing ECG signals from PPG signals. However, the quality of the reconstructed ECG signal is still in need of more enhancement. In order to enhance the quality of the reconstructed ECG signal, we propose an innovative hybrid attention-based bidirectional recurrent neural network (Bi-RNN) that incorporates a dilated convolutional neural network technique for the purpose of reconstructing ECG signals from PPG signals. This addresses issues that occur when standard dilated CNN (DCNN) models neglect the link between circumstances and dispersion of gradients. The suggested approach maximizes the utilization of the DCNN and Bi-RNN unit design to provide fusion features. In order to ensure the model's resilience to deformation, it is imperative to initially extract spatial properties utilizing convolutional neural networks (CNNs). Once we have obtained geographic data, we employ BiLSTM to extract temporal features. The proposed model is so-called hybrid attention-based CNN and BiLSTM (HA-CNN-BiLSTM). BiLSTM mitigates the issues of gradient vanishing and exploding while maintaining accuracy. To showcase the advantages of the suggested model, we conduct a comparison between HA-CNN-BiLSTM and each separate state-of-the-art method. The simulation results indicated that the proposed method yielded superior root mean square error (RMSE) when reconstructing the ECG signal across different optimizers. The results also demonstrated that the proposed method results in the lowest RMSE with SGDM optimizer which is 0.031.