Cross-scale abrasive particle image segmentation method for online ferrography

By taking images of wear debris under reflected light and transmitted light, combined with the U-net model, and using technologies such as adaptive threshold and NTN feature fusion layer, the accuracy problem of extreme scale wear debris segmentation is solved, and the operating status of mechanical equipment is realized. a more accurate analysis.

CN118747754AActive Publication Date: 2024-10-08CHONGQING UNIV OF POSTS & TELECOMM
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410910724.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-08
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

Existing deep learning methods are difficult to accurately segment images of extreme-scale abrasive debris, which affects the accuracy of analysis of the operating status of mechanical equipment.

Method used

Multi-scale wear debris images taken under reflected light and transmitted light are used, binary distinction is performed through the adaptive Threshold function and then added, combined with the U-net model for training, and structures such as NTN feature fusion layers and residual blocks are used to recover spatial information. , achieving precise segmentation of extreme scale wear debris.

Benefits of technology

It improves the accuracy of wear particle image segmentation, can clearly and accurately segment extreme scale wear debris, and solves the problem of unclear or lost targets after segmentation in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747754A_ABST
    Figure CN118747754A_ABST
Patent Text Reader

Abstract

The invention relates to a cross-scale abrasive particle image segmentation method for an online ferrography, and the method comprises the steps: obtaining pictures of multi-scale wear fragments shot under reflected light and transmitted light, and employing a reflection picture and a transmission picture which are equal in pixel size; respectively using an adaptive Threshold function to carry out binary distinguishing on the reflection picture and the transmission picture, and then adding to obtain a fused target segmentation picture; forming an image pair by the fused target segmentation image and the reflection image, and inputting the image pair into a wear fragment segmentation model for training; performing segmentation processing on the multi-scale wear fragment image by using the trained wear fragment segmentation model to obtain a segmented image; according to the method, the image with obvious extreme scale wear fragments can be segmented more clearly and accurately, and the problem that a target is not clear or lost during traditional abrasive particle image segmentation is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of mechanical equipment monitoring and operation and maintenance, and in particular relates to a cross-scale wear particle image segmentation method for online iron spectrum. Background Art

[0002] By monitoring the information of the lubricating oil of mechanical equipment, the operating status of the mechanical equipment and the service life of the equipment can be predicted. The information of abrasive fragments carried in the lubricating oil is the key to analyzing the status of mechanical equipment. Monitoring of the size, concentration, color and other information of abrasive fragments can effectively analyze the operating status of mechanical equipment.

[0003] At present, the scales of wear fragments in the captured wear fragment images are different, and the scales of wear particles are mostly extreme, that is, the scales of wear particles show a two-level differentiation phenomenon, and the scales of wear particles vary greatly. Most of the existing deep learning methods perform image segmentation on objects with small scale changes. When the existing deep learning network is applied to the segmentation of extreme multi-scale wear particle images, it will inevitably cause some details or feature information in the wear particle images to be unable to be correctly captured by the deep learning algorithm, thereby affecting the accuracy of segmentation, and then affecting the subsequent analysis of the operating status of mechanical equipment. This results in the lack of an ideal model that can better segment wear particle images of extreme scales. Summary of the invention

[0004] In order to solve the problem that extreme-scale wear particle fragments are difficult to segment, the present invention provides a cross-scale wear particle image segmentation method for online iron spectrum, comprising:

[0005] S1: Obtain images of multi-scale wear debris taken under reflected light and transmitted light, using reflected images and transmitted images with equal pixel sizes;

[0006] S2: Use the adaptive Threshold function to perform binary differentiation on the reflection image and the transmission image, and then add them together to obtain the fused target segmentation map;

[0007] S3: The fused target segmentation map and the reflection image are used to form an image pair, and the image pair is input into the wear debris segmentation model for training;

[0008] S4: Use the trained wear debris segmentation model to segment the multi-scale wear debris image to obtain a segmented image.

[0009] Preferably, obtaining pictures of multi-scale wear debris taken under reflected light and transmitted light comprises:

