- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Annual Issues ·
- Article Processing Charges ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Recently Accepted Articles ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents
Abstract and Applied Analysis
Volume 2013 (2013), Article ID 923036, 13 pages
Mathematical Model Based on BP Neural Network Algorithm for the Deflection Identification of Storage Tank and Calibration of Tank Capacity Chart
1School of Information Science and Engineering, Lanzhou University, Lanzhou, Gansu 730000, China
2College of Tourism, Hainan University, Haikou, Hainan 570228, China
3Hefei Rongshida Sanyo Electric Co. Ltd., Hefei, Anhui 230061, China
Received 28 February 2013; Accepted 22 April 2013
Academic Editor: Fuding Xie
Copyright © 2013 Caihong Li et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
The tank capacity chart calibration problem of two oil tanks with deflection was studied, one of which is an elliptical cylinder storage tank with two truncated ends and another is a cylinder storage tank with two spherical crowns. Firstly, the function relation between oil reserve and oil height based on the integral method was precisely deduced, when the storage tank has longitudinal inclination but has no deflection. Secondly, the nonlinear optimization model which has both longitudinal inclination parameter and lateral deflection parameter was constructed, using cut-complement method and approximate treatment method. Then the deflection tank capacity chart calibration with a 10 cm oil level height interval was worked out. Lastly, the tank capacity chart was corrected by BP neural network algorithm and got proportional error of theoretical and experimental measurements ranges from 0% to 0.00015%. Experimental results demonstrated that the proposed method has better performance in terms of tank capacity chart calibration accuracy compared with other existing approaches and has a strongly practical significance.
Tanks for storing oil have been in existence for almost one hundred years. Many of the underground storage tanks are horizontal tanks; they are mainly divided into square, cylindrical, and elliptic cylindrical and their roofs can be divided into flat top, conic top, ball lacunarity, and so on [1, 2]. In this paper, cylindical storage tank with two spherical crowns was primarily discussed, which is more practical. The oil reserve measurement of storage tank is a challenging problem, especially after a period of time, due to foundation deformation and other reasons; oil storage tanks tend to be vertical or horizontal displacement, resulting in inaccurate tank volume tables.
Although some install the automated measurement system, the measurement accuracy is not high. And the price of the imported high-precision liquid level instrument is too high. Therefore, on the basis of the situation and the development trend of the current domestic and foreign oil tank liquid level measurement technology, developing a kind of liquid level measurement technology which is suitable for China's national conditions is very important . People usually use flow meter and oil level gauge to measure input or output oil, oil height of the tank, and other data and to get the changeable relation of oil height and oil volume, by means of the precalibration tank capacity table (the corresponding relationship between oil height and oil volume of storage tank), so as to determine whether to add oil or not [4–8].
Since the early 1870s, some scholars have already tried to solve this problem [9, 10]. In particular after 2010s, many researchers have made much study as to how to improve the accuracy of calibration of tank capacity chart and proposed many improved methods. Most of them adopted pure integral and infinitesimal method to handle tank issues [11–13] while some of them used method of the minimum squares [14, 15]. However, for the methods of error correction, few of the papers use methods to correct the result of the calibration of tank capacity chart . And few papers have been presented on handling tank issues by BP neural network . Nevertheless, many issues and problems about calibration have been addressed and resolved and got a good result when using BP neural network [18–20].
The error between theoretical oil reserve and actual oil reserve results from two main reasons. One of the reasons is the irregular geometry of the actual storage tank and another is the volatilization of the oil, the thickness, and the capillary absorption phenomenon of storage tank, which leads to a certain deviation between the theoretical oil reserve and actual ones. As the rule of this kind deviation is relatively fuzzy, in order to further reduce error and improve the accuracy of the calibration, the BP neural network, a method with self-learning ability, is adopted in this paper to revise the calibration value .
Artificial neural networks (ANNS) are powerful tools for prediction of nonlinearities. These mathematical models comprise individual processing units called neurons that resemble neural activity . After the first simple neural network was developed by McCulloch and Pitts in 1943 , many types of ANN have been proposed. BP neural network simulates the human nervous system structure and the neural network model with multilayer perceptron is the most mature, widely used model among ANN.
Currently the error back-propagation (BP) neural network is the most widely used, which consists of three layers, namely, input, hidden, and output layers. One artificial neuron is simple, but a lot of artificial neurons can compose complicated neural network which can achieve highly nonlinear mapping relation between the input and output through the interaction of artificial neurons and realize the information processing and storage . Due to its highly parallel structure, high-speed self-leaning ability, self-adaptable processing ability, arbitrary function mapping ability, powerful pattern classification, and pattern recognition capabilities for modeling complex nonlinear systems , BP neural network algorithm studies show promising results in calibration and is used in this study.
The paper is mainly organized into four sections. Section 2 describes the model establishment and solution of small elliptic storage tank with deflection identification and calibration of tank capacity chart. It is divided into three parts as follows: Section 2.1 mathematical models of the relation between oil reserve and oil height of the small nondeflection elliptic storage tank, Section 2.2 model 2 for tank capacity chart calibration problem of small elliptic storage tank at an inclination angle of , and Section 2.3 correction model of calibration based upon BP neural network. Section 3 describes the establishment and solution of the model with deflection identification and calibration of tank capacity chart of actual storage tank. It also includes three parts: Section 3.1 model 3 of actual storage tank with longitudinal inclination and lateral deflection, Section 3.2 the determination of the deflection parameter, and Section 3.3 model solving of actual storage tank and calibration of storage tank chart. Finally, some concluding remarks are drawn in Section 4.
2. Model Establishment and Solution of Small Elliptic Storage Tank with Deflection Identification and Calibration of Tank Capacity Chart
2.1. Mathematical Models of the Relation between Oil Reserve and Oil Height of the Small Nondeflection Elliptic Storage Tank
According to the cross-section diagram of the small elliptical storage tank as shown in Figure 1, we set up a coordinate system as shown in Figure 2. Make the profile nadir of the storage tank for origin, the high for shaft, and the basal level tangent for shaft.
The cross-section oil surface area of the small elliptical tank can be calculated according to the application of definite integration: According to the elliptic equation , substitute into formula (1) and integral, which can obtain the following: where is .
We get theoretical oil reserve of small elliptical storage tank according to cylinder volume formula: where , is the length of the storage tank cylinder, and is oil height of the tank capacity chart.
According to the data provided by the topic A of 2010 National Mathematical Contest in Modeling (Table 1) , we substitute the known data into formula (3) and then compare the theory oil reserve with the actual oil reserve. It is obvious that the proportional error is so large, as high as 3.4% ~ 3.5%, that it is necessary to take an error analysis.
2.1.1. Error Analysis
With the increase of liquid level, the part of the pipe submerged in the oil is increasing, which makes the theoretical data larger than the actual data. According to the actual situation, the capacity of the pipe in the oil and the probe will take a linear change. Fit the two groups of data, namely, the theoretical and actual oil reserve difference values and the height of the liquid. The results are shown in the Figure 3.
It turns out to be that the above two groups of data meet the linear relationship, and the curve fitting goes to from the diagram. It also obtains the capacity of the pipe in the oil and the probe which is named :
2.1.2. Model One (Improved Model 1)
The relationship between the capacity and the height of the oil in the tank without deflection can be acquired through formula (3), (4) where is the length of storage tank cylinder and is oil height of the tank capacity chart.
Substituting the oil height into formula (5) can obtain the improved oil reserve and the error ratio is within 0.47%. It means that the precision has been improved by more than 10 times compared with the original model. The specific testing data are shown in Table 1.
2.2. Model 2 for Tank Capacity Chart Calibration Problem of Small Elliptic Storage Tank at an Inclination Angle of
When the inclination angle equals , take left inclination for example as shown in Figure 4.
Considering the relation of mutative oil reserve and oil height, this problem can be divided into three conditions to discuss as shown in Figure 5.
Make the lower left quarter of the storage tank for origin, the length of storage tank for shaft, and the high for shaft. Then the coordinate system can be built as shown in Figure 6.
There is moderate oil in storage tank; that is, oil level should be between line CD and AB. Now, .
There is much oil in storage tank, that is; oil level should be over line CD. Now, .
For above three situations, we build model 2 according to the relation of oil height and oil reserve. The detailed solving is below.
First of all, establish equation of the liquid level. Obviously, the slope of this line is and where is the length of OC.
The other equation is obtained as follows: So, the relation between oil height and horizontal ordinate is defined as follows: Make differential on both sides of the function at the same time which can obtain the following:
The theoretical oil reserve of storage tank at longitudinal angle of 4.1 degrees can be acquired through the stereoscopic volume formula  with known parallel cross-section area, that is, where , is the parallel cross-section area when inclined angle with deflection of is degrees, is the length of storage tank cylinder, and the value of is .
As was discussed above, the relation model between oil height and oil reserve of storage tank can be obtained, as shown in the following model:
According to the data provided by 2010 National Mathematical Contest in Modeling the title of A  (Table 1), model 2 can be tested by the inclined oil-taking data. What is more, the displayed oil reserve of oil height between 0 and 120 cm accordingly and theoretical oil reserve of inclined deflection can be calculated. The chart can be generated as shown in Figure 7 using the calibrated error value and oil height.
The original tank capacity chart can no longer reflect the real oil capacity when the tank inclines. As shown in Figure 7, when the oil height is more than 90 cm, error should be smaller with the increasing oil height.
2.3. Correction Model of Calibration Based upon BP Neural Network
BP neural network is a nonlinear adaptive dynamic system consisting of many parallel neurons with learning ability, memory ability, calculation ability, and intelligent processing ability . Commonly, a typical BP neural network model is a full-connected neural network including input layer, hidden layer, and output layer [29, 30]. Each layer has multiple neurons, and the nodes between two adjacent layers connect in single direction. It has been proved by Kolmogorov’s theorem, a neural network theory theorem, that the fully studied three-layer BP network can approach any function .
In this study, a three-layer neural network is applied in calibration of storage tank chart modeling. What’s more, the network training is actually an unconstrained nonlinear minimization problem, and the nonlinear model is used in this study. Therefore, it can achieve better effect to process residual correction of this model by BP neural network.
The input node, hidden node, and output node are hypothesized as , and , respectively. The connection weight between the input node and the hidden node is , while the connection weight between the hidden node and the output node is . Giving the maximum iterating times and error precision, Figure 8 is the topological structure of the BP neural network model.
Various steps of the BP training procedure are described in Figure 9.
Firstly, Initialize by giving random number between −1 and 1 to the connection weights , and threshold values , , choosing a mode and giving network to , .
Secondly, the output of the hidden note is .
The output of the output note is .
Thirdly, calculate new connection weights and threshold values. The correction value of connection between hidden and output node is defined as is .
The correction of the threshold values is .
The correction value of connection between input and hidden node is defined as: .
The correction of the threshold values: .
Where and reflect learning efficiency, , .
Lastly, select the next input mode and return to step . Keep training until the error precision of the network settings meets the requirements. Then finish the training. Thus the BP neural network model is established.
Calibration correction: take the oil-out level height data of the small longitudinal tilting elliptical tank as input data while take the -value between the theoretical oil reserve and the actual measurement of oil as output data. Construct a BP neural network model with single input, single output and hidden layer with three-node by matlab 2010.
As mentioned above, it turns out to be that the accuracy of the results of the correction BP neural network model is very high. Part of the results can be seen in Table 2.
As shown in Table 2, the proportional error of theoretical value and experimental measurement value with BP neural network correction ranges from 0.00% to 0.38%. Error reduces a lot more than before. Using the correction model, the calibration of tank capacity chart value can be calculated with the internal of oil height for 1 cm after the deflection of storage tank as shown in Table 3.
3. Establishment and Solution of the Model with Deflection Identification and Calibration of Tank Capacity Chart of Actual Storage Tank
3.1. Model 3 of Actual Storage Tank with Longitudinal Inclination and Lateral Deflection
3.1.1. Model Establishment of Actual Storage Tank with Longitudinal Inclination
The graph in Figure 12 clearly shows that
In the case of no deflection, the formula in references  can be cited; namely, where , where reflects sagittal of the storage tank.
Calculate the oil capacity in the tank with longitudinal angel of by integration, as shown in Figure 12. As both sides of the storage tank are irregular solid, it is difficult to calculate accurately. But, the angel is very tiny according to the fact that both longitudinal angle and lateral deflection angle are small angles, so cut-complement method can be adopted to make an approximate disposal. The extra volume of left approximately equals the insufficient volume of the right; that is:
Hence, the relation between oil reserve of storage tank and oil height can be defined as follows: The calculations of are as shown in Figure 13.
The boundary of the cylinder’s longisection is rectangular. As shown in Figure 13, firstly, draw a line perpendicular to the base through the base’s midpoint and the line intersects with the metal line. Secondly, draw a parallel line to the base through the above point of intersection. Then the parallel line, metal line, and two boundaries form two triangles named and , both of which are right-angled triangles with equal vertical angles and horizontal right-angle side. So the two triangles are congruent. Apparently, their areas are also equal. According to the ZuYuan principle, their corresponding volumes in the cylinder are also equal; that is, . Therefore, it can be acquired through the cut-complement method as follows: where is .
The spherical crown’s metal line of both ends parallels the undersurface of the cylindrical, after the approximate disposal, which is equivalent to the case of no deflection. From formula (16), the calculation of can be defined as follows: Substitute formula (14) into formula (22); thus where . where is . where and .
3.1.2. Establishment of the Model with Deflection Identification and Calibration of Tank Capacity Chart of Actual Storage Tank
As shown in Figure 14 Hence, the is defined by
Substitute formula (27) into formula (25). Then, the theoretical model about , , of oil reserve with longitudinal inclination and lateral deflection of storage tank is obtained below: where , is the length of storage tank cylinder, is , and is the oil height of the calibration of storage tank chart.
3.2. The Determination of the Deflection Parameter
As was discussed in Section 3.1.2 and Figure 7 of model 2, the error nearby is micro, even without error. For this reason, equations can be established by selecting three contiguous groups of data near to ascertain the deflection parameters, and . The equations can be defined by Substitute the formula (28) into formula (29). Then, solve them by the software of Mathematica  and Matlab  using quasi-Newton iterative algorithm and the result can be got as follows: The angles are very tiny which is realistic.
3.3. Model Solving of Actual Storage Tank and Calibration of Storage Tank Chart
According to the data provided by 2010 National Mathematical Contest in Modeling the title of A  (Table 2), we substitute , and collected oil height of actual storage tank into model 3. The calibration of tank capacity chart value can be calculated with the internal of oil height for 10 cm after the deflection of storage tank, as shown in Table 4.
Error can be controlled under 2%, when testing model 3 by actual collected data of storage tank. But it is still large for the volume of this tank. Similarly, in order to further reduce error and improve the accuracy of the calibration, model 3 also uses the BP neural network which is a method with self-learning ability to revise the calibration value.
By taking the oil-out level height data of the actual storage tank as input data and the -value between the theoretical oil reserve and the actual measurement of oil as output data, the whole network reflects the function mapping relation between input node and output node.
Then, train the network, so it can have a certain ability of association and prediction for this kind of problem.
Calibration correction: randomly take 150 groups of the oil-out level height data of the actual storage tank as input data; corresponding, take same groups of the -value between the theoretical oil reserve and the actual measurement of oil as output data, while 50 groups of data are taken as testing data. A BP neural network model can be constructed and trained with single input and single output and three-node hidden layer by matlab 2010. The training result is as shown in Figure 15.
As discussed above, it turns out to be that the accuracy of the results of the correction BP neural network model is very high. Part of the results can be seen in Table 5.
As shown in Table 5, the proportional error of theoretical value and experimental measurement value with BP neural network correction ranges from 0.00000% to 0.00015%. Error is micro. Using the correction model, the calibration of tank capacity chart value can be calculated with the internal of oil height for 10 cm after the deflection of storage tank as shown in Table 6.
In this paper, using geometrical relationship of the storage tank, the integral models are established from simple to complicated, which makes the models simple and easy to understand. Taking into account many possible oil level conditions and giving the common theoretical relation between the oil reserve and oil height with the known deflection parameters, it has strong universality and is easy to popularize. Cut-complement algorithm is designed to construct this model, according to the special inclined angle. And the nonlinear equations are effectively solved by quasi-Newton iterative method. A novel method is applied to calibrate the storage tank chart which combines the advantages of the polynomial fitting method and BP neural network. Models are tested by the known data and the improved models are got by polynomial fitting method. Based upon fuzzification of system measurement error, BP neural network is proposed to correct results. Quasi-Newton iterative algorithm is used to calculate deflection parameters , by Mathematica, Matlab software. However, when oil in the storage tank is approximately full or there is very little oil in it, it is unable to get the accurate calibration method, so more research efforts should be devoted to validating these issues. Developing better models of solving these problems is the next step we will undertake.
This work was supported by the Natural Science Foundation of P. R. of China (90912003, 61073193), the Key Science and Technology Foundation of Gansu Province (1102FKDA010), Natural Science Foundation of Gansu Province (1107RJZA188), and the Fundamental Research Funds for the Central Universities (lzujbky-2012-47, lzujbky-2012-48).
- J. Sun, “The discussion of horizontal tank volume about the problematic point of the verification and calculation,” Petroleum Products Application Research, vol. 18, no. 5, pp. 20–24, 2000.
- Z. Li, “The calculation of horizontal storage tank volume with elliptic cylinder type,” Mathematics in Practice and Theory, vol. 2, pp. 17–26, 1997.
- Y. Ji, S. Song, and Y. Tu, “The current situation and development tendency of liquid level measurement technology of storage tank,” Petroleum Engineering Construction, vol. 32, no. 4, pp. 1–4, 2006.
- C. Li, T. Liang, W. zhou, and J. Lu, “The function relation of remain liquid volume and oil height of storage tank,” Petro-Chemical Equipment, no. 6, pp. 25–27, 2001.
- C. Li, T. Liang, and M. Jin, “The relation of liquid volume and oil height of storage tank with deformation section,” Petro-Chemical Equipment, no. 1, pp. 21–22, 2003.
- G. Si, “Calculate the liquid volume by liquid height of tank with deformation section,” Process Equipment & Piping, no. 2, pp. 63–64, 2000.
- B. Gao and X. Su, “The volume calculation of different liquid height of horizontal tank with various end enclosure,” Petro-Chemical Equipment, no. 4, pp. 1–7, 1999.
- C. Fu, “The volume calculation of inclined storage tank,” Journal of Heilongjiang Bayi Agricultural University, no. 2, pp. 43–52, 1981.
- S. Sivaraman and W. A. Thorpe, “Measurement of tank-bottom deformation reduces volume errors,” Oil and Gas Journal, vol. 84, no. 44, pp. 69–71, 1986.
- F. Kelly, “Shore tank measurement,” Quarterly Journal of Technical Papers, vol. 1, pp. 59–62, 1987.
- Q. Ai, J. Huang, X. zhang, and M. Zhang, “Model of the identification of oil tank’s position and the calibration of tank capacity table,” Light Industry Design, vol. 4, 2011.
- S. Si, F. Hua, X. Tian, and J. Wu, “The study of the relation of any height and volume in Erect Spherical cap body,” Automation & Instrumentation, vol. 154, pp. 15–16, 2011.
- Z. Li, “Study on tank capacity of tilted oil tank in elliptic cross-section,” Engineering & Test, vol. 51, no. 2, pp. 38–40, 2011.
- Y. Chang, D. Zhou, N. Ma, and Y. Lei, “The problem of deflection identification of horizontal storage tank and calibration of tank capacity chart,” Oil & Gas Storage and Transportation, vol. 31, no. 2, pp. 109–113, 2012.
- J. Dou, Y. Mei, Z. Chen, and L. Wang, “Model of the identification of oil tank’s position and the calibration of tank capacity table,” Pure and Applied Mathematics, vol. 27, no. 6, pp. 829–840, 2011.
- Y. Ai, “The study of capacity table calibration of storage tank with deflection,” Business Affection, vol. 41, pp. 170–170, 2012.
- S. Ou, J. Wang, and S. Han, “Model of the identification of oil tank’s position and the calibration of tank capacity table,” China Petroleum and Chemical Standard and Quality, vol. 31, no. 4, pp. 25–26, 2011.
- Z. Wang, Y. Li, and R. F. Shen, “Correction of soil parameters in calculation of embankment settlement using a BP network back-analysis model,” Engineering Geology, vol. 91, pp. 168–177, 2007.
- S. Tian, Y. Zhao, H. Wei, and Z. Wang, “Nonlinear correction of sensors based on neural network model,” Optics and Precision Engineering, vol. 14, no. 5, pp. 896–902, 2006.
- W. He, J. H. Lan, Y. X. Yin, and Z. H. Zhang, “The neural network method for non-linear correction of the thermal resistance transducer,” Journal of Physics, vol. 48, no. 1, pp. 207–211, 2006.
- W. Liu, MATLAB Program Design and Application, China Higher Education Press, Beijing, China, 2002.
- B. H. M. Sadeghi, “BP-neural network predictor model for plastic injection molding process,” Journal of Materials Processing Technology, vol. 103, no. 3, pp. 411–416, 2000.
- W. S. McCulloch and W. Pitts, “A logical calculus of the ideas immanent in nervous activity,” The Bulletin of Mathematical Biophysics, vol. 5, no. 4, pp. 115–133, 1943.
- L. Sun and Y. Li, “Review of on-line defects detection technique for above ground storage tank floor monitoring,” in Proceedings of the 8th World Congress on Intelligent Control and Automation (WCICA '10), vol. 8, pp. 4178–4181, July 2010.
- T. Hu, P. Yuan, and J. Din, “Applications of artificial neural network to hydrology and water resources,” Advances in Water Science, vol. 11, pp. 76–81, 1995.
- China Society for Industrial and Applied Mathematics, 2010 National Mathematical Contest in Modeling the Title of a [DB/OL], China Society for Industrial and Applied Mathematics, Beijing, China, 2010.
- Department of pplied Mathematics of Tongji university, Advanced Mathematics (New Paris Interiors), Higher Education Press, Beijing, China, 2006.
- D. Zhang, MATLAB Neural Network Application Design, Mechanical Industry Press, Beijing, China, 2009.
- ASCE Task Committee on Application of Artificial Neural Networks in Hydrology, “Artificial neural networks in hydrology. I: preliminary concepts,” Journal of Hydrologic Engineering, vol. 5, no. 2, pp. 115–123, 2000.
- ASCE Task Committee on Application of Artificial Neural Networks in Hydrology, “Artificial neural networks in hydrology. II: hydrologic applications,” Journal of Hydrologic Engineering, vol. 5, no. 2, pp. 124–137, 2000.
- G. Cybenko, “Approximation by superpositions of a sigmoidal function,” Mathematics of Control, Signals, and Systems, vol. 2, no. 4, pp. 303–314, 1989.
- R. Hecht-Nielsen, Neurocomputing, Addison-Wesley, Menlo Park, Calif, USA, 1990.
- K. Hornik, M. Stinchcombe, and H. White, “Multilayer feedforward networks are universal approximators,” Neural Networks, vol. 2, no. 5, pp. 359–366, 1989.
- J. Guan and H. Zhao, “Practical methods of oil volume calibration of horizontal storage tank,” Metrology & Measurement Technique, vol. 31, no. 3, pp. 21–36, 2004.
- M. Yang and J. Lin, Mathematica Base and Mathematical Software, Dalian University of Technology Press, Dalian, China, 2007.
- Science and Technology Products Research Center of Feisi, Neural Network Theory and the Implementation of Matlab7, pp. 99–108, Electronic Industry Press, Beijing, China, 2005.