Personalized Hydration Prediction: Leveraging Machine Learning to Model Daily Water Intake Based on Physical Activity and Environmental Factors

Authors

  • Emi Yuliati Magister of Computer Sciences, Amikom Purwokerto University, Indonesia
  • Oktavia Mulyo Nurdiyanti Magister of Computer Sciences, Amikom Purwokerto University, Indonesia

DOI:

https://doi.org/10.47738/ijiis.v9i2.297

Keywords:

Hydration, Machine Learning, Water Intake Prediction, Physical Activity, Personalized Health

Abstract

Adequate hydration is essential for maintaining optimal health and performance, yet individual hydration needs vary due to factors such as physical activity, environmental conditions, and demographic characteristics. Traditional methods of hydration assessment often overlook these dynamic factors, making it difficult to provide personalized recommendations. This study aims to develop a Random Forest Regression model to predict daily water intake based on physical activity levels, weather conditions, and demographic information. The model was trained and evaluated using a dataset that included these variables, and performance was assessed using metrics such as Mean Squared Error (MSE), Mean Absolute Error (MAE), and R-squared (R²). The results showed that the Random Forest Regression model achieved an R² value of 0.8527, indicating that it explained over 85% of the variance in daily water intake. The MSE (0.1010) and MAE (0.2630) values confirmed that the model made accurate predictions. This study contributes to the field by offering a personalized approach to hydration prediction, which could be integrated into health applications and fitness tracking systems. By incorporating real-time physical activity data and environmental factors, the model provides dynamic hydration recommendations that can optimize health outcomes, particularly for high-risk groups such as athletes and the elderly. This research demonstrates the potential of Random Forest Regression for improving hydration management and advancing personalized health recommendations.

References

J. Frąckiewicz dan K. Szewczyk, “Is There an Association Between Hydration Status, Beverage Consumption Frequency, Blood Pressure, Anthropometric Characteristics, and Urinary Biomarkers in Adults?” Nutrients, vol. 17, no. 6, hal. 952, Mar 2025, doi: 10.3390/nu17060952.

S. Alsanie, S. Lim, dan S. A. Wootton, “Detecting low-intake dehydration using bioelectrical impedance analysis in older adults in acute care settings: a systematic review,” BMC Geriatr., vol. 22, no. 1, hal. 954, Des 2022, doi: 10.1186/s12877-022-03589-0.

Y. Song et al., “A Study of the Fluid Intake, Hydration Status, and Health Effects Among Pregnant Women in Their Second Trimester in China: A Cross-Sectional Study,” Nutrients, vol. 15, no. 7, hal. 1739, 2023, doi: 10.3390/nu15071739.

S. K. Nishi et al., “Water intake, hydration status and 2-year changes in cognitive performance: a prospective cohort study,” BMC Med., vol. 21, no. 1, hal. 82, Mar 2023, doi: 10.1186/s12916-023-02771-4.

A. Fauza dan W. Astuti, “Hydration in Athletes: A Literature Review,” J. Appl. Food Nutr., vol. 2, no. 1, hal. 25–33, 2022, doi: 10.17509/jafn.v2i1.42698.

S. Li, X. Xiao, dan X. Zhang, “Hydration Status in Older Adults: Current Knowledge and Future Challenges,” Nutrients, vol. 15, no. 11, hal. 2609, Jun 2023, doi: 10.3390/nu15112609.

A. Stawiarska, A. Mikulec, M. Zborowski, dan M. Banach, “Fluids in the diet of people practicing mountain tourism - consumption assessment,” J. Educ. Heal. Sport, vol. 13, no. Supplement Issue 2, hal. 72–93, Feb 2023, doi: 10.12775/JEHS.2023.13.S2.006.

