In communication technologies, device-to-device (D2D) communication is essential for resource management and power control, which are major research concerns nowadays. D2D resource allocation involves dividing vital resources, such as time, power, and spectrum, among several devices. Each device can connect to other devices via one or more frequency channels. D2D communication shares the cellular user resources, while signal power transmission causes interference to the users who share the same channel. So, there is a need to control the power of the D2D device to prevent interference. For proper power control and optimization of multi-channel D2D communication, which is a challenging task, we proposed a deep learning approach incorporating a hybrid resource allocation framework. This framework aims to increase the sum rate of D2D user equipment (DUE) while considering quality of service (QoS) factors like limiting interference to cellular user equipment (CUE) and guaranteeing individual DUE rates above a certain threshold. The proposed resource allocation scheme combines two methods, namely a metaheuristic hybrid particle swarm Cauchy approach to African vulture optimization (HPSCAV) and a modified long short-term memory (MLSTM) based approach. The HPSCAV scheme helps to ensure that the QoS constraints are met, while the MLSTM-based approach is utilized for efficient resource allocation by optimizing the power and improving it with HPSCAV. Simulation results validate that the proposed model achieved better performance in various metrics such as system capacity, power consumption, spectral efficiency (SE), and energy efficiency (EE).