Improved deep learning techniques in gravitational-wave data analysis