A Study on Predicting Short-Term Interest Behaviour of Social Media Users Based on Cosine Clustering and Sliding Window Logistic Regression

Authors

  • Junpeng Yuan
  • Jingmin Lan
  • Yiting Qiu
  • Dang Gan
  • Jiaxin Huang
  • Yun Huang
  • Nuo Chen
  • Hang Zeng
  • Yiweige Li

DOI:

https://doi.org/10.54097/883e3j76

Keywords:

User-blogger interaction, Dynamic Bayesian networks, Cosine similarity clustering, Sliding window features, Binary logistic regression.

Abstract

In recent years, social media platforms have profoundly influenced human social interactions and information acquisition. Precise analysis of user needs enables efficient content matching, fostering positive ecosystem cycles that ultimately enhance platform competitiveness and commercial value. Addressing the requirement to "predict which users will gain new followers on 22 July" for a specific social media platform, this paper proposes a user-blogger interaction modelling approach integrating Dynamic Bayesian Network principles with collaborative filtering mechanisms. First, a normalised user-blogger interaction matrix is constructed, utilizing cosine similarity to partition users into three interest-homogeneous clusters. Subsequently, a three-day sliding window extracts daily totals of views, likes, and comments as short-term behavioural features. Independent binary Logistic regression models with L1 regularisation are trained for each cluster, addressing positive-negative sample imbalance through oversampling. Time-series cross-validation (training: 11–17 July; validation: 18–20 July) indicates optimal performance with a three-day window, achieving adjusted R² ≥ 0.84. The final model outputs the probability of all unfollowed bloggers following each other on 22 July, alongside a Top-3 recommendation. Taking U7 as an example, the probability of them following B7 reached 85.37%. Robustness and sensitivity tests demonstrate the model's sound stability and practical value for platform recommendation scenarios. This paper excels in dynamic data modelling, drawing extensively from literature to establish an optimal model with comprehensive consideration of the problem. Having passed robustness and sensitivity tests, the model holds reference value for platform push notifications.

References

[1] Li Baoku, Meng Siyan. Research on Predicting Consumer Behaviour on Social Media Platforms: An Optimised LightGBM Algorithm Approach [J]. Journal of Changchun University, 2025, 35(07): 26-30.

[2] Yuan Lenyong. Research on User Procurement Behaviour Prediction Models Based on Data Intelligence: Technological Innovation Practices from the Perspective of New Quality Productivity [J]. Yunnan Chemical Industry, 2025, 52(07): 84-88.

[3] Gao Ziqin. Consumer Behaviour Research Based on Big Data Analysis: Taking E-commerce Platforms as an Example [J]. China Business Review, 2025, 34(11): 138-141. DOI:10.19699/j.cnki.issn2096-0298.2025.11.138.

[4] Li Xiaofei, Wang Bo. Enhancing the Influence of Dalian's City Image Communication in the New Media Context [J/OL]. Journal of Dalian University, 1-10 [2025-07-28]. http://kns.cnki.net/kcms/detail/21.1390.G4.20250717.1526.002.html.

[5] Liu Yifeng. Consumer Behaviour Prediction Models in Marketing During the Big Data Era [J]. Digital Economy, 2024, (11): 77-79.

[6] Liu Wenxia, Xie Qian. A Study on the Influence of Corporate Social Media Generated Content Quality on Users' Continued Usage Behaviour [J/OL]. Xinjiang Agricultural Reclamation Economy, 1-17 [2025-07-28].

Downloads

Published

28-11-2025

Issue

Section

Articles

How to Cite

Yuan, J., Lan, J., Qiu, Y., Gan, D., Huang, J., Huang, Y., Chen, N., Zeng, H., & Li, Y. (2025). A Study on Predicting Short-Term Interest Behaviour of Social Media Users Based on Cosine Clustering and Sliding Window Logistic Regression. Mathematical Modeling and Algorithm Application, 6(3), 33-35. https://doi.org/10.54097/883e3j76