Tool life prediction method, system, device and medium based on image processing
Through image processing technology, combined with the fusion processing and feature extraction of three-axis vibration signals and line scan images, the problems of unstable tool wear detection accuracy and poor universality in the existing technology are solved, and higher wear detection and life prediction are achieved. Accuracy.
Patent Information
- Application Number
- CN202410452626.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-16
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-04-16
AI Technical Summary
The existing technology has the problems of unstable detection accuracy and poor universality in tool wear detection and life prediction. In particular, because the signal contains a large number of interference factors, misjudgments are frequent, which affects the accuracy of tool wear detection and life prediction. .
Using an image processing-based method, by acquiring three-axis vibration signals and line scan images, signal fusion processing and feature extraction are performed, combined with bounding box regression and classification processing, to screen out the wear areas and edge points, and then calculate the wear area to predict tool life. . Specific steps include signal fusion, signal feature extraction, image feature extraction, bounding box regression and classification processing, and finally life prediction based on wear area and area.
It improves the accuracy and universality of tool wear detection and life prediction, can reflect tool wear more accurately, and provide more accurate life prediction results.
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image analysis and processing, and in particular to a tool life prediction method, system, equipment and medium based on image processing. Background Art
[0002] Tool life detection refers to the monitoring and evaluation of tools used in industrial production to determine tool wear and life. Tool life detection is of great significance for improving production efficiency, saving costs, ensuring product quality and safety, and optimizing production management. By effectively managing tool life, the production process can be optimized and continuously improved, and the competitiveness and sustainable development capabilities of enterprises can be enhanced.
[0003] In the existing technology, resistance measurement, spacing measurement, ray measurement and optical measurement are often used to quickly detect tool wear. However, these methods are easily affected by the processing environment during the detection process, or are limited to special scenarios, and the detection accuracy is unstable and the universality is poor. Indirect tool wear judgment by measuring the cutting temperature, cutting force, acoustic emission and vibration signals of the tool to be inspected has a wide range of applicability, but the signals measured by these methods are prone to contain a large number of interference factors, which are prone to misjudgment, resulting in low accuracy of tool wear detection and tool life prediction. Summary of the invention
[0004] The present invention provides a tool life prediction method, system, device and medium based on image processing with high prediction accuracy of tool wear and tool life.
[0005] The technical solution of the present invention is as follows:
[0006] A tool life prediction method based on image processing includes the following operations:
[0007] S1, obtaining the horizontal axis vibration signal, the longitudinal axis vibration signal and the vertical axis vibration signal of the cutting part of the tool to be inspected, and obtaining a fused vibration signal through signal fusion processing; obtaining a line scan image of a circle of the cutting part of the tool to be inspected, and aligning it with the fused vibration signal to obtain an aligned line scan image and an aligned fused vibration signal;
[0008] S2, aligning and fusing vibration signals and extracting signal features to obtain vibration feature signals; aligning line scan images and extracting image features to obtain line scan feature images; performing weighted fusion processing on the line scan feature images and vibration feature signals to obtain tool fusion feature images;
[0009] S3. The tool fusion feature map is processed by bounding box regression and classification to obtain an initial tool wear classification map containing multiple bounding boxes in the same area, each of which contains multiple classification types and corresponding classification probabilities; the bounding box corresponding to the maximum intersection-over-union ratio with the real box in the same area of the initial tool wear classification map is retained to obtain an optimized tool wear classification map; the bounding box with the classification type of wear and the corresponding classification probability of wear greater than the probability threshold is retained in the optimized tool wear area map to obtain the optimal tool wear classification map;
[0010] S4. In the optimal tool wear classification diagram, each boundary box corresponds to an image, and the edge pixels are extracted to obtain the wear edge points. All the wear edge points are processed into closed areas within the neighborhood to obtain several wear areas. Based on the wear area and the scale of the line scan image, the wear area is obtained. Based on the mapping relationship between the wear area and the wear area and the tool life, the life prediction result of the tool to be inspected is obtained.
[0011] The signal fusion processing operation in S1 is specifically as follows: the horizontal axis vibration signal, the vertical axis vibration signal and the vertical axis vibration signal are respectively normalized to obtain the horizontal axis normalized vibration signal, the vertical axis normalized vibration signal and the vertical axis normalized vibration signal; the horizontal axis normalized vibration signal, the vertical axis normalized vibration signal and the vertical axis normalized vibration signal are represented as a feature matrix in which each column represents a spatial axis vibration signal to obtain a vibration signal feature matrix; the covariance matrix corresponding to the vibration signal feature matrix is obtained, and the covariance matrix is processed by singular value decomposition to obtain a number of eigenvalues and corresponding eigenvectors; the eigenvector corresponding to the eigenvalue greater than the eigenvalue threshold is used as the principal component vector; the principal component vector is multiplied by the vibration signal feature matrix to obtain a fused vibration signal.
[0012] The signal feature extraction operations in S2 are specifically as follows: aligning the fused vibration signals and subjecting them to denoising to obtain a denoised fused vibration signal; decomposing the denoised fused vibration signal into wavelet coefficients of different time scales based on a preset wavelet basis function; obtaining the squares of the wavelet coefficients of different time scales, and obtaining a vibration feature signal after normalisation.
[0013] The specific operation of image feature extraction in S2 is: the aligned line scan image is processed by multi-layer downsampling and multi-layer upsampling in sequence to obtain a line scan feature image; during the multi-layer downsampling and multi-layer upsampling processes, the output of the first layer of downsampling and the output of the second to last layer of upsampling are processed by the last layer of upsampling, and the output of the second layer of downsampling and the output of the third to last layer of upsampling are processed by the last layer of upsampling.
[0014] After the bounding box regression operation in S3, multi-scale graph convolution processing is also included to obtain a multi-scale graph convolution feature map of the tool for performing classification processing operations; in the graph convolution process of each convolution scale, the adjacency matrix corresponding to the output graph of the previous layer is added to the initial adjacency matrix to obtain an updated adjacency matrix as the adjacency matrix of the current layer input.
[0015] Acquire the acoustic emission signal of the cutting part of the tool to be inspected, and obtain the aligned acoustic emission signal after alignment processing; extract the signal features of the aligned acoustic emission signal to obtain the acoustic emission feature signal; fuse the acoustic emission feature signal with the line scan feature image and the vibration feature signal to obtain the optimized tool fusion feature map for executing the operation in S3.
[0016] The cutting force signal of the cutting part of the tool to be inspected is obtained, and after alignment processing, an aligned cutting force signal is obtained; after the signal feature of the aligned cutting force signal is extracted, it is fused with the acoustic emission feature signal, the line scan feature image and the vibration feature signal to obtain the optimal tool fusion feature map for executing the operation in S3.
[0017] A tool life prediction system based on image processing, comprising:
[0018] The alignment line scan image and alignment fusion vibration signal generation module is used to obtain the horizontal axis vibration signal, the longitudinal axis vibration signal and the vertical axis vibration signal of the cutting part of the tool to be inspected, and obtain the fusion vibration signal through signal fusion processing; obtain the line scan image of a circle of the cutting part of the tool to be inspected, and align it with the fusion vibration signal to obtain the alignment line scan image and the alignment fusion vibration signal;
[0019] The tool fusion feature map generation module is used to align the fused vibration signal and extract the signal feature to obtain the vibration feature signal; align the line scan image and extract the image feature to obtain the line scan feature image; the line scan feature image and the vibration feature signal are subjected to weighted fusion processing to obtain the tool fusion feature map;
[0020] The optimal tool wear classification map generation module is used for the tool fusion feature map to be processed by bounding box regression and classification to obtain an initial tool wear classification map containing multiple bounding boxes in the same area, each of which contains multiple classification types and corresponding classification probabilities; retain the bounding box corresponding to the maximum intersection-over-union ratio with the real box in the same area in the initial tool wear classification map to obtain the optimized tool wear classification map; retain the bounding box in the optimized tool wear area map with the classification type of wear and the corresponding classification probability of wear greater than the probability threshold to obtain the optimal tool wear classification map;
[0021] The wear area and life prediction result generation module is used in the optimal tool wear classification map. The edge pixels of each boundary box corresponding image are extracted to obtain the wear edge points; all the wear edge points are processed into closed areas within the neighborhood to obtain several wear areas; based on the wear area and the scale of the line scan image, the wear area is obtained; based on the mapping relationship between the wear area and the wear area and the tool life, the life prediction result of the tool to be inspected is obtained.
[0022] A tool life prediction device based on image processing comprises a processor and a memory, wherein the processor implements the above-mentioned tool life prediction method based on image processing when executing a computer program stored in the memory.
[0023] A computer-readable storage medium is used to store a computer program, wherein the computer program implements the above-mentioned tool life prediction method based on image processing when executed by a processor.
[0024] The beneficial effects of the present invention are:
[0025] The tool life prediction method based on image processing provided by the present invention first converts the three-axis vibration signal (horizontal axis vibration signal, longitudinal axis vibration signal and vertical axis vibration signal) that can indirectly reflect the tool wear degree and working state into a fused vibration signal that retains as much original data as possible through signal fusion processing; then, the fused vibration signal is feature-level fused with the line scan image that can directly reflect the optical characteristics of tool wear to obtain a tool fusion feature map that is convenient for extracting tool wear feature information; then, after the tool fusion feature map is subjected to bounding box regression and classification processing, a suitable bounding box is screened out through intersection-over-union ratio, classification type and classification probability to obtain an optimal tool wear classification map that can reflect the initial wear area (bounding box area) and the initial wear amount (bounding box amount); then, edge pixel extraction is performed on the optimal tool wear classification map to determine the boundary points that can reflect the actual tool wear area, that is, the wear edge points, and based on the wear edge points, a wear area with a more accurate position is obtained; finally, based on the wear area and the corresponding wear area, and the mapping relationship corresponding to the tool life, an accurate prediction result of the tool life to be inspected is obtained; the method has good universality, and the accuracy of tool wear detection and tool life prediction is high. DETAILED DESCRIPTION
[0026] This embodiment provides a tool life prediction method based on image processing, including the following operations:
[0027] S1, obtaining the horizontal axis vibration signal, the longitudinal axis vibration signal and the vertical axis vibration signal of the cutting part of the tool to be inspected, and obtaining a fused vibration signal through signal fusion processing; obtaining a line scan image of a circle of the cutting part of the tool to be inspected, and aligning it with the fused vibration signal to obtain an aligned line scan image and an aligned fused vibration signal;
[0028] S2, aligning and fusing vibration signals and extracting signal features to obtain vibration feature signals; aligning line scan images and extracting image features to obtain line scan feature images; performing weighted fusion processing on the line scan feature images and vibration feature signals to obtain tool fusion feature images;
[0029] S3. The tool fusion feature map is processed by bounding box regression and classification to obtain an initial tool wear classification map containing multiple bounding boxes in the same area, each of which contains multiple classification types and corresponding classification probabilities; the bounding box corresponding to the maximum intersection-over-union ratio with the real box in the same area of the initial tool wear classification map is retained to obtain an optimized tool wear classification map; the bounding box with the classification type of wear and the corresponding classification probability of wear greater than the probability threshold is retained in the optimized tool wear area map to obtain the optimal tool wear classification map;
[0030] S4. In the optimal tool wear classification diagram, each boundary box corresponds to an image, and the edge pixels are extracted to obtain the wear edge points. All the wear edge points are processed into closed areas within the neighborhood to obtain several wear areas. Based on the wear area and the scale of the line scan image, the wear area is obtained. Based on the mapping relationship between the wear area and the wear area and the tool life, the life prediction result of the tool to be inspected is obtained.
[0031] S1. Obtain the horizontal axis vibration signal, the longitudinal axis vibration signal and the vertical axis vibration signal of the cutting part of the tool to be inspected, and obtain a fused vibration signal through signal fusion processing; obtain a line scan image of a circle of the cutting part of the tool to be inspected, and align it with the fused vibration signal to obtain an aligned line scan image and an aligned fused vibration signal.
[0032] The three-axis vibration signal (horizontal axis vibration signal, longitudinal axis vibration signal and vertical axis vibration signal) that can indirectly reflect the degree of tool wear and working status is obtained, and converted into a fused vibration signal that retains as much original data as possible through signal fusion processing, which is convenient for alignment and fusion with the line scan image that can intuitively reflect the optical information of tool wear, so as to achieve more accurate tool life prediction.
[0033] First, a three-axis vibration sensor is used (a 3D piezoelectric accelerometer such as Kistler 9170B251 can be selected) to obtain the horizontal axis vibration signal, the longitudinal axis vibration signal and the vertical axis vibration signal of the cutting part of the tool to be inspected, and then the three-axis vibration signal is fused to obtain a fused vibration signal.
[0034] The signal fusion processing operation can be as follows: the horizontal axis vibration signal, the vertical axis vibration signal and the vertical axis vibration signal are respectively normalized to obtain the horizontal axis normalized vibration signal, the vertical axis normalized vibration signal and the vertical axis normalized vibration signal; the horizontal axis normalized vibration signal, the vertical axis normalized vibration signal and the vertical axis normalized vibration signal are represented as a feature matrix in which each column represents a spatial axis vibration signal to obtain a vibration signal feature matrix; the covariance matrix corresponding to the vibration signal feature matrix is obtained, and the covariance matrix is processed by singular value decomposition to obtain several eigenvalues and corresponding eigenvectors; the eigenvector corresponding to the eigenvalue greater than the eigenvalue threshold is used as the principal component vector; the principal component vector is multiplied by the vibration signal feature matrix to obtain a fused vibration signal.
[0035] The signal fusion processing operation may also be: obtaining the square root (modulus value) of the sum of the squares of the horizontal axis vibration signal, the vertical axis vibration signal and the vertical axis vibration signal to obtain a fused vibration signal.
[0036] The operation of the signal fusion processing may also be: obtaining a weighted average of the horizontal axis vibration signal, the longitudinal axis vibration signal and the vertical axis vibration signal to obtain a fused vibration signal.
[0037] Finally, a line scan image of a circle of the cutting part of the tool to be inspected is obtained, and the image is aligned with the fused vibration signal through timestamp calibration, event calibration or interpolation processing to obtain an aligned line scan image and an aligned fused vibration signal.
[0038] S2. Align and fuse the vibration signals and extract the signal features to obtain the vibration feature signals; align the line scan images and extract the image features to obtain the line scan feature images; perform weighted fusion processing on the line scan feature images and the vibration feature signals to obtain the tool fusion feature graph.
[0039] By extracting and aligning the feature information of the vibration signal and the line scan image respectively, and realizing the feature-level fusion of the signal and the image based on the weighted fusion processing, a tool fusion feature map that is convenient for extracting the tool wear feature information can be obtained, which is beneficial to improving the accuracy of subsequent tool life prediction.
[0040] Firstly, the aligned fusion vibration signals are subjected to signal feature extraction to obtain vibration feature signals.
[0041] The signal feature extraction operation can be: aligning the fused vibration signal and performing noise reduction processing to obtain a noise-reduced fused vibration signal; based on a preset wavelet basis function, decomposing the noise-reduced fused vibration signal into wavelet coefficients of different time scales; obtaining the square of the wavelet coefficients of different time scales, and obtaining a vibration feature signal after normalization processing.
[0042] The signal feature extraction operation can also be: aligning and fusion of vibration signals, removing DC components and performing Fourier transform processing in sequence to obtain a Fourier transform vibration signal; extracting the frequency peak in the Fourier transform vibration signal to obtain a vibration feature signal.
[0043] At the same time, image features are extracted from the line scan image to obtain a line scan feature image.
[0044] The operation of image feature extraction can be: aligning the line scan image and sequentially performing multi-layer downsampling and multi-layer upsampling to obtain a line scan feature image; in the process of multi-layer downsampling and multi-layer upsampling, the output of the first layer of downsampling and the output of the second-to-last layer of upsampling are subjected to the last layer of upsampling, and the output of the second layer of downsampling and the output of the third-to-last layer of upsampling are subjected to the last layer of upsampling. Through the processing of multi-layer downsampling and multi-layer upsampling, the high-level semantic features and low-level semantic features extracted from the image feature can be fused to obtain a line scan feature image with strong feature expression ability, thereby improving the accuracy of subsequent wear detection and life prediction.
[0045] Furthermore, in order to enhance the effect of image feature extraction, the output of the first layer of downsampling is processed by residual feature extraction to obtain the first layer of downsampling residual output, which is used for the final upsampling processing with the output of the second-to-last layer of upsampling; and / or the output of the second layer of downsampling is processed by residual feature extraction to obtain the second layer of downsampling residual output, which is used for the final upsampling processing with the output of the third-to-last layer of upsampling.
[0046] The operation of residual feature extraction processing is as follows (taking the output of the first layer of downsampling as an example): the output of the first layer of downsampling is processed by convolution, attention and nonlinearity, and then superimposed with the output of the first layer of downsampling in the channel dimension to obtain the residual output of the first layer of downsampling.
[0047] The operation of image feature extraction can also be: aligning the line scan image and subjecting it to depthwise separable convolution, multi-head self-attention mechanism processing and multi-layer perceptron processing to obtain a line scan feature image.
[0048] Finally, the line scan feature image and the vibration feature signal are weighted fused to obtain the tool fusion feature map.
[0049] S3. The tool fusion feature map is processed by bounding box regression and classification to obtain an initial tool wear classification map containing multiple bounding boxes in the same area, each of which contains multiple classification types and corresponding classification probabilities; the bounding box corresponding to the maximum intersection-over-union ratio with the real box in the same area in the initial tool wear classification map is retained to obtain an optimized tool wear classification map; the bounding box with the classification type of wear and the corresponding classification probability of wear greater than the probability threshold is retained in the optimized tool wear area map to obtain the optimal tool wear classification map.
[0050] After the tool fusion feature map is processed by bounding box regression and classification, the appropriate bounding box is screened out through the intersection-over-union ratio, classification type and classification probability, and the optimal tool wear classification map that can reflect the initial wear area (bounding box area) and the initial wear amount (bounding box amount) is obtained.
[0051] First, the tool fusion feature map is processed by bounding box regression to obtain a tool boundary regression map containing multiple bounding boxes in the same area. Bounding box regression is an existing technology and will not be described in detail here to save space.
[0052] Then, the image (bounding box corresponding image) in each bounding box area of the tool boundary regression map is classified.
[0053] Among them, the classification processing operation can be: obtaining the tool boundary regression map obtained by the bounding box regression processing of the tool fusion feature map, the brightness similarity between the image corresponding to the current bounding box and each standard tool wear map in the tool wear physical library, and taking the label of the tool wear map corresponding to the brightness similarity greater than the similarity threshold as the classification type of the current bounding box, and the brightness similarity corresponding to the classification type as the classification probability of the current bounding box; the tool boundary regression map, the classification types of all bounding boxes (including wear, stains, normal), and the corresponding classification probabilities form an initial tool wear classification map.
[0054] The method for obtaining brightness similarity is as follows: the image corresponding to the bounding box is segmented to obtain a bounding box segmentation map containing several segmented areas; based on the brightness mean of each segmented area in the bounding box segmentation map and the brightness mean of the initial area corresponding to each segmented area in the standard tool wear map, the regional similarity value between each segmented area and the corresponding initial area is obtained; all regional similarity values are multiplied by the weight values of the corresponding segmented areas, and then summed to obtain brightness similarity.
[0055] The classification processing operation can also be: using the acquired historical tool cutting part data set (including the historical standard tool cutting part wear data set, the historical standard tool cutting part stain data set and the historical standard tool cutting part normal data set) to train the neural network to obtain a trained neural network; the tool boundary regression map is processed by the trained neural network to obtain an initial tool wear classification map containing multiple bounding boxes in the same area, each bounding box containing multiple classification types and corresponding classification probabilities.
[0056] In addition, in order to improve the accuracy of the classification processing, after the bounding box regression processing operation, it also includes a multi-scale graph convolution processing to obtain a multi-scale graph convolution feature map of the tool for performing the classification processing operation; in the graph convolution process of each convolution scale, the adjacency matrix corresponding to the output graph of the previous layer is added to the initial adjacency matrix to obtain an updated adjacency matrix as the adjacency matrix of the current layer input.
[0057] The operation of graph convolution can be achieved by the following formula: l =sigmoid(A l ·H l-1 ·W l ), H l is the output of the lth convolutional layer, H l-1 is the output of the l-1th convolutional layer, H 0 is the segmentation pixel matrix of the tool boundary regression map, is the pixel matrix formed by the average pixel value of each block area in the segmented tool boundary regression map, and W l is the weight of the lth convolutional layer, A l The adjacency matrix of the input to the l-th convolutional layer.
[0058] Next, the bounding box corresponding to the maximum intersection-over-union ratio with the real box in the same area in the initial tool wear classification map is retained. Such a bounding box has high credibility and the corresponding classification result has high accuracy, thus obtaining an optimized tool wear classification map with more accurate wear information classification results.
[0059] Finally, the bounding boxes in the optimized tool wear area map whose classification type is wear and whose corresponding classification probability of wear is greater than the probability threshold are retained. In this way, the wear information obtained is more accurate and the optimal tool wear classification map is obtained.
[0060] S4. In the optimal tool wear classification diagram, each boundary box corresponds to an image, and the edge pixels are extracted to obtain the wear edge points. All the wear edge points are processed into closed areas within the neighborhood to obtain several wear areas. Based on the wear area and the scale of the line scan image, the wear area is obtained. Based on the mapping relationship between the wear position and the wear area and the tool life, the life prediction result of the tool to be inspected is obtained.
[0061] Based on the optimal tool wear classification map that can reflect the preliminary position information of wear (bounding box position), edge pixel extraction is performed to obtain the boundary points of the actual tool wear area, namely, the wear edge points; the obtained wear edge points are closed in a preset neighborhood to obtain a more accurate wear area; based on the wear area and the scale of the line scan image, the actual wear area is obtained; based on the mapping relationship between the wear position and the wear area and the tool life, the life prediction result of the tool to be inspected is obtained.
[0062] First, edge pixel extraction is performed on the image corresponding to each bounding box in the optimal tool wear classification map to obtain the wear edge point. The edge pixel extraction operation is as follows: according to the preset pixel scanning direction, the pixel gradient value (pixel difference between the current position point and the previous position point) of each position point in the image corresponding to each bounding box in the optimal tool wear classification map is obtained, and the position point with a pixel gradient value greater than the pixel gradient threshold is taken as the wear edge point.
[0063] Then, all the worn edge points are connected within a preset neighborhood to achieve closed area processing, and the obtained closed areas are used as several worn areas.
[0064] Next, based on the area of each wear region on the line scan image and the scale of the line scan image, the wear area of each wear region is calculated.
[0065] Finally, based on the mapping relationship between the wear area and the wear surface and the tool life, the life prediction result of the tool to be inspected is obtained.
[0066] In order to further improve the accuracy of wear detection and life prediction, the acoustic emission signal of the cutting part of the tool to be inspected is obtained (the acoustic emission signal can be collected by selecting an acoustic emission sensor such as Kistler 8152C0), and the aligned acoustic emission signal is obtained after alignment processing (alignment processing with the fused vibration signal and the line scan image); the aligned acoustic emission signal is subjected to signal feature extraction to obtain an acoustic emission feature signal; the acoustic emission feature signal is fused with the line scan feature image and the vibration feature signal to obtain an optimized tool fusion feature map for executing the operation in S3.
[0067] In order to further improve the accuracy of wear detection and life prediction, the cutting force signal of the cutting part of the tool to be inspected is obtained (the cutting force signal can be collected by a piezoelectric force sensor such as Kistler 9129AA), and an aligned cutting force signal is obtained after alignment processing; after the signal feature of the aligned cutting force signal is extracted, it is fused with the acoustic emission feature signal, the line scan feature image and the vibration feature signal to obtain the optimal tool fusion feature map, which is used to execute the operation in S3.
[0068] This embodiment also provides a tool life prediction system based on image processing, comprising:
[0069] The alignment line scan image and alignment fusion vibration signal generation module is used to obtain the horizontal axis vibration signal, the longitudinal axis vibration signal and the vertical axis vibration signal of the cutting part of the tool to be inspected, and obtain the fusion vibration signal through signal fusion processing; obtain the line scan image of a circle of the cutting part of the tool to be inspected, and align it with the fusion vibration signal to obtain the alignment line scan image and the alignment fusion vibration signal;
[0070] The tool fusion feature map generation module is used to align the fused vibration signal and extract the signal feature to obtain the vibration feature signal; align the line scan image and extract the image feature to obtain the line scan feature image; the line scan feature image and the vibration feature signal are subjected to weighted fusion processing to obtain the tool fusion feature map;
[0071] The optimal tool wear classification map generation module is used for the tool fusion feature map to be processed by bounding box regression and classification to obtain an initial tool wear classification map containing multiple bounding boxes in the same area, each of which contains multiple classification types and corresponding classification probabilities; retain the bounding box corresponding to the maximum intersection-over-union ratio with the real box in the same area in the initial tool wear classification map to obtain the optimized tool wear classification map; retain the bounding box in the optimized tool wear area map with the classification type of wear and the corresponding classification probability of wear greater than the probability threshold to obtain the optimal tool wear classification map;
[0072] The wear area and life prediction result generation module is used in the optimal tool wear classification map. The edge pixels of each boundary box corresponding image are extracted to obtain the wear edge points; all the wear edge points are processed into closed areas within the neighborhood to obtain several wear areas; based on the wear area and the scale of the line scan image, the wear area is obtained; based on the mapping relationship between the wear area and the wear area and the tool life, the life prediction result of the tool to be inspected is obtained.
[0073] This embodiment also provides a tool life prediction device based on image processing, including a processor and a memory, wherein the processor implements the above-mentioned tool life prediction method based on image processing when executing a computer program stored in the memory.
[0074] This embodiment further provides a computer-readable storage medium for storing a computer program, wherein when the computer program is executed by a processor, the above-mentioned tool life prediction method based on image processing is implemented.
[0075] The tool life prediction method based on image processing provided in this embodiment first converts the three-axis vibration signal (horizontal axis vibration signal, longitudinal axis vibration signal and vertical axis vibration signal) that can indirectly reflect the tool wear degree and working state into a fused vibration signal that retains as much original data as possible through signal fusion processing; then, the fused vibration signal is feature-level fused with the line scan image that can directly reflect the optical characteristics of tool wear to obtain a tool fusion feature map that is convenient for extracting tool wear feature information; then, after the tool fusion feature map is subjected to bounding box regression and classification processing, a suitable bounding box is screened out through intersection-over-union ratio, classification type and classification probability to obtain an optimal tool wear classification map that can reflect the initial wear area (bounding box area) and the initial wear amount (bounding box amount); then, edge pixel extraction is performed on the optimal tool wear classification map to determine the boundary points that can reflect the actual tool wear area, that is, the wear edge points, and based on the wear edge points, a wear area with a more accurate position is obtained; finally, based on the wear area and the corresponding wear area, and the mapping relationship corresponding to the tool life, an accurate prediction result of the tool life to be inspected is obtained; this method has good universality, and the accuracy of tool wear detection and tool life prediction is high.
Claims
1. A tool life prediction method based on image processing, characterized in that: The following operations are included: S1, obtaining a horizontal axis vibration signal, a longitudinal axis vibration signal and a vertical axis vibration signal of the cutting part of the tool to be inspected, and obtaining a fused vibration signal through signal fusion processing; obtaining a line scan image of a circle of the cutting part of the tool to be inspected, and aligning it with the fused vibration signal to obtain an aligned line scan image and an aligned fused vibration signal; S2, extracting signal features from the aligned fused vibration signal to obtain a vibration feature signal; extracting image features from the aligned line scan image to obtain a line scan feature image; and performing weighted fusion processing on the line scan feature image and the vibration feature signal to obtain a tool fusion feature map; S3, the tool fusion feature map is processed by bounding box regression and classification to obtain an initial tool wear classification map containing multiple bounding boxes in the same area, each bounding box containing multiple classification types and corresponding classification probabilities; Retain the bounding box corresponding to the maximum value of the intersection-and-union ratio with the real box in the same area in the initial tool wear classification map to obtain an optimized tool wear classification map; Retaining the boundary boxes in the optimized tool wear classification map whose classification type is wear and whose classification probability corresponding to wear is greater than the probability threshold, to obtain the optimal tool wear classification map; S4, in the optimal tool wear classification map, each boundary box corresponding to the image is extracted by edge pixel extraction to obtain wear edge points; all wear edge points are closed area processed within the neighborhood range to obtain a number of wear areas; Based on the wear area and the scale of the line scan image, the wear area is obtained; Based on the mapping relationship between the wear region and the wear area and the tool life, the life prediction result of the tool to be inspected is obtained.
2. The tool life prediction method based on image processing according to claim 1 is characterized in that: The signal fusion processing operation in S1 is specifically as follows: The horizontal axis vibration signal, the vertical axis vibration signal and the vertical axis vibration signal are respectively normalized to obtain a horizontal axis normalized vibration signal, a vertical axis normalized vibration signal and a vertical axis normalized vibration signal; The horizontal axis normalized vibration signal, the vertical axis normalized vibration signal and the vertical axis normalized vibration signal are expressed as a feature matrix in which each column represents a spatial axis vibration signal, thereby obtaining a vibration signal feature matrix; Obtaining a covariance matrix corresponding to the vibration signal characteristic matrix, wherein the covariance matrix is processed by singular value decomposition to obtain a plurality of eigenvalues and corresponding eigenvectors; The eigenvector corresponding to the eigenvalue greater than the eigenvalue threshold is used as the principal component vector; the principal component vector is multiplied by the vibration signal feature matrix to obtain the fused vibration signal.
3. The tool life prediction method based on image processing according to claim 1, characterized in that: The signal feature extraction operation in S2 is specifically as follows: The aligned fused vibration signal is subjected to denoising to obtain a denoised fused vibration signal; based on a preset wavelet basis function, the denoised fused vibration signal is decomposed into wavelet coefficients of different time scales; The squares of wavelet coefficients at different time scales are obtained and normalized to obtain the vibration characteristic signal.
4. The tool life prediction method based on image processing according to claim 1, characterized in that: The operation of image feature extraction in S2 is specifically as follows: The aligned line scan image is sequentially subjected to multi-layer downsampling processing and multi-layer upsampling processing to obtain the line scan feature image; During the multi-layer downsampling processing and the multi-layer upsampling processing, the output of the first layer of downsampling and the output of the second-to-last layer of upsampling are subjected to the last layer of upsampling processing, and the output of the second layer of downsampling and the output of the third-to-last layer of upsampling are subjected to the last layer of upsampling processing.
5. The tool life prediction method based on image processing according to claim 1, characterized in that: After the bounding box regression process in S3, a multi-scale graph convolution process is also performed to obtain a tool multi-scale graph convolution feature map for performing the classification process; During the graph convolution process at each convolution scale, the adjacency matrix corresponding to the output graph of the previous layer is added to the initial adjacency matrix to obtain the updated adjacency matrix, which is used as the adjacency matrix of the current layer input.
6. The tool life prediction method based on image processing according to any one of claims 1 to 5, characterized in that: Acquire the acoustic emission signal of the cutting part of the tool to be inspected, and obtain an aligned acoustic emission signal after alignment processing; extract the signal features of the aligned acoustic emission signal to obtain an acoustic emission feature signal; and fuse the acoustic emission feature signal with the line scan feature image and the vibration feature signal to obtain an optimized tool fusion feature map for executing the operation in S3.
7. The tool life prediction method based on image processing according to claim 6 is characterized in that: The cutting force signal of the cutting part of the tool to be inspected is obtained, and an aligned cutting force signal is obtained after alignment processing; the aligned cutting force signal is subjected to signal feature extraction, and then fused with the acoustic emission feature signal, the line scan feature image and the vibration feature signal to obtain an optimal tool fusion feature map for executing the operation in S3.
8. A tool life prediction system based on image processing, characterized in that: include: The alignment line scan image and alignment fusion vibration signal generation module is used to obtain the horizontal axis vibration signal, the longitudinal axis vibration signal and the vertical axis vibration signal of the cutting part of the tool to be inspected, and obtain the fusion vibration signal through signal fusion processing; obtain the line scan image of a circle of the cutting part of the tool to be inspected, and align it with the fusion vibration signal to obtain the alignment line scan image and the alignment fusion vibration signal; A tool fusion feature map generation module is used to extract the signal features of the aligned fusion vibration signal to obtain a vibration feature signal; extract the image features of the aligned line scan image to obtain a line scan feature image; and perform weighted fusion processing on the line scan feature image and the vibration feature signal to obtain a tool fusion feature map; An optimal tool wear classification map generation module is used for the tool fusion feature map to be processed by bounding box regression and classification to obtain an initial tool wear classification map containing multiple bounding boxes in the same area, each bounding box containing multiple classification types and corresponding classification probabilities; The bounding box corresponding to the maximum value of the intersection-and-union ratio with the real box in the same area in the initial tool wear classification map is retained to obtain an optimized tool wear classification map; the bounding box whose classification type is wear and the classification probability corresponding to wear is greater than the probability threshold in the optimized tool wear classification map is retained to obtain an optimal tool wear classification map; The wear area and life prediction result generation module is used in the optimal tool wear classification map. Each boundary box corresponding image is extracted by edge pixel to obtain wear edge points; all wear edge points are closed area processed within the neighborhood to obtain several wear areas; based on the wear area and the line scan image scale, the wear area is obtained; based on the mapping relationship between the wear area and the wear area and the tool life, the life prediction result of the tool to be inspected is obtained.
9. A tool life prediction device based on image processing, characterized in that: The method comprises a processor and a memory, wherein when the processor executes the computer program stored in the memory, the tool life prediction method based on image processing as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the tool life prediction method based on image processing according to any one of claims 1 to 7 is implemented.
