The reconfigurable intelligent surface (RIS) is one of the most innovative and revolutionary technologies for increasing the effectiveness of wireless systems. Deep learning (DL) is a promising method that can enhance system efficacy using powerful tools in RIS-based environments. However, the lack of extensive training of the DL model results in the reduced prediction of feature information and performance failure. Hence, to address the issues, in this paper, a combined DL-based optimal decoding model is proposed to improve the transmission error rate and enhance the overall efficiency of the RIS-assisted multiple-input multiple-output communication system. The proposed DL model is comprised of a 1-dimensional convolutional neural network (1-D CNN) and a gated recurrent unit (GRU) module where the 1-D CNN model is employed for the extraction of features from the received signal with further process over the configuration of different layers. Thereafter, the processed data are used by the GRU module for successively retrieving the transmission signal with a minimal error rate and accelerating the convergence rate. It is initially trained offline using created OFDM data sets, after which it is used online to track the channel and extract the transmitted data. The simulation results show that the proposed network performs better than the other technique that was previously used in terms of bit error rate and symbol error rate. The outcomes of the model demonstrate the suitability of the proposed model for use with the next-generation wireless communication system.