UPT Perpustakaan Universitas Andalas
Repositori PerpustakaanUniversitas Andalas
 

IoT and Machine Learning Based System for Predicting Time to pH or TDS Thresholds in Refill Drinking Water

dc.contributor.authorHani, Aminah Qalbu
dc.date.accessioned2026-09-24T19:08:27Z
dc.date.issued2026-07-29
dc.descriptionDr. Harmadi
dc.description.abstractDrinking water is a basic necessity that plays an essential role in maintaining human health and supporting daily activities. Refill drinking water has become one of the preferred choices because it is available at a relatively affordable cost. Monitoring drinking water parameters is important to help users obtain information regarding changes in the condition of the water used daily. This study aims to develop a prototype of an IoT and machine learning based system for predicting the remaining time until TDS reach ≥ 300 ppm or pH falls outside the permissible range of 6.5 to 8.5 in refill drinking water. The IoT technology in this system allows sensor measurement data and prediction results from the ESP32 to a Cloud Firestore database to be displayed on a mobile application. The system is equipped with a DS18B20 temperature sensor, an SEN0244 TDS sensor, and a 4502C pH sensor. The system uses three machine learning models including Random Forest Regressor, XGB Regressor and SVR to predict time. Based on the evaluation results, the Random Forest Regressor was selected for implementation in the system, achieving a MAE of 0.3388 hours, a RMSE of 0.9675 hours, and an R2 of 0.9990. The system recorded 26,480 monitoring data points together with their corresponding prediction results. TDS was the first parameter to exceed the permissible limit, reaching 302.01 ppm, whereas the pH remained within the permissible range of 6.5 to 8.5.
dc.identifier.urihttps://ailib.my.id/handle/123456789/21834
dc.language.isoid
dc.publisherUniversitas Andalas
dc.subjectIoT
dc.subjectmachine learning
dc.subjectpH or TDS thresholds
dc.subjectrefill drinking water
dc.subjectremaining time prediction
dc.subject.classificationQC Physics
dc.subject.classificationT Technology (General)
dc.titleIoT and Machine Learning Based System for Predicting Time to pH or TDS Thresholds in Refill Drinking Water
dc.typeThesis
dcterms.dateSubmitted2026-08-21
dcterms.referencesAkhlaq, M., Ellahi, A., Scholz, M., 2024, Comparative Analysis of Machine Learning Algorithms for Water Quality Prediction, Tellus A: Dynamic Meteorology and Oceanography, Vol. 76, Hal. 177–192, DOI: 10.16993/tellusa.4069. Ardutech, 2019, Arduino Sensor Suhu DS18B20, Ardutech your inovation partner. https://www.ardutech.com/arduino-sensor-suhu-ds18b20/ (accessed 23 January-2026). Ardutech, 2020, Mengenal ESP32 Development Kit untuk IoT (Internet of Things), ARDUTECH. https://www.ardutech.com/mengenal-esp32-development-kit untuk-iot-internet-of-things/ (accessed 24-June-2026). Atkins, P., Paula, J. de, 2006, Atkins’ Physical Chemistry, eighth, W. H. Freeman and Company, New York. Chang, R., 2008, The Essential Concepts, Good-Hodge, T.L. (Ed.), General Chemistry, Thomas D. Timp, San Francisco. Darmasakti, 2025, Mengenal TDS Meter Alat Ukur Jumlah Partikel Terlarut, darmasakti. https://darmasakti.com/mengenal-tds-meter-alat-ukur-jumlah partikel-terlarut (accessed 16-January-2026). Dida, 2024, What is Random Forest?, dida. https://dida.do/what-is-random-forest (accessed 16-January-2026). Duan, G., Du, Y., Shang, Y., Xue, H., Zhang, R., 2025, Research on Support Vector Regression Short-Time Traffic Flow Prediction Model for Secondary Roads Based on Associated Road Analysis, Applied Sciences, Vol. 15, Hal. 1779, DOI: 10.3390/app15041779. Fatimah, N., Studi, P., Elektro, T., Teknik, F., Makassar, U.M., Makassar, K., Selatan, S., 2025, Rancang Bangun Prototype Sistem Monitoring Kualitas Air pada PLTG Menggunakan IOT, JITET (Jurnal Informatika dan Teknik Elektro Terapan), Vol. 13, Hal. 1569–1577. Halliday, D., Resnick, R., Walker, J., 2014, Fundamentals of Physics, tenth, Wiley. Hartawan, I.N.B., Sudiarsa, I.W., 2019, Analisis Kinerja Internet of Things Berbasis Firebase Real Time Database, Resistor (Rekayasa Sistem Komputer),Vol. 1. Hastie, T., Tibshirani, R., Friedman, J., 2008, Data Mining, Inference, and Prediction, The Elements of Statistical Learning, California. Hyndman, R.J., Athanasopoulos, G., 2021, Forecasting : Principle and Practice, third, OTexts, Melbourne. Jamaaluddin, 2019, Konduktor – Isolator dan Semi Konduktor, first, UMSIDA Press, Sidoarjo, Jawa Timur. James, G., Witten, D., Hastie, T., Tibshirani, R., 2021, An Introduction to Statistical Learning, second. Kemenkes, 2023, Peraturan Menteri Kesehatan Republik Indonesia Nomor 2 Tahun 2023, peraturan.go.id. Lestari, A., Zafia, A., 2022, Penerapan Sistem Monitoring Kualitas Air Berbasis Internet of Things, LEDGER: Journal Informatic and Information Technology, Vol. 1, Hal. 17–24. MangroveMap, 2024, Cara Menggunakan pH Meter, Mangrove Map. https://mangrovemap.com/2024/07/14/cara-menggunakan-ph-meter/ (accessed 16-January-2026). Montgomery, D.C., Jennings, C.L., Kulahci, M., 2008, Introduction to Time Series Analysis and Forecas, John Wiley & Sons, Inc., Hoboken, New Jersey. Mukhtar, A., Hermana, R., Burhanudin, A., Setyoadi, Y., 2023, Sensor dan Aktuator: Konsep Dasar dan Aplikasi, Masruroh, A. (Ed.), Widina Media Utama, Bandung, Jawa Barat. Pang, H., Ben, Y., Cao, Y., Qu, S., 2025, Time series-based machine learning for forecasting multivariate water quality in full-scale drinking water treatment with various reagent dosages, Elsevier, https://doi.org/10.1016/j.watres.2024.122777. Vol. 268, DOI: Patterson, G.D., 2025, From Heat to Thermal Science, Rasmussen, S.C. (Ed.), Perspectives on the History of Chemistry, Pittsburgh. Prasetyo, B.D., Widodo, E., Ardiatma, D., 2025, Sistem Monitoring Kualitas Air Sumur Berbasis Iot Dengan Fuzzy Logic dan Interface Berbasis Web, INSECT : Jurnal Teknik Informatika, Vol. 11, Hal. 55–66. Primanandra, A., 2023, Sistem Pemantauan serta Pengendalian Suhu dan pH air Berbasis Arduino Uno pada Pendederan Udang Vaname, , Universitas Andalas. Puskomedia Indonesia, 2024, Menggunakan API (Application Programming Interface) dalam Integrasi Basis Data, puskomedia. https://puskomedia.id/blog/menggunakan-api-application-programming interface-dalam-integrasi-basis-data/ (accessed 16-January-2026). Putra, J. wira gotama, 2020, Pengenalan Konsep Pembelajaran Mesin dan Deep Learning, Vol. 4. Roza, F.S. da, 2023, Machine Learning A quick look at safe reinforcement learning, Fraunhofer Institute for Cognitive System IKS. https://safe intelligence.fraunhofer.de/en/articles/safe-reinforcement-learning (accessed 16-January-2026). Rozaq, I.A., DS, N.Y., 2017, Uji Karakterisasi Sensor Suhu DS18B20 Waterproof Berbasis Arduino Uno Sebagai Salah Satu Parameter Kualitas Air, Prosiding SNATIF Ke-4 Tahun 2017, Fakultas Teknik, Universitas Muria Kudus, Kudus, Pp. 303–309. Shreyans, 2023, Beetech TP-101 Thermometer with Probe, shreyans. https://shreyans.enterprises/product/beetech-tp-101-thermometer-with-probe/ (accessed 16-January-2026). Suryani, A., Kusumayati, A., 2022, Faktor yang Berhubungan dengan Kualitas Biologis Air Minum Isi Ulang : Literature Reviw, PREPOTIF Jurnal Kesehatan Masyarakat, Vol. 6, Hal. 1852–1860. Susanti, M.I., 2020, Air dan Kesehatan. Sutton, R.S., Barto, A.G., 2018, Reinforcement Learning : An Introduction, second, The MIT Press, Cambridge, Massachusetts. Techfor Id, 2022, Konsep Unsupervised Learning, Jenis, dan Contohnya dalam Machine Learning, techfor.id. https://www.techfor.id/konsep-unsupervised learning-jenis-dan-contohnya-dalam-machine-learning/ (accessed January-2026). 16 Triavin, A., Putra, D., Hardjianto, M., 2023, Sistem Pengatur Suhu Dan PH Air Aquarium Otomatis Dengan Metode Fuzzy Logic Berbasis NodeMCU, SKANIKA : Sistem Komputer dan Teknik Informatika, Vol. 6, Hal. 32–41. Wiki, Dfr., 2024, Analog TDS Sensor Meter For Arduino SKU SEN0244, fernell. https://www.farnell.com/datasheets/4376692.pdf (accessed 23-January 2026). Yan, X., Zhang, T., Du, W., Meng, Q., Xu, X., Zhao, X., 2024, A Comprehensive Review of Machine Learning for Water Quality Prediction over the Past Five Years, Marine Science and Engineering, Vol. 12. Yi Chun Electrics, Hwa Tai Technology, 2020, Large LCD Display Digital Stem Thermometer TP101, Microtempelectrics. https://5.imimg.com/data5/SELLER/Doc/2021/3/JC/JP/EU/19097211/probe thermometer.pdf (accessed 23-January-2026).
local.eprints.dirdisk0/00/52/99/91
local.eprints.division03A
local.eprints.id529991
local.eprints.typethesis/2Sarjana
local.eprints.urihttp://scholar.unand.ac.id/529991/
local.fakultasFakultas Matematika dan Ilmu Pengetahuan Alam
local.identifier.nim2210441013
local.prodiS1 Fisika
local.thesis.levelSkripsi

Files

Collections