Online wear particle image processing method based on KFBE algorithm
The online wear particle image processing method of the KFBE algorithm, combined with K-SVD dictionary learning and the improved mark watershed segmentation algorithm, solves the problem of difficult segmentation of the wear particle chain in online monitoring, and achieves accurate analysis and real-time analysis of the wear status of mechanical equipment. monitor.
Patent Information
- Application Number
- CN202111174172.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-09
AI Technical Summary
In online oil monitoring, it is difficult to accurately segment the abrasive particle chain into individual abrasive particles, which affects the real-time and accuracy of the wear status analysis of mechanical equipment.
An online wear particle image processing method based on the KFBE algorithm is used to denoise the image through the K-SVD dictionary learning algorithm, and an improved marked watershed segmentation algorithm is used to segment the adhered wear particle chain into individual wear particles and extract the boundary energy of the wear particles. Characteristics to reflect the wear status of mechanical equipment.
It achieves fast and accurate segmentation of abrasive particles, protects image edge details, and improves the sensitive and accurate reflection of the health status of mechanical equipment.
Smart Images

Figure CN113962944B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of oil health status monitoring, and in particular relates to an online wear particle image processing method based on a KFBE algorithm. Background Art
[0002] Oil monitoring technology is currently a mainstream health status monitoring method, mainly including online monitoring and offline monitoring. Offline oil monitoring is to collect samples during the experiment and then analyze them. There are a lot of human factors in this process, which will lead to poor real-time performance. Online oil monitoring installs sensors or sensor probes in the system to collect information in real time. Therefore, offline monitoring is relatively inferior to online monitoring. Online monitoring has become a hot spot for research and development due to its real-time, continuous, and synchronization with the health status of the monitored object, and has developed rapidly.
[0003] With the development of image processing technology and artificial intelligence technology, intelligent analysis and processing of wear particle images collected by online monitoring has become a hot and difficult issue in current research. Some mechanical equipment will cause the oil temperature to rise due to friction, agitation and other reasons, and many bubbles will be generated in the oil. In addition, due to the intensity of equipment light, communication connection and other reasons, the collected images will contain a lot of background noise, and the magnetic field and magnetic force during the collection process cause most of the wear particles to deposit together, which affects the subsequent work of wear particle feature extraction and analysis of equipment wear trends.
[0004] Based on this, the present invention is based on the abrasive image data collected by the lubricating oil abrasive monitoring system, and accurately segments the abrasive chain into individual abrasive particles through image denoising and improved image segmentation methods, and then conducts in-depth research on more accurate health status characterization parameters to analyze the wear status of mechanical equipment. Summary of the invention
[0005] The present invention provides an online abrasive image processing method based on the KFBE algorithm, which solves the problem of accurately dividing the deposited abrasive chain into single abrasive particles under online monitoring in the prior art, and proposes to use the characteristics of boundary energy to more accurately reflect the wear state of mechanical equipment.
[0006] In order to achieve the above object, the technical solution of the present invention is as follows:
[0007] The online wear particle image processing method based on the KFBE algorithm includes the following steps:
[0008] S1: Real-time collection of wear particle image data through lubricating oil wear particle monitoring system;
[0009] S2: adding random noise to the collected wear particle image, and then obtaining the denoising dictionary and sparse coding through the K-SVD dictionary learning algorithm to denoise the wear particle image;
[0010] S3: The denoised wear particle image is segmented using an improved labeled watershed segmentation algorithm to segment the attached wear particle chains into individual wear particles;
[0011] S4: Extract the boundary energy (BE) features of the wear particles in the segmented wear particle image.
[0012] Furthermore, the improved marked watershed segmentation algorithm is specifically:
[0013] (1) Grayscale the denoised image;
[0014] (2) The grayscale image is segmented using the Bayesian threshold algorithm;
[0015] (3) The image after threshold segmentation is subjected to gradient operator, morphological opening and closing operation, and morphological hybrid reconstruction;
[0016] (4) Marking the foreground and background of the image; modifying the gradient image so that the local minimum is only taken at the foreground and background marks;
[0017] (5) Repeat the above steps (3)-(4) for the modified gradient image;
[0018] (6) Finally, perform watershed segmentation on the result image of (5).
[0019] Compared with the prior art, the present invention has the following beneficial effects:
[0020] The beneficial effect of the present invention is that the improved marked watershed segmentation method in the present invention is mainly aimed at the wear particle images collected by online monitoring, and during the collection process, due to the effect of the magnetic field, the normal sliding wear particles with smaller sizes will be deposited in chains or overlapped together, and the abnormally large wear particles such as fatigue wear particles and severe sliding wear particles are relatively large in size and deposited in blocks or sheets. The present invention can complete the rapid and accurate segmentation between wear particles and background, and between wear particles, and protect the edge detail information of the wear particle image, which is convenient for the subsequent extraction of the boundary energy characteristics of the wear particles, and more sensitively and accurately reflects the health status of mechanical equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is the physical connection diagram of the lubricating oil wear particle monitoring system;
[0022] Figure 2 This is a flow chart of the online wear particle image processing method based on the KFBE algorithm;
[0023] Figure 3is a flowchart of image denoising by K-SVD dictionary learning, where (a) the acquired wear particle image, (b) the noisy image, (c) the denoising dictionary, and (d) the denoised image;
[0024] Figure 4 The denoising effect comparison of wear particle images, including (a) median filter denoising image, (b) mean filter denoising image, (c) Gaussian smoothing filter denoising image, (d) K-SVD dictionary learning denoising image;
[0025] Figure 5 It is a technical solution diagram of improved marked watershed segmentation;
[0026] Figure 6 The comparison of wear particle image segmentation effects, including (a) marked watershed segmentation, (b) threshold segmentation image of Bayesian threshold method, (c) improved gradient image, and (d) improved marked watershed segmentation;
[0027] Figure 7 It is the boundary energy characteristic (BE) trend and wear limit diagram of healthy gear. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] The present invention is based on the abrasive image data collected by the lubricating oil abrasive monitoring system. It accurately segments the abrasive chain into individual abrasive particles through image denoising and improved image segmentation methods, and then further studies more accurate health status characterization parameters to analyze the wear status of mechanical equipment.
[0030] The image processing steps proposed by the present invention are as follows:
[0031] Step 1: Design and build a lubricating oil wear particle monitoring system from both hardware and software aspects. The lubricating oil wear particle monitoring system collects wear particle images in real time. The physical connection diagram of the lubricating oil wear particle monitoring system is as follows: Figure 1 shown.
[0032] Step 2: Collect the wear particle images such as Figure 3 (a), adding random noise such as Figure 3(b) Increase the amount of noise, proving that the K-SVD dictionary learning algorithm still has a good denoising effect on images with high noise content. This invention introduces the K-SVD dictionary learning image denoising method into the processing of wear particle images for the first time, where denoising is mainly divided into five parts:
[0033] 1. First, the collected wear particle images are used as sample set Y. M is the number of samples, and a single sample y i ∈R N is an N-dimensional feature vector;
[0034] 2. Randomly select k samples from the sample set Y as atoms of the random initialized dictionary D; and initialize the sparse coding matrix X to a zero matrix so that Y is approximately decomposed into Y≈D*X
[0035] 3. When the dictionary is fixed, the sparse code xi corresponding to each sample yi in the sample set is obtained. The sparse model at this time is:
[0036]
[0037] where ||x i ||<<N represents the upper limit of the number of non-zero components in the sparse representation, and ε represents the maximum tolerable error value. The sparse representation of Y is obtained by iterating the OMP orthogonal matching pursuit algorithm and formula (1) at the same time.
[0038] 4. Update the dictionary by updating the columns one by one, that is, when updating the kth column atom, the other atoms remain unchanged. Suppose we are currently updating the kth column d of the dictionary k , let the kth row of the encoding matrix X be Then the objective function is:
[0039]
[0040] E k It means that after removing the kth atom in dictionary D, the error matrix of dictionary D for k signal samples in Y is solved. k is not a unit vector, so we need to use SVD decomposition to get the unit vector d k In the SVD decomposition, the orthogonal unit vector corresponding to the maximum singular value is used as the new d k , and the coefficients need to be encoded The non-zero elements in are also updated. Then iterative updates are made until convergence, and the updated dictionary is obtained. With the sparse coding matrix
[0041] 5. Finally, find the denoised image Z:
[0042]
[0043] Where I is the identity matrix, R ij is the ijth sub-image block. λ is the threshold.
[0044] Step 3: To evaluate the denoising effect of the wear particle image, median filter denoising, mean filter denoising, and Gaussian smoothing filter denoising are used for comparison. Figure 4 From a subjective point of view, the median filter and mean filter images still have noise pollution after denoising. The edge of the wear particles in the Gaussian smoothing filter image is very blurred after denoising, while the K-SVD dictionary learning image has well removed the noise in the image and retained the edge details of the image.
[0045] From an objective perspective, we use two indicators: structural similarity (SSIM) and peak signal to noise ratio (PSNR).
[0046] (1) The image similarity (SSIM) calculation formula is as follows:
[0047]
[0048] Where x and y represent the original image and the image to be evaluated, and the mean (μ x ,μ y ) represents the brightness of the image, and the standard deviation (σ x ,σ y ) is used to represent the contrast of the image, and the covariance (σ xy ) is used to represent the structure of the image. The larger the SSIM is, the better the image quality it evaluates is.
[0049] (2) The peak signal-to-noise ratio (PSNR) calculation formula is as follows:
[0050]
[0051] Where M, N represent the number of rows and columns, f(m,n) represents the gray value of the original image point (m,n), Represents the gray value of the corresponding point in the denoised image. Assume that f max =max{f(m,n),m=0,1,…,M-1; n=0,1,…,N-1}.
[0052] The larger the PSNR value, the better the image quality.
[0053] The SSIM and PSNR of median filter denoising, mean filter denoising, Gaussian smoothing filter denoising and K-SVD dictionary learning are calculated and compared, as shown in the following table:
[0054]
[0055] It can be seen from the above table that the SSIM and PSNR of image denoising by K-SVD dictionary learning are the largest, so it has better effect in image denoising than other algorithms.
[0056] Step 4: Improved labeled watershed segmentation algorithm:
[0057] (1) Bayesian Threshold Method
[0058] After grayscale processing, calculate the maximum grayscale value H1, the minimum grayscale value H2, and the mean value H between the two in the image. Then compare the threshold of each pixel in the image with H. If it is greater than H, then add all the threshold values and assign them to Z1. Otherwise, add them to Z2. Record the number of each accumulation and iterate the calculation in sequence. Finally, the quotient of the total value of the element threshold greater than the mean value H and the number is recorded as S1, and that less than the mean value is recorded as S2. If the iteration formula (3) is satisfied, the iteration ends, otherwise the iteration continues. After the iteration ends, add 15 to H as the threshold level to perform threshold segmentation on the wear particle image.
[0059]
[0060] (2) Gradient calculation
[0061] After Bayesian threshold segmentation, if you need to deal with the burrs and discontinuities on the edges of the image, holes inside the image, etc., you should first perform morphological gradient operations on the image.
[0062] The morphological gradient operation can enhance the extreme contrast in the image and also maintain the relatively smooth area in the image. After morphological gradient processing, the grayscale jump in the image is sharply enhanced, and the gradient image is used as the basic image for watershed segmentation. However, for the morphological gradient image, if the watershed segmentation is performed directly, over-segmentation will still occur due to the presence of noise and details.
[0063] (3) Marking the foreground
[0064] The image after the composite opening and closing reconstruction operation will be used as the basic image for extracting foreground markers in the marked watershed algorithm, and the foreground objects will be marked using the local minimum.
[0065] (4) Marking background
[0066] The geodesic influence area of the binary image is calculated by using the Euclidean distance transform, and the skeleton of the geodesic influence area is obtained by using the traditional watershed transform. The skeleton of the geodesic influence area is used as the background marker image. emark (x,y) represents.
[0067] The morphological gradient image g(x,y) obtained after background subtraction is used as the original image of the watershed transformation. At the same time, the minimum imposition technique in mathematical morphology is used to make the local maximum or minimum in the image appear only at the marked position, while shielding other local extreme value areas, thereby modifying the original segmented image. That is, the foreground g is extracted. imark (x,y) and background marker g emark (x,y) forces the modification of the local minimum of the original gradient image. Therefore, in the modified gradient image, only the places where the corresponding binary labeled image is not zero are forced to have local minimum values. The modified gradient image is represented by g ws (x,y) represents:
[0068] g ws (x,y)=m min[g(x,y),g imark (x,y)|g emark (x,y)] (7)
[0069] Among them, mmin() represents the minimum imposition operation, and finally the watershed algorithm is used to realize automatic image segmentation.
[0070] Step 5: Extract the boundary energy characteristics of the wear particles:
[0071] Boundary energy (BE) usually refers to the average energy of the wear particle image boundary length:
[0072]
[0073]
[0074] Where i is any point on the image boundary, b3(b i ) is b i The third-order curvature of the point on the entire boundary curve, are two line segments (b i-3 ,b i ) and (b i ,b i+3 )), G is the boundary perimeter of the image edge points i-3 and i+3. The higher-order discrete curvature is more accurate in approximating the overall curvature of the curve, so the third-order curvature is selected here.
[0075] BE is a feature used to describe the complexity of the image boundary. The more irregular the shape of the abrasive particles, the larger the BE value. Under normal wear, the abrasive particles are mostly regular shapes, while the layered abrasive particles, severe sliding abrasive particles, fatigue peeling abrasive particles, etc. under abnormal wear are irregular shapes. Therefore, the wear condition of the mechanical equipment can be further judged by calculating the BE of the collected abrasive particle image.
[0076] The above are specific embodiments of the present invention, but the structural features of the present invention are not limited thereto. The present invention can be used on similar products. Any changes or modifications made by any technician in the field of the present invention are covered by the patent scope of the present invention.
Claims
1. The online wear particle image processing method based on KFBE algorithm is characterized by: The steps include: S1: Real-time collection of wear particle image data through lubricating oil wear particle monitoring system; S2: adding random noise to the collected wear particle image, and then obtaining the denoising dictionary and sparse coding through the K-SVD dictionary learning algorithm to denoise the wear particle image; (1) First, the collected wear particle images are taken as the sample set Y. M is the number of samples, and a single sample y i ∈R N is an N-dimensional feature vector; (2) Randomly select k samples from the sample set Y as atoms of the random initialized dictionary D; and initialize the sparse coding matrix X to a zero matrix so that Y is approximately decomposed into Y≈D*X; (3) When the dictionary is fixed, the sparse code xi corresponding to each sample yi in the sample set is obtained. The sparse model at this time is: Among them, ||x i ||<<N represents the upper limit of the number of non-zero components in the sparse representation, ε represents the maximum tolerable error value, and the sparse representation of Y is obtained by iterating formula (1) through the OMP orthogonal matching pursuit algorithm; (4) The dictionary is updated column by column. When the kth column atom is updated, the other atoms remain unchanged. Suppose the kth column d of the dictionary is updated. k , let the kth row of the encoding matrix X be Then the objective function is: E k It means that after removing the kth atom in dictionary D, the error matrix of dictionary D for k signal samples in Y is solved. k It is not a unit vector. Use SVD decomposition to get the unit vector d k , in SVD decomposition, the orthogonal unit vector corresponding to the maximum singular value is used as the new d k , and the coefficients need to be encoded The non-zero elements in are also updated; then the update is iterated until convergence, and the updated dictionary is obtained With the sparse coding matrix (5) Finally, calculate the denoised image Z: Where I is the identity matrix, R ij is the ijth sub-image block, λ is the threshold; S3: The denoised wear particle image is segmented using the improved labeled watershed segmentation to segment the sticky wear particle chains into individual wear particles; The improved marked watershed segmentation algorithm is specifically: (1) Grayscale the denoised image; (2) The grayscale image is segmented using the Bayesian threshold algorithm; (3) The image after threshold segmentation is subjected to gradient operator, morphological opening and closing operation, and morphological hybrid reconstruction; (4) Marking the foreground and background of the image; modifying the gradient image so that the local minimum is only taken at the foreground and background marks; (5) Repeat the above steps (3)-(4) for the modified gradient image; (6) Finally, perform watershed segmentation on the result image of (5); S4: Extract the boundary energy (BE) features of the wear particles in the segmented wear particle image.
