Open Access iconOpen Access



Weight Prediction Using the Hybrid Stacked-LSTM Food Selection Model

Ahmed M. Elshewey1, Mahmoud Y. Shams2,*, Zahraa Tarek3, Mohamed Megahed4, El-Sayed M. El-kenawy5, Mohamed A. El-dosuky3,6

1 Faculty of Computers and Information, Computer Science Department, Suez University, Suez, Egypt
2 Faculty of Artificial Intelligence, Kafrelsheikh University, Kafrelsheikh, 33511, Egypt
3 Faculty of Computers and Information, Computer Science Department, Mansoura University, 35561, Egypt
4 Faculty of Physical Education, Track and Field Competitions Department, Arish University, Egypt
5 Delta Higher Institute of Engineering and Technology, Mansoura, 35111, Egypt
6 Department of Computer Science, Arab East Colleges, Riyadh, 13544, Saudi Arabia

* Corresponding Author: Mahmoud Y. Shams. Email: email

Computer Systems Science and Engineering 2023, 46(1), 765-781.


Food choice motives (i.e., mood, health, natural content, convenience, sensory appeal, price, familiarities, ethical concerns, and weight control) have an important role in transforming the current food system to ensure the healthiness of people and the sustainability of the world. Researchers from several domains have presented several models addressing issues influencing food choice over the years. However, a multidisciplinary approach is required to better understand how various aspects interact with one another during the decision-making procedure. In this paper, four Deep Learning (DL) models and one Machine Learning (ML) model are utilized to predict the weight in pounds based on food choices. The Long Short-Term Memory (LSTM) model, stacked-LSTM model, Conventional Neural Network (CNN) model, and CNN-LSTM model are the used deep learning models. While the applied ML model is the K-Nearest Neighbor (KNN) regressor. The efficiency of the proposed model was determined based on the error rate obtained from the experimental results. The findings indicated that Mean Absolute Error (MAE) is 0.0087, the Mean Square Error (MSE) is 0.00011, the Median Absolute Error (MedAE) is 0.006, the Root Mean Square Error (RMSE) is 0.011, and the Mean Absolute Percentage Error (MAPE) is 21. Therefore, the results demonstrated that the stacked LSTM achieved improved results compared with the LSTM, CNN, CNN-LSTM, and KNN regressor.


Cite This Article

A. M. Elshewey, M. Y. Shams, Z. Tarek, M. Megahed, E. M. El-kenawy et al., "Weight prediction using the hybrid stacked-lstm food selection model," Computer Systems Science and Engineering, vol. 46, no.1, pp. 765–781, 2023.

cc This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 886


  • 488


  • 0


Share Link