Detection method and detection system for cutting precision of milling cutter

By grayscale, filtering and feature extraction of the milling cutter image, combined with the cutting speed and feed rate, the problem of complex detection and inability to monitor in real time in the existing technology is solved, and efficient and accurate milling cutter cutting accuracy detection is achieved.

CN118864429AActive Publication Date: 2024-10-29DONGGUAN XINBANG CNC TOOLS CO LTD

Patent Information

Application Number
CN202411043815.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-29
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

The existing technology requires high-precision measuring equipment to detect the cutting accuracy of milling cutters, which consumes a lot of time and manpower, and cannot monitor the usage status of milling cutters in real time, affecting production efficiency.

Method used

By obtaining the original image of the milling cutter, perform grayscale processing, median filtering and local threshold processing, detect the contour, extract features and input them into the support vector machine model, and determine the cutting accuracy by combining the cutting speed and feed rate.

Benefits of technology

It simplifies the inspection process, reduces costs, enables real-time monitoring of milling cutter status, and improves the accuracy and efficiency of cutting accuracy assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864429A_ABST
    Figure CN118864429A_ABST
Patent Text Reader

Abstract

The invention discloses a milling cutter cutting precision detection method and system, and the method comprises the steps: obtaining an original image of a to-be-detected milling cutter, carrying out the graying processing of the original image, carrying out the filtering processing of the grayed image through employing a median filter, and carrying out the local threshold processing of the filtered image, and obtaining a first image; detecting the contour of the first image by using an edge detection algorithm, screening out a loss area contour according to the size and shape of the contour, and filling the loss area contour to obtain a second image; performing feature extraction on the second image, and inputting the extracted features into a preset support vector machine model to obtain the loss degree of the to-be-detected milling cutter; the cutting speed and the feeding rate of the to-be-detected milling cutter are obtained, and the cutting precision is determined according to the cutting speed, the feeding rate and the loss degree of the to-be-detected milling cutter. The loss degree of the milling cutter can be rapidly and accurately detected, the cutting precision is calculated according to the cutting speed, the feeding rate and the loss degree, and the method has the advantages of being low in cost, short in consumed time and high in detection precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of milling cutter cutting accuracy detection, and in particular to a milling cutter cutting accuracy detection method and detection system. Background Art

[0002] In the metal processing industry, milling cutters are an important cutting tool, and their use directly affects the processing quality and production efficiency. At present, the detection of milling cutter cutting accuracy is mostly based on direct measurement of the cut object, such as detecting the surface roughness of the cut object to reflect the milling cutter cutting accuracy. However, this method usually requires high-precision measuring equipment to measure the surface condition of the cut object. The measurement process is complicated and requires a lot of time and manpower and material resources, which will greatly increase the detection cost of milling cutter cutting accuracy. In addition, this method can only evaluate the cutting results after the cutting is completed, and it is impossible to monitor the use status of the milling cutter in real time, resulting in limited ability to predict the future performance of the milling cutter, which in turn affects the energy efficiency in subsequent work, and has strong limitations. Summary of the invention

[0003] In order to solve at least one of the above-mentioned technical problems, the present invention provides a method and a system for detecting cutting accuracy of a milling cutter.

[0004] In a first aspect, the present invention provides a method for detecting cutting accuracy of a milling cutter, the method comprising:

[0005] Acquire an original image of the milling cutter to be tested, perform grayscale processing on the original image, use a median filter to filter the grayscale image, and perform local threshold processing on the filtered image to obtain a first image;

[0006] An edge detection algorithm is used to detect the contour of the first image, and the contour of the loss area is screened out according to the size and shape of the contour, and the contour of the loss area is filled to obtain the second image;

[0007] Extracting features from the second image, and inputting the extracted features into a preset support vector machine model to obtain the wear degree of the milling cutter to be tested;

[0008] The cutting speed and feed rate of the milling cutter to be tested are obtained, and the cutting accuracy is determined according to the cutting speed, feed rate and wear degree of the milling cutter to be tested.

