1. Introduction
The Automated Colorimetric Water-Quality Reader Using Calibrated Smartphone Imaging is an innovative environmental monitoring project designed to determine selected water-quality parameters using a smartphone camera and colorimetric testing methods.
The system uses chemical reagents that produce different colours when they react with specific substances in water. A smartphone camera captures the resulting colour, while an image-processing application analyses the colour intensity and compares it with calibrated reference values to estimate the concentration of the tested parameter.
The innovation aims to provide an affordable, portable and user-friendly alternative to expensive laboratory water-testing equipment.
2. Problem Statement
Access to affordable water-quality testing remains a challenge in many schools, rural communities and small-scale water treatment facilities.
Traditional laboratory testing equipment can be expensive and may require trained personnel. Manual colour comparison methods can also produce inconsistent results because of differences in lighting conditions and human interpretation.
This project seeks to develop a smartphone-based system that improves the consistency, accessibility and accuracy of colorimetric water-quality analysis.
3. Objectives
- To design a smartphone-based water-quality reading system.
- To develop a controlled imaging chamber that minimizes external light interference.
- To calibrate smartphone RGB colour values against known standard solutions.
- To estimate selected water-quality parameters using colour intensity analysis.
- To evaluate the accuracy of the system against reference testing methods.
4. Parameters the System Can Measure
| Water parameter | Testing method |
|---|---|
| Nitrate | Colorimetric nitrate reagent |
| Phosphate | Molybdenum blue method |
| Iron | Iron colorimetric reagent |
| Chlorine | DPD colorimetric method |
| Ammonia | Colorimetric ammonia reagent |
The project can initially focus on three parameters: nitrate, phosphate and iron, before expanding to additional tests.
5. Materials and Components
| Component | Purpose |
|---|---|
| Smartphone | Captures sample images |
| ESP32 (optional) | Controls LEDs and communicates with the application |
| White LED lights | Provides consistent illumination |
| Black enclosure | Blocks external light |
| Sample cuvettes | Hold water samples |
| Colorimetric reagents | Produce measurable colour changes |
| Reference colour standards | Calibration |
| Measuring pipettes | Accurate sample and reagent measurement |
| Image-processing application | Analyses RGB values |
| Laptop | Data analysis and calibration |
6. How the System Works
The system follows these steps:
- Collect a water sample in a clean cuvette.
- Add the appropriate chemical reagent.
- Allow the required reaction time.
- Place the cuvette inside the controlled-light imaging chamber.
- Position the smartphone camera above the sample.
- Capture an image under standardized lighting.
- The application extracts RGB colour values.
- The software compares the colour values with calibration data.
- The estimated concentration is displayed on the smartphone.
7. Scientific Principle
The project is based on colorimetry and the Beer-Lambert law.
A=\varepsilon lc
Where:
- = Absorbance
- = Molar absorption coefficient
- = Path length of light
- = Concentration of the absorbing substance
The smartphone does not directly measure absorbance like a laboratory spectrophotometer. Instead, it measures image colour values, which can be calibrated against known concentrations.
A simplified calibration relationship can be developed:
C=aR+b
Where:
- = Estimated concentration
- = Extracted colour intensity
- = Calibration constants
For better performance, the application can use RGB ratios, HSV values or calculated optical density rather than relying on a single RGB channel.
8. Software Development
The application can be developed using:
- Python and OpenCV for image processing.
- MIT App Inventor for a simple Android interface.
- Google Sheets or a local database for storing test results.
- ESP32 Bluetooth communication for optional hardware integration.
Proposed application features:
- Capture sample image.
- Automatically detect the sample region.
- Extract colour intensity.
- Calculate estimated concentration.
- Display water-quality results.
- Store and compare historical results.
- Generate downloadable reports.
9. Experimental Procedure
Prepare standard solutions with known concentrations, following the relevant reagent manufacturer’s instructions.
For each parameter:
- Prepare at least five different concentration standards.
- React each standard with the appropriate reagent.
- Photograph samples under identical lighting conditions.
- Extract colour values.
- Generate a calibration curve.
- Test unknown water samples.
- Compare smartphone readings against a validated reference method.
10. Innovation and Expected Outcomes
The expected innovation is a portable water-quality reader that transforms an ordinary smartphone into a calibrated analytical instrument.
Expected outcomes include:
- Reduced dependence on expensive analytical equipment for selected screening tests.
- Improved consistency in colour interpretation.
- Portable water-quality screening.
- Digital storage of test results.
- Improved accessibility of environmental monitoring in schools and communities.
11. KSEF Research and Evaluation
The project can be evaluated using:
| Evaluation parameter | Measurement |
|---|---|
| Accuracy | Comparison with reference laboratory results |
| Precision | Repeated testing of the same sample |
| Sensitivity | Ability to distinguish different concentrations |
| Reliability | Consistency across repeated measurements |
| Response time | Time taken to produce a result |
| Cost | Comparison with conventional equipment |
12. Further Innovation
To make the project more competitive at KSEF, consider adding:
- Automatic reagent selection: The application guides the user through the correct test procedure.
- AI-assisted colour recognition: Machine learning improves sample classification.
- GPS tagging: Records the geographical location of water samples.
- Water-quality mapping: Displays results from different sampling locations.
- ESP32 integration: Automatically controls illumination and communicates with the phone.








