SlideShare a Scribd company logo
UV SPECTROSCOPY EMBEDDED CLOUD
SYSTEM FOR ANN-COD ANALYSIS
Kaushik Patra (kpatra@gmail.com)
For CMPE-299 under the supervision of
Dr. Hua Harry Li (hualili@yahoo.com )
Department of Computer Engineering
San Jose State University
Date: 19th March, 2013
© 2012 - SJSU
Confidential
Problem Statement
• Lack of affordable water quality analysis instrument using
spectrometry analysis with UV/Vis light spectrum (200nm –
800nm).
• Very time consuming and not adaptable to analysis
environment variability.
• Non-generic system geared towards a specific set of testing.
• Environment non-friendly process due to heavy use of
chemical re-agents.
© 2012 - SJSU
Confidential
Objectives of Study
• To conduct survey on state of the art technique for COD
content measurement in water.
• To design and implement ANN based self learning and
sustainable and adaptive computing system for better
decision making in COD analysis using spectrometry.
• To integrate ANN based COD measurement system into
the existing embedded system.
• To test and verify overall system using real water
samples from water treatment facilities.
© 2012 - SJSU
Confidential
Artificial Neural Network (ANN)
• Artificial Neural Network (ANN) is mathematical model of
problem solving based on a very simplified model of working
mechanism of neuron.
▫ Invention of Associative Network by John Joseph Hopfield in
1982 accelerated the usage of ANN in industrial application.
▫ The conception of ANN is proposed in 1943 by Warren
McCulloch, a neuropsychologist, and Walter Pitts, a logician,
from University of Chicago.
• It is an adaptive mathematical model for solving problem
where relation between input parameters and output(s) of a
function is very complex or unknown.
▫ Adaptability and machine learning are two essential
characteristics for ANN based tools.
© 2012 - SJSU
Confidential
ANN in COD analysis
• ANN has its application in very complex problem solving.
▫ Analog VLSI , Vision Chips
▫ Stock market prediction
▫ Autopilot mechanism for aircrafts
• Spectrometry based measurement of Chemical Oxygen
Demand (COD) metric is a complex problem.
▫ Mathematical relation between spectral analysis data and COD
content is complex and not completely known.
▫ ANN with three feed-forward perception layer is a good candidate
to be used to implement an adaptable and supervised
machine learning mechanism to be used for COD
determination using spectral analysis with UV/Vis light (200nm
– 800nm).
© 2012 - SJSU
Confidential
Spectroscopy in COD analysis
• Three phenomenon occurs when EM radiation falls into
water sample containing impurities.
▫ Deflection
▫ Absorption
▫ Scattering
• Different type of organic compound absorbs UV / VIS
EM radiation of different wave length.
▫ Hence COD measurement should be studied over entire spectrum
(200nm – 850nm)
© 2012 - SJSU
Confidential
Related Researches (1/3)
• Glucose concentration determination using ANN on infra-red
absorption pattern in sample solution.
▫ ‘Neural Network Based Real-Time Detection of Glucose using a Non-
chemical Optical Sensor Approach’ by Fedric M. Ham et. al. [1990]
• COD determination using UV/VIS spectrometry.
▫ ‘On-line and in-situ measurement of turbidity and COD in wastewater using
UV/VIS spectrometry’ by N. Flesichmann et. al.
▫ ‘Binary encoded 2nd-differential spectrometry using UV-Vis spectral data
and neural networks in the estimation of species type and concentration’ by
N. Benjathapanun et. al. (1997).
• Hybrid approach of water quality measurement using spectrometry and
physico-chemical sensor.
▫ Water quality monitoring using a smart sensing system by A. Charef et. al.
[2000]
© 2012 - SJSU
Confidential
Related Researches (2/3)
• A case study on pepper mill wastewater shows that analysis needs to be
done on entire spectrum of UV/VIS.
▫ ‘Monitoring of paper mill wastewater treatment plant using UV/VIS spectroscopy’
by G. Langergraber et. al. [2004]
• Fingerprinting of different bio media substances using spectroscopy on
entire range of EM wave.
▫ ‘Spectral analysis and finger printing for biomedia characterization’ by M. Pons et.
al. [2004]
• Using wireless network for water quality monitoring.
▫ ‘Water Quality Monitoring System Using Zigbee Based Wireless Sensor Network’
by Z. Rasin and Md. R. Abdullah [2006]
© 2012 - SJSU
Confidential
Related Researches (3/3)
• Statistical feature extraction to reduce ANN input to a manageable amount
for spectroscopy analysis for COD.
▫ ‘Estimation of chemical oxygen demand by ultraviolate spectroscopic profiling
and artificial neural network’ by S. Fogelman et. al. [2006]
• Remote monitoring of water quality using GPRS.
▫ ‘The Design on Multi-Parameter Online Monitoring System of Water Quality
Based on GPRS’ by Q. Tie-Zhu and S. Le [2010]
• Using ANN and GA for COD measurement.
▫ ‘Hybrid artificial neural network genetic algorithm technique for modeling
chemical oxygen demand removal in anoxic / oxic process’ by Y. Ma et. al. [2011]
© 2012 - SJSU
Confidential
Conventional COD Analysis Technique (1/3)
• Refluxing water sample with
potassium dichromate (K2Cr2O7) in a
strong acid condition.
▫ Amount of potassium dichromate digested
depends on how much organic compound
is present in water sample. Hence,
indirectly measures COD.
▫ Amount of potassium dichromate left over
is measured using chemical titration
process.
▫ Needs two hours or more for entire process
to be completed.
▫ Ref : Dr. Chunlong, Fundamentals of
Environmental Sampling and Analysis, (page
357)
© 2012 - SJSU
Confidential
• Using colorimeter to determine left
over potassium dichromate.
▫ Colorimeter is used to determine
concentration of colored compound
dissolved in water by measuring
absorption amount of certain
wavelength of light.
▫ The refluxed solution takes yellow to
brown color depending on the
concentration of the dichromate.
Measuring the absorption
pattern, colorimeter can indicate the
amount of undigested potassium
dichromate.
© 2012 - SJSU
Confidential
Conventional COD Analysis Technique (2/3)
Ref:
http://en.wikipedia.org/wiki/Colorimeter_(ch
emistry)#cite_ref-2
• Using photo-catalytic
method.
▫ Oxidation of organic
compound is accelerated in
presence of catalysts and
UV radiation (<400nm).
▫ Oxidation process creates
electrical signal on the
sensor.
▫ Amount of signal generated
depends on concentration
of organic compound
present in water sample.
© 2012 - SJSU
Confidential
Conventional COD Analysis Technique (3/3)
Ref: COD Analysis, PeCODTM from MANTECH, ManSci Inc.
http://www.mansci.com/products/PeCOD/index.html
Uniqueness of this Research
1. An unique methodology of COD identification in water
sample using ANN photometry data analysis technique.
2. A mobile embedded hardware system integrated with
portable photometer and connected to cloud
infrastructure.
3. A software application system to utilize implemented
cloud enabled mobile hardware system
1) System to both train and utilize ANN for COD analysis.
2) In-situ upgrade of ANN by incremental training.
© 2012 - SJSU
Confidential
Overall System Architecture
• The UV light source is connected to
flow using fiber optic cable.
• The dispersed light from flow cell
comes to spectrometer using another
fiber optic cable.
• The Spectrometer is connected to
ARM11 embedded system though
USB.
• The ARM11 Embedded system runs
ANN based COD analysis algorithm to
analyze spectrometry data using cloud
storage and application server.
© 2012 - SJSU
Confidential
Overall System
© 2012 - SJSU
Confidential
Design of COD Detection Technique
• 20 equidistance sample of photometry data
over the spectrum range is captured.
• This 20 sample is used as input to the ANN.
• Samples are normalized w.r.t. highest data
present in pattern so that all the sample are
between 0-1.
• ANN is trained with data pattern from water
sample with no COD and with known COD.
▫ 100 data pattern in generated from single
spectrometry data by injecting 20% random
noise.
▫ Data from no COD is assigned as result 1.
▫ All other patterns are assigned as result 0.
▫ 100 random data pattern is generated with
result 0.
© 2012 - SJSU
Confidential
ANN Architecture
• Feed-forward network.
• Number of input 20
• Number of output 1
• Number of layer 1
• Number of hidden nodes 50
• Training algorithm – standard back-
propagation
• Learning rate 0.7
© 2012 - SJSU
Confidential
I1 I2 I20. . .
H1 H2 H50. . .
O1
Mathematical Modeling for Training(1/2)
•
© 2012 - SJSU
Confidential
• In the feasibility study the following parameters are used.
▫ Base frequency f = 1KHz
▫ Amplitude of the principal component as 1.0.
▫ Other harmonics have random (but symmetric in the spectrum)
amplitude normalized to 1.0
▫ Time t is varied from 0-2 divided into 1K discrete points.
▫ Random phase shift is bounded between 0-2
▫ Random noise has random amplitude with max of 20% of the base
amplitude.
© 2012 - SJSU
Confidential
Mathematical Modeling for Training(2/2)
Experiment Design (1/2)
• Followings are the details on the experiment
▫ Done on different numbers of harmonics in composite signal
(1, 2, 4, 8, 16, …, 1024).
▫ For each harmonic set 100 random spectrum is used.
▫ For each spectrum, 100 different signal patterns are generated
injected with random noise and phase shift into the pattern. The
ANN is trained to identify these patterns as 1.
© 2012 - SJSU
Confidential
Experiment Design (2/2)
• Followings are the details on the experiment
▫ For each spectrum, 100 random pattern is generated with value
between -1.0 to +1.0. The ANN is trained to identify these
patterns as 0.
▫ Test patterns are generated similar to the training pattern
generation.
▫ For each spectrum, the test is measured with percentage of
detection error. Maximum and minimum errors are determined
per spectrum set.
© 2012 - SJSU
Confidential
Experiment Result (1/3)
• Followings is a sample signal generated
© 2012 - SJSU
Confidential
Experiment Result (2/3)
• Following is the table of experiment error details.
© 2012 - SJSU
Confidential
# Harmonics
Maximum
% of error
Mean
% of error
Minimum
% of error
Standard Deviation
of the % of error
1 5.5 1.35 0.0 0.94
2 4.0 0.46 0.0 0.71
4 2.0 0.17 0.0 0.35
8 2.0 0.20 0.0 0.44
16 6.5 0.41 0.0 0.84
Experiment Results (3/3)
• Following is the table of experiment error details.
© 2012 - SJSU
Confidential
# Harmonics
Maximum
% of error
Mean
% of error
Minimum
% of error
Standard Deviation
of the % of error
32 4.0 0.56 0.0 0.89
64 6.0 0.88 0.0 1.08
128 3.0 0.59 0.0 0.73
256 2.5 0.48 0.0 0.61
512 2.0 0.31 0.0 0.49
1024 2.5 0.28 0.0 0.44
Result Interpretation
• The overall error distribution looks like following.
© 2012 - SJSU
Confidential
• Minimum error is 0%
• Mean error is 2.21%
• Standard deviation is 5.24%
• Maximum error is 6.5%
System Testing (1/2)
• Calibrated water sample with known theoretical oxygen
demand is used for system test
▫ Industry standard is to use Potassium Hydrogen Phthalate
(KHP).
▫ 1000 mg COD / Lt base water sample is prepared using 851.1 gm
dry KHP 851.1 mixed in 1 Lt of organic free deionized water.
• 100 ml water sample with 250, 500 COD / Lt is prepared from
the base water sample by dilution.
• 100 ml sample of water with unknown COD is prepared by
mixing small amount of the reference solution with water.
© 2012 - SJSU
Confidential
System Testing (2/2)
• Water sample with 0, 250, 500 and 1000 mg COD / Lt. is
used for ANN training.
▫ Spectroscopy data is taken 5 times for each COD to account for
natural variation.
▫ Each of these 5 samples are then injected with 10% random error
to produce 10 reference samples.
• Following water samples are used to test the system along
with the training data.
▫ Filter water
▫ Sample with unknown COD
▫ Toilet flush system water
© 2012 - SJSU
Confidential
System Test Setup (1/4)
© 2012 - SJSU
Confidential
System Test Setup (2/4)
© 2012 - SJSU
Confidential
System Test Setup (3/4)
© 2012 - SJSU
Confidential
System Test Setup (4/4)
© 2012 - SJSU
Confidential
System Training Data
© 2012 - SJSU
Confidential
System Testing Data
© 2012 - SJSU
Confidential
System Test Result
• All test patterns are successfully classified as
having COD or no COD.
▫ Link to the sample preparation video.
▫ Link to the test demonstration video.
© 2012 - SJSU
Confidential
Conclusion
• COD detection is possible, without using any
chemical, based on pure photometry data analysis using
artificial neural network.
• Affordable COD detection system can be built using
generic mobile embedded system extended with
attachable spectrometer through USB or other standard
connection.
• COD detection system can be built on top of cloud based
infrastructure.
© 2012 - SJSU
Confidential
Future Work
• Development of photometry data analysis based
algorithm to determine COD concentration level.
• Integration of real private / public cloud into this
system.
• Implementation of an evolving COD analysis system
with feedback from laboratory COD results.
• Implementation of more robust experiment setup using
controlled pump and flush system.
© 2012 - SJSU
Confidential
Acknowledgment
• Dr. Hary Hua Li, Department of Computer Engineering, San Jose
State University for his continuous support, encouragement and
guidance throughout this thesis work.
• The thesis committee members, Dr. Donald Hung, Department of
Computer Engineering, and Dr. Robert H. Morelos-
Zaragoza, Department of Electrical Engineering, San Jose State
University for being generously agreed to be part of the thesis
committee and their encouragement and valuable feedback on this
work.
• Arch Shaw, Alumni, Computer Engineering Department, San Jose
State University for his pioneer work on integration of photometer
into embedded system.
• My wife and daughter for being continuously supportive to complete
this thesis work in time.
© 2012 - SJSU
Confidential
UV SPECTROSCOPY EMBEDDED CLOUD
SYSTEM FOR ANN-COD ANALYSIS
Kaushik Patra (kpatra@gmail.com)
For CMPE-299 under the supervision of
Dr. Hua Harry Li (hualili@yahoo.com )
Department of Computer Engineering
San Jose State University
Date: 19th March, 2013
© 2012 - SJSU
Confidential