[0009] Preferably, before the local threshold processing is performed on the filtered image, the method further comprises:

[0010] The filtered image is converted into the frequency domain according to Fourier transform to identify the frequency components of the milling cutter stripe noise to be tested;

[0011] The frequency components of the stripe noise are removed by masking, and the image is converted back to the spatial domain by inverse Fourier transform.

[0012] Preferably, the filtering process of the grayscale image using a median filter and performing local threshold processing on the filtered image includes:

[0013] Divide the grayscale image into multiple windows and select any one of them as the target window;

[0014] Obtain the grayscale histogram of the target window pixel points, and use the OSTU algorithm to identify the grayscale value that maximizes the inter-variance as the grayscale threshold;

[0015] The target window pixels are divided into foreground area and background area according to the grayscale threshold, and the grayscale change degree is calculated according to the background area and the foreground area:

[0016]

[0017] In the formula, c is the grayscale change degree, is the average grayscale value of the background area, is the grayscale average value of the foreground area, and g0 is the grayscale threshold;

[0018] Determine whether the grayscale change is greater than the preset threshold; if so, As the new grayscale threshold, and process the remaining windows; if not, As the local threshold of the target window, and process the remaining windows.

[0019] Preferably, extracting features from the second image includes:

[0020] Using the detection frame to perform partition feature extraction on the second image to obtain multiple feature sub-images;

[0021] Obtain a preset convolutional neural network model, use multi-scale feature fusion to extract the texture features, spectral features and spatial distribution features of each feature sub-image at different scales, and generate an original feature set;

[0022] The convolutional neural network model is added with an attention mechanism to assign weights to different features in the original feature set and to rank the importance of each feature through feature selection;

[0023] Based on the result of feature importance sorting, target features that meet preset conditions are screened out to generate a target feature set. Preferably, the cutting accuracy is determined according to the cutting speed, feed rate and loss of the milling cutter to be tested, including:

[0024] P = a × e -w +bln(v)+cln(f)+k

[0025] Where P represents cutting accuracy, w, v, and f represent the loss, cutting speed, and feed rate, respectively; a, b, and c represent the influence of the loss, cutting speed, and feed rate on the cutting accuracy, respectively, and are all fitted by nonlinear regression algorithm; k is a constant term, which represents the cutting accuracy when the loss, cutting speed, and feed rate are all zero; e represents the base of the natural logarithm.

[0026] In a second aspect, the present invention further provides a milling cutter cutting accuracy detection system, the system comprising:

[0027] A filtering processing unit is used to obtain an original image of the milling cutter to be tested, grayscale the original image, filter the grayscale image using a median filter, and perform local threshold processing on the filtered image to obtain a first image;

[0028] A contour extraction unit, used to detect the contour of the first image using an edge detection algorithm, filter out the contour of the loss area according to the size and shape of the contour, and fill the contour of the loss area to obtain the second image;

[0029] A loss prediction unit is used to extract features from the second image, input the extracted features into a preset support vector machine model, and obtain the loss of the milling cutter to be measured;

[0030] The cutting accuracy determination unit is used to obtain the use parameters of the milling cutter to be tested, including cutting speed, feed rate and use time; and determine the cutting accuracy according to the use parameters and wear degree of the milling cutter to be tested.

[0031] In a third aspect, the present invention further provides an electronic device comprising a processor and a memory, wherein the memory is used to store computer program code, and the computer program code comprises computer instructions. When the processor executes the computer instructions, the electronic device executes the method as described in the first aspect above and any possible implementation thereof.

[0032] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by a processor of an electronic device, the processor executes the method as described in the first aspect above and any possible implementation thereof.

[0033] Compared with the prior art, the present invention has the following beneficial effects:

