Water Quality Measurement and Modelling Based on Deep Learning Techniques: Case Study for the Parameter of Secchi Disk
<p>Overall framework of the algorithm.</p> "> Figure 2
<p>Flow chart of initial image crop of the white part of the Secchi disk.</p> "> Figure 3
<p>Flow of water gauge segmentation.</p> "> Figure 4
<p>Flow chart of character segmentation.</p> "> Figure 5
<p>Loss and accuracy in Faster RCNN training.</p> "> Figure 6
<p>Loss and accuracy in classification network training of Secchi disk.</p> "> Figure 7
<p>The loss and accuracy curve from the training process.</p> "> Figure 8
<p>Loss and accuracy curve from character classification network training.</p> ">
Abstract
:1. Introduction
2. Description of Algorithm
2.1. Determination of the Critical Position of the Secchi Disk
2.1.1. Initial Image Crop of White Part of the Secchi Disk
- (1)
- The brightness value of the whole picture is recorded as set C, and it is divided into two categories, one is recorded as set C1, the other is recorded as set C2, and C1⋂C2 = 0 and C1⋃C2 = C.
- (2)
- Take the brightness value K and put all the brightness values in the range of [0, k − 1] in set C1, and put the rest in set C2. The average value of the brightness value in set C1 is denoted as M1, and the proportion of the number of elements in set C1 to the number of elements in set C is denoted as P1; the average value of the brightness in set C2 is M2, and the proportion of the number of elements in set C2 to the number of elements in set C is P2. The mean value of the brightness in set C is recorded as m, and the formula for calculating the variance between classes is: g = P1 × (M1 − M)2 + P2 × (M2 − M)2.
- (3)
- The brightness value K is selected from 0 to 255 one by one, and the corresponding interclass variance is calculated every time. The K value corresponding to the maximum interclass variance divided by 255 is the final threshold. The brightness value that is greater than the threshold value is retained, and the rest are removed so that the white part on the Secchi disk can be cropped.
2.1.2. Fine Image Crop of the White Part of the Secchi Disk
2.1.3. Determination of the Critical Position of the Secchi Disk by CNN
2.2. Water Gauge Recognition and Water Level Calculation
2.2.1. Water Gauge Segmentation
2.2.2. Characters Segmentation and Classification
2.2.3. Water Gauge Scale Calculation
3. Experiments
3.1. Training of Neural Network in Determining the Critical Position of the Secchi Disk
3.2. The Test Results of the Critical Position of the Secchi Disk
3.2.1. The Test Results of the White Part Crop of the Secchi Disk
3.2.2. Test Results of Critical Position Determination by Classification Network
3.3. Training of Neural Network in Water Gauge Recognition
3.3.1. Deeplabv3+ Network Training
3.3.2. Training of Character Classification Network
3.4. Experimental Results of Water Gauge Recognition
3.5. Overall Test Results of the Algorithm
4. Conclusions
Author Contributions
Funding
Conflicts of Interest
References
- Palmer, M.; Ruhi, A. Linkages between flow regime, biota, and ecosystem processes: Implications for river restoration. Science 2019, 365, eaaw2087. [Google Scholar] [CrossRef] [Green Version]
- Seelen, L.M.S.; Flaim, G.; Jennings, E.; De Senerpont Domis, L.N. Saving water for the future: Public awareness of water usage and water quality. J. Environ. Manag. 2019, 242, 246–257. [Google Scholar] [CrossRef]
- Bhateria, R.; Jain, D. Water quality assessment of lake water: A review. Sustain. Water Resour. Manag. 2016, 2, 161–173. [Google Scholar] [CrossRef] [Green Version]
- Grill, G.; Lehner, B.; Thieme, M.; Geenen, B.; Tickner, D.; Antonelli, F.; Babu, S.; Borrelli, P.; Cheng, L.; Crochetiere, H.; et al. Mapping the world’s free-flowing rivers. Nature 2019, 569, 215–221. [Google Scholar] [CrossRef]
- Shukla, D.; Vaghela, K.B.; Jain, N. Assessment of Physico-chemical and Bacteriological Water Quality Parameters: A Review. Int. J. Pharm. Integr. Life Sci. 2017, 5, 1–17. [Google Scholar]
- Halim, A.; Sharmin, S.; Rahman, H.; Haque, M.; Rahman, S.; Islam, S. Assessment of water quality parameters in baor environment, Bangladesh: A review. Int. J. Fish. Aquat. Stud. 2018, 6, 259–263. [Google Scholar]
- Harrison, M.D. Water Clarity. In Encyclopedia of Estuaries; Kennish, M.J., Ed.; Encyclopedia of Earth Sciences Series; Springer: Dordrecht, The Netherlands, 2016. [Google Scholar] [CrossRef]
- Elkadiri, R.; Manche, C.; Sultan, M.; Al-Dousari, A.; Uddin, S.; Chouinard, K.; Abotalib, A.Z. Development of a Coupled Spatiotemporal Algal Bloom Model for Coastal Areas: A Remote Sensing and Data Mining-Based Approach. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2016, 9, 5159–5171. [Google Scholar] [CrossRef]
- Opdal, A.F.; Lindemann, C.; Aksnes, D.L. Centennial decline in North Sea water clarity causes strong delay in phytoplankton bloom timing. Glob. Chang. Biol. 2019, 25, 3946–3953. [Google Scholar] [CrossRef] [Green Version]
- Zhou, L.; Zeng, L.; Fu, D.; Xu, P.; Zeng, S.; Tang, Q.; Chen, Q.; Chen, L.; Li, G. Fish density increases from the upper to lower parts of the Pearl River Delta, China, and is influenced by tide, chlorophyll-a, water transparency, and water depth. Aquat. Ecol. 2016, 50, 59–74. [Google Scholar] [CrossRef]
- Wondie, A.; Mengistu, S.; Vijverberg, J.; Dejen, E. Seasonal variation in primary production of a large high altitude tropical lake (Lake Tana, Ethiopia): Effects of nutrient availability and water transparency. Aquat. Ecol. 2007, 41, 195–207. [Google Scholar] [CrossRef]
- Wilson, C.J.; Dunton, K.H. Assessment of Seagrass Habitat Quality and Plant Physiological Condition in Texas Coastal Waters; The University of Texas at Austin Marine Science Institute: Port Aransas, TX, USA, 2012. [Google Scholar]
- de Voogd, N.J.; Cleary, D.F. Relating species traits to environmental variables in Indonesian coral reef sponge assemblages. Mar. Freshw. Res. 2007, 58, 240–249. [Google Scholar] [CrossRef]
- Zielinski, O. The History and Future of the Secchi Disk. In Angelo Secchi and Nineteenth Century Science; Springer: Cham, Switzerland, 2021; pp. 215–224. [Google Scholar] [CrossRef]
- Bledzki, L. Secchi Disk. Available online: http://editors.eol.org/eoearth/wiki/Secchi_disk_(About_the_EoE) (accessed on 1 June 2022).
- Wernand, M.R. On the history of the Secchi disc. J. Eur. Opt. Soc. Rapid Publ. 2010, 5, 10013s. [Google Scholar] [CrossRef] [Green Version]
- Smith, D.G. Standardization of secchi disk measurements, including use of a viewer box. In Proceedings of the NWQMC National Monitoring Conference 2000, Austin, TX, USA, 25–27 April 2000. [Google Scholar]
- Aas, E.; Høkedal, J.; Sørensen, K. Secchi depth in the Oslofjord–Skagerrak area: Theory, experiments and relationships to other quantities. Ocean Sci. 2014, 10, 177–199. [Google Scholar] [CrossRef] [Green Version]
- Tyler, J.E. The Secchi disc. Limnol. Oceanogr. 1968, 13, 1–6. [Google Scholar] [CrossRef]
- Preisendorfer, R.W. Secchi disc science: Visual optics of natural waters. Limnol. Oceanogr. 1986, 31, 909–926. [Google Scholar] [CrossRef] [Green Version]
- Davies-Colley, R.J.; Vant, W.N.; Smith, D.G. Colour and Clarity of Natural Waters: Science and Management of Optical Water Quality; Ellis Horwood: New York, NY, USA, 1993. [Google Scholar]
- Feng, C.; Yuan, J.; Sun, Y.; You, J. Design of Water Quality Monitoring System. In Proceedings of the 2020 International Conference on Artificial Intelligence and Computer Engineering (ICAICE), Beijing, China, 23–25 October 2020. [Google Scholar]
- Zhang, G.; Hao, Y. Design and Implementation of a Home Intelligent Water Quality Inspection Device. In Proceedings of the 2020 IEEE International Conference on Information Technology, Big Data and Artificial Intelligence (ICIBA), Chongqing, China, 6–8 November 2020; pp. 628–631. [Google Scholar] [CrossRef]
- Shen, M.; Duan, H.; Cao, Z.; Xue, K.; Qi, T.; Ma, J.; Liu, D.; Song, K.; Huang, C.; Song, X. Sentinel-3 OLCI observations of water clarity in large lakes in eastern China: Implications for SDG 6.3.2 evaluation. Remote Sens. Environ. 2020, 247, 111950. [Google Scholar] [CrossRef]
- Doron, M.; Babin, M.; Hembise, O.; Mangin, A.; Garnesson, P. Ocean transparency from space: Validation of algorithms estimating Secchi depth using MERIS, MODIS and SeaWiFS data. Remote Sens. Environ. 2011, 115, 2986–3001. [Google Scholar] [CrossRef]
- Gomes, A.C.; Alcântara, E.; Rodrigues, T.; Bernardo, N. Satellite estimates of euphotic zone and Secchi disk depths in a colored dissolved organic matter-dominated inland water. Ecol. Indic. 2020, 110, 105848. [Google Scholar] [CrossRef]
- Lee, Z.P.; Shang, S.; Hu, C.; Du, K.; Weidemann, A.; Hou, W.; Lin, J.; Lin, G. Secchi disk depth: A new theory and mechanistic model for underwater visibility. Remote Sens. Environ. 2015, 169, 139–149. [Google Scholar] [CrossRef] [Green Version]
- Jiang, D.; Matsushita, B.; Setiawan, F.; Vundo, A. An improved algorithm for estimating the Secchi disk depth from remote sensing data based on the new underwater visibility theory. ISPRS J. Photogramm. Remote Sens. 2019, 152, 13–23. [Google Scholar] [CrossRef]
- Zhan, J.; Zhang, D.; Zhou, G.; Zhang, G.; Cao, L.; Guo, Q. MODIS-Based Research on Secchi Disk Depth Using an Improved Semianalytical Algorithm in the Yellow Sea. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2021, 14, 5964–5972. [Google Scholar] [CrossRef]
- Ighalo, J.O.; Adeniyi, A.G.; Marques, G. Artificial Intelligence for Surface Water Quality Monitoring and Assessment: A Systematic Literature Analysis. Model. Earth Syst. Environ. 2021, 7, 669–681. [Google Scholar] [CrossRef]
- Sentas, A.; Psilovikos, A.; Psilovikos, T.; Matzafleri, N. Comparison of the performance of stochastic models in forecasting daily Dissolved Oxygen in the Dam—Lake Thesaurus. Desalin. Water Treat. 2016, 57, 11660–11674. [Google Scholar] [CrossRef]
- Karamoutsou, L.; Psilovikos, A. Modeling of Dissolved Oxygen Concentration using a Deep Neural Network Approach in Lake Kastoria, Greece. Eur. Water 2020, 71/72, 3–14. [Google Scholar]
- Gómez, D.; Salvador, P.; José, J.S.; Casanova, L. A New Approach to Monitor Water Quality in the Menor sea (Spain) using Satellite Data and Machine Learning Methods. Environ. Pollut. 2021, 286, 117489. [Google Scholar] [CrossRef]
- Heddam, S. Secchi Disk Depth Estimation from Water Quality Parameters: Artificial Neural Network versus Multiple Linear Regression Models? Environ. Process. 2016, 3, 525–536. [Google Scholar] [CrossRef]
- Batur, E.; Maktav, D. Assessment of Surface Water Quality by Using Satellite Images Fusion Based on PCA Method in the Lake Gala, Turkey. IEEE Trans. Geosci. Remote Sens. 2019, 57, 2983–2989. [Google Scholar] [CrossRef]
- Arias-Rodriguez, L.F.; Duan, Z.; Sepúlveda, R.; Martinez-Martinez, S.I.; Disse, M. Monitoring Water Quality of Valle de Bravo Reservoir, Mexico, Using Entire Lifespan of MERIS Data and Machine Learning Approaches. Remote Sens. 2020, 12, 1586. [Google Scholar] [CrossRef]
- Lin, F.; Hou, T.; Jin, Q.; You, A. Improved YOLO Based Detection Algorithm for Floating Debris in Waterway. Entropy 2021, 23, 1111. [Google Scholar] [CrossRef]
- D’Angelo, G.; Palmieri, F. A stacked autoencoder-based convolutional and recurrent deep neural network for detecting cyberattacks in interconnected power control systems. Int. J. Intell. Syst. 2021, 36, 7080–7102. [Google Scholar] [CrossRef]
- Cao, F.; Bao, Q. A Survey on Image Semantic Segmentation Methods with Convolutional Neural Network. In Proceedings of the 2020 International Conference on Communications, Information System and Computer Engineering (CISCE), Kuala Lumpur, Malaysia, 3–5 July 2020; pp. 458–462. [Google Scholar] [CrossRef]
- Oga, T.; Umeki, Y.; Iwahashi, M.; Matsuda, Y. River water quality estimation based on convolutional neural network. In Proceedings of the 2018 Asia-Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC), Honolulu, HI, USA, 12–15 November 2018; pp. 1305–1308. [Google Scholar] [CrossRef]
- Montassar, I.; Benazza-Benyahia, A. Water turbidity estimation in water sampled images. In Proceedings of the 2020 5th International Conference on Advanced Technologies for Signal and Image Processing (ATSIP), Sousse, Tunisia, 2–5 September 2020; pp. 1–5. [Google Scholar] [CrossRef]
- Wang, X.; Zhang, S.; Liang, X.; Zhou, H.; Zheng, J.; Sun, M. Accurate and Fast Blur Detection Using a Pyramid M-Shaped Deep Neural Network. IEEE Access 2019, 7, 86611–86624. [Google Scholar] [CrossRef]
- Zeng, K.; Wang, Y.; Mao, J.; Liu, J.; Peng, W.; Chen, N. A Local Metric for Defocus Blur Detection Based on CNN Feature Learning. IEEE Trans. Image Process. 2019, 28, 2107–2115. [Google Scholar] [CrossRef]
- Lin, F.; Yu, Z.; Jin, Q.; You, A. Semantic Segmentation and Scale Recognition–Based Water-Level Monitoring Algorithm. J. Coast. Res. 2020, 105, 185–189. [Google Scholar] [CrossRef]
- Wang, X.; Chen, H.; Wu, Q.E.; Guo, Y. On Research of Video Stream Detection Algorithm for Ship Waterline. In Proceedings of the 2020 International Conference on Big Data, Artificial Intelligence and Internet of Things Engineering (ICBAIE), Fuzhou, China, 12–14 June 2020; pp. 204–208. [Google Scholar] [CrossRef]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. In Proceedings of the Annual Conference on Neural Information Processing Systems, Montreal, QC, Canada, 7–12 December 2015; pp. 91–99. [Google Scholar]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
- Chen, L.-C.; Zhu, Y.; Papandreou, G.; Schroff, F.; Adam, H. Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation; Springer: Cham, Switzerland, 2018. [Google Scholar]
- Zhang, J. Gradient Descent based Optimization Algorithms for Deep Learning Models Training. arXiv 2019, arXiv:1805.07500. [Google Scholar]
- Sun, R. Optimization for deep learning: Theory and algorithms. arXiv 2019, arXiv:1912.08957. [Google Scholar]
- Krizhevsky, A.; Sutskever, I.; Hinton, G.E. Image Net Classification with Deep Convolutional Neural Networks. In Proceedings of the International Conference on Neural Information Processing Systems, Red Hook, NY, USA, 3–6 December 2012; Curran Associates Inc.: New York, NY, USA, 2012; pp. 1097–1105. [Google Scholar]
- Chollet, F. Xception: Deep Learning with Depthwise Separable Convolutions. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 1800–1807. [Google Scholar]
- Sandler, M.; Howard, A.; Zhu, M.; Zhmoginov, A.; Chen, L. MobileNetV2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 4510–4520. [Google Scholar] [CrossRef] [Green Version]
Name of the Function | Role of the Function | Number of Data Augmented with the Function |
---|---|---|
MedianBlur | Blur the image using a median filter | 460 |
Cutout | random dropout of the square region in the image | 433 |
RandomSunFlare | Simulate sun flare for the image | 446 |
RandomFog | Simulate fog for the image | 470 |
RandomRain | Simulate rain for the image | 437 |
MotionBlur | Apply motion blur to the image | 447 |
GlassBlur | Apply glass blur to the image | 481 |
Superpixels | Transform images to their super-pixel representation | 476 |
Sharpen | Sharpen the image | 464 |
ImageCompression | Decrease jpeg compression of the image | 382 |
MultiplicativeNoise | Multiply image to random number | 462 |
CLAHE | Apply contrast limited adaptive histogram equalization to the image | 474 |
HorizontalFlip | Flip the image horizontally | 438 |
Rotate | Randomly rotate the image | 471 |
VerticalFlip | Flip the image vertically | 429 |
RandomCrop | Randomly crop the image | 461 |
ShiftScaleRoate | Randomly apply affine transforms | 426 |
Perspective | Randomly apply perspective transforms | 436 |
RandomSnow | Simulate snow for the image | 417 |
HueSaturationValue | Randomly change the hue, saturation, and value of the image | 485 |
ISONoise | Apply camera sensor noise | 439 |
GaussNoise | Apply Gaussian noise | 428 |
Image | Blur Degree of Secchi Disk | Initial Crop | Fine Crop |
---|---|---|---|
clear | |||
blurred | |||
very blurred | |||
completely invisible |
Video | Initial Position | Completely Invisible Position | Critical Position |
---|---|---|---|
1 | |||
2 | |||
3 | |||
4 | |||
5 |
Name of the Function | Role of the Function | Number of Data Augmented with the Function |
---|---|---|
MedianBlur | Blur the image using a median filter | 691 |
Cutout | random dropout of the square region in the image | 689 |
RandomSunFlare | Simulate sun flare for the image | 630 |
RandomFog | Simulate fog for the image | 675 |
RandomRain | Simulate rain for the image | 663 |
MotionBlur | Apply motion blur to the image | 719 |
GlassBlur | Apply glass blur to the image | 670 |
Superpixels | Transform images to their super-pixel representation | 672 |
Sharpen | Sharpen the image | 649 |
RandomShadow | Simulate shadow for the image | 655 |
MultiplicativeNoise | Multiply image to random number | 701 |
CLAHE | Apply contrast limited adaptive histogram equalization to the image | 654 |
HueSaturationValue | Randomly change the hue, saturation, and value of the image | 666 |
RandomBrightnessContrast | Randomly change brightness and contrast of the image | 657 |
RandomSnow | Simulate snow for the image | 686 |
GaussianBlur | Apply Gaussian blur to the image | 650 |
Emboss | Emboss the image | 661 |
GridDropout | Drop out square region of the image in grid fashion | 674 |
ImageCompression | Decrease jpeg compression of the image | 656 |
ISONoise | Apply camera sensor noise | 681 |
HorizontalFlip | Flip the image horizontally | 652 |
Rotate | Randomly rotate the image | 650 |
VerticalFlip | Flip the image vertically | 672 |
RandomCrop | Randomly crop the image | 649 |
ShiftScaleRotate | Randomly apply affine transforms | 626 |
Perspective | Randomly apply perspective transforms | 680 |
Backbone | Image Size | FPS | PA | MIoU |
---|---|---|---|---|
Resnet18 | 640 × 480 | 23.95 | 99.55% | 94.20% |
Xception | 640 × 480 | 16.97 | 99.57% | 94.38% |
Mobilenetv2 | 640 × 480 | 17.35 | 99.57% | 94.48% |
Input Image | Water Gauge after Segmentation | Ground Truth (cm) | Measurement (cm) |
---|---|---|---|
23.6 | 23.8 | ||
60.8 | 61.9 | ||
46.0 | 46.4 | ||
13.2 | 13.8 | ||
34.4 | 34.5 |
Video | Initial Position of Secchi Disk | Critical Position of Secchi Disk | Transparency of Manual Measurement | Transparency of GUI Measurement |
---|---|---|---|---|
1 | 55.0 cm | 57.8 cm | ||
2 | 58.0 cm | 61.4 cm | ||
3 | 50.0 cm | 52.7 cm | ||
4 | 40.0 cm | 42.5 cm |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Lin, F.; Gan, L.; Jin, Q.; You, A.; Hua, L. Water Quality Measurement and Modelling Based on Deep Learning Techniques: Case Study for the Parameter of Secchi Disk. Sensors 2022, 22, 5399. https://doi.org/10.3390/s22145399
Lin F, Gan L, Jin Q, You A, Hua L. Water Quality Measurement and Modelling Based on Deep Learning Techniques: Case Study for the Parameter of Secchi Disk. Sensors. 2022; 22(14):5399. https://doi.org/10.3390/s22145399
Chicago/Turabian StyleLin, Feng, Libo Gan, Qiannan Jin, Aiju You, and Lei Hua. 2022. "Water Quality Measurement and Modelling Based on Deep Learning Techniques: Case Study for the Parameter of Secchi Disk" Sensors 22, no. 14: 5399. https://doi.org/10.3390/s22145399