More Related Content

PPT
Ce icp-ms
PPT
Near Infrared Spectroscopy In Off Line Biomass Monitoring Of Candida Utilis C...
PPTX
Quality Measurements Using NIR/MIR Spectroscopy: A Rotten Apple Could Turn Yo...
PPTX
High-accuracy laser spectrometers for wireless trace-gas sensor networks
PPTX
Laser-Based Standoff Methane Sensors for Enhancing Coal Miner Safety
PDF
Detection air pollution based on infrared image processing
PPTX
In situ process monitoring of Selective laser melting
PDF
Measurement of VOCs for Air Quality Using Widely Tunable Mid-Infrared Laser S...
Ce icp-ms
Near Infrared Spectroscopy In Off Line Biomass Monitoring Of Candida Utilis C...
Quality Measurements Using NIR/MIR Spectroscopy: A Rotten Apple Could Turn Yo...
High-accuracy laser spectrometers for wireless trace-gas sensor networks
Laser-Based Standoff Methane Sensors for Enhancing Coal Miner Safety
Detection air pollution based on infrared image processing
In situ process monitoring of Selective laser melting
Measurement of VOCs for Air Quality Using Widely Tunable Mid-Infrared Laser S...

What's hot (20)

PDF
Measurement of Formaldehyde Pollution in Ambient Air
PDF
IEEE Sensor journal 2016 Title and Abstract
PDF
Analysis of Damaged Floor Coverings Emissions in Indoor Air Quality with Cant...
PDF
DPM Presentation
PDF
Augmenting Standard Methods of Measuring Airborne PM2.5 Using IR Imaging
PDF
FTIR Applications
PDF
Laser Ablation Molecular Isotopic Spectrometry for rare isotopes of the light...
PDF
Low-cost Fiber Optic Chemical Sensor Development for Fishpond Application
PDF
DEVELOPMENT OF A NITRATE CONCENTRATON PREDICTION MODEL USING UV
PDF
Characterization of Liquid Waste in Isotope production and Research Facilities
PDF
Concentration measurements of bubbles in a water column using an optical tomo...
PPTX
Application of raman spectroscopy in food analysis
PDF
Chlorine Dose Determination in Water Distribution System of Jabalpur City usi...
PDF
Method for Estimation of Total Nitrogen and fiber Contents in Tealeaves With ...
PDF
my first paper
PPT
Learn the Tricks to Get the Best from Your City Ambient Air Quality Monitorin...
PDF
Single Step Calibration, Prediction and Real Samples Data Acquisition for Art...
PPTX
Surbhi Krishna Singh - Professional Gallery
PDF
Carbon Nanotubes Based Sensor for Detection of Traces of Gas Molecules- A Review
Measurement of Formaldehyde Pollution in Ambient Air
IEEE Sensor journal 2016 Title and Abstract
Analysis of Damaged Floor Coverings Emissions in Indoor Air Quality with Cant...
DPM Presentation
Augmenting Standard Methods of Measuring Airborne PM2.5 Using IR Imaging
FTIR Applications
Laser Ablation Molecular Isotopic Spectrometry for rare isotopes of the light...
Low-cost Fiber Optic Chemical Sensor Development for Fishpond Application
DEVELOPMENT OF A NITRATE CONCENTRATON PREDICTION MODEL USING UV
Characterization of Liquid Waste in Isotope production and Research Facilities
Concentration measurements of bubbles in a water column using an optical tomo...
Application of raman spectroscopy in food analysis
Chlorine Dose Determination in Water Distribution System of Jabalpur City usi...
Method for Estimation of Total Nitrogen and fiber Contents in Tealeaves With ...
my first paper
Learn the Tricks to Get the Best from Your City Ambient Air Quality Monitorin...
Single Step Calibration, Prediction and Real Samples Data Acquisition for Art...
Surbhi Krishna Singh - Professional Gallery
Carbon Nanotubes Based Sensor for Detection of Traces of Gas Molecules- A Review
Ad

