基于Transformer-LSTM算法的电子商务平台用户行为预测研究
Research on User Behavior Prediction of E-Commerce Platform Based on Transformer-LSTM Algorithm
DOI: 10.12677/ecl.2025.1472385, PDF,   
作者: 周文钦:浙江建设职业技术学院建筑工程学院,浙江 杭州
关键词: Transformer-LSTMLSTM用户行为预测Transformer-LSTM LSTM User Behavior Prediction
摘要: 本文探讨了在电子商务领域,利用Transformer-LSTM混合神经网络算法对用户行为进行预测的方法。随着网络购物的普及,用户浏览、收藏、加入购物车等在电商平台产生的大量行为数据成为预测其购买行为的关键信息。在处理此类序列性和依附关系复杂的数据时,传统的机器学习方法有一定的局限性。因此,本文提出了一种结合Transformer和LSTM的混合神经网络模型,以提高预测的准确性和效率。Transformer模型擅长在序列数据中捕捉长时间的依赖关系和并行计算,而LSTM则可以针对梯度消失和爆炸等问题,对长序列数据进行有效处理。本文的模型首先通过Transformer对用户行为数据进行编码,提取关键特征,然后利用LSTM对提取的特征序列进行建模,最终实现对用户购买行为的预测。实验结果显示,该模型比传统的LSTM模型在精确度、精确率、召回率、F1-score等指标上都要好,在电商用户行为预测上显示出潜力和优势。电商平台通过这种改良的模式,能够将商品更精准地推荐给用户,提升用户的购物体验,同时也提高了平台的经济效率。
Abstract: This paper discusses the method of predicting user behavior by using the Transformer-LSTM hybrid neural network algorithm in the field of e-commerce. With the popularity of online shopping, the large amount of behavioral data generated by users on e-commerce platforms (such as browsing, collecting, adding to shopping carts, etc.) has become the key information for predicting their purchasing behaviors. Traditional machine learning methods have certain limitations when dealing with such data that have complex sequentiality and dependencies. Therefore, this paper proposes a hybrid neural network model combining Transformer and LSTM to improve the accuracy and efficiency of prediction. The Transformer model is good at capturing long-term dependencies and parallel computing in sequence data, while LSTM can effectively handle long sequence data and solve the problems of vanishing and exploding gradients. The model in this paper first encodes the user behavior data through Transformer to extract key features, and then uses LSTM to model the extracted feature sequence, ultimately achieving the prediction of user purchasing behavior. The experimental results show that this model outperforms the traditional LSTM model in terms of indicators such as accuracy rate, precision rate, recall rate and F1-score, demonstrating its potential and advantages in the prediction of e-commerce user behaviors. Through this improved model, e-commerce platforms can recommend products to users more accurately, enhancing the shopping experience of users and the economic benefits of the platform.
文章引用:周文钦. 基于Transformer-LSTM算法的电子商务平台用户行为预测研究[J]. 电子商务评论, 2025, 14(7): 1902-1910. https://doi.org/10.12677/ecl.2025.1472385

参考文献

[1] Curme, C., Preis, T., Stanley, H.E., et al. (2014) Quantifying the Semantics of Search Behavior before Stock Market Moves. Proceedings of the National Academy of Sciences of the United States of America, 111, 11600-11605. [Google Scholar] [CrossRef] [PubMed]
[2] 雷名龙. 基于阿里巴巴大数据的购物行为研究[J]. 物联网技术, 2016, 6(5): 57-60.
[3] 张春生, 图雅, 翁慧, 等. 基于电子商务同类商品的推荐算法研究[J]. 计算机技术与发展, 2016, 26(5): 17-21.
[4] Vieira, A. (2015) Predicting Online User Behaviour Using Deep Learning Algorithms. arXiv: 1511.06247.
[5] 马月坤, 刘鹏飞. 基于知识库的客户网购意向预测系统[J]. 计算机工程与应用, 2016, 52(13): 101-109.
[6] 杨守怀, 黄江流, 陈志华, 等. 基于Transformer-LSTM混合神经网络的迫弹外弹道及落点预测方法[J/OL]. 兵工学报: 1-10.
https://link.cnki.net/urlid/11.2176.TJ.20250520.1130.004, 2025-05-30.
[7] 王首晨, 王利民. LSTM与Transformer融合模型在时间序列预测中的应用研究[J]. 网络安全与数据治理, 2025, 44(3): 27-31, 38.
[8] 李沁远, 雷文平, 闫灏, 等. 基于特征选择与Transformer-LSTM的滚动轴承寿命预测[J]. 组合机床与自动化加工技术, 2025(2): 200-206, 211.
[9] 王亿, 曹姗姗, 孙伟, 等. 融合Transformer和LSTM的蓝莓根区土壤含水量预测模型[J]. 湖北农业科学, 2024, 63(8): 78-84.
[10] 张帆, 姚德臣, 姚圣卓, 等. 基于Transformer-LSTM网络的轴承寿命预测[J]. 振动与冲击, 2024, 43(6): 320-328.