Efficient smartphone-based measurement of phosphorus in water
- PMID: 38831971
- PMCID: PMC11144757
- DOI: 10.1016/j.wroa.2024.100217
Efficient smartphone-based measurement of phosphorus in water
Abstract
Agricultural runoff is one of the main sources of excess phosphorus (P) in different water bodies, subsequently leading to eutrophication and harmful algal blooms. To effectively monitor P levels in water, there is a need for simple measurement tools and extensive public involvement to enable regular and widespread sampling. Several smartphone-based P measurement methods have been reported, which extract red-green-blue (RGB) values from colorimetric reactions to build statistical regression models for P quantification. However, these methods typically require meticulous light conditions, involve initial equipment investment, and have undergone limited testing for large-scale applications. To overcome these limitations, this study developed a smartphone-based, equipment-free and facile P colorimetric analysis method. Following the standard procedure of the ascorbic acid approach, colorimetric reactions were captured by a smartphone camera, and RGB values were extracted using Python code for modeling. Different indoor light conditions, phone types, containers, and types of water samples were examined, resulting in a collection of 1922 images. The best regression model, employing random forest with RGB values and container types as inputs, achieved an R2 of 0.97 and an RMSE of 0.051 for P concentrations ranging from 0.01 to 1.0 mg P/L. Additionally, the optimal classification model could estimate the level of P below 0.1 mg P/L with an accuracy of 95.2 (or 77.4 % for <0.05 mg P/L). The strong performance of the developed models, which are also available freely online, suggests an easy and effective tool for more frequent P measurement and greater public involvement.
Keywords: Colorimetric analysis; Machine learning; Phosphorus monitoring; Smartphone.
© 2024 The Author(s).
Conflict of interest statement
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Figures




Similar articles
-
A feasible image-based colorimetric assay using a smartphone RGB camera for point-of-care monitoring of diabetes.Talanta. 2020 Jan 1;206:120211. doi: 10.1016/j.talanta.2019.120211. Epub 2019 Aug 1. Talanta. 2020. PMID: 31514873
-
Noninvasive Hemoglobin Level Prediction in a Mobile Phone Environment: State of the Art Review and Recommendations.JMIR Mhealth Uhealth. 2021 Apr 8;9(4):e16806. doi: 10.2196/16806. JMIR Mhealth Uhealth. 2021. PMID: 33830065 Free PMC article.
-
Point-of-care colorimetric detection with a smartphone.Lab Chip. 2012 Nov 7;12(21):4240-3. doi: 10.1039/c2lc40741h. Lab Chip. 2012. PMID: 22996728
-
Clinical chemistry measurements with commercially available test slides on a smartphone platform: Colorimetric determination of glucose and urea.Clin Chim Acta. 2015 Aug 25;448:133-8. doi: 10.1016/j.cca.2015.05.020. Epub 2015 Jun 20. Clin Chim Acta. 2015. PMID: 26102280
-
Short-term Lake Erie algal bloom prediction by classification and regression models.Water Res. 2023 Apr 1;232:119710. doi: 10.1016/j.watres.2023.119710. Epub 2023 Feb 5. Water Res. 2023. PMID: 36801534 Review.
Cited by
-
A Review of Recent Developments in Analytical Methods for Determination of Phosphorus from Environmental Samples.Molecules. 2025 Feb 21;30(5):1001. doi: 10.3390/molecules30051001. Molecules. 2025. PMID: 40076225 Free PMC article. Review.
-
Effortless alkalinity analysis using AI and smartphone technology, no equipment needed, from freshwater to saltwater.Eco Environ Health. 2024 Nov 14;4(1):100125. doi: 10.1016/j.eehl.2024.10.002. eCollection 2025 Mar. Eco Environ Health. 2024. PMID: 39959846 Free PMC article.
References
-
- Ai H., Zhang K., Sun J., Zhang H. Short-term Lake Erie algal bloom prediction by classification and regression models. Water Res. 2023 - PubMed
-
- Breiman L. Bagging predictors. Mach. Learn. 1996;24:123–140.
-
- Breiman L. Random forests. Mach. Learn. 2001;45:5–32.
-
- Chen, T. and Guestrin, C. 2016 Xgboost: a scalable tree boosting system, pp. 785–794.
-
- Costa D., Aziz U., Elliott J., Baulch H., Roy B., Schneider K., Pomeroy J. The Nutrient App: developing a smartphone application for on-site instantaneous community-based NO3 and PO4 monitoring. Environ. Modell. Softw. 2020;133
LinkOut - more resources
Full Text Sources