[0010] The lubricating oil in the pipeline is photographed under reflected light and transmitted light using online visual ferrography (OLVF) to obtain reflected and transmitted images with the same pixel size as one.

[0011] Preferably, the step of performing binary differentiation on the reflection image and the transmission image using an adaptive Threshold function and then adding the two images comprises:

[0012] S21: Read the reflection image and the transmission image;

[0013] S22: Apply adaptive threshold function to convert the reflection image and transmission image into binary images respectively;

[0014] S23: Add the two binary images converted from the reflection image and the transmission image at corresponding pixels to obtain a fused target segmentation map.

[0015] Preferably, the method of training the wear debris segmentation model using the fused target segmentation map and the reflection image comprises:

[0016] The reflection image is input into the wear debris segmentation model for forward propagation. The segmentation result of the reflection image and the target segmentation map are iterated using the BCE loss function according to the wear debris segmentation model. The parameters of the wear debris segmentation model are updated using the SGD optimizer algorithm according to the result of the BCE loss function until the loss function converges, thus completing the training of the wear debris segmentation model.

[0017] Preferably, the wear debris segmentation model adopts a U-net structure, which includes: an encoding part, N NTN feature fusion layers and a decoding part; the encoding part includes: N serially connected encoding layers; the decoding part includes N+1 decoding layers;

[0018] The input of the first coding layer is the reflection image, and the output feature of the Nth coding layer is the input feature of the first decoding layer;

[0019] The input features of the first NTN feature fusion layer include: the output features of the Nth encoding layer and the output features of the first decoding layer; the output features of the first NTN feature fusion layer are the input features of the second decoding layer;

[0020] The input features of the nth NTN feature fusion layer include: the output features of the N+1-nth encoding layer and the output features of the nth decoding layer.

[0021] The output features of the N+1th decoding layer are processed by convolution and used as the image segmented by the wear debris segmentation model, where n is an integer between 1 and N.

[0022] Preferably, each coding layer includes: a first convolutional layer and M first residual blocks connected in series in sequence; wherein the input features and output features of each first residual block are residually connected as the input features of the next first residual block; wherein the input features of the first first residual block, the input features of the Nth first residual block and the output features of the Nth first residual block are residually connected as the output features of the coding layer; the input features of the first convolutional layer are the input features of the coding layer, and the output features of the first convolutional layer are the input features of the first first residual block.

[0023] Preferably, each decoding layer includes: a first second residual block, a self-attention layer and a second second residual block connected in series in sequence; the input features of the first second residual block are the input features of the decoding layer; the input features and output features of the first second residual block are residually connected as the input features of the self-attention layer; the output features of the self-attention layer are the input features of the second second residual block; the input features of the second second residual block, the output features of the second second residual block and the input features of the first second residual block are residually connected as the output features of the decoding layer.

[0024] Preferably, the first residual block and the second residual block both include: K RT modules connected in series; the input features and output features of each RT module are residually connected as the input features of the next RT module; the input features of the first RT module are the input features of the first residual block or the second residual block; the output features of the Kth RT module, the input features of the Kth RT module and the input features of the first RT module are residually connected as the output features of the residual block; the RT module includes: B feature processing modules connected in series; each feature processing module includes an activation function and a second convolutional layer connected in series in sequence; the input features and output features of each feature processing module are residually connected as the input features of the next feature processing module; the input features of the first feature processing module are the input features of the RT module; the input features of the Bth feature processing module, the output features of the Bth feature processing module and the input features of the first feature processing module are residually connected as the output features of the RT module.

[0025] Preferably, the NTN feature fusion layer uses the features obtained from the encoding layer as low-level feature images, and uses the features obtained from the decoding layer as high-level feature images, and fuses the low-level feature images with the high-level images;

[0026] The NTN feature fusion layer includes two upper and lower feature processing branches, and the upper feature processing branch is used to process the low-level feature image, including:

[0027] Perform convolution on the low-level feature image to obtain the intermediate feature f1;

[0028] Perform maximum pooling and average pooling on the intermediate feature f1 to obtain intermediate features f11 and f12;

[0029] The intermediate features f11 and f12 are input into the multi-layer perceptron for processing to obtain the intermediate features f21 and f22;

