In the era of thriving new media, analysing student online sentiment is crucial for understanding student group dynamics and ensuring campus stability. This paper introduces a deep learning-based method for semantic understanding and categorisation of student online sentiment in new media. We collected extensive student speech data from social media, forums, and comments, creating a high-quality dataset through text pre-processing. A combined model that leverages both convolutional neural networks and long short-term memory networks efficiently captures textual characteristics and performs sentiment analysis. By incorporating an attention mechanism, the model focuses on key sentiment expressions. Experiments show our method’s superiority in semantic understanding and categorisation tasks, with accuracy and F1 score improvements of approximately 15% and 18% over existing techniques, offering valuable insights for educational administrators and robust technical support for new media public opinion monitoring and analysis. © 2024 Inderscience Enterprises Ltd.