Machine learning for selecting time series models for drinking water pollutants in Meoqui, Chihuahua, Mexico

Authors

  • Martín Alfredo Legarreta González Tecnológico de Monterrey image/svg+xml
    • Data Curation
    • Formal Analysis
    • Software
    • Visualization
    • Writing – Original Draft Preparation
    • Writing – Review & Editing
    • Conceptualization
  • Martha Lilia Ramírez De la Fuente Universidad Autónoma Agraria Antonio Narro image/svg+xml
    • Conceptualization
    • Data Curation
    • Investigation
    • Writing – Original Draft Preparation
    • Methodology
  • Rafael Rodríguez Venegas Universidad Autónoma Agraria Antonio Narro image/svg+xml
    • Investigation
    • Supervision
  • Aracely Zuñiga Serrano Universidad Autónoma Agraria Antonio Narro image/svg+xml
    • Investigation
  • Véliz Department of Veterinary Medical Sciences, Antonio Narro Autonomous Agrarian University, Laguna Unit, Periférico and Santa Fe S/N, Valle Verde, ZIP 27054, Torreón, Coahuila, Mexico
    • Conceptualization
    • Formal Analysis
    • Project Administration
    • Writing – Original Draft Preparation
  • Rafael Rodríguez Martínez Universidad Autónoma Agraria Antonio Narro image/svg+xml
    • Formal Analysis
    • Supervision
    • Validation
    • Writing – Original Draft Preparation
    • Writing – Review & Editing

DOI:

https://doi.org/10.19136/era.a13nVI.5240

Keywords:

Forecasting, ARIMA, facebook prophet, GLMNET, hybrid prophet w/ XGBoost

Abstract

The objectives were to ascertain potential variations in the levels of As, Pb and F in drinking water in Chihuahua, Mexico, across years, to evaluate time series models to forecast patterns, and to determine whether these levels comply with the Mexican Official Standard (NOM). The models implemented were: ARIMA, Facebook Prophet, GLMNET, and a hybrid model combining Facebook Prophet and an Extreme Gradient Boosting (XGBoost) model. In the context of the ARIMA and Facebook Prophet models, the 'hold-out (data)' method was employed. Conversely, for the GLMNET and hybrid models, a cross-validation procedure with five folds was utilised. Data (from the Junta Municipal de Aguas y Saneamiento – JMAS-) from Meoqui, Chihuahua, Mexico were collated from January 2010 to December 2023. The maximum levels of As stipulated by NOM have been adhered to since 2021. Since 2019, the maximum permissible levels of fluoride (F) have consistently been adhered to and the maximum levels of lead (Pb) have not been exceeded during the period under analysis. Levels of As and F have decreased in recent years, potentially due to corrective measures implemented by the relevant authorities. Projections suggest that the levels of As, Pb and F will remain below the maximum thresholds established by NOM. Facebook Prophet provides the most accurate predictions of the concentrations of As, Pb and F. These findings will provide the competent authorities with the necessary evidence to implement sustainable water resource management practices and guarantee the quality of water consumed by the population.

Downloads

Download data is not yet available.

References

Agaj T, Budka A, Janicka E, Bytyqi V (2024) Using ARIMA and ETS models for forecasting water level changes for sustainable environmental management. Scientific Reports 14: 22444. https://doi.org/10.1038/s41598-024-73405-9

Armouti B, Awajan A (2025) Water quality forecasting using time series techniques. International Conference on New Trends in Computing Sciences. Aman, Jordan. pp. 373-378. https://doi.org/10.1109/ICTCS65341.2025.10989394

Bencomo-Calderón M, Herrera-Peraza EF, Villalobos-Aragón A (2024) As and Pb Presence within the Meoqui-Delicias Aquifer, Chihuahua, Mexico. Water 16(17): 2538. https://doi.org/10.3390/w16172538

Bonkoungou AA, Zio S, Sabane A, Kafando R, Kabore AK, Bissyande TF (2024) A comparison of AI methods for groundwater level prediction in Burkina Faso. In: Maglogiannis I, Iliadis L, Macintyre J, Avlonitis M, Papaleonidas A (eds) Artificial Intelligence Applications and Innovations. Springer Nature. Switzerland. pp. 3-16.

Burgstahler AW (1966) Detroit fluoride conference. Science 154(3749): 590-590

Dancho M (2026) modeltime: The tidymodels extension for time series modeling. R package. https://github.com/business-science/modeltime. Data consulted: 10 february 2026.

Barrera-Prieto Y, Espino-Valdés MS, Herrera-Peraza E (2020) Presencia de arsénico en la sección norte del acuífero Meoqui-Delicias del estado de Chihuahua, México: Arsenic presence in North section of Meoqui-Delicias aquifer of State of Chihuahua, Mexico. Tecnociencia Chihuahua 3(1): 8-18. https://doi.org/10.54167/tch.v3i1.739

Grekov AN, Vyshkvarkova EV, Mavrin AS (2024) Forecasting and anomaly detection in BEWS: Comparative study of Theta, Croston, and Prophet algorithms. Forecasting 6: 343-356. https://doi.org/10.3390/forecast6020019

Gutiérrez RL, Rubio-Arias H, Quintana R, Ortega JA, Gutierrez M (2008) Heavy metals in water of the San Pedro River in Chihuahua, Mexico and its potential health risk. International Journal of Environmental Research and Public Health 5: 91-98. https://doi.org/10.3390/ijerph5020091

