Predicting E-commerce Customer Purchase Behavior Using LSTMAttention Neural Networks and Data Optimization Strategies
Abstract
In this study, based on neural network algorithm, a prediction model of e-commerce customer purchase behavior was constructed, and the data pre-processing, training strategy and model selection were optimized to improve the prediction accuracy and generalization ability. Firstly, data preprocessing methods such as missing value filling, normalization, Thermal coding and PCA dimensionality reduction are used to effectively optimize data quality and improve the learning ability of the model. Secondly, in terms of training strategy, dynamic learning rate adjustment, gradient clipping, batch training optimization and stop in advance are introduced to reduce overfitting risk and improve training stability. The study compared the performance of logistic regression, random forest, LSTM and LSTM+Attention models. LSTM+Attention model was evaluated using a 12-month e-commerce dataset comprising 1,058 user records, incorporating features such as user demographics, historical purchase behavior, browsing data, shopping cart actions, product metadata, and promotional interactions.The input features were preprocessed using normalization, one-hot encoding, and PCA, and models were trained with optimized hyperparameters using stratified sampling and cross-validation. The study compared four models— logistic regression, random forest, LSTM, and LSTM+Attention.LSTM+Attention achieved the highest performance with 91.3% accuracy and AUC-ROC of 0.95, outperforming logistic regression (76.8%), random forest (81.5%), and LSTM alone (88.9%).These results demonstrate the effectiveness of combining temporal modeling with attention mechanisms in predicting e-commerce customer purchase behavior. This paper analyzes the value of predictive model in business applications such as personalized recommendation, precision marketing, dynamic pricing, inventory management, etc., and shows that the model can effectively improve the operational efficiency and user experience of e-commerce platforms. Through literature review, this study further discusses the development trend of e-commerce prediction model, which provides theoretical support and practical guidance for the intelligent decision-making of e-commerce platform.DOI:
https://doi.org/10.31449/inf.v49i31.8875Downloads
Published
How to Cite
Issue
Section
License
I assign to Informatica, An International Journal of Computing and Informatics ("Journal") the copyright in the manuscript identified above and any additional material (figures, tables, illustrations, software or other information intended for publication) submitted as part of or as a supplement to the manuscript ("Paper") in all forms and media throughout the world, in all languages, for the full term of copyright, effective when and if the article is accepted for publication. This transfer includes the right to reproduce and/or to distribute the Paper to other journals or digital libraries in electronic and online forms and systems.
I understand that I retain the rights to use the pre-prints, off-prints, accepted manuscript and published journal Paper for personal use, scholarly purposes and internal institutional use.
In certain cases, I can ask for retaining the publishing rights of the Paper. The Journal can permit or deny the request for publishing rights, to which I fully agree.
I declare that the submitted Paper is original, has been written by the stated authors and has not been published elsewhere nor is currently being considered for publication by any other journal and will not be submitted for such review while under review by this Journal. The Paper contains no material that violates proprietary rights of any other person or entity. I have obtained written permission from copyright owners for any excerpts from copyrighted works that are included and have credited the sources in my article. I have informed the co-author(s) of the terms of this publishing agreement.
Copyright © Slovenian Society Informatika







