Application of Transformer Model in Predicting Housing Price in Selected Vietnamese Provinces
Main Article Content
Abstract
This paper selects an appropriate machine learning model to forecast real estate and apartment prices across several major provinces and cities in Vietnam. While we primarily deploy the Transformer, we also experimented with other machine learning algorithms, such as Linear Regression, Decision Tree, and Random Forest, to demonstrate the Transformer's superior performance. We automatically collected raw data from Vietnam's largest real estate website and then preprocessed, analysed, and evaluated it. The analysis revealed that building a prediction model on a single dataset yields fewer effective results than splitting the data into two distinct sets, one for landed properties and the other for apartments, and developing separate models for each product category. Building two independent prediction models allows effective use of each product type's unique characteristics, improving the accuracy and efficiency of machine learning for real estate price prediction.
Downloads
Article Details
Section

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
How to Cite
References
H. Blockeel, L. Devos, B. Frénay, G. Nanfack, and S. Nijssen, Decision Trees: From Efficient Prediction to Responsible AI, Frontiers in Artificial Intelligence, vol. 6, 1124553, 2023. DOI: 10.3389/frai.2023.1124553.
Y. Chen, K. C. Cheung, R. Z. Sun, and S. C. P. Yam, A User Guide to CART and Random Forests with Applications in FinTech and InsurTech, Japanese Journal of Statistics and Data Science, vol. 7, no. 2, pp. 999–1038, 2024. https://research.cuhk.edu.hk/en/publications/a-user-guide-of-cart-and-random-forests-with-applications-in-fint-2/
Ha et al., Using Machine Learning Regression Algorithms to Predict House Prices in Vietnam, International Real Estate Review, vol. 28, no. 4, pp. 505–527, 2025. DOI: 10.53383/100412.
X. Huang, A. Khetan, M. Cvitkovic, and Z. Karnin, TabTransformer: Tabular Data Modelling Using Contextual Embeddings, arXiv:2012.06678, 2020. DOI: 10.48550/arXiv.2012.06678.
G. James, D. Witten, T. Hastie, and R. Tibshirani, An Introduction to Statistical Learning, Springer, 2021. https://link.springer.com/book/10.1007/978-1-0716-1418-1
I. Loshchilov and F. Hutter, Decoupled Weight Decay Regularisation, in International Conference on Learning Representations (ICLR), 2019. https://www.scirp.org/reference/referencespapers?referenceid=2885414
N. T. A. Hoang, N. T. V. Nguyen, P. Phu, and N. T. Thuy, Applying Machine Learning in Real Estate Prediction: The Case in Vietnam, in CITA 2024 Proceedings, vol. 2, 2024. ISBN: 978-604-80-9774-5, ISBN: 978-604-80-9774-5, https://elib.vku.udn.vn/handle/123456789/4003
H. V. Thi et al., Analysis and Prediction of Real Estate Prices in Hanoi Using Machine Learning, 2025. DOI: 10.1007/978-981-96-5693-6_37.
Batdongsan.com.vn, Batdongsan.com.vn. https://batdongsan.com.vn.
Viet Nam Association of Realtors (VARS), Viet Nam Association of Realtors. https://vars.com.vn/tin-tuc/nguoi-tre-tang-mua-nha-n2150.