Abstract Unpredictable limb movements or turning motions can significantly disrupt the extraction of respiratory and heart rate signals. Lying position detection plays a vital role in clinical settings, enabling continuous monitoring of patients' sleep conditions and respiratory rates. In this paper, a smart sleeping position recognition system is proposed, which employs a tactile pressure sensor array based on the unique structure of "the double-layer capacitors (EDLC)". The sensor array, comprising 64 rows and 32 columns (2048 nodes), captures four types of healthy lying positions using an 8-bit AD module. Despite challenges arising from limited experimental samples for accurate training, we propose DeepLPos, a hybrid deep learning approach combining Generative Adversarial Networks (GAN) and the YOLO network. To tackle the differentiation challenge between supine and prone positions, we introduce an SPD Conv attention module to enhance the resolution of detailed descriptions in pressure images. The designed model is then pruned to simplify its structure and parameters, ensuring fast and accurate lying position detection. Furthermore, we evaluate the performance of our proposed method on the SLP dataset and demonstrate an impressive accuracy rate of 97.5%. Real-time processing speed reaches 0.069s/frame, demonstrating the efficiency and effectiveness of the developed approach in practical applications.