Hartmann J, Chacon-Hurtado JC, Verbruggen E, Schijven J, Rorije E, Wuijts S, de Roda Husman AM, van der Hoek JP, Scholten L (2021) Model development for evidence-based prioritisation of policy action on emerging chemical and microbial drinking water risks. Journal of Environmental Management 295: 112902. https://doi.org/10.1016/j.jenvman.2021.112902

Hasan MM, Ng KTW, Ray S, Assuah A, Mahmud TS (2024) Prophet time series modeling of waste disposal rates in four North American cities. Environmental Science and Pollution Research 31: 373-378. https://doi.org/10.1007/s11356-024-33335-5

Herrera-González JL, Rodríguez-Venegas R, Legarreta-González MA, Robles-Trillo PA, De Santiago-Miramontes Á, Loya-González D, Rodríguez-Martínez R (2024) Time series (ARIMA) as a tool to predict the temperature-humidity index in the dairy region of the northern desert of Mexico. PeerJ 12: e18744. https://doi.org/10.7717/peerj.18744

Izah SC, Ogwu MC (2025) Modeling solutions for microbial water contamination in the global south for public health protection. Frontiers in Microbiology 16: 1504829. https://doi.org/10.3389/fmicb.2025.1504829

Jaya NA, Arsyad M, Palloan P (2024) Estimation of groundwater river availability in Leang Lonrong Cave using ARIMA model. Advances in Environmental Studies 2: 1-18. https://doi.org/10.46799/adv.v2i5.240

Jomova K, Alomar SY, Nepovimova E, Kuca K, Valko M (2025) Heavy metals: toxicity and human health effects. Archives of Toxicology 99: 153-209. https://doi.org/10.1007/s00204-024-03903-2

Legarreta-González MA, Meza-Herrera CA, Loya-González D, Chávez-Tiznado CS, Arellano-Rodríguez F, De-Santiago-Miramontes A, Rodríguez-Martínez R, Robles-Trillo P, Véliz-Deras FG (2024a) Time series analysis to estimate the volume of drinking water consumption in the city of Meoqui, Chihuahua, Mexico. Water 16: 2634. https://doi.org/10.3390/w16182634

Legarreta-González MA, Meza-Herrera CA, Rodríguez-Martínez R, Loya-González D, Chávez-Tiznado CS, Contreras-Villarreal V, Véliz-Deras FG (2024b) Selecting a time-series model to predict drinking water extraction in a semi-arid region in Chihuahua, Mexico. Sustainability 16: 9772 https://doi.org/10.3390/su16229722

Pohlert T (2023) trend: Non-parametric trend tests and change-point detection. R package version 1.1.6. https://doi.org/10.32614/CRAN.package.trend. Data consulted: 10 february 2026.

Polukhova S, Mehtiyeva S, Karimova R, Abiyev H, Heybatova M, Aslanova A (2025) Combined damage to the nervous system and liver as a result of arsenic poisoning and changes in biochemical parameters in the blood of experimental animals. Norwegian Journal of Development of the International Science 151: 79-89.

R Core Team (2025) R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. https://www.R-project.org/. Data consulted: 10 february 2026.

SS (2021) Norma Oficial Mexicana NOM-127-SSA1-2021, Agua para uso y consumo humano. Límites permisibles de la calidad del agua. Secretaría de Salud. Diario Oficial de la Federación. https://www.dof.gob.mx/nota_detalle_popup.php?codigo=5650705. Data consulted: 10 february 2026.

Taylor KW, Eftim SE, Sibrizzi CA, Blain RB, Magnuson K, Hartman PA, Rooney AA, Bucher JR (2025) Fluoride exposure and children’s IQ scores: A systematic review and meta-analysis. JAMA Pediatrics 179: 282-292. https://doi.org/10.1001/jamapediatrics.2024.5542

Thakur BB, Devi P (2024) A Comprehensive Review on Water Quality Monitoring Devices: Materials Advances, Current Status, and Future Perspective. Critical Reviews in Analytical Chemistry 54: 193. https://doi.org/10.1080/10408347.2022.2070838

Thakur BK, Gupta V (2025) Welfare estimation of groundwater arsenic contamination in India: Insights for water policy. Journal of Cleaner Production 497: 145107. https://doi.org/10.1016/j.jclepro.2025.145107

UN (2015) Transforming our world: The 2030 agenda for sustainable development. United Nations. https://docs.un.org/en/A/RES/70/1. Data consulted: 10 february 2026.

UN (2023) What is Goal 6 – Clean water and sanitation. United Nations. https://www.un.org/sustainabledevelopment. Data consulted: 10 February 2026.

Wickham H (2016) ggplot2: Elegant graphics for data analysis. Springer, Cham. https://doi.org/10.1007/978-3-319-24277-4

Downloads

Published

2026-08-23

Issue

Section

SCIENTIFIC ARTICLE

How to Cite

Legarreta González, M. A., Ramírez De la Fuente, M. L., Rodríguez Venegas, R., Zuñiga Serrano, A., Véliz Deras, F. G., & Rodríguez Martínez, R. (2026). Machine learning for selecting time series models for drinking water pollutants in Meoqui, Chihuahua, Mexico. Ecosistemas Y Recursos Agropecuarios, 13(VI), e5240. https://doi.org/10.19136/era.a13nVI.5240