[0034] 1) When detecting the cutting accuracy of the milling cutter, the present invention mainly evaluates the wear degree of the milling cutter first, and then monitors the cutting speed and feed rate of the milling cutter in the working state, and jointly determines the cutting accuracy according to the cutting speed, feed rate and wear degree of the milling cutter. Through this indirect measurement method, compared with evaluating the cutting accuracy from the perspective of the cutting object, there is no need to conduct a large number of experiments to collect data for testing, which greatly simplifies the detection process and can save costs while taking into account the measurement results of the cutting accuracy.

[0035] 2) When evaluating the degree of wear, the present invention first obtains the original image of the milling cutter to be tested, grays the original image, filters the grayed image using a median filter, and performs local threshold processing on the filtered image to obtain a first image; through image preprocessing steps such as grayscaling, median filtering, and local threshold processing, image noise can be effectively removed and image quality can be improved. By performing edge detection on the preprocessed image and screening out the contour of the wear area according to the size and shape of the contour, the wear part of the milling cutter can be accurately identified.

[0036] 3) The present invention uses multi-scale feature fusion to extract the texture features, spectral features and spatial distribution features of each feature sub-graph at different scales, and uses the attention mechanism to select important features, which can greatly increase the quality of feature extraction and avoid the interference of redundant features to improve the prediction accuracy. By inputting the extracted features into the preset support vector machine model, the extracted important features can be classified, and the degree of milling cutter loss can be quickly and accurately evaluated, providing a reliable basis for subsequent cutting accuracy evaluation.

[0037] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.

[0039] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.

[0040] Figure 1 A schematic diagram of a flow chart of a method for detecting cutting accuracy of a milling cutter provided in an embodiment of the present invention;

[0041] Figure 2 A certain embodiment of the present invention provides Figure 1 Schematic diagram of the process of the sub-steps of step S10;

[0042] Figure 3 Another embodiment of the present invention provides Figure 1 Schematic diagram of the process of the sub-steps of step S10;

[0043] Figure 4 A schematic structural diagram of a milling cutter cutting accuracy detection system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of 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.

[0045] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0046] At present, the detection of milling cutter cutting accuracy is mostly based on the cutting object. This method can only be performed after the cutting is completed. It is not possible to monitor the use status of the milling cutter in real time to evaluate the subsequent performance of the milling cutter. At the same time, the measurement cost is high and the efficiency is low. To this end, the present invention provides a milling cutter cutting accuracy detection method, which can evaluate the milling cutter wear degree, and accurately calculate the cutting accuracy by combining the wear degree, cutting speed and feed rate, which has the advantages of low cost, high efficiency and high accuracy.

[0047] See also Figure 1 , Figure 1 A schematic diagram of a flow chart of a method for detecting cutting accuracy of a milling cutter provided by an embodiment of the present invention. Figure 1 As shown, the method includes:

[0048] S10, obtaining an original image of the milling cutter to be tested, graying the original image, filtering the grayed image using a median filter, and performing local threshold processing on the filtered image to obtain a first image.

[0049] First, use a camera or scanner to capture an image of the milling cutter to be tested. When capturing, ensure that the image is clear, the light is even, and avoid overexposure or underexposure. Grayscale processing is the process of converting a color image into a grayscale image. A grayscale image only has grayscale values ​​and no color information, which helps to simplify the image processing process and reduce the amount of calculation. Preferably, the grayscale processing can take the average value of the RGB value of each pixel as the grayscale value. The grayscale processing can reduce the complexity of image processing and convert it into a single-channel image. The grayscale image can better display the contrast and details in the image, which is more conducive to edge detection, threshold processing, etc. in subsequent processing.

[0050] In one embodiment, a median filter is used to filter the grayscale image, and a local threshold process is performed on the filtered image, including:

[0051] Divide the grayscale image into multiple windows and select any one of them as the target window;

[0052] Obtain the grayscale histogram of the target window pixel points, and use the OSTU algorithm to identify the grayscale value that maximizes the inter-variance as the grayscale threshold;

[0053] The target window pixels are divided into foreground area and background area according to the grayscale threshold, and the grayscale change degree is calculated according to the background area and the foreground area:

[0054]

