Artificial intelligent

6

Click here to load reader

description

A leak detector system using neural networks.

Transcript of Artificial intelligent

Page 1: Artificial intelligent

Intelligent Natural Gas Pipeline Leak Detector using Binary Matrix Extraction

Engr. Edgar Caburatan Carrillo II, Dr. Elmer P. Dadios

College of Engineering, De La Salle University2401 Taft Avenue, 1004 Manila, Philippines

[email protected], [email protected]

Abstract— Pipeline management is very important for naturalgas pipelines [2]. One of the pipeline management technique isleak detection. If natural gas pipeline is mismanaged and leaknot detected, there will be explosion due to reaction of itschemical components [35]. Using visual inspection is thetraditional method in detecting natural gas pipeline leakage butan intelligent system will make the leak detection better [36].Also simulating it first before implementation will sure save costand will lead to easy decision making [11]. This paper presentsthe on how an intelligent system will detect pipeline leakage usingbinary matrix analyzer. The output of the binary matrixanalyzer was used as input in Matlab neural network toolboxthat can be applied to optimize natural gas pipelines by detectingits leaks. It comes with 2 stages. First, the training of neuralnetwork and the second is testing of neural network. Thetraining stage contains set of known data. In the training stage,the weight of the neuron was determined based on known inputand output. After training, the testing stage was used to were fora given input and weight, the output was determined.Simulations were made using the installed neural network systemof Matlab. Also, its theoretical robustness was calculated byMatlab. Based on the neural network developed, it is 98.52%robust.

Keywords— Matlab, Artificial Intelligence, Pipeline, Naturalgas, Pipeline management, Binary matrix

I. INTRODUCTION

The world is fast changing and is driven by emergingtechnologies that aid us in order to make our lives easier.Along with advancement in the field of science, engineeringand technology is the rise in the global consumption ofenergy[12].Especially in the need for fuel source such asnatural gas. This energy needs to be efficiently transferred andleaks in pipe networks represent an important problem costingmany millions of dollars annually. The difficulty in leaklocation is compounded by their hidden nature . The benefit ofleak detection and rehabilitation is largely determined by theefficacy of leak detection and location techniques[8].

The prime objective of this study is to apply neural networkin leak detection system.

Specifically, this study aims to:

1.train the neural network using set of data and linearize theresult,

2. test and evaluate the performance and robustness of theneural network system, and;

3. Compare the robustness of neural network to othertechniques.

The system can help in the automation of the naturalpipeline[2]. It will also cost time and money for the companythat will use the micro controller because it sets to satisfyconsumer demand without sacrificing quality of naturalgas[8]. An expert system such as neural network can be aneffective tool to each the tremendous mismanaged of naturalgas pipelines can occur in the past which killed many peopleand employees at the same time losing a huge chuck of moneyof those companies involved[35]. A. Natural Gas

Natural gas is mainly composed of methane. After releaseto the atmosphere it is removed over about 10 years bygradual oxidation to carbon dioxide and water by hydroxylradicals (·OH) formed in the troposphere or stratosphere,giving the overall chemical reaction:

CH4 + 2O2→ CO2 + 2H2O [42, 43].

While the lifetime of atmospheric methane is relatively shortwhen compared to carbon dioxide, [44] it is more efficient attrapping heat in the atmosphere, so that a given quantity ofmethane has 62 times the global-warming potential of carbondioxide over a 20-year period, 20 times over a 100-year periodand 8 times over a 500-year period. Natural gas is thus a morepotent greenhouse gas than carbon dioxide due to the greaterglobal-warming potential of methane [46, 47]. Currentestimates by the EPA place global emissions of methane at 85

billion cubic metres (3.0×1012

cu. ft) annually, [45] or 3.2 percent of global production [47]. Direct emissions of methanerepresented 14.3 per cent of all global anthropogenicgreenhouse gas emissions in 2004 [48].

The extraction, storage, transportation and distribution ofnatural gas is known to leak into the atmosphere, particularlyduring the extraction process. A study in 2011 demonstratedthat the leak rate of methane was high enough to jeopardize itsglobal warming advantage over coal. This study was criticizedlater for its high assumption of methane leakage values [49].These values were later shown to be close to the findings ofthe Scientists at the National Oceanic and AtmosphericAdministration [50]. Natural gas extraction also releases an

Page 2: Artificial intelligent

isotope of Radon, ranging from 5 to 200,000 Becquerels percubic meter [51].

B. Pipeline Management and Leak detection

