Integration of Computer Vision and Machine Learning for Automated pH Prediction
Source abstract
Abstract
This study presents an experimental platform that integrates computer vision and machine learning to support approximate pH estimation and endpoint detection in titration experiments for science education. A Raspberry Pi-based setup was used to capture real-time solution images, which were converted into RGB data for analysis. Grid-based image preprocessing reduced artifacts caused by ripples and localized color variations. Cluster analysis identified three RGB-based solution categories that were correlated with pH. Regression analysis, including Random Forest modeling, achieved high predictive accuracy with low error. Machine learning classification models were also evaluated, with Random Forest and K-Nearest Neighbors showing strong performance for the non-linear relationship between pH and RGB values. The results support the feasibility of using BTB within its transition range for approximate pH estimation and endpoint detection in an educational setting. The system can also be used as an educational platform through which students engage with automated data collection, machine learning, and real-time analysis. By reducing subjective visual observation and improving experimental reproducibility, this approach supports the use of digital technologies in science education.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Various Chemistry Research Topics · Science Education and Pedagogy · Machine Learning in Materials Science
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Computer Science Education, Gwangju National University of Education, Gwangju 61204, Republic of Korea
Peptide Biology Laboratory, The Salk Institute for Biological Studies, La Jolla, CA 92037, USA
Department of Computer Education, Korea National University of Education, Cheongju 28173, Republic of Korea
Department of Chemistry Education, Korea National University of Education, Cheongju 28173, Republic of Korea
References (41)
Show source-provided references
1. Daniela, L. (2020). Pedagogies of Digital Learning in Higher Education, Routledge.10.4324/9781003019466 ↗
2. Selwyn, N. (2022). Education and Technology: Key Issues and Debates, Bloomsbury Academic. [3rd ed.].10.5040/9781350145573 ↗
3. OECD (2023). OECD Digital Education Outlook 2023: Towards an Effective Digital Education Ecosystem, OECD Publishing.
4. Optical sensing and imaging of pH values: Spectroscopies, materials, and applications10.1021/acs.chemrev.0c00451 ↗
5. Piatkevich, K.D., Murdock, M.H., and Subach, F.V. (2019). Advances in engineering and application of optogenetic indicators for neuroscience. Appl. Sci., 9.10.3390/app9030562 ↗
6. Biosensors and their widespread impact on human health10.1016/j.sintl.2023.100257 ↗
7. Machine-learning-assisted analysis of colorimetric assays on paper analytical devices10.1021/acsomega.1c05086 ↗
8. A smartphone colorimetric reader integrated with an ambient light sensor and a 3D printed attachment for on-site detection of zearalenone10.1007/s00216-017-0605-2 ↗
9. Smartphone-based digital images in analytical chemistry: Why, when, and how to use10.1016/j.trac.2023.117284 ↗
10. Ultra-portable, wireless smartphone spectrometer for rapid, non-destructive testing of fruit ripeness10.1038/srep32504 ↗
11. NoRMCorre: An online algorithm for piecewise rigid motion correction of calcium imaging data10.1016/j.jneumeth.2017.07.031 ↗
12. Apthorpe, N., Riordan, A., Aguilar, R., Homann, J., Gu, Y., Tank, D., and Seung, H.S. (2016). Automatic neuron detection in calcium imaging data using convolutional networks. Adv. Neural Inf. Process. Syst., 29.
13. Fast and robust active neuron segmentation in two-photon calcium imaging using spatiotemporal deep learning10.1073/pnas.1812995116 ↗
14. Spontaneous behaviors drive multidimensional, brainwide activity10.1126/science.aav7893 ↗
15. Integrated rapid-diagnostic-test reader platform on a cellphone10.1039/c2lc40235a ↗
16. Artificial intelligence for diabetes management and decision support: Literature review10.2196/10775 ↗
17. Analysis of beef quality according to color changes using computer vision and white-box machine learning techniques10.1016/j.heliyon.2023.e17976 ↗
18. A low-cost automated titration system for colorimetric endpoint detection10.1039/D2AN02086F ↗
19. Computer Vision in Chemistry: Automatic Titration10.1021/acs.jchemed.1c00810 ↗
20. Artificial intelligence and machine learning for colorimetric detections: Techniques, applications, and future prospects10.1016/j.teac.2025.e00280 ↗
21. High-throughput robotic colourimetric titrations using computer vision10.1039/D4DD00334A ↗
22. Direct Determination of Aerosol pH: Size-Resolved Measurements10.1021/acs.analchem.8b00586 ↗
23. Multifactor colorimetric analysis on pH-indicator papers: An optimized approach for direct determination of ambient aerosol pH10.5194/amt-13-6053-2020 ↗
24. Facile and highly precise pH-value estimation using common pH paper based on machine learning techniques and supported mobile devices10.1038/s41598-022-27054-5 ↗
25. Single-cell pH imaging and detection for pH profiling and label-free rapid identification of cancer-cells10.1038/s41598-017-01956-1 ↗
26. A study on image processing with data analysis10.1063/5.0074764 ↗
27. Géron, A. (2019). Hands-on Machine Learning with Scikit-Learn, Keras, and TensorFlow, O’Reilly Media.
28. Raschka, S., Liu, Y.H., and Mirjalili, V. (2022). Machine Learning with PyTorch and Scikit-Learn, Packt Publishing.
29. James, G., Witten, D., Hastie, T., Tibshirani, R., and Taylor, J. (2023). Statistical Learning. An Introduction to Statistical Learning: With Applications in Python, Springer.10.1007/978-3-031-38747-0 ↗
30. Statistical models for predicting oil composition from hydrothermal liquefaction of biomass10.1021/acs.energyfuels.3c00297 ↗
31. A gentle introduction to machine learning for chemists: An undergraduate workshop using Python notebooks for visualization, data processing, analysis, and modeling10.1021/acs.jchemed.1c00142 ↗
32. Root-mean-square error (RMSE) or mean absolute error (MAE): When to use them or not10.5194/gmd-15-5481-2022 ↗
33. Müller, A.C., and Guido, S. (2016). Introduction to Machine Learning with Python: A Guide for Data Scientists, O’Reilly Media.
34. K-nearest neighbour classifiers—A tutorial
35. Random forests10.1023/A:1010933404324 ↗
36. A decision-theoretic generalization of on-line learning and an application to boosting10.1006/jcss.1997.1504 ↗
37. Support-Vector Networks10.1023/A:1022627411411 ↗
38. Powers, D.M. (2020). Evaluation: From precision, recall and F-measure to ROC, informedness, markedness and correlation. arXiv.
39. An introduction to ROC analysis10.1016/j.patrec.2005.10.010 ↗
40. Eco-friendly pH detecting paper-based analytical device: Towards process intensification10.1016/j.aca.2021.338953 ↗
41. Pastore, A., Badocco, D., Bogialli, S., Cappellin, L., and Pastore, P. (2020). pH Colorimetric Sensor Arrays: Role of the color space adopted for the calculation of the prediction error. Sensors, 20.10.3390/s20216036 ↗