[0055] In the formula, c is the grayscale change degree, is the average grayscale value of the background area, is the grayscale average value of the foreground area, and g0 is the grayscale threshold;

[0056] Determine whether the grayscale change is greater than the preset threshold; if so, As the new grayscale threshold, and process the remaining windows; if not, As the local threshold of the target window, and process the remaining windows.

[0057] The median filter is a nonlinear filter that removes noise by sliding a window over the image and calculating the median of the pixel values ​​within the window at each position. For example, the median filter is very effective in removing salt and pepper noise because it replaces the value of the central pixel by selecting the median rather than the average value, and the median is less likely to be affected even if the window contains noise points. Compared with the mean filter, the median filter is better at preserving the edges and details of the image because the median filter does not smooth out the pixel values ​​at the edge, but selects the pixel values ​​adjacent to the edge, thereby preserving the details of the edge. When the sliding window covers stripe noise, the median filter tends to select the value of the surrounding normal pixels as the median, thereby removing or reducing the impact of stripe noise. Therefore, filtering with a median filter can greatly improve image quality.

[0058] Specifically, in this embodiment, the grayscale image is first divided into multiple windows, and any one of them is selected as the target window; then the grayscale histogram of the pixel points of the target window is obtained, and the OSTU algorithm is used to identify the grayscale value that maximizes the inter-class variance as the grayscale threshold; the OSTU algorithm is a commonly used automatic threshold selection method, which can facilitate subsequent image feature extraction after processing, and by traversing all thresholds, a grayscale threshold is found that can maximize the inter-class variance. This threshold should be set as the optimal grayscale threshold. Furthermore, the pixel points of the target window are divided into foreground area and background area according to the grayscale threshold, and the degree of grayscale change is calculated according to the above formula to determine whether it is greater than a preset threshold to decide whether to adjust the grayscale threshold. If it is greater, then As the new grayscale threshold, that is, based on the grayscale average value of the background area and the grayscale average value of the foreground area, the average value of the two is taken, and the grayscale threshold set above is updated with this value, and then the remaining windows are processed in the same way. Conversely, if the grayscale change does not exceed the preset threshold, then As the local threshold of the target window, the remaining windows are processed in the same way. After all windows are processed, the first image can be generated.

[0059] It should be noted that the milling cutter stripe noise has a great influence on the loss evaluation, for example:

[0060] Reduced contrast: Stripe noise reduces the contrast between the milling cutter wear area and the background in the image, making it difficult to accurately identify the wear area.

[0061] Increased false detection: Stripe noise may lead to erroneous edge detection and feature extraction, thus affecting the correct segmentation of the loss area.

[0062] Impact on threshold processing: Stripe noise will affect the selection of automatic thresholds, which may lead to inaccurate binarization results and affect subsequent loss assessment.

[0063] Although the above steps use a median filter to eliminate stripe noise to a certain extent, the stripe noise has directionality and periodicity, so the denoising effect of the median filter is relatively limited, which leads to the subsequent steps. To this end, in one embodiment, before the local threshold processing is performed on the filtered image, steps S01 and S02 are also included, such as Figure 2 As shown, the details are as follows:

[0064] S01, converting the filtered image into the frequency domain according to Fourier transform, and identifying the frequency component of the milling cutter stripe noise to be measured;

[0065] S02. Remove the frequency components of the stripe noise through masking and convert the image back to the spatial domain through inverse Fourier transform.

[0066] In this embodiment, the filtered image is first converted to the frequency domain by Fourier transform, and then the frequency component corresponding to the stripe noise is identified by observing the spectrum diagram, and a mask is designed to remove the frequency component of the stripe noise. Finally, the frequency domain image after masking is converted back to the spatial domain by inverse Fourier transform. Removing stripe noise by Fourier transform can enhance the contrast of the image and make the wear area of ​​the milling cutter more obvious. In addition, removing stripe noise helps to improve the accuracy of image segmentation, reduce the possibility of false detection, and improve the reliability of wear degree assessment.