[0030] The intermediate feature f21 and the intermediate feature f22 are added to obtain the intermediate feature f2;

[0031] Binarize the intermediate feature f2 to obtain the intermediate feature f3;

[0032] Perform matrix multiplication of the intermediate feature f3 and the intermediate feature f1 to obtain the intermediate feature f4;

[0033] The lower feature processing branch is used to process the high-level feature image, including:

[0034] Upsample or convolve the high-level feature image to obtain the intermediate feature g1;

[0035] Perform maximum pooling and average pooling on the intermediate feature g1 to obtain intermediate features g11 and g12;

[0036] The intermediate features g11 and g12 are concatenated to obtain the intermediate feature g2;

[0037] The intermediate feature g2 is then processed by maximum pooling and average pooling in sequence to obtain the intermediate feature g3;

[0038] The intermediate feature g3 is convolved to obtain the intermediate feature g4;

[0039] Binarize the intermediate feature g4 to obtain the intermediate feature g5;

[0040] Perform matrix multiplication of the intermediate features g1 and g5 to obtain the intermediate feature g6;

[0041] The intermediate feature f4 and the intermediate feature g6 are concatenated to obtain the output feature of the NTN feature fusion layer.

[0042] Another aspect of the present invention provides a computer storage medium storing a program, wherein when the program is executed by a processor, the cross-scale wear particle image segmentation method for online iron spectrum is implemented.

[0043] The present invention has at least the following beneficial effects

[0044] The present invention obtains images containing different information dimensions by taking images of multi-scale wear debris under reflected light and transmitted light; wherein, the reflected light image mainly reflects the texture and color information of the object surface, while the transmitted light image may reveal the structure or defects inside the object; the adaptive Threshold function can effectively process images with uneven lighting or large contrast changes, and the segmentation map produced by adding the binary distinction of the reflected image and the transmitted image combines the effective information in the reflected light and transmitted light images, enhances the features in the image, and improves the accuracy of segmentation.

[0045] The present invention improves the traditional U-net model structure, can restore the spatial information lost in the encoding process, and can more clearly and accurately segment images with obvious extreme-scale wear fragments, thereby solving the problem of unclear or lost targets after segmentation of extreme-scale wear fragment images. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a schematic diagram of the method flow of the present invention;

[0047] Figure 2 A schematic diagram of the network structure of the wear debris segmentation model of the present invention;

[0048] Figure 3 Schematic diagram of the specific structure of the residual block of the present invention;

[0049] Figure 4 It is a schematic diagram of the specific structure of the NTN characteristic fusion layer of the present invention;

[0050] Figure 5 It is a schematic diagram comparing the segmentation effects of the wear debris segmentation model of the present invention;

[0051] Figure 6 It is a schematic diagram comparing the segmentation effects of the wear debris segmentation model of the present invention; DETAILED DESCRIPTION

[0052] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and the features in the embodiments can be combined with each other without conflict.

[0053] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.

[0054] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.

[0055] See also Figure 1 The present invention provides a cross-scale wear particle image segmentation method for online iron spectrum, comprising:

[0056] S1: Obtain images of multi-scale wear debris taken under reflected light and transmitted light, using reflected images and transmitted images with equal pixel sizes;

[0057] S2: Use the adaptive Threshold function to perform binary differentiation on the reflection image and the transmission image, and then add them together to obtain the fused target segmentation map;

[0058] S3: The fused target segmentation map and the reflection image are used to form an image pair, and the image pair is input into the wear debris segmentation model for training;

[0059] S4: Use the trained wear debris segmentation model to segment the multi-scale wear debris image to obtain a segmented image.

[0060] Preferably, obtaining pictures of multi-scale wear debris taken under reflected light and transmitted light comprises:

[0061] The lubricating oil in the pipeline is photographed under reflected light and transmitted light using online visual ferrography (OLVF) to obtain reflected and transmitted images with the same pixel size as one.

[0062] In this embodiment, pictures are taken in the lubricating oil liquid in the pipeline by online visual ferrography (OLVF); the operating status of the equipment can be obtained in real time, which is convenient for timely maintenance of the mechanical equipment.

