In recent times, the several cyber attacks are occurred on the network and thus, essential tools are needed for detecting intrusion over the network. Moreover, the network intrusion detection systems become an important tool thus, it has the ability to safeguard the source data from all malicious activities or threats as well as protect the insecurity among individual privacy. Moreover, many existing research works are explored to detect the network intrusion model but it fails to protect the target network efficiently based on the statistical features. A major issue in the designed model is regarded as the robustness or generalization that has the capability to control the working performance when the data is attained from various distributions. To handle all the difficulties, a new meta-heuristic hybrid-based deep learning model is introduced to detect the intrusion. Initially, the input data is garnered from the standard data sources. It is then undergone the pre-processing phase, which is accomplished through duplicate removal, replacing the NAN values, and normalization. With the resultant of pre-processed data, the auto encoder is utilized for extracting the significant features. To further improve the performance, it requires choosing the optimal features with the help of an Improved chimp optimization algorithm known as IChOA. Subsequently, the optimal features are subjected to the newly developed hybrid deep learning model. The hybrid model is built by incorporating the deep temporal convolution network and gated recurrent unit, and it is termed as DINet, in which the hyper parameters are tuned by an improved IChOA algorithm for attaining optimal solutions. Finally, the proposed detection model is evaluated and compared with the former detection approaches. The analysis shows the developed model is suggested to provide 97% in terms of accuracy and precision. Thus, the enhanced model elucidates that to effectively detect malware, which tends to improve data transmission significantly and securely.