Articles
Vol. 60 No. 2 (2026)
Design and Application of a Machine Learning Model for Quantitative Stock Selection Incorporating Association Analysis and Hierarchical Attention Mechanisms
Private Banking Department, China Construction Bank, Beijing, China
Management College, Beijing Union University, Beijing, China
Abstract
The application of machine learning models to assist investors in quantitative stock selection is an emerging topic of interest. However, due to the complex and dynamic nature of stock markets and issues such as market inefficiency, single machine learning models may underperform, and existing ensemble methods risk losing useful information. To address these challenges, this paper designs and optimises a machine learning model tailored to the characteristics of th e Chinese stock market and quantitative stock selection. The model incorporates association analysis into the feature engineering process, generating differentiated datasets through information addition. Furthermore, a hierarchical attention mechanism is introduced in the model integration phase, dynamically assigning weights to base models via "upward integration" and "downward allocation." The model's effectiveness is validated through comparative experiments, ablation studies, and hyperparameter analysis on a self -constructed dataset of over 3.34 million records. Backtesting further demonstrates its practical performance in the stock market, yielding promising results, as expected.
References
- [1] Adachi, A., Yamashita , T., Kanaya , S., Kosugi , Y. (2023) , Ensemble Machine
- Learning Approaches Based on Molecular Descriptors and Graph Convolutional
- Networks for Predicting the Efflux Activities of MDR1 and BCRP Transporters. The
- AAPS Journal, 25(5), 1-10.
- [2] Bagui, S.C. (2005), Combining Pattern Classifiers: Methods and Algorithms.
- Technometrics, (47), 517-518.
- [3] Breiman, L. (1996), Bagging Predictors. Machine Learning, (24), 123-140.
- [4] Chai, Y. (2024) , Emotion Intensity Detection in Online Media: An Attention
- Mechanism Based Multimodal Deep Learning Approach. Tehnicki vjesnik –Technical
- Gazette, 31(2), 587-595.
- [5] Chan, K., Hameed , A. (2006) , Stock Price Synchronicity and An alyst Coverage in
- Emerging Markets. Journal of Financial Economics, 80(1), 115-147.
- [6] Choi, Y.R., Lim , D.J. (2021) , DDES: A Distribution -Based Dynamic Ensemble
- Selection Framework. IEEE Access, (9), 40743-40754.
- [7] Cunningham, P., Carney , J. (2000) , Diversity v ersus Quality in Classification
- Ensembles Based on Feature Selection. European Conference on Machine Learning.
- (Jan), 1-9.
- [8] Dikici, S., Bilgin , T.T. (2025) , Advancements in Automated Program Repair: A
- Comprehensive Review. Knowledge and Information Systems, 67(6), 4737-4783.
- [9] Duan, B.L., Wang , R.F., Zhang, R. (2022) , Economic Links and Stock Returns in
- Chinese A-Share Market. Journal of Financial Research, (2), 171-188.
- [10] Feng, S.B., Xu, C., Zuo, Y., Chen, G., Lin, F., XiaHou, J.B. (2022) , Relation-Aware
- Dynamic Attributed Graph Attention Network for Stocks Recommendation. Pattern
- Recognition, (121), 108-119.
- [11] Ge, Y.B., Liu , W.J., Gu , Y.C. (2024) , Stock Price Prediction Method by Fusing
- Sentiment Analysis and GAN -TrellisNet. Computer Engineering and Applications,
- 60(12), 314-324.
- [12] Htun H.H., Biehl M., Petkov N. (2023) , Survey of Feature Selection and Extraction
- Techniques for Stock Market Prediction. Financial Innovation, 9(1).
- [13] Kim H, Moon K. S. (2024) , Optimal Data Construction in Supervised Machine
- Learning for Financial Prediction. Economic Computation and Economic Cybernetics
- Studies and Research, 58(1), 5-20.
- [14] Ko, H., Wang, B., Lim, J.S. (2024), Grad-CAM-Based Feature Selection and Dementia
- Classification Algorithm Using Voice Data. Tehnicki vjesnik–Technical Gazette, 31(6),
- 2036-2044.
- Design and Application of a Machine Learning Model for Quantitative Stock Selection …
- Vol. 60, Issue 2/2026 241
- [15] Lee, W.S., Lee, H.S. (2024), Asymmetric Volatility Connectedness Among G7 Stock
- Markets. Economic Computation and Economic Cybernetics Studies and Research,
- 58(1),87-103.
- [16] Li, B., Tu, X.Y. (2024), Research on Portfolio Selection Based on Machine Learning
- and Asset Characteristics. Systems Engineering - Theory & Practice, 44(1), 338-359.
- [17] Li, X.H., Wang , J., Jia , H.D., Xiao , L. (2022) , Stock Market Volatility Prediction
- Method Based on Graph Neural Network with Multi-Attention Mechanism. Journal of
- Computer Applications, 42(7), 2265-2273.
- [18] Liu, A.Y., Yue , D.Z., Chen , J.L., Chen , H. (2024) , Deep Learning for Intelligent
- Production Scheduling Optimization. International Journal of Simulation Modelling,
- 23(1), 172-183.
- [19] Liu, H.Z., D u, Y.P., W u, Z.H. (2019), AEM: Attentional Ensemble Model for
- Personalized Classifier Weight Learning. Pattern Recognit, 96(7), 1-8.
- [20] Liu, Z., Liu, X., Zhou, L. (2024), A Hybrid CNN and LSTM based Model for Financial
- Crisis Prediction. Tehnicki vjesnik–Technical Gazette, 31(1), 185-192.
- [21] Mesa, J.P., Montoya , A., Ramos -Pollan, R., Toro, M. (2025) , Machine-Learning
- Component for Multi -Start Metaheuristics to Solve the Capacitated Vehicle Routing
- Problem. Applied Soft Computing, (173), 112916-112916.
- [22] Niu, Z., Zhong, G., Yu , H. (2021) , A Review on the Attention Mechanism of Deep
- Learning. Neurocomputing, (452), 48-62.
- [23] Parsons, C.A., Sabbatucci, R., Titman, S. (2020), Geographic Lead-Lag Effects. The
- Review of Financial Studies, 33(10), 4721-4770.
- [24] Qin, C., C hang, J., Tu , W.T., Yu , C.R. (2024) , Follow AKO Investor: Stock
- Recommendation by Hearing Voices from all Kinds of Investors with Machine
- Learning. Expert Systems with Applications, 249(B).
- [25] Song, Z.Y., Zhou, Z.B., Yu, L.A., Ren, T.T. (2024), Portfolio Optimization Strategy
- with a hybrid Ensemble Forecasting Algorithm and Black -Litterman Model. Chinese
- Journal of Management Science, (5), 1-12.
- [26] Praveena, S. , Prasanna Devi, S. (2024) , A Sporadic Classification and Regression-
- Based Approach to Intermittent Demand Forecasting in Smart Supply Chain. Tehnicki
- vjesnik–Technical Gazette, 31(5), 1544-1552.
- [27] Thiruvenkatasamy, S., Sivaraj , R., Vijayakumar , M. (2024) , Blockchain Assisted
- Fireworks Optimization with Machine Learning based Intrusion Detection System
- (IDS). Tehnicki vjesnik–Technical Gazette, 31(2), 596-603.
- [28] Tsinaslanidis, P.E., Kugiumtzis, D. (2014), A Prediction Scheme Using Perceptually
- Important Points and Dynamic Time Warping. Expert Systems with Applications ,
- 41(15), 6848-6860.
- [29] Wolpert, D.H. (1992), Stacked Generalization. Neural Networks, 5(2), 241-59.
- [30] Xie, W., He, J., Huang, F., Ren, J. (2024), Supply Chain Financial Fraud Detection
- Based on Graph Neural Network and Knowledge Graph. Tehnicki vjesnik –Technical
- Gazette, 31(6), 2055-2063.
- Yuheng Zhang, Xin’e Li
- 242 Vol. 60, Issue 2/2026
- [31] Yin, X.C., Huang, K.Z., Yang, C., Hao H.W. (2014), Convex Ensemble Learning with
- Sparsity and Diversity. Information Fusion, (20),49-59.
- [32] Zhang, Q., Gong, Y.X., Zhang, X., Cai, X.L., Zheng, J. (2023), Intelligent Passenger
- Flow Analysis System for Urban Rail Transit Trains Based on Heterogeneous
- Ensemble Learning Method. Railway Computer Application, 32(7), 73-78.
- [33] Zhang, X. (2024), Visual Communication Design of Weak and Small Target Images
- Based on Image Processing Model and Data Fusion. Tehnicki vjesnik –Technical
- Gazette, 31(3), 815-823.
- [34] Zhou, L. (2021), Research on Multi-Factor Stock Investment Based on Random Forest
- Model. Financial Theory & Practice, (7), 97-103.