Disclosure of Invention
In order to solve the technical problems, the invention aims to provide a pipe cutting hot melting process quality detection system based on two classifiers, which adopts the following technical scheme:
the first data acquisition unit is used for acquiring the diameter of the pipe orifice of the pipe based on different measurement angles in the current cutting and hot melting operation to obtain a diameter sequence, and obtaining the typical degree of deformation of the pipe orifice of the pipe according to the diameter difference in the diameter sequence; based on the sampling frequency, acquiring a temperature change sequence when the cooling temperature of each region of the pipe orifice reaches a temperature threshold value, respectively calculating a welding cooling coefficient corresponding to each temperature change sequence to obtain a welding cooling coefficient sequence, and obtaining the welding cooling stability of the pipe orifice according to the difference of the welding cooling coefficients in the welding cooling coefficient sequence; acquiring an end face image of a pipe orifice of the pipeline, and acquiring a Fourier descriptor corresponding to the outer contour of the end face according to the end face image;
the second data acquisition unit is used for combining the welding cooling coefficient sequence, the welding cooling stability and the Fourier descriptor to calculate the working special degree of the current cutting hot melting work; forming a low-frequency component in the Fourier descriptor into a pipe orifice end face cutting characteristic under the current cutting and hot melting work; forming the deformation typical degree, the welding cooling stability, the working special case degree and the pipe orifice end face cutting characteristic into a working quality characteristic vector of the current cutting and hot melting work;
the abnormal state detection unit is used for acquiring the working quality feature vectors of a plurality of cutting hot melting works, and clustering all the working quality feature vectors according to the difference between the working special degrees to obtain a normal sample set and an abnormal sample set which are formed by the working quality feature vectors; training the Adaboost two-classifier by using a normal sample set and an abnormal sample set to obtain a strong classifier of the Adaboost two-classifier, and detecting abnormal states of the cutting hot melting work by using the strong classifier.
Further, the method for obtaining the deformation typical degree of the pipe orifice of the pipeline according to the diameter difference in the diameter sequence in the first data acquisition unit comprises the following steps:
and respectively calculating the absolute value of the difference between any two diameters in the diameter sequence, calculating the variance of the absolute value of the difference according to the absolute value of the difference, and taking the variance as the typical degree of the deformation.
Further, the method for obtaining the welding cooling stability of the pipe orifice according to the difference of the welding cooling coefficients in the welding cooling coefficient sequence in the first data acquisition unit includes:
respectively calculating any two of the welding cooling coefficient sequencesCalculating the weld cooling stability based on the ratio between the weld cooling coefficients, wherein the weld cooling stabilityThe calculation formula of (2) is as follows:
wherein,,is a mean function; />As a function of absolute value; />For the +.>A plurality of fusion cooling coefficients; />For the +.>A plurality of fusion cooling coefficients; />Is constant.
Further, the method for obtaining the degree of the working special case in the second data acquisition unit comprises the following steps:
obtaining a standard Fourier descriptor corresponding to the outer contour of the standard end face of the pipe orifice of the pipeline, and calculating the similarity between the Fourier descriptor and the standard Fourier descriptor; obtaining an average welding cooling coefficient and a maximum welding cooling coefficient of the welding cooling coefficient sequence, and obtaining a working special case degree by combining the similarity degree, the average welding cooling coefficient, the maximum welding cooling coefficient and the welding cooling stability, wherein a calculation formula of the working special case degree is as follows:
wherein,,the degree of the working special case is the degree of the working special case; cosine is a Cosine similarity function; mean is the mean function; max is a maximum function; />Is a standard fourier descriptor; />Is the fourier descriptor; />Cooling stability for the weld; />A sequence of cooling coefficients for said fusion.
Further, the method for obtaining the normal sample set and the abnormal sample set in the abnormal state detection unit includes:
respectively calculating the difference value corresponding to the working special case degree in any two working quality feature vectors, taking the difference value as a sample distance, and performing DBSCAN clustering on all the working quality feature vectors based on the sample distance to obtain a plurality of clusters and isolated points;
and forming the working quality feature vectors corresponding to the isolated points into the abnormal sample set, and forming the working quality feature vectors in all the cluster clusters into the normal sample set.
Further, the abnormal state detection unit further includes an optimization for the abnormal sample set, and the optimization method includes:
and counting the working special degree in the abnormal sample set to obtain a median value of the working special degree, obtaining a target working quality characteristic vector corresponding to the working special degree, which is larger than the median value, in the abnormal sample set, randomly combining all elements in the target working quality characteristic vector to obtain a plurality of new working quality characteristic vectors, and putting the new working quality characteristic vectors into the abnormal sample set.
Further, the method for detecting the abnormal state of the cutting hot melting work by using the strong classifier in the abnormal state detection unit comprises the following steps:
respectively acquiring historical response values of a plurality of historical cutting hot melting works according to the strong classifier, and acquiring a response value threshold according to the historical response values;
and respectively acquiring a real-time response value of the real-time cutting and hot melting work and a response value of the continuous K times of cutting and hot melting work before the real-time cutting and hot melting work according to the strong classifier, wherein K is a positive integer, and performing abnormal early warning of the real-time cutting and hot melting work when the real-time response value and the response value are lower than the response value threshold.
The embodiment of the invention has at least the following beneficial effects: acquiring the diameter of a pipe orifice of a pipeline in cutting hot melting work, welding cooling coefficients of all areas and an end face outline to obtain a working quality feature vector of the cutting hot melting work, dividing the working quality feature vector of a plurality of cutting hot melting works into a normal sample and an abnormal sample, and training an Adaboost two classifier to obtain the Adaboost two classifier for intelligently monitoring the working state of the cutting hot melting work; the working quality feature vector of the real-time cutting and hot melting work is used for obtaining the response value of the real-time cutting and hot melting work through the trained Adaboost two classifier, and the abnormal early warning can be rapidly and accurately carried out according to the response value, so that problems can be conveniently and timely found out, the auxiliary effect of the cutting and hot melting work is achieved, and the quality of the cutting and hot melting process is improved.
Detailed Description
In order to further describe the technical means and effects adopted by the invention to achieve the preset aim, the following is a detailed description of specific implementation, structure, characteristics and effects of the pipe cutting hot melting process quality detection system based on two classifiers according to the invention with reference to the accompanying drawings and the preferred embodiment. In the following description, different "one embodiment" or "another embodiment" means that the embodiments are not necessarily the same. Furthermore, the particular features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The invention provides a concrete scheme of a pipe cutting hot melting process quality detection system based on two classifiers, which is specifically described below with reference to the accompanying drawings.
Referring to fig. 1, a block diagram of a pipe cutting hot melting process quality detection system based on two classifiers according to an embodiment of the present invention is shown, where the system includes: a first data acquisition unit 10, a second data acquisition unit 20, and an abnormal state detection unit 30.
The first data acquisition unit 10 is used for acquiring the diameter of the pipe orifice of the pipe based on different measurement angles in the current cutting and hot melting operation to obtain a diameter sequence, and obtaining the typical deformation degree of the pipe orifice of the pipe according to the diameter difference in the diameter sequence; based on the sampling frequency, acquiring a temperature change sequence when the cooling temperature of each region of the pipe orifice reaches a temperature threshold value, respectively calculating a welding cooling coefficient corresponding to each temperature change sequence to obtain a welding cooling coefficient sequence, and obtaining the welding cooling stability of the pipe orifice according to the difference of the welding cooling coefficients in the welding cooling coefficient sequence; and acquiring an end face image of the pipe orifice of the pipe, and acquiring a Fourier descriptor corresponding to the outer contour of the end face according to the end face image.
Specifically, because the pipeline is when being clamped by the clamp, the deformation of the pipe orifice can be caused due to overlarge clamping force, thereby affecting the butt joint precision of the pipeline, the deformation information of the pipe orifice of the pipeline in the cutting hot melting work is acquired, and the acquisition method of the deformation information is as follows: because the pipeline is when being held by anchor clamps, the orificial diameter of pipeline can embody its deformation, consequently this scheme gathers direct measurement method, utilizes line scanning laser rangefinder to carry out direct measurement to the orificial diameter of pipeline, and carries out diameter measurement along the orificial different angles of pipeline to constitute diameter sequence D with the diameter under the different measurement angles.
It should be noted that, because the line scanning laser ranging device is widely applied in industrial machine vision, the process of how the line scanning laser ranging device obtains the diameter of the pipe orifice in the scheme is not repeated.
And respectively calculating the absolute value of the difference between any two diameters in the diameter sequence D, calculating the variance of the absolute value of the difference according to the absolute value of the difference, and taking the variance as the deformation typical degree P of the pipe orifice of the pipeline.
Because water possibly remains at the lower part of the water pipe, the water absorbs heat during hot melting, the welding cooling time of the lower part of the pipe is faster than that of other parts, and then the false welding condition of false welding caused by insufficient welding time can occur, and water leakage can be caused during later use; and the cooling time of the pipeline hot melt surface is too fast in winter, the phenomenon that the joint of the two pipe surfaces is not completely welded and is cooled can occur, and the condition of false welding and false welding of the pipeline can also occur, so that the cooling time of the pipeline is analyzed to determine the welding condition in the cutting hot melt work.
The scheme is used for collecting cooling time, the point type infrared thermometer is used for collecting cooling time, and after heating of the pipe orifice of the pipeline is completed from the heating plate, the temperature of the pipe orifice of the pipeline is detected. And setting a cooling temperature threshold, and considering that the welding is completed when the cooling temperature reaches the temperature threshold.
And taking 0.1S as sampling frequency, acquiring a temperature composition temperature change sequence M at each sampling moment based on the sampling frequency in the process that the cooling temperature of the current area of the pipe orifice of the pipe reaches a temperature threshold value, and acquiring the temperature change sequence of each area of the pipe orifice of the pipe in the same way.
And calculating the temperature difference value of each temperature change sequence by using a range function, and taking the temperature difference value as a welding cooling coefficient of a corresponding region of the pipe orifice of the pipeline to form a welding cooling coefficient sequence V.
Under normal conditions, the welding cooling coefficient of the welding cooling device can be stabilized at a value, if the welding cooling coefficient is smaller than the steady state, the abnormal operation of the welding cooling device can be described to a certain extent, and the abnormal appearance of the form is possible at the moment, so that the quality of the hot-melting butt joint of the whole pipeline is affected, and the welding cooling stability of the pipe orifice of the pipeline is obtained according to the difference of the welding cooling coefficients in the welding cooling coefficient sequence, and the obtaining method of the welding cooling stability is as follows: calculating the ratio between any two welding cooling coefficients in the welding cooling coefficient sequence, and calculating the welding cooling stability of the pipe orifice of the pipeline based on the ratio, wherein the welding cooling stabilityThe calculation formula of (2) is as follows:
wherein,,for averaging functions, for obtaining processed dataAverage size; />The absolute value function is used for taking the processed data to a non-negative interval; />For welding cooling coefficient sequences +.>A plurality of fusion cooling coefficients;for welding cooling coefficient sequences +.>A plurality of fusion cooling coefficients; />Is constant.
When the two welding cooling coefficients are the same, the index obtained by processing is 1, if the two welding cooling coefficients are not equal, the index is smaller than 1, and the stability of welding cooling can be directly judged through the size of an index function; when the average size after processing in the whole record is 1, that isAt a value of 1, it is indicated that the weld cooling coefficient sequence does not fluctuate, i.e., it is stable.
Since milling is an important step of hot melting, the end face is required to be flat, smooth and vertical after milling, otherwise, the butt joint precision of the pipe orifice during hot melting is affected. However, when the temperature in winter is extremely low and the pipe reaches a brittle point, the milling cutter is used for milling, so that the pipe is easy to crack, the hot melting effect is affected at the moment, when the temperature in summer is extremely hot, the pipe is possibly softened, when the clamp clamps the pipe, the clamping part possibly causes insufficient roundness of the pipe orifice due to the generated deformation, and the butt joint precision of the pipe orifice hot melting is also affected, so that the cutting surface information of the pipe orifice of the pipeline in the hot melting cutting work is required to be obtained.
The method comprises the steps of collecting cutting surface information by using an industrial camera shooting mode, namely shooting an end surface of a pipe orifice of a pipe to obtain an end surface image of the pipe orifice of the pipe, performing binary segmentation on the end surface image by using a conventional machine vision technology to obtain an end surface outline of the pipe orifice of the pipe, and analyzing frequency components of the outline by using a Fourier descriptor based on the end surface outline to obtain a Fourier descriptor F of the end surface outline.
The diameter sequence D, the deformation typical degree P, the welding cooling coefficient sequence V and the welding cooling stability of a pipe orifice in a cutting hot-melting work are adoptedAnd a Fourier descriptor F of the outer contour of the end face form working characteristic data of the cutting hot melting work.
A second data acquisition unit 20 for calculating the degree of working special cases of the current cutting hot-melt work by combining the welding cooling coefficient sequence, the welding cooling stability and the fourier descriptor; the low-frequency component in the Fourier descriptor is formed into a pipe orifice end face cutting characteristic under the current cutting and hot melting work; and forming the deformation typical degree, welding cooling stability, working special case degree and pipe orifice end face cutting characteristics into a working quality characteristic vector of the current cutting and hot melting work.
Specifically, when the cutting hot-melting work is abnormal, the external contour of the end face of the pipe orifice of the pipe and the welding cooling coefficient are obviously changed, so that the working special case degree U of the cutting hot-melting work is determined according to the working characteristic data of the cutting hot-melting work, and the method for acquiring the working special case degree U is as follows: obtaining a standard Fourier descriptor corresponding to the outer contour of the standard end face of the pipe orifice of the pipeline by usingThe similarity degree between the Fourier descriptor and the standard Fourier descriptor is calculated through the function; simultaneously obtaining the average fusion cooling coefficient mean (V) and the average fusion cooling coefficient mean (V) of the fusion cooling coefficient sequence VMaximum fusion cooling coefficient max (V), combined with similarity, average fusion cooling coefficient mean (V), maximum fusion cooling coefficient max (V), and fusion cooling stability->And obtaining the working special case degree U corresponding to the cutting and hot melting work.
As an example, the calculation formula of the work special case degree U is:
wherein Cosine is a Cosine similarity function for comparing the degree of similarity between two vectors; mean is the mean function; max is a maximum function;the standard Fourier descriptor is corresponding to the standard end surface outline of the pipe orifice.
It should be noted that, when the fourier descriptor of the cutting and hot melting work is more similar to the standard fourier descriptor, the degree of similarity is larger, and the corresponding degree of working special cases is smaller; when the stability of the cooling temperature of the cutting hot melting work is larger, namely the welding cooling stability is larger, the corresponding working special degree is smaller; when there is a significant difference between the average welding cooling coefficient mean (V) and the maximum welding cooling coefficient max (V) of the welding cooling coefficient series V, then the ratioSmaller and greater the corresponding work specials.
Since the fourier descriptor in the working characteristic data of the cutting hot-melt work contains a relatively large amount of information and part of the information is formed by errors, the high-frequency component of the fourier descriptor is useless, and the fourier descriptor F is processed: extracting low-frequency components in the Fourier descriptor, forming the low-frequency components into a pipe orifice end face cutting feature W under the cutting and hot melting work, and using the low-frequency components to represent the low-frequency components in fewer vectors so as to reduce subsequent calculation amount.
Preferably, the first 5 low frequency components are selected to form the nozzle end face cutting feature W in the embodiment of the present invention due to the variable number of fourier descriptors.
The purpose of using the dimension reduction vector of the fourier descriptor to represent the end face cutting characteristics of the pipe orifice is to reduce the calculation amount when the Adaboost two-classifier is built, improve the judgment performance and avoid the error of end face image acquisition.
The deformation typical degree P of the pipe orifice in the cutting hot melting work and the welding cooling stability are adoptedDegree of work special case->And the pipe orifice end face cutting characteristic W forms a working quality characteristic vector X= { Q, P, U, W } corresponding to the cutting hot melting work.
An abnormal state detection unit 30, configured to obtain a plurality of working quality feature vectors of the cutting and hot melting operation, and cluster all the working quality feature vectors according to differences between the degrees of the working special cases, so as to obtain a normal sample set and an abnormal sample set that are composed of the working quality feature vectors; training the Adaboost two-classifier by using the normal sample set and the abnormal sample set to obtain a strong classifier of the Adaboost two-classifier, and detecting abnormal states of the cutting hot melting work by using the strong classifier.
Specifically, since the abnormal condition of a single cutting and hot-melting work is relatively single and the probability of occurrence of the abnormality is relatively small, the working quality feature vectors X of a plurality of cutting and hot-melting works are obtained by using the methods of step S001 and step S002.
Cutting hot-melting work with similar working states is divided into a group according to the working quality characteristic vector X of each cutting hot-melting work so as to determine a plurality of working states. The dividing method comprises the following steps: respectively calculating any two working qualitiesCorresponding working special case degree in feature vector XTaking the difference value as a sample distance, and performing DBSCAN clustering on all the working quality feature vectors X based on the sample distance, wherein the searching radius eps in the DBSCAN clustering is defaulted to be 0.5, and the minimum value mints in the clusters is set to be 4, so as to obtain a plurality of clustering clusters and isolated points.
In the embodiment of the invention, the working quality feature vectors X corresponding to the isolated points are used as abnormal samples, so that the working quality feature vectors X corresponding to all the isolated points form an abnormal sample set, each working quality feature vector X in the cluster is used as a normal sample, and the working quality feature vectors X in all the cluster form a normal sample set.
And taking the working quality feature vector X as input data of the Adaboost two-classifier, and training the Adaboost two-classifier by utilizing the abnormal sample set and the normal sample set to determine a strong classifier of the Adaboost two-classifier.
Because the number of the abnormal samples is small, the states of all weak classifiers in the Adaboost two classifiers may not be effectively constrained, so that the abnormal sample set is expanded according to the working quality feature vector X in the abnormal sample set: because the abnormal occurrence of the cutting hot melting work can be obviously determined under the condition that the work special degree U is larger, the work special degree U in the abnormal sample set is counted to obtain the median of the work special degreeThen, for the working special cases in the abnormal sample set, the degree is larger than the median +.>The target working quality characteristic vector of the (2) is expanded, namely the deformation typical degree P and welding cooling stability in the target working quality characteristic vector are expanded>Degree of work special case->And the pipe orifice end face cutting feature W is randomly combined to obtain a plurality of new working quality feature vectors, and the new working quality feature vectors are integrated into an abnormal sample set to optimize the abnormal sample set.
According to the strong classifier, historical response values of continuous M historical cutting hot melting works are respectively obtained, M is a positive integer, and a response value threshold is obtained according to the historical response values: the response value of the strong classifier is larger than 0, which indicates that the corresponding working quality feature vector belongs to the feature vector in the normal working state, otherwise, the response value is smaller than 0, which indicates that the corresponding working quality feature vector belongs to the feature vector in the abnormal working state; and calculating the average value of the response values of Top-20% in the M historical response values, and taking the average value of the response values as a response value threshold.
The method comprises the steps of respectively obtaining real-time response values of working quality feature vectors of real-time cutting and hot melting work and response values of the working quality feature vectors of K cutting and hot melting works before the real-time cutting and hot melting work by using a strong classifier, immediately carrying out abnormal early warning of the real-time cutting and hot melting work when the real-time response values and the response values are lower than a response value threshold, and adopting corresponding measures to carry out abnormal confirmation, wherein the method comprises the following specific steps: when the response values of the K cutting hot melting operations are not all smaller than the response value threshold value, an operator is enabled to check the operation effect, but the fact that the problem does exist is not meant; when the response values of the K real-time cutting and hot melting operations are smaller than the threshold value of the response values, the occurrence of problems is confirmed, and the pipeline is directly treated as waste.
It should be noted that, based on the logic of abnormal confirmation, an operator can combine the site situation, determine whether the cutting hot melting is abnormal or nearly abnormal based on the output result of the Adaboost two-classifier, so that energy is saved in the repeated cutting hot melting process operation process, and the Adaboost two-classifier prompts which situations need to be noted.
The reason for monitoring the working state of the cutting hot melting work by using the Adaboost two classifier is as follows: the two classification effects of Adaboost are rough classification, and the conditions of cutting hot melting are changeable and the working characteristics, namely the clamps and cutters are easy to accumulate heat, so that the end face, the cooling coefficient, the deformation and the like of the pipe orifice of the pipeline are changed slowly, and the combined judgment is carried out by combining the working states of a plurality of cutting hot melting works, so that the abnormal judgment result is more accurate.
In summary, the embodiment of the invention provides a pipe cutting hot melting process quality detection system based on two classifiers, which comprises a first data acquisition unit: the method is used for collecting the diameter of a pipe orifice of a pipeline in a cutting hot melting work, the cooling temperature of each area and an end face image, and analyzing to obtain Fourier descriptors corresponding to the deformation typical degree, the welding cooling stability and the end face outline of the pipe orifice; a second data acquisition unit: the method comprises the steps of obtaining the working special degree of cutting hot melting work and the cutting characteristic of the end face of a pipe orifice, and combining the deformation typical degree and the welding cooling stability to form a working quality characteristic vector; abnormal state detection means: and training Adaboost two classifiers by using a plurality of working quality feature vectors, and detecting abnormal states of the cutting hot melting work by the trained Adaboost two classifiers. The invention can rapidly and accurately perform abnormal early warning so as to conveniently and timely find problems and play an auxiliary role in process quality.
It should be noted that: the sequence of the embodiments of the present invention is only for description, and does not represent the advantages and disadvantages of the embodiments. And the foregoing description has been directed to specific embodiments of this specification. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
The foregoing description of the preferred embodiments of the present invention is not intended to be limiting, but rather, any modifications, equivalents, improvements, etc. that fall within the principles of the present invention are intended to be included within the scope of the present invention.