[0067] S20, using an edge detection algorithm to detect the contour of the first image, screening out the contour of the loss area according to the size and shape of the contour, and filling the contour of the loss area to obtain the second image.

[0068] Edge detection is a common image processing technique used to identify locations in an image where pixel intensity changes significantly. Canny edge detection is a commonly used edge detection algorithm that can effectively find clear edges and suppress noise. Preferably, the present embodiment uses the Canny edge detection algorithm. When detecting the contour of the first image, once the edges are detected, a contour detection algorithm can be used to identify the closed area formed by these edges. When screening contours, selection can be made based on the size, shape or other geometric properties of the contour. For example, a minimum area threshold can be set to filter out smaller contours, or the approximate circularity of the contour can be calculated to exclude non-circular contours. Finally, the filtered loss area contours are filled to obtain the second image.

[0069] The edge detection of this embodiment can accurately determine the boundaries of objects in the image, and the use of Canny edge detection can effectively reduce the impact of noise and improve the accuracy of edge detection. In addition, edge detection helps to extract key features in the image, which are crucial for understanding the content of the image. By screening the size and shape of the contour, the characteristics of the loss area can be further highlighted. By filling the contour of the loss area, the content of the image can be simplified, making subsequent processing more efficient. The filled image is easier to further analyze, such as calculating the area of ​​the loss area, which can help quickly identify and locate the problem, thereby saving time and resources. Therefore, through the method of this embodiment, the accuracy and efficiency of image analysis can be improved, the complexity of subsequent processing can be reduced, and easy-to-understand visualization results can be provided.

[0070] S30, extracting features from the second image, and inputting the extracted features into a preset support vector machine model to obtain the wear degree of the milling cutter to be measured.

[0071] In this step, firstly, features of the second image can be extracted, including texture features, spectral features, and spatial distribution features, etc., and then the extracted features are input into a preset support vector machine model, which can quickly output the wear degree of the milling cutter to be tested.

[0072] When training a support vector machine model, the following steps are involved:

[0073] Data preparation: The extracted features are combined into a feature vector and the corresponding label data is prepared;

[0074] Model training: Use the existing labeled training data set to train the support vector machine model;

[0075] Model testing: Evaluate the performance of the model using the test dataset;

[0076] Model application: The extracted features are input into the trained support vector machine model to predict the wear degree of the milling cutter to be tested.

[0077] See also Figure 3 In one embodiment, the extracting features from the second image includes:

[0078] S101, using a detection frame to perform partition feature extraction on the second image to obtain multiple feature sub-images;

[0079] S102, obtaining a preset convolutional neural network model, and using multi-scale feature fusion to extract texture features, spectral features, and spatial distribution features of each feature sub-graph at different scales to generate an original feature set;

[0080] The convolutional neural network model is added with an attention mechanism to assign weights to different features in the original feature set and to rank the importance of each feature through feature selection;

[0081] S103: Filter out target features that meet preset conditions based on the results of feature importance sorting, and generate a target feature set.

[0082] In this embodiment, the detection box refers to a bounding box commonly used in target detection, which is used to locate the region of interest in the image, i.e., the ROI region. The image is divided into several sub-regions using a bounding box, which may correspond to different parts of the milling cutter. This allows the model to focus on important local features. Each sub-region can be regarded as a "feature sub-graph", and features can be extracted separately.

[0083] Convolutional neural network (CNN) models are widely used in fields such as image classification and target detection. In this embodiment, the model uses multi-scale feature fusion technology for feature extraction. In order to capture features of different sizes, receptive fields of different sizes can be used to extract features, which is usually achieved through convolution kernels of different sizes or pyramid structures. Specifically, texture features, spectral features and spatial distribution features include:

[0084] Texture features, extract gray-level co-occurrence matrix features, such as contrast, energy, entropy, gray-level standard deviation, etc.

[0085] Spectral features include multispectral images and hyperspectral images; multispectral images contain images with multiple bands, each band representing a different spectral range. Hyperspectral images are similar to multispectral images, but have more bands and can provide more detailed spectral information.