[0063] Preferably, the step of performing binary differentiation on the reflection image and the transmission image using an adaptive Threshold function and then adding the two images comprises:

[0064] S21: Read the reflection image and the transmission image;

[0065] S22: Apply adaptive threshold function to convert the reflection image and transmission image into binary images respectively;

[0066] S23: Add the two binary images converted from the reflection image and the transmission image at corresponding pixels to obtain a fused target segmentation map.

[0067] In this example, the reflection image and the transmission image are fused to combine the effective information in the reflection light and transmission light images, thereby enhancing the features in the image and improving the accuracy of segmentation.

[0068] Preferably, the method of training the wear debris segmentation model using the fused target segmentation map and the reflection image comprises:

[0069] The reflection image is input into the wear debris segmentation model for forward propagation. The segmentation result of the reflection image and the target segmentation map are iterated using the BCE loss function according to the wear debris segmentation model. The parameters of the wear debris segmentation model are updated using the SGD optimizer algorithm according to the result of the BCE loss function until the loss function converges, thus completing the training of the wear debris segmentation model.

[0070] See also Figure 2 Preferably, the wear debris segmentation model adopts a U-net structure, which includes: an encoding part, N NTN feature fusion layers and a decoding part; the encoding part includes: N serially connected encoding layers; the decoding part includes N+1 decoding layers;

[0071] The input of the first coding layer is the reflection image, and the output feature of the Nth coding layer is the input feature of the first decoding layer;

[0072] The input features of the first NTN feature fusion layer include: the output features of the Nth encoding layer and the output features of the first decoding layer; the output features of the first NTN feature fusion layer are the input features of the second decoding layer;

[0073] The input features of the nth NTN feature fusion layer include: the output features of the N+1-nth encoding layer and the output features of the nth decoding layer.

[0074] The output features of the N+1th decoding layer are processed by convolution and used as the image segmented by the wear debris segmentation model, where n is an integer between 1 and N.

[0075] In this embodiment, the value of N can be, for example, 2, 3, 4 or 5; those skilled in the art can determine the appropriate value through a limited number of experiments according to actual needs; in this embodiment, the input of a coding layer is a reflection image (i.e., an image of wear debris taken using only reflected light); multi-scale features are extracted through the coding part, and then the feature maps of the encoder and decoder are fused through the NTN feature fusion layer, making full use of feature information from different scales, thereby improving the accuracy and robustness of segmentation, and the feature maps of the encoder and decoder are fused through the NTN feature fusion layer to restore the spatial information lost in the encoding process, which can effectively fuse multi-scale features and achieve accurate segmentation of wear debris.

[0076] See also Figure 3 Preferably, each encoding layer includes: a first convolutional layer and M first residual blocks connected in series in sequence; wherein the input features and output features of each first residual block are residually connected as the input features of the next first residual block; wherein the input features of the first first residual block, the input features of the Nth first residual block and the output features of the Nth first residual block are residually connected as the output features of the encoding layer; the input features of the first convolutional layer are the input features of the encoding layer, and the output features of the first convolutional layer are the input features of the first first residual block.

[0077] In this embodiment, the value of M can be, for example, 2, 3, 4 or 5; those skilled in the art can determine the appropriate value through a limited number of experiments according to actual needs; in this embodiment, the convolutional layer and multiple residual blocks are combined through the encoding layer, allowing the network to directly pass input features to deeper layers, which helps to alleviate the gradient vanishing problem and improve training efficiency and model performance.

[0078] Preferably, each decoding layer includes: a first second residual block, a self-attention layer and a second second residual block connected in series in sequence; the input features of the first second residual block are the input features of the decoding layer; the input features and output features of the first second residual block are residually connected as the input features of the self-attention layer; the output features of the self-attention layer are the input features of the second second residual block; the input features of the second second residual block, the output features of the second second residual block and the input features of the first second residual block are residually connected as the output features of the decoding layer.

[0079] In this embodiment, each decoding layer integrates residual blocks and self-attention layers to enhance the model's feature extraction capabilities and its ability to capture global information, so that the U-net model can more accurately understand the image content in the segmentation task and generate high-quality segmentation results.

