Experimental analysis of the relationship between pH and the color of red cabbage extract under RGB LED illumination using machine learning
DOI:
https://doi.org/10.37779/nt.v27i2.5632Keywords:
Chemistry; indicators; pH; machine learning; digital colorimetryAbstract
Machine learning resources have become consolidated as relevant tools for analyzing multidimensional datasets, particularly in qualitative and quantitative studies of substances under different experimental conditions. In this work, we investigate the relationship between pH and the color of red cabbage extract using an accessible experimental setup composed of a plastic structure that aligns an RGB LED, a standard glass cuvette, and a smartphone camera. Each primary color of the LED was used separately to produce specific transmittance conditions, allowing the colorimetric variations of the extract to be recorded across pH levels ranging from 2.0 to 9.0. Based on independent repetitions for each combination of pH and illumination color, a dataset with more than one hundred samples and five features was obtained and analyzed using machine learning methods in both unsupervised (clustering) and supervised (regression) domains. The results indicated that samples illuminated by the green LED exhibited greater separation in HSV space, enabling the development of a more consistent predictive model for estimating pH from the color parameters. These findings reinforce the utility of low-cost experimental approaches combined with modern computational analysis for the quantitative investigation of natural indicators and for the construction of machine-learning-based predictive models.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Disciplinarum Scientia | Naturais e Tecnológicas

This work is licensed under a Creative Commons Attribution 4.0 International License.
A submissão de originais para este periódico implica na transferência, pelos autores, dos direitos de publicação impressa e digital. Os direitos autorais para os artigos publicados são do autor, com direitos do periódico sobre a primeira publicação. Os autores somente poderão utilizar os mesmos resultados em outras publicações indicando claramente este periódico como o meio da publicação original. Em virtude de sermos um periódico de acesso aberto, permite-se o uso gratuito dos artigos em aplicações educacionais e científicas desde que citada a fonte conforme a licença CC-BY da Creative Commons.
Creative Commons Atribuição 4.0 Internacional.