Pipeline management is very important because if thepipeline was mismanage, there will be explosions. Some ofnotables explosions and damages of life and assets includesthe Oklahoma Explosion last Oct. 23,2013[23], Explosion inBelgium[24], Explosion in Kazakhstan[34] and many morepipeline explosions accident[35].

Pipeline management and leak detection is new today.Traditional or modern technique can be used. For Traditionaltechnique, the use of pipeline management makes the systemsimpler [ 4, 5, 19, 28, 31, 33]. Also, other traditional methodwere employed like real time hydraulic servo systems [10] tocontrol fluid flow and other non-linear approach [17,32].Therewere also other optimization studies for water hydro processes[14] and chemical processes optimization when a fluid orcertain chemical pass through the pipeline[15]. In this studystudy, natural gas was used. Aside from traditional technique, modern techniques can beemployed such as artificially intelligent system and advancecomputers system [9, 25]. There are studies of artificiallyintelligent system using fuzzy logic, genetic algorithm andneural networks . Fuzzy-based system can be used to enhanceits efficiency and operational control [2]. There are alsostudies that a hybrid of fuzzy logic and genetic algorithm tomanage natural gas pipeline and is called a fuzzy geneticalgorithm approach [26]. Genetic algorithms were also appliedto optimize pipeline and simulation of leak and fluid flow[13,20]. In this paper, the neural network [6] technique wasused.

In management of pipeline, computer simulations can beused[11]. Related studies include a computer simulation ofmicro-hydro system [12] but in this study, a computersimulation of pipeline management is made by incorporatingthe theory of neural network using MatLab Neural networkToolbox. Aside from optimizing pipelines, there are constraints thatwere determined in this pipeline systems [16].There are alsostandard methods and design procedures that are already inplace for the pipeline system especially natural gas pipelinesystems [27].Aside from that, pipeline management can beapplied to robotics [30].

C. Artificial intelligence and Neural networkThere are a lot of study of artificial intelligence[3,6,10,18,22,29]. Also artificial intelligence can be in a formof neural network. Neural networks operating on quasi-staticpressure and flow readings have been used for leak detectionin pipe systems. Caputo and Pelagagge describe an approachto detecting spills and leakages from pipeline networks usinga multilayer perceptron back-propagation artificial neuralnetwork (ANN) [37]. The system analyzes data from pressureand flow rate information in order to determine the locationand size of leaks in the pipe network. A similar approachutilizing only pressure readings is described by Shinozuka et

al. [38]. Another application of ANNs operating on steadystate process parameters for leak detection in pipe systemswas described by Belsito et al. [539]. Similarly, neurofuzzytechniques have also been applied to the problem by Feng andZhang [40], as well as Izquierdo et al [41].

Figure 1. Block Diagram of the ANN

Figure 1 shows the block diagram of our artificial neuralnetwork system. There will be 3 inputs. These inputs are waterof water,bubbles formation and pipe present . There will be 10hidden neurons and 1 output variable.

In table 1, it is a detailed table of the number of units ininput layer,number of units in hidden layer, number of units inoutput layer,training percentage,validation percentage andtesting percentage.

Table 1. Sizes and parameters of Neural Network

Number of units in input layer 3

Number of units in hidden layer 10

Number of units in output layer 2

Training percentage 35.00%

Validation percentage 30.00%

Testing percentage 35.00%

Page 3: Artificial intelligent

II. METHODOLOGY

The Simulation of the Neural network will be on MatLab.Please Refer to the Figure 2.

Figure 2. Schematic Diagram of the Methods

Figure 2 shows the schematic diagram in detecting leak inpipeline. It started with gathering of data or picture. Thebinary information of the data was then extracted. The binarydata was inputted in the Matlab neural network toolbox. Inopening the Matlab neutral network toolbox, the nntool wasused. After opening, the network was trained. Matlab willcreate the neural network, after training, it is then tested usinggroup of data. The robustness of the system was alsodetermined.

Gathering of Data

There will be 100 sample data used. These data include 100data for clean water pipe leakage,100 data for polluted waterpipe leakage and 100 data for mixed water. Mixed water wascomposed of 50 pollutted water and 50 clean water.

Extract binary matrixThe picture was inputted in a binary matrix analyzer. Theanalyzer has an output of 2x3 matrix compose of 0 and 1. Forthis study, the pipe leakage was detected using the concept of0 and 1. The concept of data analyzer was based on colorrecognition pattern. It first started with the segmentation of thepicture and assigned matrix code a, b, c, d and e. Each numberis inputted in the matrix.