[0086] Spatial distribution features, including contour features, are used to describe the shape features of the edge of an object. Directed gradient histograms are used to calculate the gradient direction distribution of a local area in an image. Scale-invariant feature transforms are used to detect key points and their descriptors, which are invariant to scale and rotation changes. Fast feature transforms are used to quickly detect corner points in an image. Directional features are used for features such as the main axis direction, angle distribution, etc.

[0087] Furthermore, adding an attention mechanism to a convolutional neural network can help the model focus on the most important parts while suppressing irrelevant information. Specifically, it assigns weights to different features in the original feature set and sorts the importance of each feature through feature selection. Then, based on the results of feature importance sorting, the target features that meet the preset conditions are screened out to generate a target feature set. This helps remove redundant information, reduce computational burden, improve the generalization ability of the model, and reduce the risk of overfitting.

[0088] Therefore, this embodiment trains the support vector machine model in advance, and the model can automatically evaluate the wear degree of the milling cutter, reducing the subjectivity and uncertainty of manual judgment. The support vector machine model can capture the complex relationship between features and improve the accuracy of the wear degree evaluation. When applied, the model can quickly give the evaluation result of the wear degree, improving the efficiency of detection. And the model can be continuously improved and expanded with more training data to adapt to different milling cutter types and wear degrees. Due to the stability of the model itself, it can also ensure the consistency and stability under different evaluation results, laying the foundation for subsequent detection of cutting accuracy.

[0089] S40, obtaining the cutting speed and feed rate of the milling cutter to be tested, and determining the cutting accuracy according to the cutting speed, feed rate and wear degree of the milling cutter to be tested.

[0090] Specifically, determining the cutting accuracy according to the cutting speed, feed rate and loss of the milling cutter to be tested includes:

[0091] P = a × e -w +bln(v)+cln(f)+k

[0092] Where P represents cutting accuracy, w, v, and f represent the loss, cutting speed, and feed rate, respectively; a, b, and c represent the influence of the loss, cutting speed, and feed rate on the cutting accuracy, respectively, and are all fitted by nonlinear regression algorithm; k is a constant term, which represents the cutting accuracy when the loss, cutting speed, and feed rate are all zero; e represents the base of the natural logarithm.

[0093] It should be noted that cutting speed is a measure of the speed of the milling cutter along its rotation direction, usually expressed in meters per minute (m / min). This value can be determined based on the diameter and rotation speed of the milling cutter. The effect of cutting speed on cutting accuracy is usually nonlinear, and a logarithmic function is used here to simulate this nonlinear relationship. As the cutting speed increases, its effect on cutting accuracy will gradually slow down. Similar to cutting speed, the effect of feed rate on cutting accuracy is also nonlinear, and a logarithmic function is also used to simulate a nonlinear relationship. As the feed rate increases, its effect on cutting accuracy will gradually slow down. The effect of wear is simulated using an exponential function, and generally the higher the wear, the lower the cutting accuracy. This relationship reflects the trend of reduced cutting performance as the wear of the milling cutter increases. The constant term k represents the cutting accuracy of the milling cutter when there is no influence of wear, cutting speed, and feed rate, that is, when all three values ​​are 0. Therefore, the above formula quantifies the effects of wear, cutting speed, and feed rate on cutting accuracy, and provides a mathematical model for evaluating and predicting cutting accuracy. The parameters a, b, and

[0094] c, k, can be used to optimize cutting parameters to achieve the best cutting accuracy. Once the model is established, the cutting accuracy can be predicted based on the real-time monitoring of the loss, cutting speed and feed rate, which is very important for real-time monitoring and adjustment during the production process. For example, during the milling cutter cutting process, if the cutting accuracy is evaluated to not meet the requirements, the work can be stopped in time and a new milling cutter can be replaced to ensure the quality of the finished product and improve production efficiency.

[0095] In summary, the milling cutter cutting accuracy detection method provided by the embodiment of the present invention has at least the following effects:

