Automatic control system and method for medium-frequency heating and cleaning of pipe rod
Through the automatic control system, the pipe rod surface state image processing technology is used to automatically adjust the feed speed of the medium-frequency heating cleaning, solving the problem of personalized setting of the traditional cleaning system, achieving efficient and environmentally friendly pipe rod cleaning, and avoiding material damage.
Patent Information
- Application Number
- CN202411273974.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-09-12
AI Technical Summary
The traditional medium-frequency heating cleaning system is difficult to customize according to the surface condition of the pipe rod, resulting in excessive or insufficient cleaning, affecting the cleaning effect and possibly damaging the pipe rod material.
Using an automatic control system, the inner and outer surface states are generated through pipe and rod surface state image acquisition, feature extraction and enhanced processing, combined with important feature enhancement fusion processing based on cross-channel intersection feature space structure maintaining self-attention module and fine-grained feature correlation mask Collaborative representation vectors automatically adjust feed speed.
It achieves more intelligent and personalized medium-frequency heating cleaning of pipe rods, which can meet cleaning needs while reducing energy consumption and avoiding damage to pipe rod materials.
Smart Images

Figure CN118799538A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of pipe rod heating and cleaning, and in particular, to an automatic control system and method for medium frequency heating and cleaning of pipe rods. Background Art
[0002] In oilfield operations, pipes and rods often accumulate a lot of oil pollution after leaving the well, which not only affects the reuse efficiency of pipes and rods, but also may cause safety hazards to subsequent operations. In order to reduce operating costs, many oilfields choose to clean and repair these used pipes and rods to achieve the recycling of qualified pipes and rods. However, traditional pipe cleaning methods have many limitations and defects, which may lead to increased pipe quality risks.
[0003] With the development of automation technology, medium frequency heating cleaning, as a new cleaning method, has gradually attracted attention due to its high efficiency, environmental protection and energy saving. Medium frequency heating technology is a technology that uses the principle of electromagnetic induction with a frequency range of 1 kHz to 100 kHz to heat metal. It can quickly heat the pipe during the cleaning process, so that the dirt can be quickly softened and fall off, thereby achieving more efficient and effective cleaning. Applying medium frequency heating technology to pipe cleaning can effectively remove dirt and rust on the inner wall of the pipe without damaging the material of the pipe, thereby improving the cleaning efficiency of the pipe.
[0004] However, traditional medium frequency heating cleaning systems often rely on manual experience to set fixed parameters, such as temperature, heating time, etc., which makes it difficult to meet the actual cleaning needs of the pipe surface state. Specifically, the types and degrees of dirt on different pipes and rods vary, and traditional pipe cleaning solutions are difficult to personalize for different cleaning needs, which can easily lead to over-cleaning or under-cleaning, which not only affects the cleaning effect, but may also damage the pipe material.
[0005] Therefore, an optimized control system for medium frequency heating cleaning of pipe rods is desired. Summary of the invention
[0006] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0007] In a first aspect, the present application provides an automatic control system for medium frequency heating and cleaning of pipes, the system comprising: a pipe surface state image acquisition module, used to obtain an inner surface state image and an outer surface state image of the pipe being cleaned by medium frequency heating; a pipe surface state feature extraction module, used to extract features from the inner surface state image and the outer surface state image respectively to obtain a pipe inner surface state feature map and a pipe outer surface state feature map; a pipe surface state feature enhancement module, used to input the pipe inner surface state feature map and the pipe outer surface state feature map into a feature space based on cross-channel intersection. The intermediate structure preserving self-attention enhancement module is used to obtain the enhanced pipe rod inner surface state feature map and the enhanced pipe rod outer surface state feature map; the pipe rod inner and outer surface state collaborative characterization module is used to perform important feature enhancement fusion processing on the enhanced pipe rod inner surface state feature map and the enhanced pipe rod outer surface state feature map based on fine-grained feature association mask to obtain the pipe rod inner and outer surface state collaborative characterization vector; the pipe rod advancing speed recommendation module is used to determine the recommended feeding speed of the pipe rod based on the enhanced pipe rod inner surface state feature vector, the enhanced pipe rod outer surface state feature vector and the pipe rod inner and outer surface state collaborative characterization vector.
[0008] Optionally, the pipe rod surface state feature extraction module is used to: respectively pass the inner surface state image and the outer surface state image through a pipe rod surface state feature extractor based on a hybrid void pyramid network to obtain the pipe rod inner surface state feature map and the pipe rod outer surface state feature map.
[0009] Optionally, the pipe rod surface state feature enhancement module includes: a layer normalization unit, used to perform layer normalization on the pipe rod inner surface state feature map to obtain a normalized pipe rod inner surface state feature map; a point convolution processing unit, used to perform point convolution processing on the normalized pipe rod inner surface state feature map to obtain a pipe rod inner surface state channel context association representation feature map; a convolution encoding unit, used to perform convolution encoding on the pipe rod inner surface state channel context association representation feature map to obtain a pipe rod inner surface state space context association representation feature map; a feature map copying unit, used to copy the pipe rod inner surface state space context association representation feature map to obtain a pipe rod inner surface state backup space context association representation feature map; a first feature shape reshaping unit, used to perform feature shape reshaping on the pipe rod inner surface state channel context association representation feature map, the pipe rod inner surface state space context association representation feature map and the pipe rod inner surface state backup space context association representation feature map to obtain a pipe rod inner surface state channel context association representation feature map. A context-related representation feature matrix, a pipe inner surface state space context-related representation feature matrix and a pipe inner surface state backup space context-related representation feature matrix; a covariance matrix calculation unit, used to calculate the pipe inner surface state cross-channel cross covariance matrix between the pipe inner surface state channel context-related representation feature matrix and the pipe inner surface state space context-related representation feature matrix; an activation unit, used to activate the pipe inner surface state cross-channel cross covariance matrix using a Softmax function to obtain a pipe inner surface state feature global interactive attention matrix; a matrix calculation unit, used to calculate the product between the pipe inner surface state backup space context-related representation feature matrix and the pipe inner surface state feature global interactive attention matrix to obtain a pipe inner surface state attention enhanced feature representation matrix; a second feature shape reshaping unit, used to perform feature shape reshaping on the pipe inner surface state attention enhanced feature representation matrix to obtain the enhanced pipe inner surface state feature map.
[0010] Optionally, the covariance matrix calculation unit is used to: calculate the matrix multiplication between the channel context association representation feature matrix of the tube inner surface state and the spatial context association representation feature matrix of the tube inner surface state to obtain the tube inner surface state channel-space context association feature matrix; divide the tube inner surface state channel-space context association feature matrix by a hyperparameter by position to obtain the cross-channel cross-covariance matrix of the tube inner surface state.
[0011] Optionally, the pipe rod inner and outer surface state collaborative representation module includes: a pipe rod surface state feature dimensionality reduction unit, used to perform global mean pooling on the enhanced pipe rod inner surface state feature map and the enhanced pipe rod outer surface state feature map to obtain an enhanced pipe rod inner surface state feature vector and an enhanced pipe rod outer surface state feature vector; a fine-grained key feature attention fusion unit, used to fuse the enhanced pipe rod inner surface state feature vector and the enhanced pipe rod outer surface state feature vector through an attention differentiation fusion based on a fine-grained feature association mask to obtain the pipe rod inner and outer surface state collaborative representation vector.
[0012] Optionally, the fine-grained key feature attention fusion unit includes: a global eigenvalue association matrix calculation subunit, which is used to calculate the global eigenvalue association matrix between the enhanced pipe inner surface state eigenvector and the enhanced pipe outer surface state eigenvector to obtain the global eigenvalue association matrix of the pipe inner and outer surface states; a gating function calculation subunit, which is used to input the global eigenvalue association matrix of the pipe inner and outer surface states into a learnable gating function to obtain a distinguishable weight matrix for the correlation between the pipe inner and outer surface states; a distinguishable weight matrix calculation subunit, which is used to use the distinguishable weight matrix for the correlation between the pipe inner and outer surface states as a fusion mask matrix, and respectively calculate the matrix product between the enhanced pipe inner surface state eigenvector and the enhanced pipe outer surface state eigenvector and the distinguishable weight matrix for the correlation between the pipe inner and outer surface states to obtain a distinguished enhanced pipe inner surface state eigenvector and a distinguished enhanced pipe outer surface state eigenvector; a vector fusion subunit, which is used to fuse the distinguished enhanced pipe inner surface state eigenvector and the distinguished enhanced pipe outer surface state eigenvector to obtain a collaborative representation vector of the pipe inner and outer surface states.
[0013] Optionally, the gated function calculation subunit is used to: use the negative number of the eigenvalue at each position in the global eigenvalue association matrix of the inner and outer surface states of the pipe as the exponential power, calculate the natural exponential function value with the natural constant e as the base to obtain the global eigenvalue association class support matrix of the inner and outer surface states of the pipe; calculate the reciprocal of the sum of the eigenvalue at each position in the global eigenvalue association class support matrix of the inner and outer surface states of the pipe and the constant 1 to obtain the global eigenvalue association weight matrix of the inner and outer surface states of the pipe; calculate the position point multiplication between the global eigenvalue association weight matrix of the inner and outer surface states of the pipe and the global eigenvalue association matrix of the inner and outer surface states of the pipe to obtain the correlation distinguishable weight matrix of the inner and outer surface states of the pipe.
[0014] Optionally, the pipe rod advancement speed recommendation module is used to: cascade the enhanced pipe rod inner surface state feature vector, the enhanced pipe rod outer surface state feature vector and the pipe rod inner and outer surface state collaborative characterization vector to obtain a pipe rod dirt multi-dimensional representation vector; input the pipe rod dirt multi-dimensional representation vector into a decoder-based pipe rod feeding speed recommender to obtain a pipe rod feeding speed recommended decoding value.
[0015] In a second aspect, the present application provides an automatic control method for medium frequency heating and cleaning of pipes and rods, the method comprising: obtaining an inner surface state image and an outer surface state image of a pipe and rod being cleaned by medium frequency heating; performing feature extraction on the inner surface state image and the outer surface state image respectively to obtain a pipe inner surface state feature map and a pipe outer surface state feature map; inputting the pipe inner surface state feature map and the pipe outer surface state feature map into a feature space structure preserving self-attention enhancement module based on cross-channel intersection to obtain an enhanced pipe inner surface state feature map and an enhanced pipe outer surface state feature map; performing important feature enhancement fusion processing based on a fine-grained feature association mask on the enhanced pipe inner surface state feature map and the enhanced pipe outer surface state feature map to obtain a pipe inner and outer surface state collaborative characterization vector; determining a recommended feed speed of the pipe based on the enhanced pipe inner surface state feature vector, the enhanced pipe outer surface state feature vector and the pipe inner and outer surface state collaborative characterization vector.
[0016] Optionally, feature extraction is performed on the inner surface state image and the outer surface state image respectively to obtain a pipe inner surface state feature map and a pipe outer surface state feature map, including: passing the inner surface state image and the outer surface state image respectively through a pipe surface state feature extractor based on a hybrid void pyramid network to obtain the pipe inner surface state feature map and the pipe outer surface state feature map.
[0017] The above technical solution is adopted to collect the inner surface state image and the outer surface state image of the pipe rod, and introduce the image processing and analysis algorithm based on artificial intelligence in the back end to perform feature capture and collaborative analysis on the inner surface state image and the outer surface state image of the pipe rod, so as to extract the collaborative characterization information about the inner and outer surface states of the pipe rod in the image, and use this information to automatically adjust the feed speed of the pipe rod in the medium frequency heating cleaning process. In this way, the feed speed in the medium frequency heating cleaning process can be adaptively adjusted based on the dirtiness of the inner and outer surfaces of the pipe rod, thereby realizing a more intelligent and personalized medium frequency heating cleaning process for the pipe rod, so as to reduce energy consumption while meeting the cleaning needs of the pipe rod, and avoid damaging the pipe rod material.
[0018] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other features, advantages and aspects of the embodiments of the present application will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0020] In the attached picture: Figure 1 It is a block diagram of an automatic control system for medium frequency heating cleaning of pipe rods according to an exemplary embodiment.
[0021] Figure 2 The present invention is a flow chart showing an automatic control method for medium frequency heating cleaning of pipe rods according to an exemplary embodiment.
[0022] Figure 3 It is a block diagram of an electronic device according to an exemplary embodiment.
[0023] Figure 4 It is a diagram of an application scenario of an automatic control system for medium-frequency heating cleaning of pipe rods according to an exemplary embodiment. DETAILED DESCRIPTION
[0024] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.
[0025] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.
[0026] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0027] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0028] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0029] The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0030] In recent years, various oilfield operating areas have advocated tapping potential and increasing efficiency. A large number of pipes and rods used in oilfields cannot be identified as to whether they can continue to be used after being put into the well due to the large amount of oil pollution, which greatly increases the cost. Previously, the pipe and rod cleaning process was a combination of water heating and chemical agents for cleaning, which was inefficient and increased labor intensity, and had certain safety hazards and risks. The quality of the products after pipe and rod cleaning could not be guaranteed. In order to fundamentally solve the cleaning problem, through multi-party communication and research, the various indicators of the medium frequency heating method can meet the requirements of pipe and rod cleaning. For many years, domestic oilfields have mainly used high-temperature alkali solution cleaning technology to recover oily pipes and rods from the well. This cleaning method has many disadvantages: 1) It requires a large amount of aggressive chemicals and requires boiler steam heating, which is costly; 2) The temperature of the alkali solution in the cleaning pool needs to be heated to above 95°C, and the working environment is harsh; 3) The quality of pipe and rod cleaning is affected by comprehensive factors such as the concentration, temperature, and pressure of the cleaning fluid, so the cleaning quality is difficult to control.
[0031] In recent years, China has begun to use high-pressure water jet technology for pipe cleaning, but this process also has the following disadvantages: 1) The noise is high, which has been measured to be more than 110dB (exceeding the national standard of 85dB); 2) Severely waxed pipes and rods cannot achieve the ideal cleaning effect; 3) There is a lot of residual oil on the surface of the pipes and rods. In response to the above technical difficulties, through continuous practical exploration, the cleaning process equipment has been continuously improved and perfected, and it was finally determined that medium-frequency induction heating can solve its cleaning problems. This technology has high efficiency, high degree of automation, high safety factor, low cleaning cost, and specific good economic and social benefits.
[0032] This application studies the medium frequency heating cleaning process and equipment for pipes and rods, and the main contents are: 1) Medium frequency heating cleaning technology and equipment, which realizes the combination of medium frequency heating cleaning technology and mechanical cleaning technology, and completes the cleaning work on the inner and outer walls of the pipe and rod without affecting the quality of the pipe and rod.
[0033] 2) Verification test of medium frequency heating cleaning equipment. According to the well conditions, the pipes and rods in different operating areas are selected for verification test to form a complete process technology and apply it to the actual cleaning and repair work.
[0034] The core technologies of this application include: medium frequency heating cleaning equipment solution. Based on the previous research on medium frequency heating cleaning technology and mechanical cleaning technology, the two cleaning methods are effectively combined together. The equipment is mainly composed of loading and unloading parts, pipe rod driving system, straightening system, knife rod scraping system, induction heating system, sewage discharge system, purification and dust removal system, and automatic control system.
[0035] The core technical route of this application includes: forming the medium frequency heating cleaning technical route of the pipe rod, this cleaning technology is to remove impurities inside and outside the pipe rod by high-speed scraping of mechanical cutters and steel brushes while induction heating the pipe rod, and discharge the heated free matter and scraped off matter to the outside of the pipe rod by compressed air ejected from the scraper. The pipe rod is transported by the conveying line outside the box and the pipe inlet wheel group inside the box, and the pipe rod passes through the feed hole of the end plate of the box body to arrive in the box, and after entering the inclined conveying wheel group, the upper inclined conveying wheel group presses down to drive the pipe rod to spiral forward, and passes through the external brushing device and the electric heating coil in turn, and the air injection solenoid valve is opened, and a large amount of compressed air passes through the hollow rotating cutter bar, and is ejected from the internal washing steel brush and scraper to blow away the melted crude oil and scraped dirt in the pipe rod, until the entire pipe rod completely passes through the scraper and the internal washing steel brush, and the inclined conveying wheel group reverses to drive the pipe rod to exit the box. It consists of loading and unloading parts, pipe rod driving system, straightening system, knife rod scraping system, induction heating system, induction cooling system, sewage discharge system, purification and dust removal system, and automatic control system.
[0036] The specific implementation of the present application is described in detail below with reference to the accompanying drawings.
[0037] Figure 1 FIG. 1 is a block diagram of an automatic control system for medium frequency heating cleaning of pipe rods according to an exemplary embodiment. Figure 1 As shown, the automatic control system 100 includes: a pipe rod surface state image acquisition module 101, which is used to obtain the inner surface state image and outer surface state diagram of the pipe rod cleaned by medium frequency heating.
[0038] The pipe rod surface state feature extraction module 102 is used to extract features from the inner surface state image and the outer surface state image respectively to obtain a pipe rod inner surface state feature map and a pipe rod outer surface state feature map.
[0039] The pipe rod surface state feature enhancement module 103 is used to input the pipe rod inner surface state feature map and the pipe rod outer surface state feature map into the feature space structure preservation self-attention enhancement module based on cross-channel intersection to obtain an enhanced pipe rod inner surface state feature map and an enhanced pipe rod outer surface state feature map.
[0040] The pipe inner and outer surface state collaborative characterization module 104 is used to perform important feature enhancement fusion processing based on fine-grained feature association mask on the enhanced pipe inner surface state feature map and the enhanced pipe outer surface state feature map to obtain a pipe inner and outer surface state collaborative characterization vector.
[0041] The pipe rod advancing speed recommendation module 105 is used to determine the recommended feeding speed of the pipe rod based on the enhanced pipe rod inner surface state feature vector, the enhanced pipe rod outer surface state feature vector and the pipe rod inner and outer surface state collaborative characterization vector.
[0042] It should be understood that during the medium frequency heating cleaning of the pipe rod, the surface condition of the pipe rod (such as the type and degree of dirt) will directly affect the cleaning effect and the selection of the feed speed. If the feed speed is too fast, it may lead to incomplete cleaning; if the feed speed is too slow, it will increase the cleaning time and energy consumption. Therefore, automatically adjusting the feed speed based on the dirtiness of the pipe rod surface becomes the key to improving the cleaning effect and efficiency.
[0043] Based on this, in the technical solution of the present application, an automatic control system for medium frequency heating and cleaning of pipes and rods is proposed, which can collect the inner surface state image and the outer surface state image of the pipes and rods, and introduce the image processing and analysis algorithm based on artificial intelligence in the back end to perform feature capture and collaborative analysis on the inner surface state image and the outer surface state image of the pipes and rods, so as to extract the collaborative characterization information about the inner and outer surface states of the pipes and rods in the image, and use this information to automatically adjust the feed speed of the pipes and rods during the medium frequency heating and cleaning process. In this way, the feed speed in the medium frequency heating and cleaning process can be adaptively adjusted based on the dirtiness of the inner and outer surfaces of the pipes and rods, thereby realizing a more intelligent and personalized medium frequency heating and cleaning process for pipes and rods, so as to reduce energy consumption while meeting the cleaning needs of the pipes and rods, and avoid damaging the pipes and rods materials.
[0044] Specifically, in the technical solution of the present application, first, the inner surface state image and the outer surface state image of the pipe rod cleaned by medium frequency heating are obtained. In particular, in a specific example of the present application, in the process of collecting the inner surface state image of the pipe rod, the visibility of the inside of the pipe rod can be improved by a high brightness device. In addition, infrared light sources and ultraviolet light sources can also be used for collection, and these light sources help to highlight the state characteristics of the inside of the pipe rod even in insufficient light conditions, and the contrast is not limited to the present application. Then, a convolutional neural network model with excellent performance in implicit feature extraction of images is used to extract and characterize the inner surface state image and the outer surface state image. In particular, considering that the traditional convolutional neural network may lose some important spatial information during the downsampling process, and the traditional convolutional neural network is difficult to utilize the feature information at different levels and scales in the image. Based on this, in the technical solution of the present application, the inner surface state image and the outer surface state image are respectively passed through a pipe rod surface state feature extractor based on a hybrid void pyramid network to obtain a pipe rod inner surface state feature map and a pipe rod outer surface state feature map. The pipe surface state feature extractor based on the hybrid void pyramid network can capture the pipe surface state features at different scales and levels, which is particularly important for processing and understanding the surface state images of pipes, because the distribution and characteristics of dirt may have significant differences at different scales and levels. Through the processing of the pipe surface state feature extractor based on the hybrid void pyramid network, the surface state of the pipe can be understood more comprehensively and meticulously.
[0045] In one embodiment of the present application, the pipe rod surface state feature extraction module is used to: respectively pass the inner surface state image and the outer surface state image through a pipe rod surface state feature extractor based on a hybrid void pyramid network to obtain the pipe rod inner surface state feature map and the pipe rod outer surface state feature map.
[0046] Then, considering that the pipe inner surface state feature map and the pipe outer surface state feature map capture the implicit feature distribution information about the inner surface state and the outer surface state of the pipe respectively, these features not only contain the dirt features and dirt conditions about the inner and outer surface states of the pipe, but also contain some irrelevant background interference and redundant information. Therefore, in the technical solution of the present application, the pipe inner surface state feature map and the pipe outer surface state feature map are further input into the feature space structure preservation self-attention enhancement module based on cross-channel intersection to obtain the enhanced pipe inner surface state feature map and the enhanced pipe outer surface state feature map. Through the processing of the feature space structure preservation self-attention enhancement module based on cross-channel intersection, the spatial structure of the pipe surface state feature can be retained while the feature channel interaction is used to capture the contextual association information between the channel contents, so that the enhanced pipe inner surface state feature map and the enhanced pipe outer surface state feature map after feature enhancement can fuse the channel content association information between the feature structures in the feature space structure unit while retaining the feature space structure of the pipe surface state, so as to take into account the robustness and richness of the pipe surface state feature expression.
[0047] Specifically, the input pipe surface state feature map is firstly subjected to layer normalization to eliminate the scale differences between different layers in the feature map, thus ensuring the stability of feature processing. Then, the channel context association of the normalized pipe surface state feature map is extracted through point convolution processing, and the spatial structure information of the pipe surface state feature map is further captured through convolution coding, providing a basis for self-attention enhancement. After the channel and spatial context information of the pipe surface state feature map is fully extracted, the feature map backup step is introduced to retain the spatial context information of the original pipe surface state feature. Subsequently, the multi-dimensional pipe surface state feature map is converted into a matrix form through feature shape reshaping, and the self-attention mechanism is used to perform feature cross-channel global correlation interaction to quantify the correlation between different channel features in the feature map. The cross-channel cross covariance matrix is then activated using the Softmax function to generate the feature global interaction attention matrix, so that the key features and semantic information in the pipeline surface state are effectively highlighted through the Softmax function. Next, the product of the backup space context association representation feature matrix of the pipe rod surface state and the feature global interaction attention matrix of the pipe rod surface state is calculated to obtain the pipe rod surface state attention enhancement feature representation matrix. Finally, the feature shape of the pipe rod surface state attention enhancement feature representation matrix is reshaped and restored to the form of feature map, completing the final enhancement of the feature.
[0048] In one embodiment of the present application, the pipe rod surface state feature enhancement module includes: a layer normalization unit, which is used to perform layer normalization on the pipe rod inner surface state feature map to obtain a normalized pipe rod inner surface state feature map; a point convolution processing unit, which is used to perform point convolution processing on the normalized pipe rod inner surface state feature map to obtain a pipe rod inner surface state channel context association representation feature map; a convolution encoding unit, which is used to perform convolution encoding on the pipe rod inner surface state channel context association representation feature map to obtain a pipe rod inner surface state space context association representation feature map; a feature map copying unit, which is used to copy the pipe rod inner surface state space context association representation feature map to obtain a pipe rod inner surface state backup space context association representation feature map; a first feature shape reshaping unit, which is used to perform feature shape reshaping on the pipe rod inner surface state channel context association representation feature map, the pipe rod inner surface state space context association representation feature map and the pipe rod inner surface state backup space context association representation feature map to obtain a pipe rod inner surface state channel context association representation feature map, the pipe rod inner surface state space context association representation feature map and the pipe rod inner surface state backup space context association representation feature map to obtain a pipe rod inner surface state channel context association representation feature map, the pipe rod inner surface state space context association representation feature map and the pipe rod inner surface state backup space context association representation feature map. A state channel context association representation feature matrix, a tube inner surface state space context association representation feature matrix and a tube inner surface state backup space context association representation feature matrix; a covariance matrix calculation unit, used to calculate the tube inner surface state cross-channel cross covariance matrix between the tube inner surface state channel context association representation feature matrix and the tube inner surface state space context association representation feature matrix; an activation unit, used to activate the tube inner surface state cross-channel cross covariance matrix using a Softmax function to obtain a tube inner surface state feature global interactive attention matrix; a matrix calculation unit, used to calculate the product between the tube inner surface state backup space context association representation feature matrix and the tube inner surface state feature global interactive attention matrix to obtain a tube inner surface state attention enhancement feature representation matrix; a second feature shape reshaping unit, used to perform feature shape reshaping on the tube inner surface state attention enhancement feature representation matrix to obtain the enhanced tube inner surface state feature map.
[0049] Furthermore, in one embodiment of the present application, the covariance matrix calculation unit is used to: calculate the matrix multiplication between the channel context association representation feature matrix of the tube inner surface state and the spatial context association representation feature matrix of the tube inner surface state to obtain the tube inner surface state channel-space context association feature matrix; divide the tube inner surface state channel-space context association feature matrix by the hyperparameter by position to obtain the cross-channel cross-covariance matrix of the tube inner surface state.
[0050] Specifically, the pipe rod inner surface state feature map is input into the feature space structure-preserving self-attention enhancement module based on cross-channel intersection and processed by the following self-attention enhancement formula to obtain the enhanced pipe rod inner surface state feature map; wherein the self-attention enhancement formula is: ;in, is the characteristic diagram of the inner surface state of the pipe rod, Indicates the layer normalization operation on the feature map. is the normalized characteristic map of the inner surface state of the pipe rod, is the point convolution operation, It is the context association representation feature map of the inner surface state channel of the pipe rod. The convolution kernel is The dilated convolution operation, is the context-related representation feature map of the inner surface state space of the pipe rod, For copy operation, The feature map of the backup space context association representation of the inner surface state of the pipe rod is represents the feature shape reshaping process, is the context-related representation feature matrix of the inner surface state channel of the pipe rod, is the feature matrix of the state space context association representation of the inner surface of the pipe rod, The backup space context association representation feature matrix for the inner surface state of the pipe rod is: is matrix multiplication, is a hyperparameter, for Activation function, is the global interactive attention matrix of the inner surface state features of the pipe rod, This is a characteristic diagram of the inner surface state of the enhanced pipe rod.
[0051] Furthermore, the enhanced pipe inner surface state feature map and the enhanced pipe outer surface state feature map are subjected to global mean pooling to obtain the enhanced pipe inner surface state feature vector and the enhanced pipe outer surface state feature vector. Global mean pooling can effectively extract global information from the feature map and reduce the dimension of the feature map. By calculating the average value of the entire feature map, an overall description of the inner and outer surface states of the pipe can be obtained, thereby avoiding the noise influence that may be caused by local features, and at the same time can help reduce the complexity of calculation and improve the generalization ability of the model.
[0052] It should be understood that the enhanced inner surface state feature vector of the pipe rod and the enhanced outer surface state feature vector of the pipe rod respectively contain the feature information of the inner and outer surface states of the pipe rod after feature enhancement expression and dimension reduction. These two features have complementary information, which is very important for understanding the surface state of the pipe rod and for subsequent cleaning control. Therefore, in the technical solution of the present application, the enhanced inner surface state feature vector of the pipe rod and the enhanced outer surface state feature vector of the pipe rod are further processed by an attention differentiation fusion device based on a fine-grained feature association mask to obtain a collaborative representation vector of the inner and outer surface states of the pipe rod. Through the processing of the attention differentiation fusion device based on a fine-grained feature association mask, the semantics and interactions of the surface states inside and outside the pipe rod can be finely associated and analyzed, so as to realize adaptive weight distribution in the subsequent fusion process, realize the effective integration between the enhanced inner surface state feature vector of the pipe rod and the enhanced outer surface state feature vector of the pipe rod, so as to improve the expression ability of the inner and outer state features of the pipe rod, thereby more accurately reflecting the actual cleaning requirements of the pipe rod, and facilitating the subsequent fine control of the medium frequency heating cleaning of the pipe rod.
[0053] In one embodiment of the present application, the pipe rod inner and outer surface state collaborative representation module includes: a pipe rod surface state feature dimensionality reduction unit, which is used to perform global mean pooling on the enhanced pipe rod inner surface state feature map and the enhanced pipe rod outer surface state feature map to obtain an enhanced pipe rod inner surface state feature vector and an enhanced pipe rod outer surface state feature vector; a fine-grained key feature attention fusion unit, which is used to fuse the enhanced pipe rod inner surface state feature vector and the enhanced pipe rod outer surface state feature vector through an attention differentiation fusion based on a fine-grained feature association mask to obtain the pipe rod inner and outer surface state collaborative representation vector.
[0054] Specifically, the global eigenvalue association matrix between the enhanced inner surface state eigenvector of the pipe rod and the enhanced outer surface state eigenvector is first calculated to quantify the interaction and correlation between the two eigenvectors, providing a basis for the subsequent adaptive weight allocation. This step establishes a global relationship model between the inner and outer surface state eigenvectors of the pipe rod, which is the basis of the entire fusion process. Subsequently, the global eigenvalue association matrix of the inner and outer surface states of the pipe rod is input into a learnable gating function, which can learn and output a weight matrix that can distinguish the correlation between the inner and outer states of the pipe rod. The introduction of the gating mechanism enables the model to dynamically adjust the weights between the eigenvalues of the inner and outer surface states of the pipe rod, realize feature selection and enhancement, and highlight important features and suppress unimportant features. This step is the key to achieving distinguishing and enhancing the eigenvectors. Through the self-learning ability of the gating function, the model can adaptively adjust the weights between the inner and outer surface state features of the pipe rod. Next, the obtained weight matrix is used as a fusion mask matrix, and the matrix product operation is performed with the enhanced inner surface state eigenvector of the pipe rod and the enhanced outer surface state eigenvector of the pipe rod to obtain the distinguishing and enhancing eigenvector. This step achieves the differentiation and enhancement of the feature vectors through the weighting of the mask matrix, further highlighting the key information in the feature vectors. The application of the fusion mask matrix of the inner and outer surface states of the pipe rod not only considers the relative importance between the feature vectors of the inner and outer surface states of the pipe rod, but also considers the contribution of each element within the two feature vectors, so that the enhanced feature vector can more comprehensively reflect the characteristics of the original data. Finally, the differentiated and enhanced feature vector of the inner and outer surface states of the pipe rod and the feature vector of the outer surface state of the pipe rod are fused to obtain the final collaborative representation vector of the inner and outer surface states of the pipe rod. This step integrates the useful information in the feature vectors of the inner and outer surface states of the pipe rod, forming a richer and more discriminative feature representation, and enhances the model's understanding and processing capabilities of the complex semantics of the inner and outer surface states of the pipe rod.
[0055] In one embodiment of the present application, the fine-grained key feature attention fusion unit includes: a global eigenvalue association matrix calculation subunit, which is used to calculate the global eigenvalue association matrix between the enhanced pipe inner surface state eigenvector and the enhanced pipe outer surface state eigenvector to obtain the global eigenvalue association matrix of the pipe inner and outer surface states; a gating function calculation subunit, which is used to input the global eigenvalue association matrix of the pipe inner and outer surface states into a learnable gating function to obtain a distinguishable weight matrix of the correlation between the pipe inner and outer surface states; a distinguishable weight matrix calculation subunit, which is used to use the distinguishable weight matrix of the correlation between the pipe inner and outer surface states as a fusion mask matrix, and respectively calculate the matrix product between the enhanced pipe inner surface state eigenvector and the enhanced pipe outer surface state eigenvector and the distinguishable weight matrix of the correlation between the pipe inner and outer surface states to obtain a distinguished enhanced pipe inner surface state eigenvector and a distinguished enhanced pipe outer surface state eigenvector; a vector fusion subunit, which is used to fuse the distinguished enhanced pipe inner surface state eigenvector and the distinguished enhanced pipe outer surface state eigenvector to obtain a collaborative representation vector of the pipe inner and outer surface states.
[0056] Further, in one embodiment of the present application, the gated function calculation subunit is used to: use the negative number of the eigenvalue at each position in the global eigenvalue association matrix of the inner and outer surface states of the pipe as the exponential power, calculate the natural exponential function value with the natural constant e as the base to obtain the global eigenvalue association class support matrix of the inner and outer surface states of the pipe; calculate the reciprocal of the sum of the eigenvalue at each position in the global eigenvalue association class support matrix of the inner and outer surface states of the pipe and the constant 1 to obtain the global eigenvalue association weight matrix of the inner and outer surface states of the pipe; calculate the position point multiplication between the global eigenvalue association weight matrix of the inner and outer surface states of the pipe and the global eigenvalue association matrix of the inner and outer surface states of the pipe to obtain the correlation distinguishable weight matrix of the inner and outer surface states of the pipe.
[0057] Specifically, the enhanced pipe rod inner surface state feature vector and the enhanced pipe rod outer surface state feature vector are processed by the attention differentiation fuser based on the fine-grained feature association mask using the following attention differentiation fusion formula to obtain the collaborative representation vector of the inner and outer surface states of the pipe rod; wherein the attention differentiation fusion formula is: ;in, and are the inner surface state characteristic vector of the strengthened pipe rod and the outer surface state characteristic vector of the strengthened pipe rod, respectively, represents the transposed vector of a vector, is the global eigenvalue correlation matrix of the inner and outer surface states of the pipe rod, For The exponential operation with base , is the global eigenvalue correlation weight matrix of the inner and outer surface states of the pipe rod, is the distinguishable weight matrix of the correlation between the inner and outer surface states of the pipe rod, and are the characteristic vectors for distinguishing the inner surface state of the strengthened pipe rod and the characteristic vectors for distinguishing the outer surface state of the strengthened pipe rod, is the cascade operation of vectors, is a collaborative characterization vector of the inner and outer surface states of the pipe rod.
[0058] Then, the enhanced inner surface state feature vector of the pipe rod, the enhanced outer surface state feature vector of the pipe rod and the collaborative characterization vector of the inner and outer surface states of the pipe rod are cascaded to obtain a multi-dimensional representation vector of the pipe rod dirt, and the multi-dimensional representation vector of the pipe rod dirt is input into the pipe rod feed speed recommender based on the decoder to obtain a pipe rod feed speed recommendation decoding value. In other words, the collaborative interaction semantics between the inner surface state feature of the pipe rod, the outer surface state feature of the pipe rod and the inner and outer surface states of the pipe rod are integrated, which helps to capture multiple aspects of the dirt state of the inner and outer surfaces of the pipe rod, thereby providing richer feature information, which is conducive to improving the model's recognition and processing capabilities for complex pipe rod surface conditions. Then, the integrated feature information is used for decoding regression, so as to automatically adjust the feed speed of the pipe rod during the medium frequency heating cleaning process of the pipe rod. In this way, the feed speed in the medium frequency heating cleaning process can be adaptively adjusted based on the dirt conditions of the inner and outer surfaces of the pipe rod, thereby realizing a more intelligent and personalized medium frequency heating cleaning process for the pipe rod, so as to reduce energy consumption while meeting the cleaning needs of the pipe rod, and avoid damaging the pipe rod material.
[0059] In one embodiment of the present application, the pipe rod advancement speed recommendation module is used to: cascade the enhanced pipe rod inner surface state feature vector, the enhanced pipe rod outer surface state feature vector and the pipe rod inner and outer surface state collaborative characterization vector to obtain a pipe rod dirt multi-dimensional representation vector; input the pipe rod dirt multi-dimensional representation vector into a decoder-based pipe rod feed speed recommender to obtain a pipe rod feed speed recommended decoded value.
[0060] Taking into account that the enhanced pipe inner surface state feature vector and the enhanced pipe outer surface state feature vector respectively express the image semantic space distribution channel cross-structure self-attention features of the inner surface state image of the cleaned pipe and the outer surface state image, the collaborative representation vector of the inner and outer surface states of the pipe will have a fine-grained feature association attention difference relative to the semantic features of the image to be fused, so that the cascaded pipe dirt multi-dimensional representation vector will also cause feature aggregation coverage deviation due to the difference in image semantic set distribution. It is expected to further improve the multi-scale image semantic aggregation regression comprehensibility of the pipe dirt multi-dimensional representation vector, thereby improving the accuracy of the pipe feed speed recommendation decoding value obtained by inputting the decoder-based pipe feed speed recommender.
[0061] In a preferred embodiment, inputting the pipe rod dirt multidimensional representation vector into a decoder-based pipe rod feeding speed recommender to obtain a pipe rod feeding speed recommended decoded value includes: subtracting the zero norm of the pipe rod dirt multidimensional representation vector from the length of the pipe rod dirt multidimensional representation vector to obtain a pipe rod dirt multidimensional isolated representation value; calculating the logarithm of the square of the pipe rod dirt multidimensional isolated representation value and the sum of the pipe rod dirt multidimensional isolated representation value with base 2 to obtain a pipe rod dirt multidimensional representation information order value; calculating a power function with each eigenvalue of the pipe rod dirt multidimensional representation vector as the base and the difference of the pipe rod dirt multidimensional isolated representation value minus one as the exponent, and performing a point multiplication with the pipe rod dirt multidimensional representation information order value to obtain the pipe rod dirt A multi-dimensional representation guide vector; after performing a dot multiplication on the difference between the pipe-rod dirt multi-dimensional representation vector and the pipe-rod dirt multi-dimensional isolated representation value minus one, the dot multiplication is performed on the dot multiplication with the reciprocal of the pipe-rod dirt multi-dimensional isolated representation value to obtain a pipe-rod dirt multi-dimensional representation field constraint vector; an exponential function is calculated with a natural constant as the base, and each eigenvalue of the pipe-rod dirt multi-dimensional representation field constraint vector is exponentially obtained to obtain a pipe-rod dirt multi-dimensional representation field bias vector; the pipe-rod dirt multi-dimensional representation guide vector is dot-added with the pipe-rod dirt multi-dimensional representation field bias vector to obtain an optimized pipe-rod dirt multi-dimensional representation vector; the optimized pipe-rod dirt multi-dimensional representation vector is input into a decoder-based pipe-rod feed speed recommender to obtain a pipe-rod feed speed recommended decoded value.
[0062] Specifically, the pipe rod dirt multi-dimensional representation vector is, for example, The optimization process is expressed as: ;in, represents the multi-dimensional representation vector of the pipe rod dirt, represents the zero norm of a vector, represents the length of the multidimensional representation vector of the pipe rod dirt, Indicates the multi-dimensional isolated representation value of the pipe rod dirt, It is the point multiplication by position. is added by position, A power function whose exponent is the difference between the multi-dimensional isolated representation value of the pipe rod dirt and one is used as the exponent of the calculation of the eigenvalues of each position in the eigenvector, Represents the optimized multi-dimensional representation vector of pipe rod dirt.
[0063] Therefore, for the high-dimensional feature manifold of the pipe-rod dirt multidimensional representation vector, the eigenvalues of the feature set are used as the vector field representation of the aggregation dimension, and the superposition value of the vector field of the pipe-rod dirt multidimensional representation vector at the isolated zero position is used as the order information to fix the local position of the eigenvalue of the feature set, and a bias for the reversibility of the feature regression distribution field of the pipe-rod dirt multidimensional representation vector is added as a reward to achieve the mapping target tracking of the regression distribution of the pipe-rod dirt multidimensional representation vector for the eigenvalue position, so that the feature set of the pipe-rod dirt multidimensional representation vector can perceive the mapping migration to the aggregate distribution, thereby improving the accuracy of the pipe-rod feed speed recommendation decoding value obtained by the pipe-rod feed speed recommender based on the decoder input by the pipe-rod dirt multidimensional representation vector by improving the aggregate mapping regression comprehensibility of the pipe-rod dirt multidimensional representation vector. In this way, the feed speed during the medium frequency heating cleaning process can be adjusted more accurately based on the dirtiness of the inner and outer surfaces of the pipe rod, thereby achieving a more intelligent and personalized medium frequency heating cleaning process for the pipe rod, so as to reduce energy consumption while meeting the pipe rod cleaning needs and avoid damaging the pipe rod material.
[0064] In summary, the above scheme is adopted to collect the inner surface state image and the outer surface state image of the pipe rod, and introduce the image processing and analysis algorithm based on artificial intelligence in the back end to perform feature capture and collaborative analysis on the inner surface state image and the outer surface state image of the pipe rod, so as to extract the collaborative characterization information about the inner and outer surface states of the pipe rod in the image, and use this information to automatically adjust the feed speed of the pipe rod during the medium frequency heating and cleaning process. In this way, the feed speed in the medium frequency heating and cleaning process can be adaptively adjusted based on the dirtiness of the inner and outer surfaces of the pipe rod, thereby realizing a more intelligent and personalized medium frequency heating and cleaning process for the pipe rod, so as to reduce energy consumption while meeting the cleaning needs of the pipe rod, and avoid damaging the pipe rod material.
[0065] Figure 2 is a flow chart showing an automatic control method for medium frequency heating cleaning of pipe rods according to an exemplary embodiment. Figure 2 As shown, the method includes: step S201, obtaining an inner surface state image and an outer surface state image of the pipe rod cleaned by medium frequency heating.
[0066] Step S202: extract features from the inner surface state image and the outer surface state image respectively to obtain a pipe rod inner surface state feature map and a pipe rod outer surface state feature map.
[0067] Step S203: input the pipe rod inner surface state feature map and the pipe rod outer surface state feature map into a feature space structure preserving self-attention enhancement module based on cross-channel intersection to obtain an enhanced pipe rod inner surface state feature map and an enhanced pipe rod outer surface state feature map.
[0068] Step S204: performing important feature enhancement fusion processing based on fine-grained feature association mask on the enhanced pipe rod inner surface state feature map and the enhanced pipe rod outer surface state feature map to obtain a collaborative representation vector of the inner and outer surface states of the pipe rod.
[0069] Step S205: determining a recommended feeding speed of the pipe rod based on the enhanced pipe rod inner surface state feature vector, the enhanced pipe rod outer surface state feature vector and the pipe rod inner and outer surface state collaborative characterization vector.
[0070] In one embodiment of the present application, feature extraction is performed on the inner surface state image and the outer surface state image respectively to obtain a pipe inner surface state feature map and a pipe outer surface state feature map, including: passing the inner surface state image and the outer surface state image respectively through a pipe surface state feature extractor based on a hybrid void pyramid network to obtain the pipe inner surface state feature map and the pipe outer surface state feature map.
[0071] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present application. The terminal device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0072] like Figure 3As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0073] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0074] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
[0075] It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0076] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0077] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0078] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0079] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0080] The modules involved in the embodiments described in this application can be implemented by software or hardware. The name of the module does not limit the module itself in some cases. For example, the test parameter acquisition module can also be described as a "module for acquiring device test parameters corresponding to the target device".
[0081] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0082] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0083] Figure 4 FIG. 1 is an application scenario diagram of an automatic control system for medium frequency heating cleaning of pipe rods according to an exemplary embodiment. Figure 4 As shown, in this application scenario, first, an image of the inner surface state of the pipe rod being cleaned by medium frequency heating is obtained (for example, Figure 4 C1) and external surface state images (e.g. Figure 4 Then, the acquired inner surface state image and outer surface state image are input to a server (for example, Figure 4 In S) as shown in , the server is capable of processing the inner surface state image and the outer surface state image based on an automatic control algorithm for medium frequency heating cleaning of pipe rods to determine a recommended feeding speed of the pipe rod.
[0084] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
[0085] In addition, although each operation is described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the application. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0086] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely exemplary forms of implementation. With respect to the apparatus in the above-mentioned embodiments, the specific manner in which each module performs the operation has been described in detail in the embodiments related to the method, and will not be described in detail here.
Claims
1. An automatic control system for medium frequency heating cleaning of pipes and rods, It is characterized in that include: The pipe rod surface state image acquisition module is used to obtain the inner surface state image and the outer surface state image of the pipe rod cleaned by medium frequency heating; A pipe rod surface state feature extraction module is used to extract features from the inner surface state image and the outer surface state image respectively to obtain a pipe rod inner surface state feature map and a pipe rod outer surface state feature map; a pipe rod surface state feature enhancement module is used to input the pipe rod inner surface state feature map and the pipe rod outer surface state feature map into a feature space structure preservation self-attention enhancement module based on cross-channel intersection to obtain an enhanced pipe rod inner surface state feature map and an enhanced pipe rod outer surface state feature map; a pipe rod inner and outer surface state collaborative characterization module is used to perform important feature enhancement fusion processing based on fine-grained feature association mask on the enhanced pipe rod inner surface state feature map and the enhanced pipe rod outer surface state feature map to obtain a pipe rod inner and outer surface state collaborative characterization vector; a pipe rod advancing speed recommendation module is used to determine a recommended feeding speed of the pipe rod based on the enhanced pipe rod inner surface state feature vector, the enhanced pipe rod outer surface state feature vector and the pipe rod inner and outer surface state collaborative characterization vector.
2. The automatic control system for medium frequency heating and cleaning of pipes and rods according to claim 1, It is characterized in that The pipe rod surface state feature extraction module is used to: respectively pass the inner surface state image and the outer surface state image through a pipe rod surface state feature extractor based on a hybrid void pyramid network to obtain the pipe rod inner surface state feature map and the pipe rod outer surface state feature map.
3. The automatic control system for medium frequency heating and cleaning of pipes and rods according to claim 2, It is characterized in that The pipe rod surface state feature enhancement module includes: a layer normalization unit, which is used to perform layer normalization on the pipe rod inner surface state feature map to obtain a normalized pipe rod inner surface state feature map; a point convolution processing unit, which is used to perform point convolution processing on the normalized pipe rod inner surface state feature map to obtain a pipe rod inner surface state channel context association representation feature map; a convolution encoding unit, which is used to perform convolution encoding on the pipe rod inner surface state channel context association representation feature map to obtain a pipe rod inner surface state space context association representation feature map; a feature map copying unit, which is used to copy the pipe rod inner surface state space context association representation feature map to obtain a pipe rod inner surface state backup space context association representation feature map; a first feature shape reshaping unit, which is used to perform feature shape reshaping on the pipe rod inner surface state channel context association representation feature map, the pipe rod inner surface state space context association representation feature map and the pipe rod inner surface state backup space context association representation feature map to obtain a pipe rod inner surface state channel upper and lower context association representation feature map; A context-related representation feature matrix, a pipe inner surface state space context-related representation feature matrix and a pipe inner surface state backup space context-related representation feature matrix; a covariance matrix calculation unit, used to calculate the pipe inner surface state cross-channel cross covariance matrix between the pipe inner surface state channel context-related representation feature matrix and the pipe inner surface state space context-related representation feature matrix; an activation unit, used to activate the pipe inner surface state cross-channel cross covariance matrix using a Softmax function to obtain a pipe inner surface state feature global interactive attention matrix; a matrix calculation unit, used to calculate the product between the pipe inner surface state backup space context-related representation feature matrix and the pipe inner surface state feature global interactive attention matrix to obtain a pipe inner surface state attention enhancement feature representation matrix; a second feature shape reshaping unit, used to perform feature shape reshaping on the pipe inner surface state attention enhancement feature representation matrix to obtain the enhanced pipe inner surface state feature map.
4. The automatic control system for medium frequency heating and cleaning of pipes and rods according to claim 3, It is characterized in that The covariance matrix calculation unit is used to: calculate the matrix multiplication between the pipe rod inner surface state channel context association representation feature matrix and the pipe rod inner surface state space context association representation feature matrix to obtain the pipe rod inner surface state channel-space context association feature matrix; The channel-space contextual feature matrix of the inner surface state of the pipe rod is divided by the hyperparameter by position to obtain the cross-channel cross-covariance matrix of the inner surface state of the pipe rod.
5. The automatic control system for medium frequency heating and cleaning of pipes and rods according to claim 4, It is characterized in that The pipe rod inner and outer surface state collaborative representation module includes: a pipe rod surface state feature dimensionality reduction unit, which is used to perform global mean pooling on the enhanced pipe rod inner surface state feature map and the enhanced pipe rod outer surface state feature map to obtain an enhanced pipe rod inner surface state feature vector and an enhanced pipe rod outer surface state feature vector; a fine-grained key feature attention fusion unit, which is used to fuse the enhanced pipe rod inner surface state feature vector and the enhanced pipe rod outer surface state feature vector through an attention differentiation fusion based on a fine-grained feature association mask to obtain the pipe rod inner and outer surface state collaborative representation vector.
6. The automatic control system for medium frequency heating and cleaning of pipes and rods according to claim 5, It is characterized in that The fine-grained key feature attention fusion unit includes: a global eigenvalue association matrix calculation subunit, which is used to calculate the global eigenvalue association matrix between the enhanced pipe inner surface state eigenvector and the enhanced pipe outer surface state eigenvector to obtain the global eigenvalue association matrix of the pipe inner and outer surface states; a gating function calculation subunit, which is used to input the global eigenvalue association matrix of the pipe inner and outer surface states into a learnable gating function to obtain a distinguishable weight matrix of the correlation between the pipe inner and outer surface states; a distinguishable weight matrix calculation subunit, which is used to use the distinguishable weight matrix of the correlation between the pipe inner and outer surface states as a fusion mask matrix, and respectively calculate the matrix product between the enhanced pipe inner surface state eigenvector and the enhanced pipe outer surface state eigenvector and the distinguishable weight matrix of the correlation between the pipe inner and outer surface states to obtain a distinguished enhanced pipe inner surface state eigenvector and a distinguished enhanced pipe outer surface state eigenvector; a vector fusion subunit, which is used to fuse the distinguished enhanced pipe inner surface state eigenvector and the distinguished enhanced pipe outer surface state eigenvector to obtain a collaborative representation vector of the pipe inner and outer surface states.
7. The automatic control system for medium frequency heating and cleaning of pipes and rods according to claim 6, It is characterized in that The gate function calculation subunit is used to: use the negative number of the eigenvalues at each position in the global eigenvalue association matrix of the inner and outer surface states of the pipe rod as the exponential power, calculate the natural exponential function value with the natural constant e as the base to obtain the global eigenvalue association class support matrix of the inner and outer surface states of the pipe rod; Calculate the reciprocal of the sum of the eigenvalues of each position in the global eigenvalue association class support matrix of the inner and outer surface states of the pipe rod and the constant 1 to obtain the global eigenvalue association weight matrix of the inner and outer surface states of the pipe rod; The correlation distinguishable weight matrix of the inner and outer surface states of the pipe rod is obtained by calculating the point-by-point multiplication between the global eigenvalue association weight matrix of the inner and outer surface states of the pipe rod and the global eigenvalue association matrix of the inner and outer surface states of the pipe rod.
8. The automatic control system for medium frequency heating and cleaning of pipes and rods according to claim 7, It is characterized in that The pipe rod advancement speed recommendation module is used to: cascade the enhanced pipe rod inner surface state feature vector, the enhanced pipe rod outer surface state feature vector and the pipe rod inner and outer surface state collaborative characterization vector to obtain a pipe rod dirt multi-dimensional representation vector; input the pipe rod dirt multi-dimensional representation vector into a decoder-based pipe rod feeding speed recommender to obtain a pipe rod feeding speed recommended decoding value.
9. An automatic control method for medium frequency heating cleaning of pipes and rods, It is characterized in that include: Acquire the inner surface state image and the outer surface state image of the pipe rod cleaned by medium frequency heating; Feature extraction is performed on the inner surface state image and the outer surface state image respectively to obtain a pipe rod inner surface state feature map and a pipe rod outer surface state feature map; the pipe rod inner surface state feature map and the pipe rod outer surface state feature map are input into a feature space structure-preserving self-attention enhancement module based on cross-channel intersection to obtain an enhanced pipe rod inner surface state feature map and an enhanced pipe rod outer surface state feature map; the enhanced pipe rod inner surface state feature map and the enhanced pipe rod outer surface state feature map are subjected to important feature enhancement fusion processing based on fine-grained feature association mask to obtain a pipe rod inner and outer surface state collaborative characterization vector; based on the enhanced pipe rod inner surface state feature vector, the enhanced pipe rod outer surface state feature vector and the pipe rod inner and outer surface state collaborative characterization vector, a recommended feed speed of the pipe rod is determined.
10. The automatic control method for medium frequency heating cleaning of pipe rods according to claim 9, It is characterized in that Feature extraction is performed on the inner surface state image and the outer surface state image respectively to obtain a pipe inner surface state feature map and a pipe outer surface state feature map, including: the inner surface state image and the outer surface state image are respectively passed through a pipe surface state feature extractor based on a hybrid void pyramid network to obtain the pipe inner surface state feature map and the pipe outer surface state feature map.
Citation Information
Patent Citations
Oil and gas pipeline corrosion detection method based on magnetic stress
CN116309580A
Petroleum pipe rod cleaning knife and cleaning device
CN116851375A
Image processing method, photoetching equipment and computer readable storage medium
CN117237224A
Postoperative nursing management system and method for urinary surgery
CN118521574A
Dynamically scalable and partitioned copy engine
US20220413704A1
