A picture is worth a thousand measurements: �a low-cost camera-based sensor �for in-situ particle size estimation
Canwei (Steven) Pang1, Baiqian Shi1, Stephen Catsamas1, David McCarthy1,2
1 BoSL Water Monitoring and Control, Department of Civil Engineering, Monash University, Wellington Road, Clayton, Victoria 3800, Australia
2 School of Civil and Environmental Engineering, Queensland University of Technology, S Block, Level 7, S727, Brisbane, Queensland 4000, Australia
*Corresponding author email: david.mccarthy@qut.edu.au
16th International Conference on Urban Drainage 2024 - Session 5.2b
1
Monash University & Queensland University of Technology
Why do we measure particle size?
2
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
The Simple Principle
3
Light Source
Turbidity, Total Suspended Solids (TSS), Water Clarity, and now for PSD…
A particle or whatever opaque
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Project Aim
4
To develop, test, and validate a low-cost, real-time, in-situ sensor for estimating particle size distribution (PSD) of sediment within stormwater system.
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Methodology – Experimental Setup
5
Clear acrylic plate
White LED light module
3d-printed, openable testing container (black)
Camera
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Methodology – Experimental Setup
6
3d-printed, openable testing container (black)
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Testing sample with artificial particles
Camera
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Methodology – Experimental Setup
7
3d-printed, openable testing container (black)
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Camera
Window for image capturing
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Methodology – Image Processing Method
8
Step 1: Crop and convert original RGB image to grayscale image (0-255, from black to white).
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Methodology – Image Processing Method
9
Step 2: Find a primary (and currently subjective) grayscale threshold which distinguish dark particles and bright background. Then apply it to create a binary mask.
Primary Threshold = 195
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Methodology – Image Processing Method
10
Step 3: Perform “Connected Component Analysis” to label the grouped pixels which make up each particle.
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 |
0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 |
0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 |
0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 |
0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 |
0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 |
0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
…
Particle 20
Particle 21
Particle 22
…
Particle n
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Methodology – Image Processing Method
11
Due to light scattering, particles appear larger on image than they actually are.
Step 4: Further thresholding within each labelled particle.
Thresholding’s | Considered as | Confidence level / Factor |
Grayscale > 195 | Background | 0% |
| | |
| | |
Each particle’s pixel size (in 2d) = number of “edge area” pixels x 50% + number of “core area” pixels x 100%
Step 5: Each particle’s measured size (in 2d) = its pixel size x width per pixel (~24µm per pixel)
and then, particle diameter, surface area, and volume.
165 < Grayscale < 195 “Edge area” of particle 50%
Grayscale < 165 “Core area” of particle 100%
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
To Test Algorithms
Testing samples are clean water, dosed with artificial particles with different standard size ranges: 38-45µm, 53-63µm, 75-90µm, 125-150µm, and 300-355µm.
12
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Results
13
Volume-Weighted Particle Size Distribution
Particle Diameter (µm)
Density Distribution (% in volume)
Cumulative Distribution
125µm
150µm
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Results
14
D50 = 50% of particles in sample are smaller than this diameter
Of course, they are weighted by volume.
Sensor-measured D50 particle size (µm)
Known D50/Midpoint of dosed particle size range (µm)
Volume-Weighted D50 Comparison
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
The selected camera for the sensor…
BoSLcam – a low-cost camera sensor:
15
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
The low-cost camera for the sensor…
Issue 1: lower camera resolution than smart phone camera…
Solution: 25x magnification macro lens -> 30µm/pixel in theory
16
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
The low-cost camera for the sensor…
Issue 2: more image noise than smart phone image…
Solution: de-noise and sharpen grayscale image using Fourier transform and high-pass filters.
17
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Results
18
Volume-Weighted Particle Size Distribution
Particle Diameter (µm)
Density Distribution (% in volume)
Cumulative Distribution
75µm
90µm
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Volume-Weighted D50 Comparison Result
19
Sensor-measured D50 particle size (µm)
Known D50/Midpoint of dosed particle size range (µm)
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Future Work
20
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology
Thank you for your attention!
21
bosl.com.au
Contact me: Canwei.Pang@monash.edu
Low-Cost 3-in-1 Sensor
(water depth, EC, temp)
Low-Cost Optical Turbidity Sensor
Low-Cost Out-of-water Radar Depth and Velocity Sensor
Miao Wang
Session 2.6a
10AM Friday
ICUD 2024 - June 2024 – Delft
16th International Conference on Urban Drainage 2024
Monash University & Queensland University of Technology