Viewers also liked (19)

PPS
Water Quality Control & Treatment
PPT
UV Visible Spectroscopy
PPTX
Uv-visible spectroscopy
PPTX
SEMINAR ON UV SPECTROSCOPY
PPTX
Best presentation of uv
PPTX
UV- VISIBLE SPECTROSCOPY BY Ann
PPTX
UV Spectroscopy Introduction
PPTX
U V Visible Spectroscopy
PPT
Uv spectroscopy (Collected)
PPT
UV VISIBLE Spectroscopy
PPTX
UV Spectroscopy
PPTX
Uv visible spectroscopy- madan
PPTX
uv -visible spectroscopy
PPT
UV Visible Spectroscopy
PPTX
UV-Visible Spectroscopy
PPTX
INTRODUCTION TO UV-VISIBLE SPECTROSCOPY
PPTX
chemical oxygen demand -analysis using APHA manual
PPTX
UV visible spectroscopy
PPT
Ultra violet (UV) spectroscopy, introduction,principle instrumentation,differ...
Water Quality Control & Treatment
UV Visible Spectroscopy
Uv-visible spectroscopy
SEMINAR ON UV SPECTROSCOPY
Best presentation of uv
UV- VISIBLE SPECTROSCOPY BY Ann
UV Spectroscopy Introduction
U V Visible Spectroscopy
Uv spectroscopy (Collected)
UV VISIBLE Spectroscopy
UV Spectroscopy
Uv visible spectroscopy- madan
uv -visible spectroscopy
UV Visible Spectroscopy
UV-Visible Spectroscopy
INTRODUCTION TO UV-VISIBLE SPECTROSCOPY
chemical oxygen demand -analysis using APHA manual
UV visible spectroscopy
Ultra violet (UV) spectroscopy, introduction,principle instrumentation,differ...
Ad