Each parameter such as quality of water, bubbles formationand pipeline present has a binary matrix analyzer and it wassummarized in a 1x3 matrix form.Input binary Matrix to Matlab.The binary matrix was inputted in Matlab and also the targetvalue. This is needed for creation and training of network. TheMatlab neural network interface is a two layer feed forwardnetwork with sigmoid hidden neurons. This will linearize thedata inputs.

Add/edit input data

Figure 3. Input Data to present the network

Figure 3 shows the Matlab user interface to inputdata in the network. In adding data, the data was first put intoa matrix form. In this case 3 input samples was used with 3outputs. Matrix A will be the input data and matrix B will bethe target data. This data was used to train and create thenetwork. For the structure of input data and output data.

and

Where :a is the quality of waterb is the bubbles formationc is the pipe presentd leak detectione is pipe detection

Training the network

After data was inputted, the network was trained.

Figure 4. Interface of Validation and Test Data

Gathering of Data

Extract picture binary matrix

Training Network

Input binary matrix to Matlab

Add edit input data

Testing Network

Robustness Determination

e

dB cbaA

f

c

e

b

d

aA

Page 4: Artificial intelligent

In figure 4, the GUI of validation and test data was shown.There were 200 samples. The training was 35%, validation is30% and testing 35%.This translate to 70 samples in training,60 samples in validation and 70 samples in testing.

Testing the network

After the training,the neural network created was tested usingdifferent set of data. Random testing amounts is shown toreally identify the effectiveness of the network.

Robustness determination

A graph of the robustness of the system was created. Thisincludes, performance,training state, error histogram,regression and fit.

III. RESULTS AND DISCUSSIONS

Robustness determination

1. Performance

Figure 5. Performance of the Neural network

Figure 5 shows the performance of neural network. As canbe observed, as the number of iterations increases, thenetwork self learns by minimizing the errors. At the start ofthe iterations, the error was very small and as the trainingcontinues, the network self learns and was able to get the bestiteration at 1.The epoch 1 is the where the network learnsbest.For the training, the error was constant after epoch 1 andfor validation and testing error, the error slightly increase andconstant in epoch 2 and 3.

2.Training State

Figure 6. Training State of the Neural network

Figure 6 shows the training state of neural network. As canbe observed, 3 iterations was done and the network selflearning stops. S can be observed, the gradient and mudecreases. Also the validation fail increases to 2 after 3 epoch.

3. Error Histogram

Figure 7. Error histogram of the Neural network

Figure 7 shows the error histogram of neural network. Ascan be observed, as the number of iterations increases, thenetwork self learns. There were 400 samples feed into thenetwork. Out of the 400, 398 shows minimum error of-0.00905 while 1 has an error of 0.4575 and 1 has an error of0.9748.

Page 5: Artificial intelligent

4. Regression

Figure 8. Regression of the Neural network

Figure 8 shows the regression of neural network. The datainputs were highly linearize to almost 1. The result oflinearizaton of the training,validation and testing data wasalmost 1 which is highly linearize. The Training has 98.555%accuracy, Validation has 99.959 accuracy and target has97.253% accuracy. The overall performance of the networkcreated is 98.516% rebust.

IV. CONCLUSION AND RECOMMENDATION

The neural network created was highly rebust with 98.516%accuracy. The researcher was able to meet all its objectives.The technique used in this research was using binary matrixanalyzer of input image in an under water pipeline waspossible. It is recommended that the study be extended intodetecmination of organic pollutant in air such as CO,CO2gases.

II. ACKNOWLEDMENT

I like to ask thank almighty God who gave me strength andpower to finish this paper. I also like to thank my parents, myprofessor Dr. Elmer Dadios, my friends and my DOST ERDTfamily. For those that are not mention, I like to indirectly thank youfor the help and support.

III. REFERENCES [1] Asai, K.;Tanaka,;H. & Uejima,S. , “Linear Regression Analysis with

Fuzzy Model” IEEE Trans. on Systems, Man, and Cybemetics, vol.12, pp. 904-907,1982.

[2] Babu,B.V. & Onwubolu, G.C. , “New Optimization Techniques inEngineering”. Springer-Verlag, Heidelberg, Germany, 2003 (In Print).

[3] E.P. Dadios, D. 1. Williams, "Non conventional control of flexiblepole-cart balancing problem", Loughrough University of Technology ,United Kingdom, February 1996.

