Submitted:
13 April 2025
Posted:
14 April 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Stock Market Sentiment Data Acquisition and Preprocessing
2.1. Data Collection Methods
2.2. Emotion Feature Extraction
2.3. Data Pre-Processing Techniques
3. Convolutional Neural Network Model Design
3.1. Network Architecture

3.2. Optimization of Model Parameters
3.3. Deep Learning Algorithm Selection
4. Experiments in Stock Market Sentiment Analysis and Forecasting
4.1. Experimental Data Set
4.2. Evaluation Indicators
- (1)
- Mean Square Error (MSE) measures the average squared error between the model's predicted value and the true value and is calculated as follows:Where, yi is the true value, is the model predicted value, and n is the number of samples. The smaller the MSE, the lower the model prediction error.
- (2)
- Mean Absolute Error (MAE) measures the average absolute error between the predicted value and the true value and is defined as follows:
- (3)
- The coefficient of determination ( ) reflects the goodness of fit of the model, ranging from 0 to 1, and is calculated as follows:Where is the mean of the true values. The closer the value is to 1, the better the predictive ability of the model.
- (4)
- The F1-score combines the Precision and Recall of the prediction and is used to measure the performance of the sentiment categorization task and is calculated as follows:
4.3. Analysis of Experimental Results
| Model | MSE | MAE | Score | F1-score |
| CNN | 0.025 | 0.110 | 0.85 | 0.78 |
| LSTM | 0.018 | 0.095 | 0.89 | 0.82 |
| CNN-LSTM | 0.015 | 0.082 | 0.92 | 0.87 |
| Baseline (Linear Regression) | 0.045 | 0.150 | 0.75 | 0.65 |
4.4. Model Performance Comparison
| Model | Training Time (s) | Inference Time (ms) | Parameter Size (MB) | Accuracy (%) |
| CNN | 120 | 5.2 | 45.0 | 82.5 |
| LSTM | 180 | 7.8 | 60.0 | 85.3 |
| CNN-LSTM | 240 | 9.1 | 85.0 | 88.7 |
| Baseline (Linear Regression) | 30 | 2.5 | 1.2 | 75.1 |
5. Conclusion
References
- Chen, K.; Zhao, S.; Jiang, G.; He, Y.; Li, H. The green innovation effect of the digital economy. Int. Rev. Econ. Finance 2025, 99. [Google Scholar] [CrossRef]
- Diao S, Huang S, Wan Y. Early detection of cervical adenocarcinoma using immunohistochemical staining patterns analyzed through computer vision technology[C]//The 1st International scientific and practical conference “Innovative scientific research: theory, methodology, practice”(–06, 2024) Boston, USA. International Science Group. 2024. 289 p. 2024: 256. 03 September.
- Diao S, Wan Y, Huang S, et al. Research on cancer prediction and identification based on multimodal medical image fusion[C]//Proceedings of the 2024 3rd International Symposium on Robotics, Artificial Intelligence and Information Engineering. 2024: 120-124.
- Gong C, Lin Y, Cao J, et al. Research on Enterprise Risk Decision Support System Optimization based on Ensemble Machine Learning[C]//Proceeding of the 2024 5th International Conference on Computer Science and Management Technology. 2024: 1003-1007.
- Gong C, Zhong Y, Zhao S, et al. Application of Machine Learning in Predicting Extreme Volatility in Financial Markets: Based on Unstructured Data[C]//The 1st International scientific and practical conference “Technologies for improving old methods, theories and hypotheses”(–10, 2025) Sofia, Bulgaria. International Science Group. 2025. 405 p. 2025: 47. 07 January.
- Huang S, Diao S, Wan Y, et al. Research on multi-agency collaboration medical images analysis and classification system based on federated learning[C]//Proceedings of the 2024 International Conference on Biomedicine and Intelligent Technology. 2024: 40-44.
- Huang S, Diao S, Zhao H, et al. The contribution of federated learning to AI development[C]//The 24th International scientific and practical conference “Technologies of scientists and implementation of modern methods”(–21, 2024) Copenhagen, Denmark. International Science Group. 2024. 431 p. 2024: 358. 18 June.
- Jian X, Zhao H, Yang H, et al. Self-Optimization of FDM 3D Printing Process Parameters Based on Machine Learning[C]//The 24th International scientific and practical conference “Technologies of scientists and implementation of modern methods”(–21, 2024) Copenhagen, Denmark. International Science Group. 2024. 431 p. 2024: 369. 18 June.
- Jiang, G.; Huang, S.; Zou, J. Impact of AI-Driven Data Visualization on User Experience in the Internet Sector. Sci. J. Technol. 2024, 6, 1–8. [Google Scholar] [CrossRef]
- Meng Q, Wang J, He J, et al. Research on Green Warehousing Logistics Site Selection Optimization and Path Planning based on Deep Learning[J]. 2025.
- Shimin L E I, Ke X U, Huang Y, et al. An Xgboost based system for financial fraud detection[C]//E3S Web of Conferences. EDP Sciences, 2020, 214: 02042.
- Shui H, Sha X, Chen B, et al. Stock weighted average price prediction based on feature engineering and Lightgbm model[C]//Proceedings of the 2024 International Conference on Digital Society and Artificial Intelligence. 2024: 336-340.
- Yang, J.; Tian, K.; Zhao, H.; Feng, Z.; Bourouis, S.; Dhahbi, S.; Khan, A.A.; Berrima, M.; Por, L.Y. Wastewater treatment monitoring: Fault detection in sensors using transductive learning and improved reinforcement learning. Expert Syst. Appl. 2024, 264. [Google Scholar] [CrossRef]
- Zhao, H.; Chen, Y.; Dang, B.; Jian, X. Research on Steel Production Scheduling Optimization based on Deep Learning. 2024 4th International Symposium on Artificial Intelligence and Intelligent Manufacturing (AIIM). LOCATION OF CONFERENCE, ChinaDATE OF CONFERENCE; pp. 813–816.
- Zhao S, Lu Y, Gong C, et al. Research on Labour Market Efficiency Evaluation Under Impact of Media News Based on Machine Learning and DMP Model[J]. 2025.

| Date | Stock Index | Trading Volume | Positive Sentiment | Negative Sentiment | Sentiment Index |
| 2024-01-01 | 3450.25 | 1.2 × 10⁹ | 0.65 | 0.30 | 0.35 |
| 2024-01-02 | 3482.10 | 1.35 × 10⁹ | 0.72 | 0.22 | 0.50 |
| 2024-01-03 | 3425.75 | 1.1 × 10⁹ | 0.60 | 0.35 | 0.25 |
| 2024-01-04 | 3501.30 | 1.5 × 10⁹ | 0.75 | 0.20 | 0.55 |
| 2024-01-05 | 3550.40 | 1.6 × 10⁹ | 0.80 | 0.15 | 0.65 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).