Similar to COD-UV-SPECTROSCOPY-ANN-ANALYSIS (20)

PDF
Online Monitoring of Wastewater in Common Effluent Treatment Plant using UV-V...
PDF
Optimization of light source wavelength for ammonia detection in water
PDF
Fredrick Ishengoma - A Novel Design of IEEE 802.15.4 and Solar Based Autonomo...
DOCX
WATER LEVEL DETECTOR WITH TURBIDITY SENSOR
PDF
Kr3518331839
PDF
Mems based optical sensor for salinity measurement
PDF
Mems based optical sensorMEMS BASED OPTICAL SENSOR FOR SALINITY MEASUREMENT
PDF
Oxygen do measurement wtw
PDF
Ion Beam Analytical Technique PIXE for Pollution Study at Dhaka Van de Graaff...
PDF
Choi_ICONI2020_발표자료_v1.0.pdf
PDF
Low-cost colorimetric setup for concentration measurement of manganese ions b...
PDF
tail gas H2S/SO2 analyzer
PPTX
emitechtalk.pptx
DOCX
Turbidity measurement
PDF
IRJET- Non-Invasive Blood Glucose Measurement Depending on the Blood Dielectr...
PDF
Automatic reading cr39
PPTX
Turnkey projects and services in Cage Aquaculture
PPTX
a long distance underwater laser .pptx
PDF
Testing of chlorine dosage in drinking water using microstrip patch sensor
PDF
Reliable On-Line sensing
Online Monitoring of Wastewater in Common Effluent Treatment Plant using UV-V...
Optimization of light source wavelength for ammonia detection in water
Fredrick Ishengoma - A Novel Design of IEEE 802.15.4 and Solar Based Autonomo...
WATER LEVEL DETECTOR WITH TURBIDITY SENSOR
Kr3518331839
Mems based optical sensor for salinity measurement
Mems based optical sensorMEMS BASED OPTICAL SENSOR FOR SALINITY MEASUREMENT
Oxygen do measurement wtw
Ion Beam Analytical Technique PIXE for Pollution Study at Dhaka Van de Graaff...
Choi_ICONI2020_발표자료_v1.0.pdf
Low-cost colorimetric setup for concentration measurement of manganese ions b...
tail gas H2S/SO2 analyzer
emitechtalk.pptx
Turbidity measurement
IRJET- Non-Invasive Blood Glucose Measurement Depending on the Blood Dielectr...
Automatic reading cr39
Turnkey projects and services in Cage Aquaculture
a long distance underwater laser .pptx
Testing of chlorine dosage in drinking water using microstrip patch sensor
Reliable On-Line sensing