[0096] 1) When detecting the cutting accuracy of the milling cutter, the present invention mainly evaluates the wear degree of the milling cutter first, and then monitors the cutting speed and feed rate of the milling cutter in the working state, and jointly determines the cutting accuracy according to the cutting speed, feed rate and wear degree of the milling cutter. Through this indirect measurement method, compared with evaluating the cutting accuracy from the perspective of the cutting object, there is no need to conduct a large number of experiments to collect data for testing, which greatly simplifies the detection process and can save costs while taking into account the measurement results of the cutting accuracy.

[0097] 2) When evaluating the degree of wear, the present invention first obtains the original image of the milling cutter to be tested, grays the original image, filters the grayed image using a median filter, and performs local threshold processing on the filtered image to obtain a first image; through image preprocessing steps such as grayscaling, median filtering, and local threshold processing, image noise can be effectively removed and image quality can be improved. By performing edge detection on the preprocessed image and screening out the contour of the wear area according to the size and shape of the contour, the wear part of the milling cutter can be accurately identified.

[0098] 3) The present invention uses multi-scale feature fusion to extract the texture features, spectral features and spatial distribution features of each feature sub-graph at different scales, and uses the attention mechanism to select important features, which can greatly increase the quality of feature extraction and avoid the interference of redundant features to improve the prediction accuracy. By inputting the extracted features into the preset support vector machine model, the extracted important features can be classified, and the degree of milling cutter loss can be quickly and accurately evaluated, providing a reliable basis for subsequent cutting accuracy evaluation.

[0099] See also Figure 4 In one embodiment, the present invention further provides a milling cutter cutting accuracy detection system, the system comprising:

[0100] The filtering processing unit 100 is used to obtain an original image of the milling cutter to be tested, grayscale the original image, filter the grayscale image using a median filter, and perform local threshold processing on the filtered image to obtain a first image;

[0101] The contour extraction unit 200 is used to detect the contour of the first image using an edge detection algorithm, filter out the loss area contour according to the size and shape of the contour, and fill the loss area contour to obtain the second image;

[0102] The loss prediction unit 300 is used to extract features from the second image, input the extracted features into a preset support vector machine model, and obtain the loss of the milling cutter to be measured;

[0103] The cutting accuracy determination unit 400 is used to obtain the use parameters of the milling cutter to be tested, including cutting speed, feed rate and use time; and determine the cutting accuracy according to the use parameters and wear degree of the milling cutter to be tested.

[0104] It can be understood that the functions or modules included in the system provided in this embodiment can be used to execute the method described in the above method embodiment. Its specific implementation can refer to the description of the above method embodiment. For the sake of brevity, it will not be repeated here.

[0105] An embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes the milling cutter cutting accuracy detection method as described in any one of the above embodiments.

[0106] A certain embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes the milling cutter cutting accuracy detection method as described in any one of the above embodiments.

[0107] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0108] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those skilled in the art can also clearly understand that the descriptions of the various embodiments of the present invention have different focuses. For the convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, for parts not described or not described in detail in a certain embodiment, refer to the records of other embodiments.

[0109] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes various media that can store program codes, such as read-only memory (ROM) or random access memory (RAM), a magnetic disk or an optical disk.

Claims

1. A method for detecting cutting accuracy of a milling cutter, characterized in that: The method comprises: Acquire an original image of the milling cutter to be tested, perform grayscale processing on the original image, use a median filter to filter the grayscale image, and perform local threshold processing on the filtered image to obtain a first image; An edge detection algorithm is used to detect the contour of the first image, and the contour of the loss area is screened out according to the size and shape of the contour, and the contour of the loss area is filled to obtain the second image; Extracting features from the second image, and inputting the extracted features into a preset support vector machine model to obtain the wear degree of the milling cutter to be tested; The cutting speed and feed rate of the milling cutter to be tested are obtained, and the cutting accuracy is determined according to the cutting speed, feed rate and wear degree of the milling cutter to be tested.