A. Khan, M. Jamil, M. Ullah, I. Ullah, M. Zubair, dan S. Saheem, “Causes, Precautions and Management of Risk Factors Associated with Dehydration among Athletes,” Ther. (Journal Ther. Rehabil. Sci., vol. 04, no. 02, hal. 1–4, Jun 2023, doi: 10.54393/tt.v4i02.98.

Y. Lin, N. Zhang, J. Zhang, J. Lu, S. Liu, dan G. Ma, “Seasonality Affects Fluid Intake Behaviors among Young Adults in Hebei, China,” Nutrients, vol. 16, no. 11, hal. 1542, Mei 2024, doi: 10.3390/nu16111542.

M. C. L. Mendez et al., “PSXI-10 Movement patterns and water source seeking in grazing lactating first-calf beef cows with different residual feed intake.,” J. Anim. Sci., vol. 103, no. Supplement_3, hal. 479–480, Okt 2025, doi: 10.1093/jas/skaf300.545.

J. G. Carrasco Ramírez, “AI in Healthcare: Revolutionizing Patient Care with Predictive Analytics and Decision Support Systems,” J. Artif. Intell. Gen. Sci. ISSN3006-4023, vol. 1, no. 1, hal. 31–37, Feb 2024, doi: 10.60087/jaigs.v1i1.p37.

A. Olyanasab dan M. Annabestani, “Leveraging Machine Learning for Personalized Wearable Biomedical Devices: A Review,” J. Pers. Med., vol. 14, no. 2, hal. 203, Feb 2024, doi: 10.3390/jpm14020203.

A. Petreska dan D. Slavkovska, “Artificial Intelligence and Machine Learning Algorithms in Modern Cardiology,” South East Eur. J. Cardiol., vol. 5, no. 1, hal. 17–25, Mar 2024, doi: 10.3889/seejca.2024.6069.

L. Cundrič et al., “A Machine Learning Approach to Developing an Accurate Prediction of Maximal Heart Rate During Exercise Testing in Apparently Healthy Adults,” J. Cardiopulm. Rehabil. Prev., vol. 43, no. 5, hal. 377–383, Sep 2023, doi: 10.1097/HCR.0000000000000786.

M. A. Ahmed, A. AbdelMoety, dan A. M. A. Soliman, “Predicting cancer risk using machine learning on lifestyle and genetic data,” Sci. Rep., vol. 15, no. 1, hal. 30458, Agu 2025, doi: 10.1038/s41598-025-15656-8.

H.-J. Kim et al., “Machine Learning–Based Analysis of Lifestyle Risk Factors for Atherosclerotic Cardiovascular Disease: Retrospective Case-Control Study,” JMIR Med. Informatics, vol. 13, no. 1, hal. e74415–e74415, Agu 2025, doi: 10.2196/74415.

M. Cavus, H. Ayan, M. Bell, dan D. Dissanayake, “Understanding User Behaviour and Predicting Charging Costs: A Machine Learning Approach to Support Electric Vehicle Adoption Decisions,” IET Intell. Transp. Syst., vol. 19, no. 1, hal. e70088, Jan 2025, doi: 10.1049/itr2.70088.

A. M. N. Tshibangu, “Boxing Practitioners Physiology Review: 3. Dietary Supplementation, Weight Control, Recovery and Altitude,” Open J. Mol. Integr. Physiol., vol. 14, no. 01, hal. 1–29, 2024, doi: 10.4236/ojmip.2024.141001.

K. H. Park et al., “Association between outdoor temperature and achilles tendon repair: A 14-years nationwide population-based cohort study,” PLoS One, vol. 17, no. 3, hal. e0265041, Mar 2022, doi: 10.1371/journal.pone.0265041.

N. A. J. Al-Tulaibawi, M. AL-Nussairawi, dan N. A.-H. S. AL-Zuhairy, “Molecular and biochemical detection of bacteria in adult patients with urinary tract infection associate renal stones,” J. Ren. Inj. Prev., vol. 13, no. 3, hal. e38324, Jun 2024, doi: 10.34172/jrip.2024.38324.

K. Becker, Breanne Freese, Mason Howard, dan Olivia Cooper, “Tracking 30-Day Physical Activity Behavior with Wearable Fitness Trackers in College-Aged Adults,” Res. Directs Psychol. Behav., vol. 2, no. 1, hal. 1–7, Jul 2022, doi: 10.53520/rdpb2022.10736.

S. Quilty, A. Lal, B. Honan, D. Chateau, E. O’Donnell, dan J. Mills, “The Impact of Climate Change on Aeromedical Retrieval Services in Remote Northern Australia: Planning for a Hotter Future,” Int. J. Environ. Res. Public Health, vol. 21, no. 1, hal. 114, Jan 2024, doi: 10.3390/ijerph21010114.

E. X. Wei, A. Green, M. T. Chang, P. H. Hwang, D. R. Sidell, dan Z. J. Qian, “Environmental Risk Factors for Pediatric Epistaxis vary by Climate Zone,” Laryngoscope, vol. 134, no. 3, hal. 1450–1456, Mar 2024, doi: 10.1002/lary.30961.

H. Talebi Ghadicolaei, M. Hashemi Amrei, Y. Salehtabari, A. Sharifzadeh, dan Z. Hadinejad, “Epidemiology of Suicide in the Relief Missions in the Pre-Hospital Emergency System of Mazandaran University of Medical Sciences During 2019-2021,” Heal. Emergencies Disasters Q., vol. 8, no. 3, hal. 159–166, Apr 2023, doi: 10.32598/hdq.8.3.344.2.

M. A. Fathy dan P. Bühlmann, “Next-Generation Potentiometric Sensors: A Review of Flexible and Wearable Technologies,” Biosensors, vol. 15, no. 1, hal. 51, Jan 2025, doi: 10.3390/bios15010051.

U. Madububambachu, A. Ukpebor, dan U. Ihezue, “Machine Learning Techniques to Predict Mental Health Diagnoses: A Systematic Literature Review,” Clin. Pract. Epidemiol. Ment. Heal., vol. 20, no. 1, hal. 1–16, Jul 2024, doi: 10.2174/0117450179315688240607052117.

M. Mohit, P. Mahajan, S. Waghmare, S. Pagar, dan M. Mali, “AI based web application for diet planning and recipe generation,” Int. J. Multidiscip. Res., vol. 6, no. 6, hal. 1–5, Nov 2024, doi: 10.36948/ijfmr.2024.v06i06.29919.

A. Cina dan F. Galbusera, “Advancing spine care through AI and machine learning: overview and applications,” EFORT Open Rev., vol. 9, no. 5, hal. 422–433, Mei 2024, doi: 10.1530/EOR-24-0019.

Y. Lu, “Personalized Exercise Program Design with Machine Learning in Sensor Networks,” Scalable Comput. Pract. Exp., vol. 24, no. 4, hal. 1157–1168, Nov 2023, doi: 10.12694/scpe.v24i4.2440.

R. Patel et al., “Artificial Intelligence and Machine Learning in Hepatocellular Carcinoma Screening, Diagnosis and Treatment - A Comprehensive Systematic Review,” Glob. Acad. J. Med. Sci., vol. 6, no. 02, hal. 83–97, Mei 2024, doi: 10.36348/gajms.2024.v06i02.007.

X. Dai et al., “Survival analysis of localized prostate cancer with deep learning,” Sci. Rep., vol. 12, no. 1, hal. 17821, Okt 2022, doi: 10.1038/s41598-022-22118-y.

A. Delbari, M. Farrokhi, A. Mehri, M. Saberian, M. Sadri, dan M. Saatchi, “Prevalence and Factors Associated With Kidney Stones in the Elderly Iranian Population: Findings From the Ardakan Cohort Study on Aging (ACSA),” Arch. Iran. Med., vol. 28, no. 2, hal. 73–80, 2025, doi: 10.34172/aim.33337.

F. H. Ahnaf, D. S. E. Atmaja, H. Rachmat, dan M. A. Hambali, “Developing Touchless Dispenser System Based on IoT to Support Hydration Needs for University Students in New Normal Phase in Indonesia,” Int. J. Adv. Sci. Eng. Inf. Technol., vol. 13, no. 1, hal. 218–225, Feb 2023, doi: 10.18517/ijaseit.13.1.16856.

J. Qin et al., “Association between drinking water type and kidney stone risk in U.S. adults: a cross-sectional analysis of NHANES 2009–2016 data,” Int. J. Surg., vol. 111, no. 12, hal. 8896–8904, Des 2025, doi: 10.1097/JS9.0000000000003248.

M. P. Jeyasekhar, “Assessment of drinking water quality in government schools in Virudhunagar District, Tamil Nadu, India,” Int. J. Health Sci. (Qassim)., vol. 6, no. S5, hal. 9534–9543, Jun 2022, doi: 10.53730/ijhs.v6nS5.10070.

Downloads

Published

2026-03-08

Issue

Section

Articles