[0080] Preferably, the first residual block and the second residual block both include: K RT modules connected in series; the input features and output features of each RT module are residually connected as the input features of the next RT module; the input features of the first RT module are the input features of the first residual block or the second residual block; the output features of the Kth RT module, the input features of the Kth RT module and the input features of the first RT module are residually connected as the output features of the residual block; the RT module includes: B feature processing modules connected in series; each feature processing module includes an activation function and a second convolutional layer connected in series in sequence; the input features and output features of each feature processing module are residually connected as the input features of the next feature processing module; the input features of the first feature processing module are the input features of the RT module; the input features of the Bth feature processing module, the output features of the Bth feature processing module and the input features of the first feature processing module are residually connected as the output features of the RT module.

[0081] In this embodiment, the value of K can be, for example, 2, 3, 4 or 5; those skilled in the art can determine the appropriate value through a limited number of experiments according to actual needs; in this embodiment, the activation function uses, for example, the ReLU function; the residual connection is represented by the addition of two matrices at corresponding elements, which is a basic operator in matrix operations and a commonly used technical means in the field of deep learning, so it will not be elaborated in this article.

[0082] In this embodiment, the residual block adopts a residual structure to slow down the gradient descent or gradient explosion and accelerate the convergence of the model.

[0083] See also Figure 4 Preferably, the features acquired by the NTN feature fusion layer from the encoding layer are used as low-level feature images, and the features acquired by the NTN feature fusion layer from the decoding layer are used as high-level feature images, and the low-level feature images and the high-level images are fused;

[0084] The NTN feature fusion layer includes two upper and lower feature processing branches, and the upper feature processing branch is used to process the low-level feature image, including:

[0085] Perform convolution on the low-level feature image to obtain the intermediate feature f1;

[0086] Perform maximum pooling and average pooling on the intermediate feature f1 to obtain intermediate features f11 and f12;

[0087] The intermediate features f11 and f12 are input into the multi-layer perceptron for processing to obtain the intermediate features f21 and f22;

[0088] The intermediate feature f21 and the intermediate feature f22 are added to obtain the intermediate feature f2;

[0089] Binarize the intermediate feature f2 to obtain the intermediate feature f3;

[0090] Perform matrix multiplication of the intermediate feature f3 and the intermediate feature f1 to obtain the intermediate feature f4;

[0091] The lower feature processing branch is used to process the high-level feature image, including:

[0092] Upsample or convolve the high-level feature image to obtain the intermediate feature g1;

[0093] Perform maximum pooling and average pooling on the intermediate feature g1 to obtain intermediate features g11 and g12;

[0094] The intermediate features g11 and g12 are concatenated to obtain the intermediate feature g2;

[0095] The intermediate feature g2 is then processed by maximum pooling and average pooling in sequence to obtain the intermediate feature g3;

[0096] The intermediate feature g3 is convolved to obtain the intermediate feature g4;

[0097] Binarize the intermediate feature g4 to obtain the intermediate feature g5;

[0098] Perform matrix multiplication of the intermediate features g1 and g5 to obtain the intermediate feature g6;

[0099] The intermediate feature f4 and the intermediate feature g6 are concatenated to obtain the output feature of the NTN feature fusion layer.

[0100] In this embodiment, the NTN feature fusion layer repeatedly extracts and fuses the features of the segmented image, effectively fusing the low-level feature image provided by the encoding layer and the high-level feature image provided by the decoding layer. At the same time, the feature maps of the encoder and decoder are fused through the NTN feature fusion layer to restore the spatial information lost in the encoding process, which can effectively fuse multi-scale features and achieve accurate segmentation of wear debris.