2. The method for detecting the cutting accuracy of a milling cutter according to claim 1, characterized in that: Before the filtered image is subjected to local threshold processing, the method includes: The filtered image is converted into the frequency domain according to Fourier transform to identify the frequency components of the milling cutter stripe noise to be tested; The frequency components of the stripe noise are removed by masking, and the image is converted back to the spatial domain by inverse Fourier transform.

3. The method for detecting the cutting accuracy of a milling cutter according to claim 1, characterized in that: The method of filtering the grayscale image using a median filter and performing local threshold processing on the filtered image includes: Divide the grayscale image into multiple windows and select any one of them as the target window; Obtain the grayscale histogram of the target window pixel points, and use the OSTU algorithm to identify the grayscale value that maximizes the inter-variance as the grayscale threshold; The target window pixels are divided into foreground area and background area according to the grayscale threshold, and the grayscale change degree is calculated according to the background area and the foreground area: In the formula, c is the grayscale change degree, is the average grayscale value of the background area, is the grayscale average value of the foreground area, and g0 is the grayscale threshold; Determine whether the grayscale change is greater than the preset threshold; if so, As the new grayscale threshold, and process the remaining windows; if not, As the local threshold of the target window, and process the remaining windows.

4. The method for detecting the cutting accuracy of a milling cutter according to claim 1, characterized in that: The extracting features from the second image comprises: Using the detection frame to perform partition feature extraction on the second image to obtain multiple feature sub-images; Obtain a preset convolutional neural network model, use multi-scale feature fusion to extract the texture features, spectral features and spatial distribution features of each feature sub-image at different scales, and generate an original feature set; The convolutional neural network model is added with an attention mechanism to assign weights to different features in the original feature set and to rank the importance of each feature through feature selection; Based on the results of feature importance sorting, target features that meet the preset conditions are screened out to generate a target feature set.

5. The method for detecting the cutting accuracy of a milling cutter according to claim 1, characterized in that: Determining the cutting accuracy according to the cutting speed, feed rate and loss of the milling cutter to be tested includes: P=a×e -w +bln(v)+cln(f)+k Where P represents cutting accuracy, w, v, and f represent the loss, cutting speed, and feed rate, respectively; a, b, and c represent the influence of the loss, cutting speed, and feed rate on the cutting accuracy, respectively, and are all fitted by nonlinear regression algorithm; k is a constant term, which represents the cutting accuracy when the loss, cutting speed, and feed rate are all zero; e represents the base of the natural logarithm.

6. A milling cutter cutting accuracy detection system, characterized in that: The system comprises: A filtering processing unit is used to obtain an original image of the milling cutter to be tested, grayscale the original image, filter the grayscale image using a median filter, and perform local threshold processing on the filtered image to obtain a first image; A contour extraction unit, used to detect the contour of the first image using an edge detection algorithm, filter out the contour of the loss area according to the size and shape of the contour, and fill the contour of the loss area to obtain the second image; A loss prediction unit is used to extract features from the second image, input the extracted features into a preset support vector machine model, and obtain the loss of the milling cutter to be measured; The cutting accuracy determination unit is used to obtain the use parameters of the milling cutter to be tested, including cutting speed, feed rate and use time; and determine the cutting accuracy according to the use parameters and wear degree of the milling cutter to be tested.

7. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store computer program codes, wherein the computer program codes include computer instructions. When the processor executes the computer instructions, the electronic device executes the milling cutter cutting accuracy detection method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes the milling cutter cutting accuracy detection method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method for detecting abrasion difference of cutter teeth of high-speed milling cutters under action of vibration

    CN105619180A

  • Microscopic image detection and recognition method for rice blast fungus spore based on support vector machine

    CN108564124A

  • Analysis model construction and verification method for revealing wear difference of cutter teeth of high-feed milling cutter

    CN110704969A

Cited By

  • System and method for automatically detecting abrasion of cutter of shield tunneling machine

    CN120219372A

  • Automatic detection system and method for shield machine tool wear

    CN120219372B