Recently uploaded (20)

PPTX
Safety Seminar civil to be ensured for safe working.
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
DOCX
573137875-Attendance-Management-System-original
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Foundation to blockchain - A guide to Blockchain Tech
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Construction Project Organization Group 2.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPT
Mechanical Engineering MATERIALS Selection
PDF
737-MAX_SRG.pdf student reference guides
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Safety Seminar civil to be ensured for safe working.
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
573137875-Attendance-Management-System-original
CH1 Production IntroductoryConcepts.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Foundation to blockchain - A guide to Blockchain Tech
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Operating System & Kernel Study Guide-1 - converted.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Construction Project Organization Group 2.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Embodied AI: Ushering in the Next Era of Intelligent Systems
Mechanical Engineering MATERIALS Selection
737-MAX_SRG.pdf student reference guides
OOP with Java - Java Introduction (Basics)
Fundamentals of safety and accident prevention -final (1).pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Model Code of Practice - Construction Work - 21102022 .pdf
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS

COD-UV-SPECTROSCOPY-ANN-ANALYSIS

  • 1. UV SPECTROSCOPY EMBEDDED CLOUD SYSTEM FOR ANN-COD ANALYSIS Kaushik Patra (kpatra@gmail.com) For CMPE-299 under the supervision of Dr. Hua Harry Li (hualili@yahoo.com ) Department of Computer Engineering San Jose State University Date: 19th March, 2013 © 2012 - SJSU Confidential
  • 2. Problem Statement • Lack of affordable water quality analysis instrument using spectrometry analysis with UV/Vis light spectrum (200nm – 800nm). • Very time consuming and not adaptable to analysis environment variability. • Non-generic system geared towards a specific set of testing. • Environment non-friendly process due to heavy use of chemical re-agents. © 2012 - SJSU Confidential
  • 3. Objectives of Study • To conduct survey on state of the art technique for COD content measurement in water. • To design and implement ANN based self learning and sustainable and adaptive computing system for better decision making in COD analysis using spectrometry. • To integrate ANN based COD measurement system into the existing embedded system. • To test and verify overall system using real water samples from water treatment facilities. © 2012 - SJSU Confidential
  • 4. Artificial Neural Network (ANN) • Artificial Neural Network (ANN) is mathematical model of problem solving based on a very simplified model of working mechanism of neuron. ▫ Invention of Associative Network by John Joseph Hopfield in 1982 accelerated the usage of ANN in industrial application. ▫ The conception of ANN is proposed in 1943 by Warren McCulloch, a neuropsychologist, and Walter Pitts, a logician, from University of Chicago. • It is an adaptive mathematical model for solving problem where relation between input parameters and output(s) of a function is very complex or unknown. ▫ Adaptability and machine learning are two essential characteristics for ANN based tools. © 2012 - SJSU Confidential
  • 5. ANN in COD analysis • ANN has its application in very complex problem solving. ▫ Analog VLSI , Vision Chips ▫ Stock market prediction ▫ Autopilot mechanism for aircrafts • Spectrometry based measurement of Chemical Oxygen Demand (COD) metric is a complex problem. ▫ Mathematical relation between spectral analysis data and COD content is complex and not completely known. ▫ ANN with three feed-forward perception layer is a good candidate to be used to implement an adaptable and supervised machine learning mechanism to be used for COD determination using spectral analysis with UV/Vis light (200nm – 800nm). © 2012 - SJSU Confidential
  • 6. Spectroscopy in COD analysis • Three phenomenon occurs when EM radiation falls into water sample containing impurities. ▫ Deflection ▫ Absorption ▫ Scattering • Different type of organic compound absorbs UV / VIS EM radiation of different wave length. ▫ Hence COD measurement should be studied over entire spectrum (200nm – 850nm) © 2012 - SJSU Confidential
  • 7. Related Researches (1/3) • Glucose concentration determination using ANN on infra-red absorption pattern in sample solution. ▫ ‘Neural Network Based Real-Time Detection of Glucose using a Non- chemical Optical Sensor Approach’ by Fedric M. Ham et. al. [1990] • COD determination using UV/VIS spectrometry. ▫ ‘On-line and in-situ measurement of turbidity and COD in wastewater using UV/VIS spectrometry’ by N. Flesichmann et. al. ▫ ‘Binary encoded 2nd-differential spectrometry using UV-Vis spectral data and neural networks in the estimation of species type and concentration’ by N. Benjathapanun et. al. (1997). • Hybrid approach of water quality measurement using spectrometry and physico-chemical sensor. ▫ Water quality monitoring using a smart sensing system by A. Charef et. al. [2000] © 2012 - SJSU Confidential
  • 8. Related Researches (2/3) • A case study on pepper mill wastewater shows that analysis needs to be done on entire spectrum of UV/VIS. ▫ ‘Monitoring of paper mill wastewater treatment plant using UV/VIS spectroscopy’ by G. Langergraber et. al. [2004] • Fingerprinting of different bio media substances using spectroscopy on entire range of EM wave. ▫ ‘Spectral analysis and finger printing for biomedia characterization’ by M. Pons et. al. [2004] • Using wireless network for water quality monitoring. ▫ ‘Water Quality Monitoring System Using Zigbee Based Wireless Sensor Network’ by Z. Rasin and Md. R. Abdullah [2006] © 2012 - SJSU Confidential
  • 9. Related Researches (3/3) • Statistical feature extraction to reduce ANN input to a manageable amount for spectroscopy analysis for COD. ▫ ‘Estimation of chemical oxygen demand by ultraviolate spectroscopic profiling and artificial neural network’ by S. Fogelman et. al. [2006] • Remote monitoring of water quality using GPRS. ▫ ‘The Design on Multi-Parameter Online Monitoring System of Water Quality Based on GPRS’ by Q. Tie-Zhu and S. Le [2010] • Using ANN and GA for COD measurement. ▫ ‘Hybrid artificial neural network genetic algorithm technique for modeling chemical oxygen demand removal in anoxic / oxic process’ by Y. Ma et. al. [2011] © 2012 - SJSU Confidential
  • 10. Conventional COD Analysis Technique (1/3) • Refluxing water sample with potassium dichromate (K2Cr2O7) in a strong acid condition. ▫ Amount of potassium dichromate digested depends on how much organic compound is present in water sample. Hence, indirectly measures COD. ▫ Amount of potassium dichromate left over is measured using chemical titration process. ▫ Needs two hours or more for entire process to be completed. ▫ Ref : Dr. Chunlong, Fundamentals of Environmental Sampling and Analysis, (page 357) © 2012 - SJSU Confidential
  • 11. • Using colorimeter to determine left over potassium dichromate. ▫ Colorimeter is used to determine concentration of colored compound dissolved in water by measuring absorption amount of certain wavelength of light. ▫ The refluxed solution takes yellow to brown color depending on the concentration of the dichromate. Measuring the absorption pattern, colorimeter can indicate the amount of undigested potassium dichromate. © 2012 - SJSU Confidential Conventional COD Analysis Technique (2/3) Ref: http://en.wikipedia.org/wiki/Colorimeter_(ch emistry)#cite_ref-2
  • 12. • Using photo-catalytic method. ▫ Oxidation of organic compound is accelerated in presence of catalysts and UV radiation (<400nm). ▫ Oxidation process creates electrical signal on the sensor. ▫ Amount of signal generated depends on concentration of organic compound present in water sample. © 2012 - SJSU Confidential Conventional COD Analysis Technique (3/3) Ref: COD Analysis, PeCODTM from MANTECH, ManSci Inc. http://www.mansci.com/products/PeCOD/index.html
  • 13. Uniqueness of this Research 1. An unique methodology of COD identification in water sample using ANN photometry data analysis technique. 2. A mobile embedded hardware system integrated with portable photometer and connected to cloud infrastructure. 3. A software application system to utilize implemented cloud enabled mobile hardware system 1) System to both train and utilize ANN for COD analysis. 2) In-situ upgrade of ANN by incremental training. © 2012 - SJSU Confidential
  • 14. Overall System Architecture • The UV light source is connected to flow using fiber optic cable. • The dispersed light from flow cell comes to spectrometer using another fiber optic cable. • The Spectrometer is connected to ARM11 embedded system though USB. • The ARM11 Embedded system runs ANN based COD analysis algorithm to analyze spectrometry data using cloud storage and application server. © 2012 - SJSU Confidential
  • 15. Overall System © 2012 - SJSU Confidential
  • 16. Design of COD Detection Technique • 20 equidistance sample of photometry data over the spectrum range is captured. • This 20 sample is used as input to the ANN. • Samples are normalized w.r.t. highest data present in pattern so that all the sample are between 0-1. • ANN is trained with data pattern from water sample with no COD and with known COD. ▫ 100 data pattern in generated from single spectrometry data by injecting 20% random noise. ▫ Data from no COD is assigned as result 1. ▫ All other patterns are assigned as result 0. ▫ 100 random data pattern is generated with result 0. © 2012 - SJSU Confidential
  • 17. ANN Architecture • Feed-forward network. • Number of input 20 • Number of output 1 • Number of layer 1 • Number of hidden nodes 50 • Training algorithm – standard back- propagation • Learning rate 0.7 © 2012 - SJSU Confidential I1 I2 I20. . . H1 H2 H50. . . O1
  • 18. Mathematical Modeling for Training(1/2) • © 2012 - SJSU Confidential
  • 19. • In the feasibility study the following parameters are used. ▫ Base frequency f = 1KHz ▫ Amplitude of the principal component as 1.0. ▫ Other harmonics have random (but symmetric in the spectrum) amplitude normalized to 1.0 ▫ Time t is varied from 0-2 divided into 1K discrete points. ▫ Random phase shift is bounded between 0-2 ▫ Random noise has random amplitude with max of 20% of the base amplitude. © 2012 - SJSU Confidential Mathematical Modeling for Training(2/2)
  • 20. Experiment Design (1/2) • Followings are the details on the experiment ▫ Done on different numbers of harmonics in composite signal (1, 2, 4, 8, 16, …, 1024). ▫ For each harmonic set 100 random spectrum is used. ▫ For each spectrum, 100 different signal patterns are generated injected with random noise and phase shift into the pattern. The ANN is trained to identify these patterns as 1. © 2012 - SJSU Confidential
  • 21. Experiment Design (2/2) • Followings are the details on the experiment ▫ For each spectrum, 100 random pattern is generated with value between -1.0 to +1.0. The ANN is trained to identify these patterns as 0. ▫ Test patterns are generated similar to the training pattern generation. ▫ For each spectrum, the test is measured with percentage of detection error. Maximum and minimum errors are determined per spectrum set. © 2012 - SJSU Confidential
  • 22. Experiment Result (1/3) • Followings is a sample signal generated © 2012 - SJSU Confidential
  • 23. Experiment Result (2/3) • Following is the table of experiment error details. © 2012 - SJSU Confidential # Harmonics Maximum % of error Mean % of error Minimum % of error Standard Deviation of the % of error 1 5.5 1.35 0.0 0.94 2 4.0 0.46 0.0 0.71 4 2.0 0.17 0.0 0.35 8 2.0 0.20 0.0 0.44 16 6.5 0.41 0.0 0.84
  • 24. Experiment Results (3/3) • Following is the table of experiment error details. © 2012 - SJSU Confidential # Harmonics Maximum % of error Mean % of error Minimum % of error Standard Deviation of the % of error 32 4.0 0.56 0.0 0.89 64 6.0 0.88 0.0 1.08 128 3.0 0.59 0.0 0.73 256 2.5 0.48 0.0 0.61 512 2.0 0.31 0.0 0.49 1024 2.5 0.28 0.0 0.44
  • 25. Result Interpretation • The overall error distribution looks like following. © 2012 - SJSU Confidential • Minimum error is 0% • Mean error is 2.21% • Standard deviation is 5.24% • Maximum error is 6.5%
  • 26. System Testing (1/2) • Calibrated water sample with known theoretical oxygen demand is used for system test ▫ Industry standard is to use Potassium Hydrogen Phthalate (KHP). ▫ 1000 mg COD / Lt base water sample is prepared using 851.1 gm dry KHP 851.1 mixed in 1 Lt of organic free deionized water. • 100 ml water sample with 250, 500 COD / Lt is prepared from the base water sample by dilution. • 100 ml sample of water with unknown COD is prepared by mixing small amount of the reference solution with water. © 2012 - SJSU Confidential
  • 27. System Testing (2/2) • Water sample with 0, 250, 500 and 1000 mg COD / Lt. is used for ANN training. ▫ Spectroscopy data is taken 5 times for each COD to account for natural variation. ▫ Each of these 5 samples are then injected with 10% random error to produce 10 reference samples. • Following water samples are used to test the system along with the training data. ▫ Filter water ▫ Sample with unknown COD ▫ Toilet flush system water © 2012 - SJSU Confidential
  • 28. System Test Setup (1/4) © 2012 - SJSU Confidential
  • 29. System Test Setup (2/4) © 2012 - SJSU Confidential
  • 30. System Test Setup (3/4) © 2012 - SJSU Confidential
  • 31. System Test Setup (4/4) © 2012 - SJSU Confidential
  • 32. System Training Data © 2012 - SJSU Confidential
  • 33. System Testing Data © 2012 - SJSU Confidential
  • 34. System Test Result • All test patterns are successfully classified as having COD or no COD. ▫ Link to the sample preparation video. ▫ Link to the test demonstration video. © 2012 - SJSU Confidential
  • 35. Conclusion • COD detection is possible, without using any chemical, based on pure photometry data analysis using artificial neural network. • Affordable COD detection system can be built using generic mobile embedded system extended with attachable spectrometer through USB or other standard connection. • COD detection system can be built on top of cloud based infrastructure. © 2012 - SJSU Confidential
  • 36. Future Work • Development of photometry data analysis based algorithm to determine COD concentration level. • Integration of real private / public cloud into this system. • Implementation of an evolving COD analysis system with feedback from laboratory COD results. • Implementation of more robust experiment setup using controlled pump and flush system. © 2012 - SJSU Confidential
  • 37. Acknowledgment • Dr. Hary Hua Li, Department of Computer Engineering, San Jose State University for his continuous support, encouragement and guidance throughout this thesis work. • The thesis committee members, Dr. Donald Hung, Department of Computer Engineering, and Dr. Robert H. Morelos- Zaragoza, Department of Electrical Engineering, San Jose State University for being generously agreed to be part of the thesis committee and their encouragement and valuable feedback on this work. • Arch Shaw, Alumni, Computer Engineering Department, San Jose State University for his pioneer work on integration of photometer into embedded system. • My wife and daughter for being continuously supportive to complete this thesis work in time. © 2012 - SJSU Confidential
  • 38. UV SPECTROSCOPY EMBEDDED CLOUD SYSTEM FOR ANN-COD ANALYSIS Kaushik Patra (kpatra@gmail.com) For CMPE-299 under the supervision of Dr. Hua Harry Li (hualili@yahoo.com ) Department of Computer Engineering San Jose State University Date: 19th March, 2013 © 2012 - SJSU Confidential