[0101] See also Figure 5 and Figure 6 , Figure 5 The left side is a large-scale wear debris image, the middle of 5 is a wear debris segmentation image processed by the wear debris segmentation model of the present invention, and the right side of 5 is a wear debris segmentation image processed by the traditional segmentation model. Figure 5 As shown, the present invention can more clearly and accurately segment an image with obvious extremely large-scale wear debris, solving the problem of unclear or lost targets after segmentation of large-scale wear debris images; Figure 6 The left side shows an image of extremely small-scale wear debris. Figure 6 The middle is a diagram of wear debris segmentation at a very small scale processed by the wear debris segmentation model of the present invention. Figure 6 The right side shows the segmentation diagram of wear debris with extremely small scale processed by the traditional segmentation model. Figure 6 As shown, the present invention obtains images containing different information dimensions by taking images of multi-scale wear debris under reflected light and transmitted light; wherein, the reflected light image mainly reflects the texture and color information of the surface of the object, while the transmitted light image may reveal the structure or defects inside the object; the adaptive Threshold function can effectively process images with uneven illumination or large contrast changes, and the segmentation map produced by adding the binary distinction of the reflected image and the transmitted image combines the effective information in the reflected light and transmitted light images, enhances the features in the image, and improves the accuracy of segmentation. The present invention improves the traditional U-net model structure, can restore the spatial information lost in the encoding process, can more clearly and accurately segment images with obvious extreme-scale wear debris, and solves the problem of unclear or lost targets after segmentation of extreme-scale wear debris segmentation images.

[0102] Another aspect of the present invention provides a computer storage medium storing a program, wherein when the program is executed by a processor, the cross-scale wear particle image segmentation method for online iron spectrum is implemented.

[0103] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0104] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.

Claims

1. A cross-scale wear particle image segmentation method for online iron spectrum, characterized in that: include: S1: Obtain images of multi-scale wear debris taken under reflected light and transmitted light, using reflected images and transmitted images with equal pixel sizes; S2: Use the adaptive Threshold function to perform binary differentiation on the reflection image and the transmission image, and then add them together to obtain the fused target segmentation map; S3: The fused target segmentation map and the reflection image are used to form an image pair, and the image pair is input into the wear debris segmentation model for training; S4: Use the trained wear debris segmentation model to segment the multi-scale wear debris image to obtain a segmented image.

2. The cross-scale wear particle image segmentation method for online iron spectrum according to claim 1 is characterized in that: The method of obtaining images of multi-scale wear debris taken under reflected light and transmitted light includes: The lubricating oil in the pipeline is photographed under reflected light and transmitted light using online visual ferrography (OLVF) to obtain reflected and transmitted images with the same pixel size as one.

3. The cross-scale wear particle image segmentation method for online iron spectrum according to claim 1, characterized in that: The step of using the adaptive Threshold function to perform binary differentiation on the reflection image and the transmission image and then adding the two images comprises: S21: Read the reflection image and the transmission image; S22: Apply adaptive threshold function to convert the reflection image and transmission image into binary images respectively; S23: Add the two binary images converted from the reflection image and the transmission image at corresponding pixels to obtain a fused target segmentation map.

4. The cross-scale wear particle image segmentation method for online iron spectrum according to claim 1 is characterized in that: The method of training the wear debris segmentation model using the fused target segmentation map and the reflection image includes: The reflection image is input into the wear debris segmentation model for forward propagation. The segmentation result of the reflection image and the target segmentation map are iterated using the BCE loss function according to the wear debris segmentation model. The parameters of the wear debris segmentation model are updated using the SGD optimizer algorithm according to the result of the BCE loss function until the loss function converges, thus completing the training of the wear debris segmentation model.

5. The cross-scale wear particle image segmentation method for online iron spectrum according to claim 1, characterized in that: The wear debris segmentation model adopts a U-net structure, which includes: an encoding part, N NTN feature fusion layers and a decoding part; the encoding part includes: N serially connected encoding layers; the decoding part includes N+1 decoding layers; The input of the first encoding layer is the reflection image, and the output feature of the Nth encoding layer is the input feature of the first decoding layer; The input features of the first NTN feature fusion layer include: the output features of the Nth encoding layer and the output features of the first decoding layer; the output features of the first NTN feature fusion layer are the input features of the second decoding layer; The input features of the nth NTN feature fusion layer include: the output features of the N+1-nth encoding layer and the output features of the nth decoding layer. The output features of the N+1th decoding layer are processed by convolution and used as the image segmented by the wear debris segmentation model, where n is an integer between 1 and N.

