The rapid growth of social networking sites in the Internet era has made them a necessary tool for sharing emotions with the entire world. To extract emotions from text, a variety of tools and approaches are available in fields of opinion mining as well as sentiment analysis. These researches propose novel technique opinion mining based emotion detection from the input social content using deep learning architectures. Here the input has been obtained as social media content based on opinion miningby 5G networks. The input has been processed for noise removal, smoothening and normalization. This processed input has been segmented using Markov model based convolutional neural networks (MMCNN). The segmented data has been classified using Canonical Correlation AnalysisBayesian neural network.An opinion mining method that analyzes statements regarding computer programming and predicts or recognizes their polarity was implemented, along with an earlier module that was integrated into an intelligent learning environment. These three steps made up the creation of the module. We assessed the corpus, text polarity precision, and emotion recognition. Experimental analysis has been carried out for various social media content collected by opinion mining in terms of accuracy, precision, recall, F-1 score, AUC.Proposed technique attained accuracy of 99%, precision of 96%, recall of 96%, F-1 score of 95%, AUC of 89%.