A method and system for analyzing storage tank detection data
By building a multi-classifier detection model and a real-time monitoring system, the limitations and accuracy of the tank detection method are solved, and high-precision, automated monitoring and warning strategies for the tank status are realized, reducing detection errors and costs.
Patent Information
- Application Number
- CN202410502433.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-04-25
AI Technical Summary
The existing tank detection methods are limited to the detection of specified welds and lack real-time monitoring capabilities, resulting in high leakage risk, high cost, low accuracy, and large data errors, which affect the accuracy of tank detection results.
Design a tank detection data analysis method and system, and build a multi-classifier detection model by obtaining tank environmental parameters and information, using SVM model and random forest model, and deleting some variables in combination with variable importance, real-time state of the tank Monitoring and warning strategy generation, using WebGL technology for 3D visual display.
It improves the accuracy of tank detection, reduces the problem of data category imbalance, realizes automated control of tank status and continuously evolved detection strategies, and enhances the reliability and accuracy of detection results.
Smart Images

Figure CN118464103B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of storage tank detection, and in particular relates to a storage tank detection data analysis method and system. Background Art
[0002] Storage tanks are divided into three types according to materials: steel, reinforced concrete and masonry. Steel oil tanks are vertical (including dome-shaped and floating-top cylindrical), spherical shell (spherical) and horizontal (cylindrical). Vertical dome oil tanks are composed of a spherical crown tank top and a vertical cylindrical tank wall. They are mainly used to store non-volatile oil products, such as diesel and similar oil products. However, storage tanks are very harmful. If leakage or explosion occurs during use, it will cause great harm to our personal property safety and the natural environment. Therefore, real-time detection of storage tanks is of great significance.
[0003] In the existing technology for detecting storage tanks, only the defects of designated welds can be detected. The detection range is relatively small, which has certain limitations. The corrosion sensitivity is low, the data results of relatively small corrosion have large errors, and the reliability of the data results is insufficient. The positioning accuracy is greatly affected by factors such as the medium, and the analysis is difficult, which affects the accuracy of the storage tank detection results. In addition, since the detection is done manually, the cost is too high, and the data used for manual detection has large errors and low accuracy.
[0004] Currently, there are many types of sensors available for storage tanks on the market, including temperature sensors, pressure sensors, liquid level sensors, concentration sensors, etc. However, there are few designs that use the data obtained by these sensors to analyze the safety status of storage tanks.
[0005] Therefore, it is necessary to design and implement a real-time monitoring method for the status of the storage tank without manual monitoring, which can effectively and accurately avoid the risk of leakage of the storage tank. Summary of the invention
[0006] In order to solve the above technical problems, the present invention proposes a method and system for analyzing tank detection data.
[0007] In a first aspect of the present invention, a method for analyzing storage tank detection data comprises:
[0008] Obtain environmental parameters of the tank and tank information stored in the server;
[0009] Acquire the environmental parameters of the storage tank and the first storage tank defect state and the first warning strategy corresponding to the storage tank information stored in the server;
[0010] A tank detection model is constructed based on the environmental parameters of the tank and the first tank defect state and the first warning strategy corresponding to the tank information stored in the server;
[0011] Receiving the transmitted real-time environmental parameters of the storage tank and the updated storage tank information, the storage tank detection model generates a second storage tank defect state and a second warning strategy according to the real-time environmental parameters of the storage tank and the updated storage tank information;
[0012] The storage tank is analyzed according to the second storage tank defect status and the second warning strategy.
[0013] Furthermore, the environmental parameters of the storage tank include: storage tank temperature, storage tank bottom pressure, storage tank liquid level, and concentration;
[0014] The tank information includes the material and size of the tank.
[0015] Furthermore, the internal space of the storage tank is divided into a plurality of areas, and the variables input for constructing the storage tank detection model include three-dimensional coordinates, environmental parameters of the storage tank, and the storage tank information.
[0016] Furthermore, the storage tank detection model is a multi-classifier, including a classifier based on the Fisher criterion or a SVM model.
[0017] Furthermore, before constructing the SVM model, some variables are removed. The steps are as follows:
[0018] Step S1, dividing the data set composed of the variables into a training set X and a test set T;
[0019] Step S2, using the training set X to establish a random forest model;
[0020] Step S3: Using the importance of variables M i To delete some variables, M i The calculation formula is as follows:
[0021]
[0022] The i is the feature variable; m is the number of variables; err1 is the test set T error; err2 is the test set error after adding noise; n is the number of decision trees;
[0023] Step S4: After deleting some variables, a specific training set ST is obtained.
[0024] Furthermore, the storage tank detection model is constructed according to the SVM model using the specific training set ST.
[0025] Furthermore, the specific function expression of the SVM model is:
[0026] ω T X i +b≥1
[0027] Where ω, b are the normal vector and intercept of the hyperplane, respectively, X i is the variable in the specific training set ST, and i is the number of samples.
[0028] A storage tank detection data analysis system is also provided, the system comprising a data acquisition module, a data storage module, a model building module, a storage tank analysis module, and a visualization module, characterized in that:
[0029] The data acquisition module collects environmental parameters of the storage tank using temperature sensors placed in multiple areas, pressure sensors at the bottom of the storage tank, and liquid level sensors and concentration sensors;
[0030] The data storage module is used to store the environmental parameters and tank information of the tank, the first tank defect state and the first warning strategy corresponding to the environmental parameters and the tank information of the tank, and is also used to store the second tank defect state and the second warning strategy;
[0031] The model building module is used to build a tank detection model according to the environmental parameters of the tank and the first tank defect state and the first warning strategy corresponding to the tank information;
[0032] The tank analysis module is used to receive the transmitted real-time environmental parameters of the tank and the updated tank information, and generate a second tank defect state and a second warning strategy using the tank detection model according to the real-time environmental parameters of the tank and the updated tank information; and is also used to transmit the second tank defect state and the second warning strategy to the data storage module for storage.
[0033] The visualization display module is connected to the storage tank analysis module and is used to realize the 3D visualization display of the defect status of the second storage tank and the second warning strategy through WebGL technology, and to display the personnel that need to be arranged for the defects.
[0034] Furthermore, the storage tank detection model in the model building module is a SVM model.
[0035] Furthermore, before constructing the SVM model, some variables are removed. The steps are as follows:
[0036] Step S1, dividing the data set composed of the variables into a training set X and a test set T;
[0037] Step S2, using the training set X to establish a random forest model;
[0038] Step S3: Using the importance of variables M i To delete some variables, M i The calculation formula is as follows:
[0039]
[0040] The i is the feature variable; m is the number of variables; err1 is the test set T error; err2 is the test set error after adding noise; n is the number of decision trees;
[0041] Step S4: After deleting some variables, a specific training set ST is obtained.
[0042] Beneficial effects of the present invention:
[0043] (1) The tank detection model constructed by the present invention divides the spatial information of the tank and utilizes multiple features such as environmental information and tank information. The tank detection accuracy obtained by the constructed model classification is higher, and the tank warning strategy level is clearer.
[0044] (2) Before constructing the SVM model, the present invention deletes some variables according to the importance M of the variables. The constructed SVM model can reduce the imbalance problem of selected data categories that may exist in the present invention, so as to obtain higher accuracy of tank detection.
[0045] (3) The present invention also utilizes the classified data to train the model again, so as to realize continuous training of the model and achieve a higher level of server automation control of tank detection, so that the model can continuously evolve and obtain more accurate tank defect detection and warning strategies. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a flow chart of a method for analyzing storage tank detection data of the present invention;
[0047] Figure 2 It is a schematic diagram of the structure of an analysis system for storage tank detection data of the present invention;
[0048] Figure 3 It is a cross-sectional view of a horizontal cylindrical storage tank. DETAILED DESCRIPTION
[0049] The invention is further described below in conjunction with the accompanying drawings and specific implementation methods.
[0050] The first embodiment of the present invention:
[0051] In a first aspect of the present invention, a method for analyzing storage tank detection data comprises:
[0052] Obtain environmental parameters of the tank and tank information stored in the server;
[0053] Acquire the environmental parameters of the storage tank and the first storage tank defect state and the first warning strategy corresponding to the storage tank information stored in the server;
[0054] A tank detection model is constructed based on the environmental parameters of the tank and the first tank defect state and the first warning strategy corresponding to the tank information stored in the server;
[0055] Receiving the transmitted real-time environmental parameters of the storage tank and the updated storage tank information, the storage tank detection model generates a second storage tank defect state and a second warning strategy according to the real-time environmental parameters of the storage tank and the updated storage tank information;
[0056] The storage tank is analyzed according to the second storage tank defect status and the second warning strategy.
[0057] Furthermore, the environmental parameters of the storage tank include: storage tank temperature, storage tank bottom pressure, storage tank liquid level, and concentration;
[0058] The tank information includes the material and size of the tank.
[0059] The server can also obtain the size, material, and model of the tank based on the tank information of the tank to be detected. Before storing high-temperature liquids such as oil, the tank has corresponding tank information, such as the size of 5000m3 3 The temperature sensor obtains that the temperature of the oil in the storage tank is 55℃, the bottom pressure is 6666Kpa, the liquid level of the tank is 70%, and the concentration of oil is different, so it is set to P o The material of the storage tank is carbon steel, set to 1, the material of the storage tank can also be alloy steel or stainless steel, etc., set the corresponding parameters according to needs.
[0060] If the corresponding first tank defect state and first warning strategy are (C1, C2), the content of C1 is: the tank has partial defects, and the content of C2 is a high alert state. It can be further subdivided as needed, which is not limited here.
[0061] Then a variable in the training set T(size, material, temperature, pressure, liquid level, concentration) = T(5000, 1, 55, 6666, 70%, P o )The first tank defect state and the first warning strategy corresponding to it are (C1, C2).
[0062] Using multiple sets of variables T i And the corresponding strategies (C1, C2), (C1 2 , C2 2), etc., the tank defect state and warning strategy in the present invention are set by the user himself, not limited to the above two, the SVM model is trained to obtain specific model parameters, when the server receives the transmitted real-time environmental parameters of the tank and the updated tank information, the tank detection model generates a second tank defect state and a second warning strategy according to the real-time environmental parameters of the tank and the updated tank information;
[0063] If the collected data variable is T t (5000, 2, 67, 7566, 50%, P 01 ), the size of the tank does not change, but the material, temperature, tank bottom pressure and liquid level have changed. The light color temperature control model outputs the second tank defect status and the second warning strategy (C1 2 , C2 2 ), at this time, the strategy obtained by the classification judgment of the trained tank detection model is that the tank has no defects and the warning is in a low alert state. The analysis shows that the tank is in a safe state and no further measures are required. Strategy (C1 2 , C2 2 ) and T t (5000, 2, 67, 7566, 50%, P 01 ) can be used as training data to continue model construction and training, thereby improving the model’s tank detection accuracy.
[0064] Furthermore, the internal space of the storage tank is divided into a plurality of areas, and the variables input for constructing the storage tank detection model include three-dimensional coordinates, environmental parameters of the storage tank, and the storage tank information.
[0065] If the storage tank is a horizontal cylinder, the storage tank is divided into 8 areas, and the 8 areas are divided into vertical cutting, specifically from the horizontal and vertical cutting lines of the cylinder plus the cutting in the middle of the cylinder, and are divided into areas Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8. Then the data variable becomes an 8X6 data feature vector. The tank defect state and warning strategy can be determined more accurately, and the corresponding second tank defect state and second warning strategy are (S, C1, C2).
[0066] Furthermore, the tank detection model is a multi-classifier, including a classifier based on the Fisher criterion or a SVM model. The classifier based on the Fisher criterion is a conventional technical means of those skilled in the art and will not be described in detail here.
[0067] In another embodiment of the present invention:
[0068] Before building the SVM model, some variables are removed. The steps are as follows:
[0069] Step S1, dividing the data set composed of the variables into a training set X and a test set T;
[0070] Step S2, using the training set X to establish a random forest model;
[0071] The random forest model is established as follows:
[0072] (1) Each time, n training samples are taken from the training set X with replacement to form a new training set;
[0073] (2) Using the new training set, train M sub-models;
[0074] (3) Using the voting method, the classification category of the sub-model with the most votes is the final category;
[0075] Step S3: Using the importance of variables M i To delete some feature variables, M i The calculation formula is as follows:
[0076]
[0077] The i is a variable; m is the number of variables; err1 is the error of the test set T; err2 is the error of the test set after adding noise; n is the number of decision trees;
[0078] The noise is a randomly generated variable, and the test set error and the test set error after adding noise are calculated based on the error rate between the second tank defect state and the second warning strategy obtained by the test and the actual tank defect state and the warning strategy. It is a conventional error calculation method for those skilled in the art and will not be repeated here.
[0079] Step S4: After deleting some variables, a specific training set ST is obtained.
[0080] Through this method, T i The variables are reduced to T id , where id<i.
[0081] Furthermore, the specific function expression of the SVM model is:
[0082] ω T X i +b≥1
[0083] Where ω, b are the normal vector and intercept of the hyperplane, respectively, X i is the variable in the specific training set ST, and i is the number of samples.
[0084] For multiple defect states and warning strategy combinations, multiple hyperplanes are constructed. If there are three defect states and warning strategies, three hyperplanes are specifically constructed to select the defect states and warning strategies.
[0085] Where ω, b are the defect status and warning strategy (C1, C2) and the defect status and warning strategy (C1 1 , C2 1 ) or defect status and warning strategy (C1 2 , C2 2 ) and defect status and warning strategy (C1 1 , C2 1 ) or defect status and warning strategy (C1, C2) and defect status and warning strategy (C1 2 , C2 2 )’s three hyperplane normal vectors and intercepts, X i To obtain the i characteristic variables in a specific training set ST after deleting some variables, specifically (C1, C2)-(C1 1 , C2 1 ) hyperplane, the normal vector and intercept of the hyperplane function are determined by the input defect state and warning strategy (C1, C2) and (C1 1 , C2 1 ) corresponds to the C in the specific training set ST 01 feature variables are trained, when the collected data feature variables are T t (5000, 2, 67, 7566, 50%, P 01 ) is substituted into the formula, if the result is greater than or equal to 1, the server adopts the detected defect state and warning strategy (C1, C2) to perform the inspection and analysis results of the tank. After the calculation of the three hyperplanes, the defect state and warning strategy with the most votes are (C1, C2). (C1, C2) has the most votes, and the server adopts the defect state and warning strategy (C1, C2) with the most votes as the real-time monitoring result.
[0086] It can also be set to more hyperplanes for classification of multiple categories, and the corresponding category labels are the corresponding "defect status and warning strategy (C1 3 , C2 3 )”, “Defect status and warning strategy (C1 4 , C2 4 )”, etc., there is no restriction here.
[0087] If it is divided into 4 strategies, the votes will be equal. If the votes are equal, the corresponding defect state and warning strategy with the largest sum of the values calculated by the hyperplane function with the same number of votes will be adopted as the real-time monitoring result of the server.
[0088] The voting rules are as follows:
[0089] Similarly, the constructed (C1, C2)-(C1 1 , C2 1 ) hyperplane, (C1, C2)-(C1 2 , C2 2 ) hyperplane, (C1, C2)-(C1 3 , C2 3 ) hyperplane, (C1 1 , C2 1 )-(C1 2 , C2 2 ) hyperplane, (C1 1 , C2 1 )-(C1 3 , C2 3 ) hyperplane, (C1 2 , C2 2 )-(C1 3 , C2 3 ) Hyperplane 6 hyperplanes, if the collected data feature variables are T t The results obtained by inputting into 6 hyperplanes are shown in Table 1 below:
[0090] Table 1 Classification of hyperplane functions
[0091]
[0092] In Table 1 (C1 1 , C2 1 ) and (C1 3 , C2 3 ) votes are equal, but (C1 1 , C2 1 ) and (C1 3 , C2 3 )The ratio of the sum of the hyperplane function values is (4.55+2.67) greater than (-3.55-2.55). At this time, the server outputs the second defect state and the second warning strategy (C1 1 , C2 1 ) real-time monitoring results.
[0093] A storage tank detection data analysis system is also provided, the system comprising a data acquisition module, a data storage module, a model building module, a storage tank analysis module, and a visualization module, characterized in that:
[0094] The data acquisition module collects environmental parameters of the storage tank using temperature sensors placed in multiple areas, pressure sensors at the bottom of the storage tank, and liquid level sensors and concentration sensors;
[0095] The data storage module is used to store the environmental parameters and tank information of the tank, the first tank defect state and the first warning strategy corresponding to the environmental parameters and the tank information of the tank, and is also used to store the second tank defect state and the second warning strategy;
[0096] The model building module is used to build a tank detection model according to the environmental parameters of the tank and the first tank defect state and the first warning strategy corresponding to the tank information;
[0097] The tank analysis module is used to receive the transmitted real-time environmental parameters of the tank and the updated tank information, and generate a second tank defect state and a second warning strategy using the tank detection model according to the real-time environmental parameters of the tank and the updated tank information; and is also used to transmit the second tank defect state and the second warning strategy to the data storage module for storage.
[0098] The visualization display module is connected to the storage tank analysis module and is used to realize the 3D visualization display of the defect status of the second storage tank and the second warning strategy through WebGL technology, and to display the personnel that need to be arranged for the defects.
[0099] If the defects are numerous and in an ultra-high alert state, the visualization module will display all the tanks divided into 8 areas in red, and send the obtained detection information to personnel of corresponding levels within the company, such as senior engineers.
[0100] Furthermore, the storage tank detection model in the model building module is a SVM model.
[0101] Furthermore, before constructing the SVM model, some variables are removed. The steps are as follows:
[0102] Step S1, dividing the data set composed of the variables into a training set X and a test set T;
[0103] Step S2, using the training set X to establish a random forest model;
[0104] Step S3: Using the importance of variables M i To delete some variables, M i The calculation formula is as follows:
[0105]
[0106] The i is the feature variable; m is the number of variables; err1 is the test set T error; err2 is the test set error after adding noise; n is the number of decision trees;
[0107] Step S4: After deleting some variables, a specific training set ST is obtained.
[0108] Of course, it can be understood that each embodiment of the present invention can achieve one of the effects alone, and a combination of multiple embodiments of the present invention can achieve all of the above effects, but it is not required that every embodiment of the present invention achieve all of the above advantages and effects, because each embodiment of the present invention can constitute a separate technical solution and make one or more contributions to the prior art.
[0109] The present invention does not particularly specify the structure of some modules, which shall be subject to the contents recorded in the prior art. The prior art mentioned in the above background technology section and the specific embodiment section of the present invention can be used as part of the present invention to understand the meaning of some technical features or parameters. The scope of protection of the present invention shall be subject to the contents actually recorded in the claims.
Claims
1. A method for analyzing tank detection data, characterized in that: The method comprises: Obtain environmental parameters of the tank and tank information stored in the server; Acquire the environmental parameters of the storage tank and the first storage tank defect state and the first warning strategy corresponding to the storage tank information stored in the server; Constructing a tank detection model based on the environmental parameters of the tank, the tank information stored in the server, and the corresponding first tank defect state and first warning strategy; Receiving the transmitted real-time environmental parameters of the storage tank and the updated storage tank information, the storage tank detection model generates a second storage tank defect state and a second warning strategy according to the real-time environmental parameters of the storage tank and the updated storage tank information; Analyzing the storage tank according to the second storage tank defect state and the second warning strategy; The environmental parameters of the storage tank include: storage tank temperature, storage tank bottom pressure, storage tank liquid level, and concentration; The tank information includes the material and size of the tank; The internal space of the storage tank is divided into a plurality of areas, and the variables input into the storage tank detection model include three-dimensional coordinates, environmental parameters of the storage tank, and the storage tank information.
2. The method for analyzing storage tank detection data according to claim 1, characterized in that: The storage tank detection model is a multi-classifier, including a classifier based on the Fisher criterion or a SVM model.
3. The method for analyzing storage tank detection data according to claim 2, characterized in that: Before building the SVM model, some variables are removed. The steps are as follows: Step S1, dividing the data set composed of the variables into a training set X and a test set T; Step S2, using the training set X to establish a random forest model; Step S3: Using the importance of variables M i To delete some variables, M i The calculation formula is as follows: The i is a characteristic variable; m is the number of variables; err1 is the error of the test set T; err2 is the error of the test set after adding noise; n is the number of decision trees; Step S4: After deleting some variables, a specific training set ST is obtained.
4. The method for analyzing storage tank detection data according to claim 3, characterized in that: The storage tank detection model is constructed according to the SVM model using the specific training set ST.
5. The method for analyzing storage tank detection data according to claim 4, characterized in that: The specific function expression of the SVM model is: oh T X i +b≥1 Where ω, b are the normal vector and intercept of the hyperplane, respectively, X i is the variable in the specific training set ST, and i is the number of samples.
6. A storage tank detection data analysis system, the system comprising a data acquisition module, a data storage module, a model building module, a storage tank analysis module, and a visualization module, characterized in that: The data acquisition module collects environmental parameters of the storage tank using temperature sensors placed in multiple areas, pressure sensors at the bottom of the storage tank, and liquid level sensors and concentration sensors; The data storage module is used to store the environmental parameters and tank information of the tank, the first tank defect state and the first warning strategy corresponding to the environmental parameters and the tank information of the tank, and is also used to store the second tank defect state and the second warning strategy; The model building module is used to build a tank detection model according to the environmental parameters of the tank, the tank information, and the corresponding first tank defect state and the first warning strategy; The tank analysis module is used to receive the transmitted real-time environmental parameters of the tank and the updated tank information, and generate a second tank defect state and a second warning strategy using the tank detection model according to the real-time environmental parameters of the tank and the updated tank information; It is also used to transmit the defect status of the second storage tank and the second warning strategy to the data storage module for storage; The environmental parameters of the storage tank include: storage tank temperature, storage tank bottom pressure, storage tank liquid level, and concentration; The tank information includes the material and size of the tank; Divide the internal space of the storage tank into multiple areas, and construct the variables input into the storage tank detection model including three-dimensional coordinates, environmental parameters of the storage tank, and the storage tank information; The visualization display module is connected to the storage tank analysis module and is used to realize the 3D visualization display of the defect status of the second storage tank and the second warning strategy through WebGL technology, and to display the personnel that need to be arranged for the defects.
7. A storage tank detection data analysis system as claimed in claim 6, characterized in that: The storage tank detection model in the model building module is a SVM model.
8. The storage tank detection data analysis system according to claim 7, characterized in that: Before building the SVM model, some variables are removed. The steps are as follows: Step S1, dividing the data set composed of the variables into a training set X and a test set T; Step S2, using the training set X to establish a random forest model; Step S3: Using the importance of variables M i To delete some variables, M i The calculation formula is as follows: The i is a characteristic variable; m is the number of variables; err1 is the error of the test set T; err2 is the error of the test set after adding noise; n is the number of decision trees; Step S4: After deleting some variables, a specific training set ST is obtained.