6. The cross-scale wear particle image segmentation method for online iron spectrum according to claim 1, characterized in that: Each coding layer includes: a first convolutional layer and M first residual blocks connected in series in sequence; wherein the input features and output features of each first residual block are residually connected as the input features of the next first residual block; wherein the input features of the first first residual block, the input features of the Nth first residual block and the output features of the Nth first residual block are residually connected as the output features of the coding layer; the input features of the first convolutional layer are the input features of the coding layer, and the output features of the first convolutional layer are the input features of the first first residual block.

7. The cross-scale wear particle image segmentation method for online iron spectrum according to claim 6, characterized in that: Each decoding layer includes: a first second residual block, a self-attention layer and a second second residual block connected in series in sequence; the input features of the first second residual block are the input features of the decoding layer; the input features and output features of the first second residual block are residually connected as the input features of the self-attention layer; the output features of the self-attention layer are the input features of the second second residual block; the input features of the second second residual block, the output features of the second second residual block and the input features of the first second residual block are residually connected as the output features of the decoding layer.

8. The cross-scale wear particle image segmentation method for online iron spectrum according to claim 7, characterized in that: The first residual block and the second residual block both include: K RT modules connected in series; the input features and output features of each RT module are residually connected as the input features of the next RT module; the input features of the first RT module are the input features of the first residual block or the second residual block; the output features of the Kth RT module, the input features of the Kth RT module and the input features of the first RT module are residually connected as the output features of the residual block; the RT module includes: B feature processing modules connected in series; each feature processing module includes an activation function and a second convolutional layer connected in series in sequence; the input features and output features of each feature processing module are residually connected as the input features of the next feature processing module; the input features of the first feature processing module are the input features of the RT module; the input features of the Bth feature processing module, the output features of the Bth feature processing module and the input features of the first feature processing module are residually connected as the output features of the RT module.

9. The cross-scale wear particle image segmentation method for online iron spectrum according to claim 1, characterized in that: The NTN feature fusion layer obtains the features from the encoding layer as low-level feature images, and the NTN feature fusion layer obtains the features from the decoding layer as high-level feature images, and fuses the low-level feature images with the high-level images; The NTN feature fusion layer includes two upper and lower feature processing branches, and the upper feature processing branch is used to process the low-level feature image, including: Perform convolution on the low-level feature image to obtain the intermediate feature f1; Perform maximum pooling and average pooling on the intermediate feature f1 to obtain intermediate features f11 and f12; The intermediate features f11 and f12 are input into the multi-layer perceptron for processing to obtain the intermediate features f21 and f22; The intermediate feature f21 and the intermediate feature f22 are added to obtain the intermediate feature f2; Binarize the intermediate feature f2 to obtain the intermediate feature f3; Perform matrix multiplication of the intermediate feature f3 and the intermediate feature f1 to obtain the intermediate feature f4; The lower feature processing branch is used to process the high-level feature image, including: Upsample or convolve the high-level feature image to obtain the intermediate feature g1; Perform maximum pooling and average pooling on the intermediate feature g1 to obtain intermediate features g11 and g12; The intermediate features g11 and g12 are concatenated to obtain the intermediate feature g2; The intermediate feature g2 is then processed by maximum pooling and average pooling in sequence to obtain the intermediate feature g3; The intermediate feature g3 is convolved to obtain the intermediate feature g4; Binarize the intermediate feature g4 to obtain the intermediate feature g5; Perform matrix multiplication of the intermediate features g1 and g5 to obtain the intermediate feature g6; The intermediate feature f4 and the intermediate feature g6 are concatenated to obtain the output feature of the NTN feature fusion layer.

10. A computer storage medium storing a program, characterized in that: When the program is executed by a processor, a cross-scale wear particle image segmentation method for online iron spectrum as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Light-weight residual U-net-based reflected light ferrographic image segmentation method

    CN112767361A

  • Sub-mesenteric artery blood vessel reconstruction method based on MIP sequence

    CN114897780A

  • Method and device for depth image completion

    US20230245282A1