{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,25]],"date-time":"2026-09-25T00:56:36Z","timestamp":1790297796714,"version":"4.1.0"},"reference-count":24,"publisher":"MDPI AG","issue":"11","license":[{"start":{"date-parts":[[2023,10,29]],"date-time":"2023-10-29T00:00:00Z","timestamp":1698537600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Computation"],"abstract":"<jats:p>The paper focuses on predicting the next purchase day (NPD) for customers in e-commerce, a task with applications in marketing, inventory management, and customer retention. A novel transformer-based model for NPD prediction is introduced and compared to traditional methods such as ARIMA, XGBoost, and LSTM. Transformers offer advantages in capturing long-term dependencies within time series data through self-attention mechanisms. This adaptability to various time series patterns, including trends, seasonality, and irregularities, makes them a promising choice for NPD prediction. The transformer model demonstrates improvements in prediction accuracy compared to the baselines. Additionally, a clustered transformer model is proposed, which further enhances accuracy, emphasizing the potential of this architecture for NPD prediction.<\/jats:p>","DOI":"10.3390\/computation11110210","type":"journal-article","created":{"date-parts":[[2023,10,30]],"date-time":"2023-10-30T12:50:42Z","timestamp":1698670242000},"page":"210","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":17,"title":["Transformer-Based Model for Predicting Customers\u2019 Next Purchase Day in e-Commerce"],"prefix":"10.3390","volume":"11","author":[{"ORCID":"https:\/\/orcid.org\/0009-0001-3281-4223","authenticated-orcid":false,"given":"Alexandru","family":"Grigora\u0219","sequence":"first","affiliation":[{"name":"Faculty of Automatic Control and Computer Engineering, \u201cGheorghe Asachi\u201d Technical University of Iasi, Bd. Mangeron 27, 700050 Iasi, Romania"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1370-9145","authenticated-orcid":false,"given":"Florin","family":"Leon","sequence":"additional","affiliation":[{"name":"Faculty of Automatic Control and Computer Engineering, \u201cGheorghe Asachi\u201d Technical University of Iasi, Bd. Mangeron 27, 700050 Iasi, Romania"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2023,10,29]]},"reference":[{"key":"ref_1","unstructured":"(2023, September 01). What Is Ecommerce? A Comprehensive Guide (2023). Available online: https:\/\/www.shopify.com\/blog\/what-is-ecommerce."},{"key":"ref_2","first-page":"163","article-title":"Customer Behavior Analysis in E-Commerce using Machine Learning Approach: A Survey","volume":"9","author":"Sharma","year":"2023","journal-title":"IJSRCSEIT"},{"key":"ref_3","unstructured":"(2023, September 01). 15 Critical Ecommerce Metrics You Must Track (2023). Available online: https:\/\/www.shopify.com\/blog\/basic-ecommerce-metrics."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"69","DOI":"10.7166\/31-3-2419","article-title":"Using machine learning to predict the next purchase date for an individual retail customer","volume":"31","author":"Droomer","year":"2020","journal-title":"SAJIE"},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Sharma, A., Randhawa, P., and Alharbi, H.F. (2022, January 29\u201331). Statistical and Machine Learning Approaches to Predict the Next Purchase Date: A Review. Proceedings of the 4th International Conference on Applied Automation and Industrial Diagnostics, Hail, Saudi Arabia.","DOI":"10.1109\/ICAAID51067.2022.9799494"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"35","DOI":"10.4316\/AECE.2020.02005","article-title":"Deep Learning Based Prediction Model for the Next Purchase","volume":"20","author":"Utku","year":"2020","journal-title":"AECE"},{"key":"ref_7","unstructured":"Droomer, M. (2020). Predicting the Next Purchase Date for an Individual Customer using Machine Learning. [Master\u2019s Thesis, Stellenbosch University]."},{"key":"ref_8","first-page":"105","article-title":"A comparative machine learning study for time series oil production forecasting: ARIMA, LSTM, and Prophet","volume":"164","author":"Ning","year":"2021","journal-title":"C&G"},{"key":"ref_9","first-page":"100","article-title":"Novel XGBoost-Based Featurization Approach to Forecast Renewable Energy Consumption with Deep Learning Models","volume":"38","author":"Abbasimehr","year":"2021","journal-title":"SUSCOM"},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Lucaciu, R. (2022, January 9\u201310). Time Series Forecasting And Big Data: Can An Ensemble Of Weak Learners Decrease Costs While Maintaining Accuracy?. Proceedings of the 17th International Conference on Engineering of Modern Electric Systems, Oradea, Romania.","DOI":"10.1109\/EMES58375.2023.10171639"},{"key":"ref_11","first-page":"106","article-title":"Attention-based LSTM network-assisted time series forecasting models for petroleum production","volume":"123","author":"Indrajeet","year":"2023","journal-title":"EAAI"},{"key":"ref_12","first-page":"119","article-title":"Enhancing Time Series Forecasting: A Hierarchical Transformer with Probabilistic Decomposition Representation","volume":"647","author":"Tong","year":"2023","journal-title":"IS"},{"key":"ref_13","first-page":"105","article-title":"Transformer neural networks for interpretable flood forecasting","volume":"160","author":"Castangia","year":"2022","journal-title":"EM&S"},{"key":"ref_14","unstructured":"Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, \u0141., and Polosukhin, I. Attention is all you need, In Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, CA, USA, 4\u20139 December 2017."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Zeng, A., Chen, M., Zhang, L., and Xu, Q. (2022, January 7\u201314). Are Transformers Effective for Time Series Forecasting?. Proceedings of the 37th AAAI Conference on Artificial Intelligence, Washington DC, USA.","DOI":"10.1609\/aaai.v37i9.26317"},{"key":"ref_16","unstructured":"(2023, September 01). Road Map For Predicting Next Purchase Day of Customers (2020). Available online: https:\/\/medium.com\/@cerendumen\/road-map-for-predicting-next-purchase-day-of-customers-8af960ba3e7b."},{"key":"ref_17","first-page":"129","article-title":"Least squares quantization in PCM","volume":"28","author":"Stuart","year":"1982","journal-title":"IEEETOIT"},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Kotriwala, A., Hernandez-Leal, P., and Kaisers, M. (2018, January 21\u201325). Load Classification and Forecasting for Temporary Power Installations. Proceedings of the 2018 IEEE PES Innovative Smart Grid Technologies Conference Europe, Sarajevo, Bosnia and Herzegovina.","DOI":"10.1109\/ISGTEurope.2018.8571849"},{"key":"ref_19","unstructured":"(2023, September 01). Online Retail Data Set (2017). Available online: https:\/\/www.kaggle.com\/datasets\/vijayuv\/onlineretail."},{"key":"ref_20","unstructured":"(2023, September 01). AutoTS documentation (2023). Available online: https:\/\/winedarksea.github.io\/AutoTS\/build\/html\/source\/tutorial.html."},{"key":"ref_21","unstructured":"(2023, September 01). XGboost documentation (2023). Available online: https:\/\/xgboost.readthedocs.io\/en\/stable\/python\/python_intro.html."},{"key":"ref_22","unstructured":"(2023, September 01). TensorFlow: Large-scale machine learning on heterogeneous systems (2023). Available online: https:\/\/www.tensorflow.org\/."},{"key":"ref_23","first-page":"2825","article-title":"Scikit-learn: Machine Learning in Python","volume":"12","author":"Pedregosa","year":"2011","journal-title":"JMLR"},{"key":"ref_24","first-page":"427","article-title":"Distribution of the Estimators for Autoregressive Time Series With a Unit Root","volume":"74","author":"Dickey","year":"1979","journal-title":"JASA"}],"container-title":["Computation"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2079-3197\/11\/11\/210\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T21:13:49Z","timestamp":1760130829000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2079-3197\/11\/11\/210"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,10,29]]},"references-count":24,"journal-issue":{"issue":"11","published-online":{"date-parts":[[2023,11]]}},"alternative-id":["computation11110210"],"URL":"https:\/\/doi.org\/10.3390\/computation11110210","relation":{},"ISSN":["2079-3197"],"issn-type":[{"value":"2079-3197","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,10,29]]}}}