Production management system and method for anti-corrosion pipelines
The camera collects multi-angle spray images and uses computer vision technology to extract multi-scale semantic features of the local spray effects, solving the problems of low efficiency and instability of traditional manual detection and achieving automatic identification and accurate detection of coating defects on anti-corrosion pipelines. .
Patent Information
- Application Number
- CN202410759543.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-13
AI Technical Summary
In the traditional anti-corrosion pipeline production process, coating quality inspection relies on manual visual inspection, which is inefficient and susceptible to subjective factors, resulting in unstable inspection results.
Cameras are used to collect images of local spraying effects from multiple angles. Computer vision technology and deep learning image processing technology are used to extract multi-scale semantic feature vectors of local spraying effects, calculate hash similarity, and realize automatic identification of coating defects.
It achieves automatic identification of coating defects, improves detection efficiency and accuracy, and reduces manual subjective effects.
Smart Images

Figure CN118365630B
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent management, and more specifically, to a production management system and method for anti-corrosion pipelines. Background Art
[0002] With the rapid development of industrial automation and intelligent manufacturing, the quality control of the production process of anti-corrosion pipelines, as important facilities for transporting oil, natural gas, chemical raw materials, etc., has become particularly critical. The coating quality of anti-corrosion pipelines directly affects their corrosion resistance and service life. Therefore, achieving efficient and accurate coating quality detection is one of the key technologies to improve the production management level of anti-corrosion pipelines.
[0003] In the traditional anti-corrosion pipeline production process, the inspection of coating quality often relies on manual visual inspection, which is not only inefficient but also easily affected by subjective factors, resulting in unstable inspection results. Therefore, an optimized solution is expected. Summary of the invention
[0004] In order to solve the above technical problems, the present application is proposed. The embodiment of the present application provides a production management system and method for anti-corrosion pipelines, which collects a collection of spray local effect images from multiple angles through a camera, and uses computer vision technology and deep learning-based image processing technology to perform image processing and analysis on the collection of spray local effect images, so as to mine the local spray state feature mode of each spray local effect image, and quantify the spray consistency feature information between each spray local effect image, so as to realize automatic recognition of coating defects.
[0005] According to one aspect of the present application, a production management method for anti-corrosion pipelines is provided, comprising: acquiring a set of spray local effect images collected by a camera from multiple angles; performing spray state multi-scale feature extraction on the set of spray local effect images to obtain a set of spray local effect multi-scale semantic feature vectors; calculating the hash similarity between any two spray local effect multi-scale semantic feature vectors in the set of spray local effect multi-scale semantic feature vectors to obtain a spray effect consistency representation vector; determining a quality inspection result based on the spray effect consistency representation vector; wherein, performing spray state multi-scale feature extraction on the set of spray local effect images to obtain a set of spray local effect multi-scale semantic feature vectors comprises: passing each spray local effect image in the set of spray local effect images through a spray effect state feature extractor based on DenseNet to obtain a set of spray local effect feature maps; passing each spray local effect feature map in the set of spray local effect feature maps through a spray effect multi-scale semantic feature extraction module to obtain a set of spray local effect multi-scale semantic feature vectors.
[0006] According to another aspect of the present application, a production management system for anti-corrosion pipelines is provided, which includes: an image acquisition module for acquiring a set of spray local effect images collected by a camera from multiple angles; a multi-scale feature extraction module for performing spray state multi-scale feature extraction on the set of spray local effect images to obtain a set of spray local effect multi-scale semantic feature vectors; a hash similarity measurement module for calculating the hash similarity between any two spray local effect multi-scale semantic feature vectors in the set of spray local effect multi-scale semantic feature vectors to obtain a spray effect consistency representation vector; a quality inspection result determination module for determining a quality inspection result based on the spray effect consistency representation vector; wherein the multi-scale feature extraction module includes: passing each spray local effect image in the set of spray local effect images through a spray effect state feature extractor based on DenseNet to obtain a set of spray local effect feature maps; passing each spray local effect feature map in the set of spray local effect feature maps through a spray effect multi-scale semantic feature extraction module to obtain a set of spray local effect multi-scale semantic feature vectors.
[0007] Compared with the prior art, the present application provides a production management system and method for anti-corrosion pipelines, which collects a collection of spray local effect images from multiple angles through a camera, and uses computer vision technology and deep learning-based image processing technology to perform image processing and analysis on the collection of spray local effect images, so as to mine the local spray state feature patterns of each spray local effect image, and at the same time quantify the spray consistency feature information between each spray local effect image, thereby realizing automatic identification of coating defects. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0009] Figure 1 The present invention is a flowchart of a production management method for anti-corrosion pipelines according to an embodiment of the present application.
[0010] Figure 2 It is a system architecture diagram of the production management method of anti-corrosion pipelines according to an embodiment of the present application.
[0011] Figure 3 The flowchart is a training phase of the production management method for anti-corrosion pipelines according to an embodiment of the present application.
[0012] Figure 4 This is a flowchart of sub-step S2 of the production management method for anti-corrosion pipelines according to an embodiment of the present application.
[0013] Figure 5 This is a flowchart of sub-step S22 of the production management method for anti-corrosion pipelines according to an embodiment of the present application.
[0014] Figure 6 It is a block diagram of a production management system for anti-corrosion pipelines according to an embodiment of the present application. DETAILED DESCRIPTION
[0015] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0016] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0017] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules can be used and run on the user terminal and / or server. The modules are only illustrative, and different aspects of the system and method can use different modules.
[0018] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. Meanwhile, other operations may also be added to these processes, or a certain step or several steps of operations may be removed from these processes.
[0019] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0020] Considering that in the process of coating defect detection and identification of anti-corrosion pipelines, when the anti-corrosion pipelines have coating defects such as orange peel, exposed bottom, pinholes, etc., they will produce visual features inconsistent with the surrounding areas. These abrupt inconsistencies can be identified and quantified through image analysis technology, and the defect-free coating surface should be visually uniform, which means that images collected from different areas should show a high degree of consistency in color, texture, and gloss.
[0021] In the technical solution of the present application, a production management method for anti-corrosion pipelines is proposed. Figure 1 The present invention is a flowchart of a production management method for anti-corrosion pipelines according to an embodiment of the present application. Figure 2 1 is a system architecture diagram of the production management method of the anti-corrosion pipeline according to an embodiment of the present application. Figure 1 and Figure 2 As shown, according to the production management method of the anti-corrosion pipeline of the embodiment of the present application, the steps include: S1, obtaining a set of spray local effect images collected by a camera from multiple angles; S2, performing spray state multi-scale feature extraction on the set of spray local effect images to obtain a set of spray local effect multi-scale semantic feature vectors; S3, calculating the hash similarity between any two spray local effect multi-scale semantic feature vectors in the set of spray local effect multi-scale semantic feature vectors to obtain a spray effect consistency representation vector; S4, determining the quality inspection result based on the spray effect consistency representation vector.
[0022] In particular, the S1 obtains a set of spraying local effect images captured by the camera from multiple angles. In the actual application scenario of the present application, coating defects may appear at any position of the anti-corrosion pipeline. By capturing spraying local effect images from different angles, it can ensure that the entire surface of the anti-corrosion pipeline is fully covered to avoid missed inspections. At the same time, capturing images of different local areas of the anti-corrosion pipeline from multiple angles can prepare for subsequent consistency quantification.
[0023] In particular, the step S2 extracts multi-scale features of the spray state from the set of spray local effect images to obtain a set of multi-scale semantic feature vectors of the spray local effect. In particular, in a specific example of the present application, Figure 4 As shown, the S2 includes: S21, passing each spraying local effect image in the set of spraying local effect images through a spraying effect state feature extractor based on DenseNet to obtain a set of spraying local effect feature maps; S22, passing each spraying local effect feature map in the set of spraying local effect feature maps through a spraying effect multi-scale semantic feature extraction module to obtain a set of spraying local effect multi-scale semantic feature vectors.
[0024] Specifically, in S21, each of the spraying local effect images in the set of spraying local effect images is respectively passed through a spraying effect state feature extractor based on DenseNet to obtain a set of spraying local effect feature maps. Among them, DenseNet (Densely Connected Convolutional Networks) is a deep convolutional neural network, which improves the information flow and parameter efficiency of the network by introducing direct connections between each layer, so that it can learn richer and more robust feature representations. In this way, DenseNet is used to capture the features of each spraying local effect image respectively to characterize the local coating feature pattern of each spraying local effect image.
[0025] Accordingly, in a possible implementation, each spraying local effect image in the set of spraying local effect images can be passed through a spraying effect state feature extractor based on DenseNet to obtain a set of spraying local effect feature maps through the following steps, for example: input the set of spraying local effect images; for each spraying local effect image, apply a spraying effect state feature extractor based on DenseNet to extract its feature map; DenseNet is a densely connected convolutional neural network structure with the characteristics of cross-layer connection. In each dense block, each layer is connected to all subsequent layers, which helps the propagation of information and the flow of gradients; for each spraying local effect image, it is input into a feature extractor based on DenseNet, and the high-level semantic features of the image are extracted through multiple dense blocks and transition layers; in DenseNet, the output of each dense block will be connected to the input of the subsequent layer to form a feature map. In this way, the feature map finally obtained will contain rich semantic features of the image; for each spraying local effect image, the corresponding feature map is obtained through a spraying effect state feature extractor based on DenseNet.
[0026] Specifically, in S22, each of the spraying local effect feature maps in the set of the spraying local effect feature maps is respectively passed through the spraying effect multi-scale semantic feature extraction module to obtain the set of the spraying local effect multi-scale semantic feature vectors. Considering that each of the spraying local effect images may contain multi-scale image semantic feature patterns, defects such as small holes on the coating surface can usually be observed at a smaller spatial scale, while cracks or scratches in the coating will have a distribution pattern with a larger spatial scale than small holes, and the bottom exposure phenomenon may be reflected as a larger area of coating missing. In other words, if the image feature extraction is performed on each of the spraying local effect images at the same spatial observation scale, the coating defect pattern that is too small or too large may be lost, resulting in inaccurate quality inspection results. Therefore, in the technical solution of the present application, each of the spraying local effect feature maps in the set of the spraying local effect feature maps is respectively passed through the spraying effect multi-scale semantic feature extraction module to extract the spraying feature pattern and coating state information under different perceptions, thereby obtaining a set of spraying local effect multi-scale semantic feature vectors. In an embodiment of the present application, each spraying local effect feature map in the set of the spraying local effect feature map is respectively passed through a spraying effect multi-scale semantic feature extraction module to obtain a set of spraying local effect multi-scale semantic feature vectors. The encoding process is to extract global semantic feature information and local semantic feature information from the spraying local effect feature map to obtain a spraying effect global semantic feature vector and a spraying effect local semantic feature vector, and then fuse the spraying effect global semantic feature vector and the spraying effect local semantic feature vector to obtain the spraying local effect multi-scale semantic feature vector. In this way, the local features in each of the spraying local effect feature maps, such as edge and texture detail information, can be extracted respectively, and global features such as overall shape and other information can be captured, so that the spraying feature patterns and coating state features of each spraying local effect image are richer.
[0027] In particular, in a specific example of the present application, Figure 5 As shown, the S22 includes: S221, extracting global semantic feature information and local semantic feature information from the spraying local effect feature map to obtain a global semantic feature vector of the spraying effect and a local semantic feature vector of the spraying effect; S222, fusing the global semantic feature vector of the spraying effect and the local semantic feature vector of the spraying effect to obtain a multi-scale semantic feature vector of the spraying local effect.
[0028] More specifically, the S221 extracts global semantic feature information and local semantic feature information from the spraying local effect feature map to obtain a global semantic feature vector of the spraying effect and a local semantic feature vector of the spraying effect. In a specific example, extracting global semantic feature information and local semantic feature information from the spraying local effect feature map to obtain a global semantic feature vector of the spraying effect and a local semantic feature vector of the spraying effect includes: upsampling the spraying local effect feature map to obtain an upsampled spraying local effect feature map; using a global semantic feature extraction module to process the upsampled spraying local effect feature map to obtain a global semantic extraction feature vector of the spraying effect; dimensionally adjusting the global semantic extraction feature vector of the spraying effect to obtain the global semantic feature vector of the spraying effect; using a local semantic feature extraction module to process the upsampled spraying local effect feature map to obtain a local semantic extraction feature vector of the spraying effect; dimensionally adjusting the local semantic extraction feature vector of the spraying effect to obtain the local semantic feature vector of the spraying effect. Among them, the global semantic feature extraction module includes a global average pooling layer, a first point convolution layer, a first batch normalization layer and a first activation layer, and the local semantic feature extraction module includes a second point convolution layer, a second batch normalization layer and a second activation layer.
[0029] More specifically, the S222, fuses the global semantic feature vector of the spraying effect and the local semantic feature vector of the spraying effect to obtain the multi-scale semantic feature vector of the spraying local effect. In a specific example, the global semantic feature vector of the spraying effect and the local semantic feature vector of the spraying effect are fused to obtain the multi-scale semantic feature vector of the spraying local effect, including: calculating the position-by-position element-by-element addition of the global semantic feature vector of the spraying effect and the local semantic feature vector of the spraying effect to obtain a multi-scale semantic fusion feature vector of the spraying effect; and performing activation processing based on the sigmoid function on the multi-scale semantic fusion feature vector of the spraying effect to obtain the multi-scale semantic feature vector of the spraying local effect. It is worth mentioning that the Sigmoid function is a commonly used activation function, which is usually used in the output layer or hidden layer of a neural network. It maps a real number to a value ranging from 0 to 1.
[0030] It is worth mentioning that in other specific examples of the present application, each spraying local effect feature map in the set of the spraying local effect feature map can also be passed through the spraying effect multi-scale semantic feature extraction module in other ways to obtain the set of the spraying local effect multi-scale semantic feature vectors, for example: input the set of the spraying local effect feature maps; use a convolutional neural network (CNN) structure, including a convolution layer, a pooling layer, etc., and other multi-scale feature extraction techniques to perform multi-scale feature extraction on each spraying local effect feature map to capture semantic information and features at different scales; the features extracted at each scale may contain semantic information at different levels, and these features need to be fused to obtain more comprehensive semantic information; use pooling, attention mechanism or convolution operation to fuse features at different scales; convert the features after multi-scale feature extraction and fusion into semantic feature vectors, representing the multi-scale semantic features of the current spraying local effect; for each spraying local effect feature map, obtain the corresponding multi-scale semantic feature vector through the spraying effect multi-scale semantic feature extraction module.
[0031] It is worth mentioning that in other specific examples of the present application, the set of spray local effect images can also be subjected to multi-scale feature extraction of the spray state to obtain a set of multi-scale semantic feature vectors of spray local effects by other methods, for example: input the set of spray local effect images; use convolutional layers and pooling layers to extract local and global features of the image; for each image, extract semantic information from the multi-scale features, and combine this information into a multi-scale semantic feature vector; generate a single multi-scale semantic feature vector by summarizing, fusing or combining the features at each scale to obtain the set of multi-scale semantic feature vectors of spray local effects.
[0032] In particular, the S3 calculates the hash similarity between any two spraying local effect multi-scale semantic feature vectors in the set of spraying local effect multi-scale semantic feature vectors to obtain a spraying effect consistency representation vector. In an embodiment of the present application, the specific process of calculating the hash similarity between any two spraying local effect multi-scale semantic feature vectors in the set of spraying local effect multi-scale semantic feature vectors to obtain a spraying effect consistency representation vector includes: first, using a hash mapping function to map and transform each spraying local effect multi-scale semantic feature vector in the set of spraying local effect multi-scale semantic feature vectors to obtain a set of hash-coded spraying local effect multi-scale semantic feature vectors; then, calculating the cosine similarity between any two hash-coded spraying local effect multi-scale semantic feature vectors in the set of hash-coded spraying local effect multi-scale semantic feature vectors to obtain the spraying effect consistency representation vector.
[0033] It is worth noting that hash coding is a technique for mapping data to a fixed-length numerical representation (hash value or hash code). Hash coding is widely used in computer science and engineering, especially in database indexing, data retrieval, information security and other fields. Selecting a better hash mapping function will have an avalanche effect, that is, a small change in the input will lead to a significant change in the hash value. In this way, the multi-scale semantic feature vector mapping of each local spraying effect is transformed into the hash domain, so that the changes and differences between the multi-scale semantic feature vectors of each local spraying effect will be amplified to a certain extent, which helps to capture the coating differences in each local space.
[0034] In particular, the S4 determines the quality inspection result based on the spray effect consistency representation vector. In particular, in a specific example of the present application, the spray effect consistency representation vector is passed through a spray effect quality inspection module based on a classifier to obtain the quality inspection result, and the quality inspection result is used to indicate whether the spray effect is qualified. Specifically, the spray effect consistency representation vector is fully connected encoded using multiple fully connected layers of the classifier to obtain an encoded classification feature vector; and the encoded classification feature vector is passed through the Softmax classification function of the classifier to obtain the classification result.
[0035] That is, in the technical solution of the present application, the labels of the classifier include qualified spraying effect (first label), and unqualified spraying effect (second label), wherein the classifier determines which classification label the spraying effect consistency representation vector belongs to through a soft maximum function. It is worth noting that the first label p1 and the second label p2 here do not contain artificially set concepts. In fact, during the training process, the computer model does not have the concept of "whether the spraying effect is qualified". It only has two classification labels and the probability of the output feature under these two classification labels, that is, the sum of p1 and p2 is one. Therefore, the classification result of whether the spraying effect is qualified is actually converted into a binary class probability distribution that conforms to the laws of nature through the classification label. In essence, the physical meaning of the natural probability distribution of the label is used, rather than the linguistic text meaning of "whether the spraying effect is qualified".
[0036] A classifier is a machine learning model or algorithm that is used to classify input data into different categories or labels. Classifiers are part of supervised learning and perform classification tasks by learning the mapping relationship from input data to output categories.
[0037] A fully connected layer is a common type of layer in neural networks. In a fully connected layer, each neuron is connected to all neurons in the previous layer, and each connection has a weight. This means that each neuron in the fully connected layer receives inputs from all neurons in the previous layer, and performs a weighted sum of these inputs through the weights, and then passes the result to the next layer.
[0038] The Softmax classification function is a commonly used activation function for multi-classification problems. It converts each element of the input vector into a probability value between 0 and 1, and the sum of these probability values is equal to 1. The Softmax function is often used in the output layer of a neural network, especially for multi-classification problems, because it can map the network output to the probability distribution of each category. During the training process, the output of the Softmax function can be used to calculate the loss function and update the network parameters through the back propagation algorithm. It is worth noting that the output of the Softmax function does not change the relative size relationship between the elements, but only normalizes them. Therefore, the Softmax function does not change the characteristics of the input vector, but only converts it into a probability distribution form.
[0039] It should be understood that before using the above neural network model for inference, it is necessary to train the spray effect state feature extractor based on DenseNet, the spray effect multi-scale semantic feature extraction module and the spray effect quality inspection module based on the classifier. That is to say, in the production management method of the anti-corrosion pipeline of the present application, it also includes a training phase for training the spray effect state feature extractor based on DenseNet, the spray effect multi-scale semantic feature extraction module and the spray effect quality inspection module based on the classifier.
[0040] Figure 3 FIG. 1 is a flow chart of the training phase of the production management method for anti-corrosion pipelines according to an embodiment of the present application. Figure 3As shown, the production management method of the anti-corrosion pipeline according to the embodiment of the present application includes: a training stage, including: S110, obtaining training data, wherein the training data includes a set of training spray local effect images collected from multiple angles; S120, passing each training spray local effect image in the set of training spray local effect images through the spray effect state feature extractor based on DenseNet to obtain a set of training spray local effect feature maps; S130, passing each training spray local effect feature map in the set of training spray local effect feature maps through the spray effect multi-scale semantic feature extraction module to obtain a set of training spray local effect multi-scale semantic feature vectors; S140, calculating the The hash similarity between any two training spray local effect multi-scale semantic feature vectors in the set of training spray local effect multi-scale semantic feature vectors is used to obtain a training spray effect consistency representation vector; S150, the training spray effect consistency representation vector is passed through a spray effect quality inspection module based on a classifier to obtain a class probability value and a classification loss function value; S160, the distribution metric loss function value is calculated based on the class probability value; S170, the weighted sum of the classification loss function value and the distribution metric loss function value is calculated as the loss function value to train the DenseNet-based spray effect state feature extractor, the spray effect multi-scale semantic feature extraction module and the classifier-based spray effect quality inspection module.
[0041] In a preferred example, when updating the model parameters through gradient back propagation based on the classification loss function, a distribution metric loss function is further introduced, and the calculation of the distribution metric loss function includes the following steps: obtaining the class probability value of the training spray effect consistency representation vector through the classifier and calculating a difference with the class probability value as an inverse probability value; calculating the mean and variance of the training spray effect consistency representation vector; calculating the difference between the first product of each eigenvalue in the training spray effect consistency representation vector and the class probability value and the second product of the inverse probability value and the mean; summing the squares of the difference corresponding to each eigenvalue in the training spray effect consistency representation vector and dividing it by the length of the spray effect consistency representation vector as the first term of the distribution metric loss function; calculating the sum of the squares of the class probability value and the inverse probability value and multiplying it by the variance as the second term of the distribution metric loss function; and calculating the difference between the first term and the second term to obtain the distribution metric loss function.
[0042] Here, for the multi-scale dense image semantic features of the training spray local effect images at various angles, in the common hash similarity mapping space, the out-of-distribution noise of each image semantic feature representation set affects the overall class distribution noise of the spray effect consistency representation vector, thereby affecting the accuracy of the classification result. The above-mentioned distribution metric loss function assumes the approximate variance expectation characteristic of the out-of-distribution noise of the feature set of the training spray effect consistency representation vector relative to the Bernoulli sampling instance of the feature set based on the class probability Bernoulli distribution characteristics expressed by the class probability value and inverse probability value of the training spray effect consistency representation vector through the classifier.
[0043] Therefore, the distribution feature noise measurement is performed based on the statistical noise distribution based on the class probability distribution characteristics expressed by the class probability value and the inverse probability value through the distribution measurement loss function. The possible sampling noise characteristics can be degraded based on the probability crossover random selection characteristics of the expected variance when each eigenvalue of the training spray effect consistency representation vector is in the class probability distribution during the classification process, thereby realizing the class distribution noise reduction of self-supervised learning in the process of updating the model parameters to improve the accuracy of the classification results.
[0044] In summary, according to the embodiment of the present application, the production management method of the anti-corrosion pipeline is explained, which collects a collection of spray local effect images from multiple angles through a camera, and uses computer vision technology and deep learning-based image processing technology to perform image processing and analysis on the collection of spray local effect images, so as to mine the local spray state characteristic patterns of each spray local effect image, and at the same time quantify the spray consistency characteristic information between each spray local effect image, thereby realizing automatic identification of coating defects.
[0045] Furthermore, a production management system for anti-corrosion pipelines is also provided.
[0046] Figure 6 FIG. 1 is a block diagram of a production management system for anti-corrosion pipelines according to an embodiment of the present application. Figure 6 As shown, according to the production management system 300 of the anti-corrosion pipeline of the embodiment of the present application, it includes: an image acquisition module 310, which is used to acquire a set of spray local effect images collected by a camera from multiple angles; a multi-scale feature extraction module 320, which is used to perform multi-scale feature extraction of the spray state on the set of spray local effect images to obtain a set of multi-scale semantic feature vectors of the spray local effect; a hash similarity measurement module 330, which is used to calculate the hash similarity between any two multi-scale semantic feature vectors of the spray local effect in the set of multi-scale semantic feature vectors of the spray local effect to obtain a spray effect consistency representation vector; a quality inspection result determination module 340, which is used to determine the quality inspection result based on the spray effect consistency representation vector.
[0047] As described above, the production management system 300 of the anti-corrosion pipeline according to the embodiment of the present application can be implemented in various wireless terminals, such as a server with a production management algorithm for the anti-corrosion pipeline. In a possible implementation, the production management system 300 of the anti-corrosion pipeline according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the production management system 300 of the anti-corrosion pipeline can be a software module in the operating system of the wireless terminal, or can be an application developed for the wireless terminal; of course, the production management system 300 of the anti-corrosion pipeline can also be one of the many hardware modules of the wireless terminal.
[0048] Alternatively, in another example, the anti-corrosion pipeline production management system 300 and the wireless terminal may also be separate devices, and the anti-corrosion pipeline production management system 300 may be connected to the wireless terminal via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.
[0049] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A production management method for anti-corrosion pipelines, characterized in that: include: Acquire a set of local spraying effect images collected by a camera from multiple angles; Performing spray state multi-scale feature extraction on the set of spray local effect images to obtain a set of spray local effect multi-scale semantic feature vectors; Calculating the hash similarity between any two spraying local effect multi-scale semantic feature vectors in the set of spraying local effect multi-scale semantic feature vectors to obtain a spraying effect consistency representation vector; Determining a quality inspection result based on the spraying effect consistency representation vector; The step of performing spraying state multi-scale feature extraction on the set of spraying local effect images to obtain a set of spraying local effect multi-scale semantic feature vectors includes: Each of the spraying local effect images in the set of spraying local effect images is respectively passed through a spraying effect state feature extractor based on DenseNet to obtain a set of spraying local effect feature maps; Each of the spraying local effect feature maps in the set of the spraying local effect feature maps is respectively passed through a spraying effect multi-scale semantic feature extraction module to obtain a set of the spraying local effect multi-scale semantic feature vectors; Wherein, each of the spraying local effect feature maps in the set of the spraying local effect feature maps is respectively subjected to a spraying effect multi-scale semantic feature extraction module to obtain a set of the spraying local effect multi-scale semantic feature vectors, including: Extracting global semantic feature information and local semantic feature information from the spraying local effect feature map to obtain a spraying effect global semantic feature vector and a spraying effect local semantic feature vector; Fusion of the global semantic feature vector of the spraying effect and the local semantic feature vector of the spraying effect to obtain the multi-scale semantic feature vector of the local spraying effect; The step of extracting global semantic feature information and local semantic feature information from the spraying local effect feature map to obtain a spraying effect global semantic feature vector and a spraying effect local semantic feature vector comprises: Upsampling the spraying local effect feature map to obtain an upsampled spraying local effect feature map; Using a global semantic feature extraction module to process the upsampled spraying local effect feature map to obtain a spraying effect global semantic extraction feature vector; Dimensionally adjusting the spray effect global semantic extraction feature vector to obtain the spray effect global semantic feature vector; Using a local semantic feature extraction module to process the upsampled spraying local effect feature map to obtain a spraying effect local semantic extraction feature vector; Performing dimension adjustment on the spraying effect local semantic extraction feature vector to obtain the spraying effect local semantic feature vector; The global semantic feature extraction module includes a global average pooling layer, a first point convolution layer, a first batch normalization layer and a first activation layer, and the local semantic feature extraction module includes a second point convolution layer, a second batch normalization layer and a second activation layer; Wherein, fusing the global semantic feature vector of the spraying effect and the local semantic feature vector of the spraying effect to obtain the multi-scale semantic feature vector of the local spraying effect includes: Calculate the spray effect global semantic feature vector and the spray effect local semantic feature vector, and add them element by element according to position to obtain a multi-scale spray effect semantic fusion feature vector; The multi-scale semantic fusion feature vector of the spraying effect is activated based on the sigmoid function to obtain the multi-scale semantic feature vector of the spraying local effect.
2. The production management method of anti-corrosion pipeline according to claim 1, characterized in that: Calculating the hash similarity between any two spraying local effect multi-scale semantic feature vectors in the set of spraying local effect multi-scale semantic feature vectors to obtain a spraying effect consistency representation vector, including: Using a hash mapping function to map and transform each of the spraying local effect multi-scale semantic feature vectors in the set of spraying local effect multi-scale semantic feature vectors to obtain a set of hash-coded spraying local effect multi-scale semantic feature vectors; The cosine similarity between any two hash-coded spraying local effect multi-scale semantic feature vectors in the set of the hash-coded spraying local effect multi-scale semantic feature vectors is calculated to obtain the spraying effect consistency representation vector.
3. The production management method of anti-corrosion pipeline according to claim 2, characterized in that: Determining a quality inspection result based on the spraying effect consistency representation vector includes: The spraying effect consistency representation vector is passed through a spraying effect quality inspection module based on a classifier to obtain the quality inspection result, and the quality inspection result is used to indicate whether the spraying effect is qualified.
4. The production management method of anti-corrosion pipeline according to claim 3 is characterized in that: The method further includes a training phase: training the spraying effect state feature extractor based on DenseNet, the spraying effect multi-scale semantic feature extraction module and the spraying effect quality inspection module based on the classifier; wherein the training phase includes: Acquire training data, wherein the training data includes a set of training spraying local effect images collected from multiple angles; Each training spraying local effect image in the set of training spraying local effect images is passed through the spraying effect state feature extractor based on DenseNet to obtain a set of training spraying local effect feature maps; Each training spraying local effect feature map in the set of training spraying local effect feature maps is respectively passed through the spraying effect multi-scale semantic feature extraction module to obtain a set of training spraying local effect multi-scale semantic feature vectors; Calculating the hash similarity between any two training spraying local effect multi-scale semantic feature vectors in the set of training spraying local effect multi-scale semantic feature vectors to obtain a training spraying effect consistency representation vector; Passing the training spraying effect consistency representation vector through a spraying effect quality inspection module based on a classifier to obtain a class probability value and a classification loss function value; Calculate a distribution metric loss function value based on the class probability value; The weighted sum of the classification loss function value and the distribution metric loss function value is calculated as the loss function value to train the DenseNet-based spray effect state feature extractor, the spray effect multi-scale semantic feature extraction module and the classifier-based spray effect quality inspection module.
5. A production management system for anti-corrosion pipelines, characterized in that: include: An image acquisition module is used to acquire a set of spraying local effect images collected by a camera from multiple angles; A multi-scale feature extraction module, used for performing multi-scale feature extraction of spraying state on the set of spraying local effect images to obtain a set of multi-scale semantic feature vectors of spraying local effect; A hash similarity measurement module, used for calculating the hash similarity between any two spraying local effect multi-scale semantic feature vectors in the set of spraying local effect multi-scale semantic feature vectors to obtain a spraying effect consistency representation vector; A quality inspection result determination module, used to determine the quality inspection result based on the spraying effect consistency representation vector; Wherein, the multi-scale feature extraction module includes: Each of the spraying local effect images in the set of spraying local effect images is respectively passed through a spraying effect state feature extractor based on DenseNet to obtain a set of spraying local effect feature maps; Each of the spraying local effect feature maps in the set of the spraying local effect feature maps is respectively passed through a spraying effect multi-scale semantic feature extraction module to obtain a set of the spraying local effect multi-scale semantic feature vectors; Wherein, each of the spraying local effect feature maps in the set of the spraying local effect feature maps is respectively subjected to a spraying effect multi-scale semantic feature extraction module to obtain a set of the spraying local effect multi-scale semantic feature vectors, including: Extracting global semantic feature information and local semantic feature information from the spraying local effect feature map to obtain a spraying effect global semantic feature vector and a spraying effect local semantic feature vector; Fusion of the global semantic feature vector of the spraying effect and the local semantic feature vector of the spraying effect to obtain the multi-scale semantic feature vector of the local spraying effect; The step of extracting global semantic feature information and local semantic feature information from the spraying local effect feature map to obtain a spraying effect global semantic feature vector and a spraying effect local semantic feature vector comprises: Upsampling the spraying local effect feature map to obtain an upsampled spraying local effect feature map; Using a global semantic feature extraction module to process the upsampled spraying local effect feature map to obtain a spraying effect global semantic extraction feature vector; Dimensionally adjusting the spray effect global semantic extraction feature vector to obtain the spray effect global semantic feature vector; Using a local semantic feature extraction module to process the upsampled spraying local effect feature map to obtain a spraying effect local semantic extraction feature vector; Performing dimension adjustment on the spraying effect local semantic extraction feature vector to obtain the spraying effect local semantic feature vector; The global semantic feature extraction module includes a global average pooling layer, a first point convolution layer, a first batch normalization layer and a first activation layer, and the local semantic feature extraction module includes a second point convolution layer, a second batch normalization layer and a second activation layer; Wherein, fusing the global semantic feature vector of the spraying effect and the local semantic feature vector of the spraying effect to obtain the multi-scale semantic feature vector of the local spraying effect includes: Calculate the spray effect global semantic feature vector and the spray effect local semantic feature vector, and add them element by element according to position to obtain a multi-scale spray effect semantic fusion feature vector; The multi-scale semantic fusion feature vector of the spraying effect is activated based on the sigmoid function to obtain the multi-scale semantic feature vector of the spraying local effect.
