Advancements in clinical diagnosis of heart disease are driven by technological innovations and signal processing developments. ECG segmentation, particularly QRS com- plex detection, plays a crucial role in cardiac cycle anal- ysis. Deep learning has revolutionized automated ECG analysis, enhancing diagnostic accuracy significantly. This paper proposes an optimized Region Proposal Network (RPN) architecture for QRS complex detection, specifically designed for 1D signals. Leveraging a vast ECG dataset, extensive data augmentation, feature extrac- tion, and RPN-based QRS detection were employed. Our method achieved a QRS detection F1 score of up to 99 %, highlighting its high reliability. Further- more, QRS complex delineation exhibited deviations typ- ically within 8 ms. The results were verified using a pub- licly available Lobachevsky University Electrocardiogra- phy Database (LUDB), with validation yielding F1 score of 91.59 % for qrs detection and RMSE of 10.38 ms for QRS complex delineation. The optimized RPN architecture for QRS complex detec- tion presents a promising solution for efficient ECG anal- ysis.