[4] Bickel, T.C., Edgar,T.F. , and Himmelblau, D.M. , “ Optimal Designof Gas Transmission Network” , Society of Petroleum EngineeringJournal,30, 96, 1978.

[5] B.P. Review, “BP Statistical Review,” [Online]. Available:http://www.bp.com/content/dam/bp/pdf/StatisticalReview2012/statistical_review_of_world_energy_2012.pdf.

[6] E.P. Dadios, R.S. Caling Jr.,“A simulation of intelligent microhydrowith fuzzy logic controller using visual studio ”, 6th InternationalConference Humanoid, Nanotechnology, Information TechnologyCommunication and Control, Environment and Management(HNICEM) ,2013. IEEE International Conference, Nov. 2013.

[7] Chamani, Pourshahabi, Sheikholeslam, “Fuzzy genetic algorithmapproach for optimization of surge tanks”,Volume 20, Issue 2, April2013, Pages 278- 285.

[8] Mashford,J.; De Silva,D.; Marney, D. & Burn, S.,“An approach to leakdetection in pipeline networks using analysis of monitored pressurevalues by support vector machine”, 3h International Conference onnetwork and systems ,2009 IEEE International Conference, Nov. 2009.

[9] Cheesman, A.P., “ How to Optimize Gas Pipeline Design byComputer” . Oil and Gas Journal, 69 (51), December 20, 64, 1971.

[10] T. Fukuda, "Flexibility control of elastic robotic arm", Journal ofRobotic Systems, Vol. 2, no. I, pp. 73-88, 1985.

[11] Cleveland,T. & Millinusic, M., “Pipeline Optimization By ComputerSimulation”,ASME International, 335 East 47th street, NewYork,NY10017, Oct,2000.

[12] Dadios,E.P.; Caling,R.S.,Jr.,“A simulation of intelligent microhydrowith fuzzy logic controller using visual studio ”, 6 th InternationalConference Humanoid, Nanotechnology, Information TechnologyCommunication and Control, Environment and Management(HNICEM) ,2013. IEEE International Conference, Nov. 2013.

[13] Dandy, G.C.; Murphy, L.J. & Simpson,A.R., “An improved geneticalgorithm for pipeline network optimization”, Feb 1996.

[14] Davis, S.,”Microhydro Clean Power from Water.” New SocietyPublishers. 2003.

[15] Edgar, T.F. & Himmelblau, D.M. “Optimization of ChemicalProcesses”, McGraw Hill Book Company, New York, 1988. K.Price, and R. Storn, Home Page of Differential Evolution as on June25, 2003. URL: http://www.ICSI.Berkeley.edu/~storn/code.html.

[16] Flanigan,O., “ Constrained Derivatives in Natural Gas Pipeline SystemOptimization” , Journal of Petroleum Technology, May, 549, 1972.

[17] Floudas, C.A., “Nonlinear and mixed-integer optimization. OxfordUniversity Press”, New York, 1995.

[18] F. Cellier & E. Kofman (2006), Continuous System Simulation,Springer Verlag, ISBN 0-387-26102-8.

[19] Graham,,G.E.; Maxwell; D.A. and Vallone,A, “ How to OptimizeGas Pipeline Networks” , Pipeline Industry, June, 41-43, 1971.

[20] Golderg, D.E. & Kuo, C.H., “Genetic algorithms in pipelineoptimization”, J.Comput.Civ. Eng., 1(2), 128-141,1987.

[21] Han,Y. and Lee,B. “Fuzzy Power Control Algorithm for aPressurized Water Reactor” Nuclear Technology, vol. 106, pp. 242-253,1994.

[22] G. Dahlquist (1963), "A special stability problem for linear multistepmethods", BIT 3: 27–43, doi:10.1007/BF01963532, ISSN 0006-3835.

[23] Huffingtonpost, Homepage of Oklahoma Explosion as on Oct.25,2013. URL: http://www.huffingtonpost.com/2013/10/09/oklahoma-pipeline-explosion_n_4068377.html.

[24] Iab, Homepage of Belgium Explosion as on Oct. 25,2013.http://www.iab-atex.nl/publicaties/database/Ghislenghien%20Dossier.pdf.

[25] Larson,R.E. & Wong,P.J., “ Optimization of Natural Gas System viaDynamic Programming”, Industrial and Engineering Chemistry, AC12(5), 475-481,1968.

[26] Li,F.; Liu ,L.;Jin,C. “Study on fuzzy optimization methods based onquasi-linear fuzzy number and genetic algorithm Computers &

Page 6: Artificial intelligent

Mathematics with Applications”, Volume 57, Issue 1, January 2009,Pages 67–78.

[27] Mah, R.S.H. & Schacham,M. , “ Pipeline Network Design andSynthesis” , Advances in Chemical Engineering, 10, 1978.

[28] Martch, H.B. & McCall,N.J., “ Optimization of the Design andOperation of Natural Gas Pipeline Systems” , Paper No. SPE 4006,Society of Petroleum Engineers of AIME, 1972.

[29] C. H. Dagli. "Artificial neural networks for intelligent manufacturing", Chapman & Hall, 1994.

[30] Niku, S. B.“ Introduction to Robotics”. John Wiley & Sons, Inc, 2011.[31] Olorunniwo,F.O., “ A Methodology for Optimal Design and Capacity

Expansion planning of Natural Gas Transmission Networks”, Ph.DDissertation, The University of Texas Austin, May, 1981.

[32] Salcedo,R.L. , “Solving Nonconvex Nonlinear Programming Problemswith Adaptive Random Search”. Industrial & Engineering ChemistryResearch,31, 262, 1992.

[33] Singh & Nain , “Optimization of Natural Gas Pipeline Design and ItsTotal Cost Using GA”, 2012.

[34] UPI,Homepage of Top News as on Oct. 25,2013. URL:http://www.upi.com/Top_News/Special/2013/10/24/Kazakhstans-giant-Kashagan-oil-field-closed-during-investigation/UPI-37691382618622/#ixzz2iiGlVDGA.

[35] Wikipedia, Homepage of pipeline accidents as on Oct. 25,2013. URL:http://en.wikipedia.org/wiki/List_of_pipeline_accidents.

[36] Zadesh, L.,“ Fuzzy sets Information Control”,1965.[37] Caputo, A.C. & Pelagagge, P.M. (2003), “Using neural networks to

monitor piping systems”, Process Safety Progress, Vol. 22, No. 2,2003, pp.119-127.

[38] Shinozuka, J.M., Liang & Feng,M.Q., “Use of supervisory control anddata acquisition for damage location of water delivery systems”,Journal of Engineering Mechanics, 2005, pp. 225-230.

[39] Belsito, S., Lombardi,P., Andreussi,P. & Banerjee,S., “Leak detectionin liquefied gas pipelines by artificial neural networks”, AIChEJournal, Vol. 44, No. 12, 1998, pp. 2675-2688.

[40] Feng,F. & Zhang,H. , “Algorithm of pipeline leak detection based ondiscrete incremental clustering method”, in ICIC 2006, LNAI 4114,Huang, D.-S., Li, K and Irwin, G.W. (eds.), Springer-Verlag, 2006, pp.602-607.

[41] Izquierdo,J. , López, P.A. & Martínez,R.P. , “Fault detection in watersupply systems using hybrid (theory and data-driven) modelling”,Mathematical and Computer Modelling 46, 2007, pp. 341-350.

[42] Stanley Manahan (2010). Environmental Chemistry, 9th edition. CRCpress. ISBN 978-1-4200-5920-5.

[43] "Methane: A Scientific Journey from Obscurity to Climate Super-Stardom". September 2004 National Aeronautics and SpaceAdministration. Goddard Institute for Space Studies. Retrieved 11 June2013.

[44] "Curbing Emissions by Sealing Gas Leaks". NY Times. October 14,2009. Retrieved 11 June 2013.

[45] "Methane emissions". EPA. Retrieved 11 June 2013.[46] Khalil, M. A. K. (1999). "NON-CO2 GREENHOUSE GASES IN THE

ATMOSPHERE". Annual Review of Energy and the Environment 24(1): 645–661. doi:10.1146/annurev.energy.24.1.645. ISSN1056-3466.

[47] "Wolfram Alpha query: "World Natural Gas Production"".Wolframalpha.com. Retrieved 2011-02-06.

[48] "US EPA: Climate Economics". Epa.gov. 2006-06-28. Retrieved 2011-02-06.

[49] "Response to Howarth et al’s Reply (February 29, 2012)". Cornell.Retrieved 11 June 2013.

[50] "New EPA Rules Could Prevent 'Fracking' Backlash". Business Week .April 18, 2012. Retrieved 11 June 2013.

[51] "'Naturally Occurring Radioactive Materials'". 'World NuclearAssociation'. Retrieved 2012-01-31.