A numerical control machine tool production quality detection method and system based on industrial vision

By combining rapid imaging and time-frequency decomposition techniques with time-series analysis and physical consistency verification, the problem of image distortion in online wear detection of CNC machine tool tools has been solved, enabling accurate identification and early warning of tool wear, and improving the stability and accuracy of detection.

CN123168874APending Publication Date: 2026-11-27SHAOXING JINGDING CNC EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611606412.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-16
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for online wear detection of CNC machine tool tools struggle to accurately and stably extract effective features of the tool's true wear state from images severely contaminated and distorted by complex dynamic environmental factors, resulting in low accuracy and stability of the detection.

Method used

Rapid imaging technology is used to continuously acquire multi-frame image data of the cutting edge area of ​​the tool. The local feature data is decomposed and correlated by time-frequency decomposition method. Combined with time series analysis and physical consistency verification, the actual wear state of the tool is identified, and the detection parameters are adjusted by adaptive learning.

Benefits of technology

It enables real-time capture and accurate identification of tool wear in complex industrial environments, reduces false alarm rates, improves detection accuracy and robustness, and identifies wear signs in advance to avoid product quality degradation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123168874A_ABST
    Figure CN123168874A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of industrial vision detection, and discloses a numerical control machine tool production quality detection method and system based on industrial vision, which starts an image data acquisition process by receiving a tool motion instruction, and ensures the synchronism of detection and machining processes. In the tool cutting process, a plurality of image data frames are continuously collected by using a fast imaging technology, the dynamic change of a tool cutting edge can be captured, and rich and continuous visual information is provided for subsequent wear analysis. Then, local feature data reflecting the tool wear state is accurately extracted from the plurality of image data frames for a preset small area on the tool cutting edge, which makes it possible to quantify the wear. Most importantly, the application performs time series analysis on the local feature data, evaluates the change mode of the local feature data in the continuous image frames, and thus can effectively identify the real tool wear state from instantaneous interference such as chips, cutting fluid, illumination change and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industrial vision inspection technology, and more specifically, to a method and system for inspecting the production quality of CNC machine tools based on industrial vision. Background Technology

[0002] In modern industrial production, especially in the field of precision machining, the wear of CNC machine tool cutting tools is a major cause of product quality decline and even mass scrapping. Traditional methods of tool wear detection, such as manual periodic sampling or indirect judgment based on the dimensions of machined parts, are often lagging and fail to detect problems in the early stages of abnormal tool wear, leading to the accumulation of machining defects. To overcome this challenge, industrial vision-based inspection systems have been introduced into production lines to achieve online, real-time monitoring of tool status, enabling early warning and intervention before problems occur.

[0003] However, when industrial vision-based online tool inspection systems are actually deployed in workshops, a series of real-world challenges not fully anticipated in the initial design phase severely impact their reliability. First, the residual high temperature after continuous cutting causes infrared radiation, thermal expansion, and surrounding air convection, resulting in localized overexposure, color distortion, blurring, and even "thermal halo" in some areas, obscuring the true details of the cutting edge and causing deviations in the geometric dimensions of wear features. Second, tiny chips that are difficult to completely remove during machining randomly adhere to the tool surface, and their image features are easily confused with actual chipping or wear, leading to frequent false alarms and unnecessary tool changes and production downtime. Third, residual cutting fluid on the tool surface rapidly evaporates at high temperatures, forming a thin mist that reduces overall image contrast and blurs details; simultaneously, deposits formed after the decomposition or drying of the cutting fluid alter the optical properties of the tool surface, further interfering with wear feature identification. Furthermore, the complex reflective environment inside the machine tool and the changes in optical properties caused by tool surface wear result in uneven and dynamically changing illumination, making it difficult for image processing algorithms to adapt. Finally, the machine tool's own micro-vibrations and the slight deviations in spindle positioning, against the backdrop of the aforementioned complex images, make image registration and precise measurement extremely difficult, further reducing the stability and accuracy of the detection.

[0004] Therefore, in the application of online wear detection of CNC machine tool tools based on industrial vision, when the system attempts to acquire and analyze images of the tool after high-temperature cutting inside the machine tool, it faces a complex technical challenge with multiple interferences and interrelationships: how to accurately and stably extract effective features reflecting the true wear state of the tool from images that are severely contaminated and distorted by various dynamic environmental factors, and to identify the true wear state of the tool from instantaneous interference.

[0005] To address the aforementioned issues, existing technologies urgently need improvement. Summary of the Invention

[0006] This application discloses a method and system for CNC machine tool production quality inspection based on industrial vision. It aims to solve the technical problem of how to accurately and stably extract effective features reflecting the true wear state of the tool from images that are severely contaminated and distorted by various dynamic environmental factors in online wear detection of CNC machine tool tools based on industrial vision, and to identify the true wear state of the tool from instantaneous interference.

[0007] The technical solution of this application is as follows:

[0008] In a first aspect, this application discloses a method for inspecting the production quality of CNC machine tools based on industrial vision, comprising the following steps:

[0009] Upon receiving an instruction to move the tool along a preset path, the image data acquisition process is initiated.

[0010] During the movement of the cutting tool along the preset path, multi-frame image data of the cutting edge area of ​​the cutting tool are continuously acquired using rapid imaging technology;

[0011] For several pre-defined micro-regions on the cutting edge of the tool, local feature data reflecting the wear state of the tool are identified and extracted from the multi-frame image data; wherein, the local feature data includes at least two dimensions among edge sharpness, surface micro-texture changes, and the number of local brightness anomalies;

[0012] A time-series analysis is performed on the local feature data to evaluate the change patterns of the local feature data in consecutive image frames, and to identify the true wear state of the tool from transient interference. The time-series analysis includes: using a time-frequency decomposition method to perform feature decomposition on the change sequences of edge sharpness, surface micro-texture changes, and the number of local brightness anomalies, obtaining corresponding independent change components; and performing correlation analysis on the independent change components to obtain the interference source feature patterns. The time-frequency decomposition method is at least one of wavelet transform, empirical mode decomposition, and variational mode decomposition. Furthermore, the local feature data is judged at at least two time scales of different lengths to obtain judgment results corresponding to each time scale. When more than a preset proportion of the judgment results indicate true wear signs of the tool, a fused judgment result is output.

[0013] After the output fusion judgment result, based on the material, geometric parameters and manufacturer information of the tool, the corresponding wear feature benchmark pattern is matched from the preset tool wear feature database. The wear feature benchmark pattern is compared with the local feature data, and at least one of the length of the micro time window, the first threshold, the second threshold and the preset ratio is updated to obtain the updated detection parameters. The updated detection parameters are used as input parameters for subsequent image frame temporal analysis.

[0014] Secondly, this application also discloses a CNC machine tool production quality inspection system based on industrial vision, comprising:

[0015] The instruction receiving module is used to receive instructions that indicate the movement of the tool and to initiate the image data acquisition process;

[0016] The image acquisition module is used to continuously acquire multiple frames of image data of the cutting edge area of ​​the tool using rapid imaging technology during the movement of the tool along the preset path.

[0017] A multi-dimensional feature extraction module is used to identify and extract local feature data reflecting the wear state of the tool from the multi-frame image data for several pre-defined micro-regions on the cutting edge of the tool; wherein, the local feature data includes at least two dimensions among edge sharpness, surface micro-texture changes, and the number of local brightness anomalies.

[0018] A time-series analysis module is used to perform time-series analysis on the local feature data, evaluate the change pattern of the local feature data in continuous image frames, and identify the true wear state of the tool from transient interference. The time-series analysis module includes: a time-frequency decomposition submodule, used to perform feature decomposition on the change sequences of edge sharpness, surface micro-texture changes, and the number of local brightness anomalies using a time-frequency decomposition method to obtain corresponding independent change components; an interference source identification submodule, used to perform correlation analysis on the independent change components to obtain interference source feature patterns; and a multi-timescale decision fusion submodule, used to perform judgment on the local feature data at at least two timescales of different lengths to obtain judgment results corresponding to each timescale. When more than a preset proportion of the judgment results indicate true wear signs of the tool, the fused judgment result is output. The time-frequency decomposition method is at least one of wavelet transform, empirical mode decomposition, and variational mode decomposition.

[0019] The adaptive learning and closed-loop adjustment module is used to, after the output fusion judgment result, match the corresponding wear feature benchmark pattern from the preset tool wear feature database according to the material, geometric parameters and manufacturer information of the tool, compare the wear feature benchmark pattern with the local feature data, update at least one of the length of the micro time window, the first threshold, the second threshold and the preset ratio to obtain the updated detection parameters, and use the updated detection parameters as input parameters for subsequent image frame temporal analysis.

[0020] This application discloses a method and system for CNC machine tool production quality inspection based on industrial vision. In complex industrial environments, tool wear detection is easily affected by various dynamic environmental factors such as high temperature, chips, cutting fluid, uneven lighting, and machine tool vibration, leading to image distortion, inaccurate feature extraction, and difficulty in identifying the true wear state of the tool from transient interference. By introducing rapid imaging technology and temporal analysis of local feature data, this application can capture subtle changes in tool wear in real time and attempt to distinguish between true wear and transient interference; providing a possible path to reduce the risk of product quality degradation and batch scrap. Attached Figure Description

[0021] Figure 1 This is a flowchart illustrating a method for inspecting the production quality of CNC machine tools based on industrial vision, provided in an embodiment of the present invention.

[0022] Figure 2 This is a flowchart of a method for identifying the true wear state of a cutting tool according to an embodiment of the present invention;

[0023] Figure 3 This is a schematic diagram of the structure of a CNC machine tool production quality inspection system based on industrial vision provided in an embodiment of the present invention. Detailed Implementation

[0024] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. The components of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0025] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0026] In modern industrial production, the wear of CNC machine tool cutting tools is a key factor affecting product quality. Traditional detection methods, such as manual sampling or indirect judgment based on workpiece dimensions, suffer from significant lag, making it difficult to provide early warnings and interventions in the early stages of tool wear. Furthermore, industrial vision systems face numerous challenges in practical applications, including image distortion caused by high temperatures, interference from residual chips and cutting fluid, uneven lighting, and micro-vibrations of machine tools. These factors severely impact the accuracy and stability of tool wear detection.

[0027] In this regard, refer to Figure 1 , Figure 1 This is a schematic diagram of the overall process of a CNC machine tool production quality inspection method based on industrial vision provided by an embodiment of the present invention. The overall process includes:

[0028] S11, Receives an instruction to move the tool along a preset path and initiates the image data acquisition process;

[0029] S12, during the process of the tool moving along the preset path, multi-frame image data of the tool cutting edge area are continuously acquired using rapid imaging technology;

[0030] S13, for a number of pre-defined micro-regions on the cutting edge of the tool, identify and extract local feature data reflecting the wear state of the tool from the multi-frame image data; wherein, the local feature data includes at least two dimensions among edge sharpness, surface micro-texture changes and the number of local brightness anomalies.

[0031] S14, perform time-series analysis on the local feature data to evaluate the change pattern of the local feature data in continuous image frames, and identify the true wear state of the tool from transient interference; wherein, the time-series analysis includes: using a time-frequency decomposition method to perform feature decomposition on the change sequences of the edge sharpness, the surface micro-texture change, and the number of local brightness anomalies, respectively, to obtain corresponding independent change components, and performing correlation analysis on the independent change components to obtain the interference source feature pattern; the time-frequency decomposition method is at least one of wavelet transform, empirical mode decomposition, and variational mode decomposition; and perform judgment on the local feature data at at least two time scales of different lengths to obtain the judgment results corresponding to each time scale, and when the judgment results exceeding a preset proportion indicate the true wear signs of the tool, output the fused judgment result.

[0032] S15, after the output fusion judgment result, according to the material, geometric parameters and manufacturer information of the tool, the corresponding wear feature reference pattern is matched from the preset tool wear feature database, the wear feature reference pattern is compared with the local feature data, and at least one of the length of the micro time window, the first threshold, the second threshold and the preset ratio is updated to obtain the updated detection parameters, and the updated detection parameters are used as the input parameters for subsequent image frame time sequence analysis.

[0033] This application aims to provide a tool wear detection solution that can effectively cope with interference factors in complex industrial environments. Through refined image data processing and time series analysis, it can accurately identify the actual wear state of the tool.

[0034] To better understand the technical solution proposed in this application, some key terms involved will be explained first.

[0035] "Tool movement command" refers to the command issued by the CNC system to control the tool to perform machining operations on the machine tool. It includes information such as tool path, speed, and feed rate.

[0036] "Fast imaging technology" refers to the technology that can acquire multiple frames of images in a short period of time, such as using high-speed cameras or high frame rate industrial cameras to capture dynamic changes during the cutting process of a cutting tool.

[0037] The "cutting edge area" refers to the edge part of the tool that directly participates in the cutting work, and its wear condition directly affects the machining quality.

[0038] "Multi-frame image data" refers to a series of images continuously acquired over a period of time that reflect the state of the cutting edge area of ​​a cutting tool.

[0039] "Local feature data" refers to visual features extracted from specific tiny areas on the cutting edge of a tool that can characterize the wear state of the tool, such as edge sharpness, surface texture, and geometric dimensions.

[0040] "Time series analysis" refers to the analysis of data arranged in chronological order to reveal the patterns and regularities of its changes over time.

[0041] "Temporary interference" refers to image anomalies that occur and are unstable within a short period of time during the image acquisition process, caused by factors such as chips, cutting fluid, and changes in lighting. These anomalies may be misjudged as tool wear.

[0042] "True wear condition" refers to the irreversible physical changes that occur to the cutting tool due to cutting action, such as material loss and geometric changes.

[0043] The method proposed in this application first receives an instruction instructing the tool's movement and initiates an image data acquisition process accordingly. This instruction can be provided directly by the CNC machine tool's controller or obtained by monitoring the CNC system's communication interface. For example, when the CNC program starts a cutting task, the corresponding tool movement instruction is received by the system, triggering the activation of the image acquisition module. In one implementation, a signal interface can be set up. When the CNC machine tool begins executing G-code or M-code containing tool cutting operations, this interface outputs an electrical signal. Upon receiving this signal, the detection system initiates the image data acquisition process. In another implementation, communication with the CNC system can be achieved through a software interface to acquire real-time tool movement status information. When the tool is detected entering a preset cutting area, the image data acquisition process is automatically initiated.

[0044] During the tool's movement along a preset path, rapid imaging technology continuously acquires multiple frames of image data of the tool's cutting edge area. Rapid imaging technology is crucial for capturing subtle changes in the tool during high-speed cutting. For example, a high-speed industrial camera with a frame rate of hundreds or even thousands of frames per second can be used, coupled with high-brightness, short-pulse LED light sources for synchronized flash illumination, to freeze the image of the tool's movement and avoid motion blur. In one implementation, the camera can be fixedly mounted inside the machine tool, and by adjusting the focus and field of view, ensure that the tool's cutting edge remains within the image acquisition area. In another implementation, the camera can be mounted on a movable robotic arm, and by synchronizing with the tool's movement commands, the camera follows the tool's movement, thereby continuously acquiring images throughout the entire cutting path.

[0045] For several pre-defined micro-regions on the cutting edge of a cutting tool, local feature data reflecting the tool's wear state are identified and extracted from multi-frame image data. These micro-regions can be specific points, line segments, or small areas on the cutting edge, such as specific locations on the tool tip, cutting edge arc, rake face, or flank face. In one implementation, these micro-regions can be automatically identified and located using image processing algorithms, such as edge detection and corner detection. For example, the Canny or Sobel operator can be used to detect the edges of the cutting edge, and then morphological operations or geometric analysis can be used to determine the micro-regions of interest. In another implementation, these micro-regions can be pre-defined on the tool's CAD model, and these regions can be mapped onto the real-time acquired images using image registration techniques. The extracted local feature data can include, but is not limited to: geometrical dimensional changes of the cutting edge (such as chipping size and wear width), edge sharpness, surface roughness, local brightness changes, and texture features. For example, these features can be quantified by calculating the grayscale gradient, texture entropy, or local binary pattern (LBP) of a specific region.

[0046] Specific Implementation Example 1: Continuous Acquisition Strictly Synchronized with Tool Movement—Local Feature Extraction—Temporal Identification Closed Loop

[0047] This embodiment focuses on a CNC machine tool production quality inspection method based on industrial vision. The overall process strictly follows the main line of synchronous start-up with tool movement commands—continuous and rapid imaging along the path—extraction of local features in multiple micro-regions—and temporal analysis to identify actual wear. Considering the coexistence of multiple interferences during the machining process, such as heat radiation, chip splashing, cutting fluid atomization, and lighting fluctuations, this embodiment provides specific and executable values ​​for hardware selection, acquisition timing, micro-region setting, feature dimension selection, and judgment threshold setting, making it easy for those skilled in the art to reproduce this embodiment and verify its effectiveness.

[0048] This embodiment focuses on a three-axis vertical machining center, machining an aluminum alloy workpiece of grade 6061-T6. The cutting tool is an 8mm diameter double-flute carbide end mill. The spindle speed is set to 12,000 rpm, the feed rate is 800 mm / min, the depth of cut is 0.5 mm, and the tool moves along a 60mm long linear preset path in a two-dimensional plane. The spindle power is 5.5 kW. Simultaneously with the "G01 linear cutting" command issued by the CNC system, the detection system receives the command through the high-speed I / O interface reserved by the machine tool controller. Within 50 milliseconds of receiving the rising edge of the command, the system completes the exposure parameter preset, buffer clearing, and timing reference alignment of the image acquisition module, marking this moment as the starting point of the image data acquisition process. This command reception and start synchronization mechanism avoids image acquisition being ahead or behind the tool movement, ensuring that each acquired image frame can form a one-to-one correspondence with the tool position, facilitating subsequent multi-frame sequence co-position analysis. The synchronization accuracy was calibrated on-site, and the delay from the rising edge of the command to the triggering of the first frame exposure was stable between 32 and 38 milliseconds, with a standard deviation of 1.6 milliseconds, which is much less than the time required for one spindle rotation.

[0049] The image acquisition stage utilizes a high-speed industrial area scan camera with adjustable frame rate. The model parameters were selected according to the GB / T 26151 series vision system general specifications. The single-frame resolution is 1920 pixels by 1080 pixels. The image sensor employs a global shutter structure to suppress motion distortion. The maximum frame rate can reach 2000 frames per second, with a working frame rate set at 100 frames per second. The exposure time per frame is 9.8 microseconds. A 5-microsecond LED ring light source is used for flash freeze, with a flash synchronization error of less than 1 microsecond. The camera and lens interface uses a Type-C connector, and a 25mm telecentric lens is used to reduce parallax. The working distance is set at 120mm, and the depth of field is approximately 3mm. A 470nm blue light source is selected as the light source to reduce interference from high-temperature radiation on imaging. The camera communicates with the host computer via a gigabit Ethernet interface, with a transmission latency consistently below 0.8 milliseconds. The image acquisition module continuously acquires multiple frames of image data of the cutting edge area at a speed of 100 frames per second during the entire period of the tool's movement along the preset path. The total acquisition time is about 4.5 seconds, corresponding to about 450 original images. Each frame has an 8-bit grayscale pixel depth, generating about 200 megabytes of image data per second.

[0050] The micro-region setting stage, based on the geometry of the end mill's cutting edge, combined with the tool CAD model and image registration technology, constrains the region of interest to several pre-defined micro-rectangular sub-regions on the cutting edge. Each sub-region is 64 pixels by 64 pixels, and eight sub-regions are evenly distributed along the cutting edge, covering the left edge, right edge, tip arc, rake face, and flank face, respectively. The registration algorithm performs initial pose estimation based on the tool model and edge features of the first frame, and subsequent frames perform sub-pixel level updates through template matching based on grayscale cross-correlation, achieving a registration accuracy better than 0.3 pixels.

[0051] In the local feature data extraction stage, feature calculations are performed on each sub-region, covering three dimensions: edge sharpness, surface micro-texture variation, and the number of local brightness anomalies. Edge sharpness is calculated by performing eight-directional Sobel gradient operations on the grayscale image within the sub-region, and the average of the maximum gradient magnitudes in all directions is used as the edge sharpness score for that sub-region; a lower score indicates a more blunt edge. Surface micro-texture variation is achieved by extracting three indicators—energy, entropy, and contrast—from the grayscale co-occurrence matrix of the sub-region image, and the normalized increments of these three indicators over the most recent few frames are used as the texture change. The number of local brightness anomalies is determined by comparing the grayscale mean of the sub-region with the grayscale mean of the entire frame, identifying pixels with a deviation exceeding three standard deviations, marking them as connected components, and using the number of connected components as the number of anomalies. In this embodiment, features in these three dimensions are extracted for each frame and each sub-region, forming a multi-dimensional local feature sequence.

[0052] The time-series analysis and identification process uses a micro-time window of 10 frames (approximately 100 milliseconds) for local consistency evaluation and a long-term sliding window of 50 frames (approximately 500 milliseconds) for trend stability verification. A first threshold of 0.85, a second threshold of 0.04, and a preset ratio of two-thirds are set. The first threshold is set based on the statistical distribution of image registration residuals, with a value higher than the 95th percentile of this distribution to retain sufficient margin. The second threshold is set based on the 90th percentile of the measured change distribution of the mean sequence within 500 milliseconds under typical wear conditions. The preset ratio is set based on the minimum consensus voting ratio under three-scale decision fusion. During actual tool movement, the system simultaneously performs local consistency scoring and long-term mean sequence monotonicity discrimination on the multi-dimensional local feature sequence of each frame. When at least two of the three time scales simultaneously output "wear" judgment, the fusion result outputs a wear indication. This judgment result can serve as the basis for triggering tool change or adjusting process parameters.

[0053] Under the same interference conditions, compared with the traditional detection method based on single-frame threshold judgment, this embodiment improves the wear judgment lead time from 6 seconds after the traditional workpiece is completed to when the tool wear has not yet reached the dulling standard, an average advance of about 14 minutes; the false alarm rate for instantaneous interferences such as chip splash and cutting fluid atomization is reduced from about 2.4 times per minute to about 0.3 times per minute; and the detection rate for real wear signs such as chipping reaches over 96%. All parameters, thresholds, and geometric dimensions described in this embodiment are exemplary values. Those skilled in the art can replace or adjust these parameters according to actual tools, processing materials, and machine tool specifications without creative effort, and these adjustments still fall within the protection scope of this application.

[0054] refer to Figure 2 , Figure 2 This is a flowchart of a method for identifying the true wear state of a cutting tool according to an embodiment of the present invention. S14 includes:

[0055] S141, perform local consistency evaluation on the local feature data within a micro time window, including calculating the average absolute difference of the local feature data in multiple consecutive frames of images to obtain a local consistency score; wherein, the average absolute difference is calculated in the following way: within the micro time window, take the absolute value of the difference between the value of the local feature data in each frame and the mean value of the local feature data within the micro time window and then perform an arithmetic mean.

[0056] S142, Perform long-term trend stability verification on the local feature data within a long-term sliding window, calculate the mean sequence of the local feature data within the long-term sliding window, and determine whether the mean sequence shows a monotonic change trend.

[0057] S143, when the local consistency score is higher than the first threshold, and the change range of the mean sequence exceeds the second threshold and shows a monotonic change trend, it is determined to be a real wear sign of the tool.

[0058] Specifically, performing local consistency evaluation on local feature data within a micro-time window refers to conducting stability analysis on extracted local feature data over a relatively short time span, such as several consecutive frames of image data. A micro-time window can be understood as a set containing a finite number of consecutive image frames, its length typically set to capture instantaneous fluctuations but not enough to reflect long-term trends. Local consistency evaluation quantifies the degree of short-term volatility of local feature data by calculating the mean absolute difference of local feature data across these consecutive frames. The smaller the mean absolute difference, the more stable the local feature data is within the micro-time window, i.e., the higher the local consistency; conversely, the larger the mean absolute difference, the greater the volatility. The resulting local consistency score effectively reflects the instantaneous changes of local feature data over a short period, helping to identify and filter out short-term, drastic fluctuations caused by transient disturbances.

[0059] Furthermore, performing long-term trend stability verification on local feature data within a long-term sliding window refers to analyzing the overall trend of local feature data over a relatively long time span. A long-term sliding window can be understood as a set containing a large number of consecutive image frames, which continuously slides forward in the time series to dynamically cover the latest data. Within this window, by calculating the mean sequence of local feature data, short-term random fluctuations can be smoothed out, thus better revealing their potential long-term trends. Determining whether the mean sequence exhibits a monotonic trend aims to confirm whether the changes in local feature data are persistent and directional, such as continuously increasing or decreasing, which is often a typical characteristic of tool wear.

[0060] The first and second thresholds are preset judgment criteria. The first threshold defines the acceptable range for local consistency scores; when the local consistency score is higher than this threshold, it indicates that the local feature data has sufficient stability within the micro-time window, excluding most instantaneous interference. The second threshold quantifies the magnitude of change in the mean sequence, ensuring that the observed changes are significant and sufficient to indicate actual wear. When the magnitude of change in the mean sequence exceeds the second threshold and simultaneously exhibits a monotonic trend, the persistence and cumulative nature of tool wear are further confirmed.

[0061] The solution presented in this application is able to effectively identify the true wear state of the cutting tool because it employs a dual verification mechanism to distinguish between transient interference and actual wear. Through the above technical solution, this application can significantly improve the accuracy and robustness of industrial vision-based CNC machine tool production quality inspection methods in complex industrial environments.

[0062] In some preferred embodiments, a specific example is given below. Suppose that during the machining process of a CNC machine tool, it is necessary to monitor the wear condition of the cutting edge of the tool in real time. The image acquisition module continuously acquires image data of the cutting edge area of ​​the tool at a rate of 100 frames per second. The feature extraction module identifies and extracts local feature data reflecting the wear condition of the tool from these image data, such as the edge blurring of the cutting edge or the number of microcracks.

[0063] To identify the true wear state of the tool, the state identification module first sets a micro-time window of 5 frames, or 0.05 seconds. Within this micro-time window, the average absolute difference of local feature data across 5 consecutive frames is calculated to obtain a local consistency score. For example, if the local consistency score is higher than 0.99 (i.e., the first threshold), the local feature data is considered stable within a short period of time.

[0064] Simultaneously, a long-term sliding window is set to a length of 50 frames, or 0.5 seconds. The state recognition module calculates the mean sequence of local feature data within this long-term sliding window. For example, after each frame slide, the mean of the current 50 frames of data is calculated, forming a mean time series. Subsequently, it is determined whether this mean sequence exhibits a monotonic trend, such as a continuous increase or decrease.

[0065] Suppose that at a certain moment, the local consistency score of the local feature data within a micro-time window is higher than a first threshold, indicating no significant transient interference. Simultaneously, within a long-term sliding window, the mean sequence of the local feature data exhibits a continuously increasing monotonic trend, and its magnitude exceeds a preset second threshold (e.g., the total change in the mean sequence within 0.5 seconds exceeds 0.05). In this case, the system will comprehensively determine that there are genuine signs of tool wear and may trigger corresponding warnings or maintenance recommendations. Conversely, if the local consistency score is low, or the mean sequence does not show a significant monotonic trend, it may be judged as transient interference or a non-wear state.

[0066] In some embodiments described above, the wear state of a cutting tool can be preliminarily identified by performing local consistency assessment and long-term trend stability verification on local feature data. However, in actual CNC machine tool production environments, the cutting edge region of a cutting tool may be affected by various complex factors, such as chip splashing, coolant atomization, changes in lighting, or uneven material microstructure. These instantaneous or periodic disturbances may produce change patterns in local feature data similar to actual wear, leading to misjudgment. If only a single or limited-dimensional time-series analysis is relied upon, it may be difficult to effectively distinguish these non-wear-related disturbances from the actual wear signs of the cutting tool, thereby affecting the accuracy and reliability of the detection.

[0067] In response, this application further proposes a multi-dimensional feature pattern recognition and physical consistency cross-validation step, aiming to improve the ability to identify the true wear state of the tool from complex interference through more comprehensive feature analysis and physical law verification.

[0068] The above-mentioned steps of performing time-series analysis on local feature data, evaluating the change patterns of local feature data in consecutive image frames, and identifying the true wear state of the tool from transient interference also include multi-dimensional feature pattern recognition and physical consistency cross-validation steps, including:

[0069] Obtain the sequence of changes in edge sharpness, surface micro-texture changes, and the number of local brightness anomalies in the local feature data within the micro-time window;

[0070] The time-frequency decomposition method is used to perform feature decomposition on the change sequences of the edge sharpness, the surface micro-texture changes, and the number of local brightness anomalies to obtain the corresponding independent change components; the time-frequency decomposition method is at least one of wavelet transform, empirical mode decomposition, and variational mode decomposition.

[0071] Correlation analysis was performed on the independent variation components to obtain the characteristic patterns of the interference sources;

[0072] The physical consistency of the changes in edge sharpness, surface micro-texture, and number of local brightness anomalies within the micro-time window is verified. When the change direction meets the consistency condition in terms of physical laws, the physical consistency is determined to be passed.

[0073] When the interference source feature pattern indicates the presence of an interference source and the physical consistency fails, it is determined to be a non-physical interference; otherwise, it is determined to be the actual wear state of the tool.

[0074] Specifically, the multi-dimensional feature pattern recognition and physical consistency cross-validation step aims to more accurately distinguish between genuine wear and various interferences by introducing more dimensional feature information and combining it with physical laws for verification. Edge sharpness reflects the geometry and sharpness of the cutting edge; tool wear typically leads to edge dulling and decreased sharpness. Surface microtexture changes reflect the microscopic morphology of the tool surface; wear causes increased surface roughness or the appearance of scratches, pits, etc. The number of local brightness anomalies may be related to chip adhesion, micro-chipping, or local overheating, all of which may be early signs or interferences of wear.

[0075] Furthermore, time-frequency decomposition methods, such as wavelet transform, empirical mode decomposition, or variational mode decomposition, can decompose complex time-series signals into independent components at different frequencies and time scales, thereby effectively separating signal components caused by different physical processes (such as wear, vibration, and chip splash). This decomposition allows for clearer observation and analysis of the variation patterns of each feature, particularly helpful in extracting slow trends related to wear from noise and transient interference. Independent variation components refer to signal components with independent physical meaning or statistical properties separated from the original feature sequence through time-frequency decomposition. Performing correlation analysis on independent variation components, and analyzing the interrelationships between different independent variation components, can identify specific interference source characteristic patterns. For example, some interferences may exhibit synchronous or delayed correlations across multiple feature components. Interference source characteristic patterns refer to specific variation laws or interrelationships exhibited in multi-dimensional independent variation components caused by a specific interference source (such as chip splash or vibration).

[0076] Furthermore, physical consistency verification refers to the fact that actual tool wear typically leads to decreased edge sharpness, changes in surface microtexture (such as increased roughness), and an increase in the number of local brightness anomalies (such as micro-chipping or material flaking). These changes are physically interrelated and directional. If the direction of these changes does not conform to the physical wear pattern (e.g., a sudden increase in edge sharpness while other features show no significant change), it may indicate the presence of non-physical interference. When the interference source feature pattern indicates the presence of an interference source and physical consistency fails, it is determined to be non-physical interference; otherwise, it is determined to be the actual wear state of the tool.

[0077] This application's solution attempts to overcome the limitations of relying solely on local consistency evaluation and long-term trend stability verification by introducing multi-dimensional feature pattern recognition and physical consistency cross-validation steps. The introduction of multi-dimensional features and the application of time-frequency decomposition aim to capture early signs of tool wear more precisely and separate various instantaneous or periodic interference signals. The introduction of multi-dimensional features and the application of time-frequency decomposition enable the system to capture early signs of tool wear more precisely and effectively separate various instantaneous or periodic interference signals.

[0078] In some preferred embodiments, it is assumed that during CNC machine tool machining, the cutting edge area of ​​the tool is suddenly disturbed by chip splashing or coolant atomization. In this case, relying solely on the aforementioned local consistency assessment and long-term trend stability verification may lead to misjudgment as signs of tool wear due to drastic fluctuations in local feature data in the image. However, according to the solution of this application, the variation sequence of edge sharpness, surface micro-texture changes, and the number of local brightness anomalies within a micro-time window is first obtained. Then, these sequences are processed using time-frequency decomposition methods such as wavelet transform, which can effectively separate the instantaneous, high-frequency variation components caused by chip splashing or coolant atomization from the slow, low-frequency variation components caused by actual tool wear. By performing correlation analysis on these independent variation components, specific interference source feature patterns related to chip splashing or coolant atomization can be identified. Meanwhile, when verifying the physical consistency of changes in edge sharpness, surface micro-texture, and the number of local brightness anomalies, it was found that the direction of these changes did not conform to the physical laws of tool wear (for example, edge sharpness may drop instantaneously, but the surface micro-texture does not show a roughening trend caused by wear, and the change in the number of local brightness anomalies is also inconsistent with wear). Therefore, when the interference source feature pattern indicates the presence of an interference source, and the physical consistency verification fails, the system will accurately determine that the event is a non-physical interference rather than actual tool wear, thus avoiding false alarms and ensuring the accuracy of the detection results.

[0079] In some embodiments described above, correlation analysis is performed on independent variable components to identify characteristic patterns of interference sources. However, in actual CNC machine tool production environments, there are numerous types of instantaneous interference sources, and their characteristic patterns may be affected by various working conditions such as the type of machining material and cutting parameters. This makes it difficult for simple correlation analysis to accurately and robustly identify specific types of interference sources and their impact on tool wear assessment. Failure to address these issues may lead to misjudgments of tool wear conditions, thereby affecting production quality and efficiency. Therefore, this application further proposes a step of performing correlation analysis on the aforementioned independent variable components to obtain the characteristic patterns of interference sources. This involves constructing a time-delay correlation map and combining it with historical data from a working condition database to more accurately identify the characteristic patterns of different interference sources.

[0080] In response, this application further proposes a step of performing correlation analysis on the independent variation components to obtain the characteristic patterns of the interference source, including:

[0081] Obtain the lag correlation of the independent change components at different time steps, and construct a time lag correlation map;

[0082] The processing material type and cutting parameters are acquired in real time. Based on the processing material type and cutting parameters, historical time delay correlation data matching the current working condition is retrieved from a preset working condition database. An interference source time delay correlation template is generated or updated based on the historical time delay correlation data.

[0083] The time-delay correlation map is matched with the time-delay correlation template of the interference source to identify the characteristic patterns of different interference sources.

[0084] Specifically, acquiring the lag correlation of the independent variable components at different time steps and constructing a time-lag correlation map refers to calculating the degree of interrelationship among independent variable components such as edge sharpness, surface micro-texture changes, and the number of local brightness anomalies obtained from the multi-dimensional feature pattern recognition and physical consistency cross-validation steps, under different time delays (i.e., time steps). For example, the correlation between one component at the current moment and another component at a certain time in the past can be calculated, and this process can be repeated to cover a series of time delays. This generates a two-dimensional map, where one dimension represents the time delay and the other represents the correlation strength, thus visually demonstrating the mutual influence between different feature components over time. Its purpose is to capture transient or periodic correlation patterns that may be caused by interference sources, and these patterns often have specific time delay characteristics.

[0085] The system acquires the processing material type and cutting parameters in real time. Based on these parameters, it retrieves historical time-delay correlation data matching the current working condition from a pre-defined working condition database. Based on this historical data, it generates or updates a time-delay correlation template for interference sources. Essentially, the system continuously monitors the current production environment during detection, including the type of material being processed (e.g., stainless steel, aluminum alloy, cast iron) and the cutting parameters of the CNC machine tool (e.g., spindle speed, feed rate, depth of cut). This real-time acquired working condition information is used as query conditions to search for historical data similar to or completely matching the current conditions in the pre-established working condition database. This database stores time-delay correlation maps generated by various known interference sources (e.g., chip blockage, coolant splashing, slight vibration, etc.) under different working conditions. Once matching historical data is retrieved, the system uses this data to construct or update a time-delay correlation template for interference sources specific to the current working condition. This template is a standardized representation of the time-delay correlation characteristics of a specific interference source under a specific working condition; for example, it can be generated by averaging, weighting, or training a machine learning model on historical data. Its purpose is to provide an accurate reference benchmark for subsequent interference source identification, ensuring that interference can be effectively identified under different production conditions.

[0086] In practical applications, the time-delay correlation map is matched with the time-delay correlation template of the interference source to identify the characteristic patterns of different interference sources. Specifically, this involves comparing the time-delay correlation map constructed from the currently collected independent variation components with the time-delay correlation template of the interference source generated based on the current operating conditions. This matching can be achieved through various algorithms, such as correlation coefficient calculation, pattern recognition algorithms (e.g., support vector machines, neural networks), or distance metrics (e.g., Euclidean distance, Mahalanobis distance) to assess the similarity between the two. Through comparison, the system can determine which known interference source template the currently observed time-delay correlation map is closest to, thereby identifying the specific type of interference source currently present. The purpose is to accurately distinguish between characteristic changes caused by actual tool wear and characteristic changes caused by specific interference sources, avoiding misjudgments.

[0087] The solution presented in this application constructs hysteresis correlation maps of independent changing components at different time steps, enabling the capture of the dynamic evolution patterns unique to instantaneous interference sources, rather than relying solely on instantaneous correlation. Through this technical solution, this application provides a pathway for detecting the wear condition of CNC machine tool cutting tools in complex industrial environments (the specific effectiveness needs further verification using actual machining data).

[0088] In some preferred embodiments, it is assumed that a CNC machine tool is machining a specific aluminum alloy material using a set of preset cutting parameters. During the cutting process, the image acquisition module continuously collects image data of the cutting edge area, and the feature extraction module extracts independent variation components such as edge sharpness, surface micro-texture changes, and the number of local brightness anomalies. The state identification module first performs hysteresis correlation analysis on these independent variation components to construct the current time-delay correlation map. Simultaneously, the system obtains in real-time that the current machining material type is aluminum alloy and the cutting parameters are specific values. Based on this working condition information, the system retrieves historical time-delay correlation data matching "aluminum alloy machining" and "specific cutting parameters" from a preset working condition database. For example, the database may store typical time-delay correlation patterns generated by instantaneous interferences such as coolant splashing or chip adhesion under similar working conditions. The system uses this historical data to generate or update a "coolant splashing interference source time-delay correlation template" and a "chip adhesion interference source time-delay correlation template" for the current working condition. Subsequently, the system matches the real-time constructed time-delay correlation map with these two interference source templates. If the similarity between the real-time graph and the "coolant splash interference source time-delay correlation template" is significantly higher than the similarity with the "chip adhesion interference source time-delay correlation template" and other wear characteristic templates, the system will determine that the currently observed change is a non-physical interference caused by coolant splashing, rather than a true indication of tool wear. In this way, even in complex machining environments, the proposed solution can accurately distinguish between instantaneous interference and actual wear, thereby improving detection accuracy.

[0089] In some embodiments described above, a scheme is proposed to perform correlation analysis on independent variation components to obtain the characteristic patterns of interference sources. The interference source time-delay correlation template is generated or updated based on historical time-delay correlation data. However, in actual industrial production environments, CNC machine tools handle a wide variety of material types and cutting parameter combinations. A pre-set working condition database may not cover all possible working conditions, resulting in the absence of historical time-delay correlation data that perfectly matches the current working condition in certain specific or novel working conditions. If this problem is not addressed, the system may be unable to generate accurate interference source time-delay correlation templates when completely matching historical data is lacking, thus affecting the accuracy of interference source identification and even leading to misjudgments of tool wear conditions.

[0090] In this regard, this application further proposes the following steps for generating or updating the interference source time-delay correlation template based on the aforementioned historical time-delay correlation data:

[0091] When there is no historical time-delay correlation data in the working condition database that perfectly matches the current working condition, the cosine similarity between the current working condition and each historical working condition in the working condition database is calculated based on the processing material type and the cutting parameters, and several historical working condition data with cosine similarity higher than a preset similarity threshold are identified.

[0092] Based on the cosine similarity normalization values ​​corresponding to the aforementioned historical operating condition data, the historical time-delay correlation data are weighted and fused to generate an interference source time-delay correlation template.

[0093] Specifically, when the system fails to find historical time-delay correlation data in the working condition database that perfectly matches the current material type and cutting parameters, a similarity-based evaluation strategy is employed to avoid template generation failure or decreased accuracy due to data loss. First, the characteristics of the current working condition, such as the material type and cutting parameters, are quantified and compared with the characteristics of each historical working condition stored in the working condition database. Cosine similarity is a commonly used metric, used to calculate the cosine of the angle between two non-zero vectors. This value reflects the degree of similarity in the direction of the two vectors, typically ranging from -1 to 1, with higher values ​​indicating higher similarity. By calculating the cosine similarity between the current working condition and all historical working conditions in the database, the degree of similarity between them can be quantitatively assessed.

[0094] Furthermore, the system identifies several historical operating condition data points with cosine similarity values ​​higher than a preset similarity threshold. This preset similarity threshold can be set based on actual application needs and experience to ensure that the selected historical operating condition data has sufficient correlation with the current operating condition. Once these relevant historical operating condition data points are identified, their corresponding cosine similarity values ​​are normalized, for example, by mapping the similarity values ​​to the range of 0 to 1, or by adjusting them using other statistical methods, to ensure that they can be used as effective weights. Subsequently, these normalized similarity values ​​are used as weights to perform weighted fusion of the selected historical time-delay correlation data. The purpose of weighted fusion is to combine multiple similar but not perfectly matched historical data points to form a more representative and robust interference source time-delay correlation template. For example, historical data with higher similarity has a greater weight in the fusion process, thus contributing more to the final template.

[0095] This application's solution addresses the problem of ineffective generation or updating of interference source time-delay correlation templates when completely matching historical data is lacking in the operating condition database. By introducing cosine similarity calculation and a weighted fusion mechanism, it solves the issue. When completely matching historical data cannot be found, the system no longer simply abandons or uses irrelevant default templates, but actively searches for and utilizes historical data with a certain degree of similarity to the current operating condition. Cosine similarity effectively measures the feature similarity between different operating conditions, thereby filtering out historical data with reference value for the current operating condition. Subsequently, by weighted fusion of these similar historical data, where historical data with higher similarity is assigned greater weight, it ensures that the generated template can more accurately reflect the characteristics of interference sources that may appear under the current operating condition. This method avoids the template generation dilemma caused by data sparsity, making the identification of interference sources possible under a wider range of operating conditions, thus improving the adaptability and accuracy of the entire detection method.

[0096] In some preferred embodiments, it is assumed that a CNC machine tool is machining a new alloy material, and its cutting parameters are not exactly the same as any single working condition in the history. In this case, when the system attempts to retrieve the interference source time-delay correlation template from the working condition database, it finds that there is no historical time-delay correlation data that perfectly matches the current material type and cutting parameters being machined.

[0097] Specifically, the system first quantifies the feature vector of the current working condition, for example, using the hardness, toughness, thermal conductivity of the processed material, and cutting parameters (such as spindle speed, feed rate, and depth of cut) as feature dimensions. Then, the system iterates through all existing historical working condition data in the working condition database and calculates the cosine similarity between the current working condition feature vector and the feature vector of each historical working condition. For example, if the preset similarity threshold is 0.7, the system will identify all historical working condition data with a cosine similarity greater than 0.7. Suppose three sets of historical working condition data A, B, and C are identified, and their cosine similarities with the current working condition are 0.85, 0.78, and 0.72, respectively.

[0098] Next, these similarity values ​​are normalized, for example, through simple linear normalization or the softmax function, to obtain normalized weights. Assume the normalized weights are WA=0.4, WB=0.35, and WC=0.25. Then, the system performs weighted fusion of the time-delay correlation data corresponding to each of the historical operating conditions A, B, and C based on these weights. For example, the final interference source time-delay correlation template can be represented as: Template = WA * Data_A + WB * Data_B + WC * Data_C. In this way, even without perfectly matching historical data, the system can generate a highly accurate interference source time-delay correlation template that integrates features from multiple similar historical operating conditions for subsequent interference source identification.

[0099] In some embodiments described above, when performing local consistency evaluation on local feature data within micro-time windows, a single fixed-length micro-time window may not effectively capture the data change characteristics at different time scales and is susceptible to specific periodic interference patterns, potentially leading to a decrease in the accuracy of the local consistency score. To address this, this application further proposes a more robust local consistency evaluation method that performs parallel computation and periodic pattern analysis across multiple time window lengths to more accurately identify the true wear state of the tool.

[0100] In this regard, this application further proposes the following steps for performing local consistency evaluation on local feature data within a micro-time window:

[0101] The average absolute difference of the local feature data in multiple consecutive frames of images is calculated in parallel under multiple preset micro time window lengths to obtain local consistency scores under multiple different window lengths.

[0102] Periodic pattern analysis is performed on the local consistency scores under multiple different window lengths to identify periodic interference patterns;

[0103] When the results of the periodic pattern analysis indicate that there is no periodic interference pattern, statistical aggregation is performed on the local consistency scores under multiple different window lengths to obtain the final local consistency score.

[0104] Specifically, parallel computation of the mean absolute difference of local feature data across multiple consecutive frames within multiple preset micro-time windows refers to overcoming the limitations of a single time window length. The system presets a series of micro-time windows of different lengths, such as 5 frames, 10 frames, and 15 frames. For each preset micro-time window length, the mean absolute difference of local feature data within that time window is calculated independently, thus obtaining a local consistency score corresponding to that window length. Parallel computation can be understood as the calculation processes for these different window lengths being performed simultaneously to improve processing efficiency.

[0105] The study involved performing periodic pattern analysis on local consistency scores under multiple window lengths to identify potential transient disturbances caused by mechanical vibration, lighting fluctuations, or other periodic factors. These disturbances may exhibit regular fluctuations within a specific time window, thus affecting the accuracy of the local consistency score. By analyzing the periodicity of scores with different window lengths, it is possible to effectively distinguish between actual wear and periodic disturbances.

[0106] In practical applications, when the results of periodic pattern analysis indicate the absence of periodic interference patterns, statistical aggregation is performed on the local consistency scores under multiple window lengths. Methods such as weighted average, median, or robust statistics (e.g., truncated mean) can be used to integrate these scores into a final local consistency score. The aim is to synthesize evaluation results across different time scales, improve the stability and accuracy of the evaluation, and avoid biases that may arise from evaluations with a single window length.

[0107] This application's solution employs parallel computation using multiple preset micro-time windows, enabling the capture of local feature data changes from a multi-scale perspective and avoiding information loss or misjudgment that might occur with a single time window length. When a specific time window length happens to match the frequency of a certain periodic disturbance, the local consistency score under that window length may be masked by the disturbance. By performing periodic pattern analysis on scores under multiple different window lengths, the system can proactively identify and distinguish fluctuations caused by periodic disturbances, thereby avoiding misjudging these non-wear-related fluctuations as actual tool wear signs. When it is confirmed that there are no periodic disturbances, the multi-scale scores are statistically aggregated to ensure that the final local consistency score is based on a more comprehensive and stable data foundation, thus effectively improving the accuracy and robustness of identifying the true tool wear state from transient disturbances.

[0108] In some preferred embodiments, it is assumed that image data of the cutting edge region of the tool is continuously acquired during CNC machine tool machining. To evaluate the local consistency of local feature data, the system can preset three micro-time window lengths: 5 frames, 10 frames, and 15 frames. During tool movement, for the local feature data at each moment, the system calculates in parallel the mean absolute difference over the past 5, 10, and 15 frames, obtaining three local consistency scores respectively. Subsequently, periodic pattern analysis is performed on these three score sequences, for example, using Fourier transform or wavelet analysis to detect the presence of significant periodic components. If the analysis results show that there is a significant periodic fluctuation within a specific window length, and this fluctuation corresponds to a known mechanical vibration frequency, the system identifies it as a periodic interference pattern. If the periodic pattern analysis indicates that no such interference exists, the system statistically aggregates the local consistency scores under the three different window lengths, for example, by calculating their weighted average, to obtain a more stable and reliable final local consistency score. This score is then used to compare with a first threshold to help determine the true signs of tool wear.

[0109] Specifically, in the above method, the step of performing periodic pattern analysis on local consistency scores under multiple different window lengths and identifying periodic interference patterns can be further refined.

[0110] The step of performing periodic pattern analysis on the local consistency scores under multiple different window lengths to identify periodic interference patterns includes:

[0111] Perform multi-scale transformation on the local consistency scores under multiple different window lengths to obtain components at different scales and frequencies;

[0112] Perform independent component analysis on the components to separate independent periodic components with independent temporal behavior;

[0113] Perform cross-correlation analysis on the independent periodic components to identify the interaction patterns between the independent periodic components;

[0114] The periodic interference pattern is identified based on the independent periodic components and the interaction pattern.

[0115] This study involves performing multi-scale transformations on local consistency scores under multiple window lengths. The aim is to decompose the original time-series data into different time scales and frequency domains to better capture potential periodic fluctuations. For example, wavelet transform, Fourier transform, or empirical mode decomposition can be used to decompose complex signals into a series of components with different frequency characteristics. In this way, the variation characteristics of local consistency scores at different time granularities can be revealed.

[0116] Furthermore, Independent Component Analysis (ICA) is performed on the components to separate statistically independent source signals from the mixed signal. In the context of periodic pattern analysis, these independent components are considered to be periodic components with independent temporal behavior, which may correspond to different sources of interference or wear mechanisms. ICA can effectively separate these potentially periodic signals from noise and aperiodic variations, thus providing clean input for subsequent pattern recognition.

[0117] Based on this, cross-correlation analysis is performed on the independent periodic components to quantify the interdependence or time lag relationships between different periodic components. By calculating their correlation coefficients, it can be identified whether these periodic components change synchronously or whether the change of one component lags behind that of another. Identifying this interaction pattern is crucial for understanding the coupling relationships between different interference sources. Finally, based on the independent periodic components and the interaction patterns, specific periodic interference patterns can be comprehensively judged and identified. For example, if an independent periodic component is identified as having a specific frequency and amplitude, and exhibiting a specific interaction pattern with other components, it can be classified as a known periodic interference, such as machine tool vibration or periodic changes in coolant spray.

[0118] This application's approach, by introducing multi-scale transformation, independent component analysis, and cross-correlation analysis, can deeply uncover the periodic fluctuations hidden in local consistency scores. Traditional methods may only focus on average values ​​or short-term variations, making it difficult to effectively distinguish between genuine tool wear and periodic instantaneous disturbances. Multi-scale transformation can separate periodic signals of different frequencies; independent component analysis further decomposes these signals into statistically independent sources, helping to identify periodic disturbances caused by different physical mechanisms. Subsequently, cross-correlation analysis reveals the interactions between these independent periodic components, thus constructing a complete periodic disturbance pattern. This hierarchical, multi-dimensional analysis method enables the system to more accurately identify the existence and characteristics of periodic disturbances, avoiding misjudging them as genuine signs of tool wear.

[0119] In some embodiments of this application, local consistency assessment is performed within a micro-time window, and long-term trend stability verification is performed within a long-term sliding window, enabling preliminary identification of tool wear conditions. However, tool wear is a complex and dynamic process, and its characteristics may exhibit different patterns at different time scales. Analysis methods based on a single time scale or fixed parameters may struggle to fully capture these changes, leading to misjudgments of transient disturbances or missed detections of genuine wear signs. For example, some transient noise may exhibit wear-like characteristics within a short time window but be averaged out within a long time window; conversely, some slow wear trends may be inconspicuous within a short time window but only become apparent within a long time window. Failure to address these issues may affect the accuracy and robustness of tool wear condition identification.

[0120] In response, this application further proposes a multi-timescale decision fusion step, which includes:

[0121] The local feature data is judged at at least two time scales of different lengths to obtain the judgment results corresponding to each time scale.

[0122] When more than a preset proportion of the judgment results indicate actual wear of the tool, the fused judgment result is output as the actual wear of the tool.

[0123] Specifically, multi-timescale decision fusion refers to independently analyzing and judging local feature data across multiple time windows or time periods of varying lengths, then synthesizing the results of these independent judgments to obtain a more robust and accurate final judgment. The phrase "at least two time scales of different lengths" can be understood as follows: for example, a shorter time scale (e.g., analyzing the most recent 5 frames of image data) is used to capture rapidly changing instantaneous features, while a longer time scale (e.g., analyzing the most recent 50 frames of image data) is used to capture more stable long-term trends. At each time scale, the aforementioned methods for local consistency assessment and long-term trend stability verification, or other suitable time-series analysis methods, can be used to judge the local feature data, thereby obtaining a judgment result regarding the tool wear state at that time scale. For example, at a certain time scale, if the local consistency score is higher than a first threshold and the mean sequence shows monotonic changes, it is judged as an indication of wear.

[0124] Furthermore, the "preset ratio" refers to a threshold used for decision fusion, which can be set to, for example, 50%, 60%, or higher. Only when the number of judgments indicating actual tool wear exceeds this preset ratio among the judgment results obtained at different time scales is the final fused judgment result considered as actual tool wear. For example, if the preset ratio is set to 60%, and judgments are made at three different time scales, and two of these time scales indicate wear, then the final fused result will be considered as wear. The purpose is to effectively reduce the risk of misjudgment that may arise from single-time-scale analysis by integrating information from multiple time scales, thereby improving the accuracy and reliability of identification.

[0125] This application's solution effectively addresses the limitations of single-time-scale analysis under complex wear patterns and transient disturbances by introducing a multi-time-scale decision fusion step. Through the above technical solution, this application provides a pathway to improve the identification of tool wear conditions (the specific effects need further verification using actual machining data).

[0126] In some preferred embodiments, this application is implemented as follows: Assume that during CNC machine tool machining, it is necessary to monitor the wear state of the cutting tool in real time. First, three time scales of different lengths are set: a short time scale (e.g., analyzing the most recent 5 frames of image data), a medium time scale (e.g., analyzing the most recent 20 frames of image data), and a long time scale (e.g., analyzing the most recent 50 frames of image data). At each time scale, a determination is performed on the local feature data of the continuously acquired cutting edge region of the tool.

[0127] Specifically, at a short timescale, a determination (e.g., "worn" or "non-worn") is obtained by calculating the mean absolute difference and the monotonicity of the mean sequence of local feature data in 5 frames of images. Similarly, at medium and long timescales, the same analysis is performed on 20 frames and 50 frames of image data, respectively, to obtain their respective determinations.

[0128] Subsequently, decision fusion is performed. Assuming a preset ratio of 60%, if at least two of the three time scales (i.e., exceeding 60%) indicate "wear," the final fused decision is "the tool shows genuine signs of wear." For example, if the short time scale indicates "wear," the medium time scale indicates "no wear," and the long time scale indicates "wear," then because there are two "wear" determinations exceeding 60%, the system will ultimately determine "the tool shows genuine signs of wear." This multi-scale fusion approach effectively avoids misjudgments caused by instantaneous noise or local anomalies at a single time scale, thereby improving the accuracy and reliability of tool wear state identification.

[0129] While the aforementioned multi-timescale decision fusion steps can effectively improve the robustness of tool wear condition identification, the detection parameters they rely on, such as the length of the micro-time window, the first threshold, the second threshold, and the preset ratio, are usually pre-set or empirically determined. In actual production environments, tool materials, geometric parameters, manufacturer information, and specific cutting conditions vary greatly. Static detection parameters may not be able to adequately adapt to this diversity, leading to decreased detection accuracy or increased false positive rate under certain specific conditions, thus limiting the system's universality and adaptability in complex and variable environments.

[0130] In this regard, this application further proposes that after outputting the fused judgment result, it also includes an adaptive learning and closed-loop adjustment step, which includes:

[0131] Based on the material, geometric parameters and manufacturer information of the cutting tool, a corresponding wear feature reference pattern is matched from a preset tool wear feature database, and the reference wear rate corresponding to the wear feature reference pattern is obtained.

[0132] The reference wear rate is compared with the measured wear rate calculated based on the local feature data to obtain the wear rate deviation. Based on the wear rate deviation, at least one of the following is updated according to a preset adjustment strategy: the length of the micro-time window, the first threshold, the second threshold, and the preset ratio, to obtain updated detection parameters. The preset adjustment strategy includes: when the wear rate deviation exceeds a first deviation threshold, shortening the length of the micro-time window or lowering the first threshold to improve sensitivity to early wear; when the wear rate deviation is lower than a second deviation threshold and the proportion of interference sources in the fused determination result increases, raising the first threshold or the second threshold to enhance anti-interference capability.

[0133] The updated detection parameters are used as input parameters for subsequent image frame temporal analysis.

[0134] Specifically, the adaptive learning and closed-loop adjustment steps aim to introduce a feedback mechanism that enables the detection system to dynamically optimize its detection parameters based on actual operating conditions and tool characteristics. The tool wear feature database can be understood as a knowledge base storing the characteristic evolution patterns of different types of tools (e.g., different materials, geometries, manufacturers) during typical wear processes. These wear feature benchmark patterns can be pre-established based on historical experimental data, expert experience, or simulation models. Each wear feature benchmark pattern is also associated with a benchmark wear rate, which characterizes the expected rate at which that type of tool reaches the wear threshold under typical working conditions from normal cutting. In practical applications, when the system receives information about the material, geometric parameters, and manufacturer of the currently used tool, it retrieves and matches the wear feature benchmark pattern closest to the current tool from this database and simultaneously obtains the corresponding benchmark wear rate. The benchmark wear rate reflects the group wear pattern of similar tools and is a key reference quantity in the adaptive learning process.

[0135] Furthermore, the adaptive learning and closed-loop adjustment steps defined in claim 9 further refine the above feedback process. First, the measured wear rate is obtained by fitting the rate of change of local feature data within several recent micro-time windows, reflecting the actual wear rate of the tool under the current working conditions. Second, after comparing the measured wear rate with the reference wear rate, a wear rate deviation is obtained. The sign and magnitude of this deviation directly reflect the direction and degree of deviation of the current tool wear trend from the pattern of similar tool groups. Third, based on the wear rate deviation, the detection parameters are updated according to a preset adjustment strategy. The preset adjustment strategy includes at least two branch conditions: when the wear rate deviation exceeds a first deviation threshold, it means that the current tool wear rate is significantly faster than the reference, and the system will shorten the length of the micro-time window or lower the first threshold to improve the sensitivity to early wear; when the wear rate deviation is lower than a second deviation threshold and the proportion of interference source judgments in the fused judgment results increases, it means that the current tool wear trend is weaker than the reference but the number of interference source judgments increases, and the system will raise the first or second threshold to enhance anti-interference capability and avoid false alarms. The updated detection parameters are then applied to the temporal analysis of subsequent image frames, thus forming a closed-loop detection process with wear rate deviation as the feedback quantity and adjustment strategy as the decision rule.

[0136] Wherein, the first deviation threshold is greater than the second deviation threshold. For example, the first deviation threshold is taken as +30% of the reference wear rate, and the second deviation threshold is taken as -10% of the reference wear rate. A reasonable gap is formed between the two thresholds to ensure that the two branch conditions are mutually exclusive and to avoid the situation of conflicting branch judgments near the boundary value.

[0137] The interference source determination ratio refers to the proportion of interference source determination results to all determination results in the current number of fusion determinations. The determination of its increase is based on the interference source determination ratio in the most recent complete long sliding window as a reference benchmark. When this ratio increases by more than a preset increase threshold (e.g., 20%) compared to the reference benchmark, it is determined that the interference source determination ratio has increased. The introduction of this reference benchmark avoids erroneous adjustments triggered by single fluctuations and improves the stability of branch condition ②.

[0138] Preferably, when the wear rate deviation falls near the boundary of two branches that are above the first deviation threshold and below the second deviation threshold, potentially triggering a branch conflict, the adjustment of branch ① is performed according to the principle of prioritizing faster wear, so as to avoid delaying the detection of real wear signs due to the reverse adjustment of branch ②; at the same time, the trigger signal of branch ② is recorded and continuously monitored in the subsequent micro time windows. If the deviation falls back below the second threshold and the proportion of interference source determination continues to rise, the adjustment of branch ② is then performed.

[0139] When the wear rate deviation falls within the middle range between the first deviation threshold and the second deviation threshold, that is, the wear trend deviates from the benchmark but not significantly, the current detection parameters remain unchanged; the parameter update of the corresponding branch is triggered only when the wear rate deviation crosses any threshold, so as to avoid frequent fluctuations in detection parameters and reduced system stability caused by small deviations.

[0140] This application's solution effectively addresses the limitations of traditional fixed-parameter detection methods when facing diverse tools and working conditions by introducing adaptive learning and closed-loop adjustment mechanisms. Through this technical solution, this application provides a path to improve the adaptability of tool wear detection methods (the specific effects need further verification with actual machining data). This solution can dynamically adjust detection parameters according to the characteristics of different tools, effectively avoiding misjudgments or missed judgments caused by fixed parameters, especially when facing new tools or complex cutting conditions, where its advantages are more pronounced. Furthermore, the closed-loop adjustment mechanism enables the system to continuously learn and optimize, reducing the need for manual intervention and calibration, and improving the system's automation level and operating efficiency. Therefore, it can not only more accurately predict tool life and optimize tool replacement strategies, thereby reducing production costs, but also effectively ensure machining quality, avoid workpiece scrap due to excessive tool wear, and thus improve the overall intelligence level and economic benefits of the production line.

[0141] In some preferred embodiments, it is assumed that the CNC machine tool is using a specific type of carbide end mill for machining. First, the system retrieves and matches a wear characteristic benchmark pattern for that type of end mill under typical cutting conditions from a preset tool wear characteristic database, based on the end mill's material (e.g., WC-Co alloy), geometric parameters (e.g., 10mm diameter, double-flute), and manufacturer information (e.g., a well-known brand). This benchmark pattern may include typical trends and threshold ranges of local characteristic data such as the sharpness of the cutting edge, changes in surface microtexture, and the number of local brightness anomalies during normal wear of the end mill.

[0142] During the actual milling process, the image acquisition module continuously collects image data of the cutting edge area, and the feature extraction module extracts local feature data. The state identification module performs time-series analysis on these local feature data and outputs preliminary judgment results in conjunction with a multi-timescale decision fusion step. Following this, the adaptive learning and closed-loop adjustment steps compare the real-time extracted local feature data with the previously matched wear feature baseline pattern. For example, if the fluctuation of the real-time local feature data is found to be significantly higher than the normal fluctuation range indicated by the baseline pattern, and this fluctuation is not caused by instantaneous interference, the system may determine that the current first or second threshold may be too lenient, leading to insensitivity to early wear. In this case, the system will automatically lower the first or second threshold to improve sensitivity to minor wear signs. Conversely, if the system finds that although the local feature data has slight changes, these changes are determined to be within the normal fluctuation range after comparison with the baseline pattern, and the current threshold is too sensitive, leading to frequent false alarms, the system may appropriately increase the threshold to reduce unnecessary alarms. The updated threshold parameters are then passed to the state identification module for time-series analysis of subsequent image frames, thereby achieving dynamic optimization and closed-loop adjustment of the detection parameters.

[0143] In modern industrial production, the wear condition of CNC machine tool cutting tools directly affects machining quality and production costs. Industrial vision-based inspection systems can achieve online, real-time monitoring of tool condition. The inspection system provided in this application includes a command receiving module, an image acquisition module, a multi-dimensional feature extraction module, a time-series analysis module, and an adaptive learning and closed-loop adjustment module. The time-series analysis module, through time-frequency decomposition and interference source identification of multi-dimensional local feature data, combined with multi-timescale decision fusion and adaptive learning and closed-loop adjustment mechanisms, identifies the true wear condition of the cutting tool from instantaneous interference in complex industrial environments.

[0144] refer to Figure 3 , Figure 3 This is a schematic diagram of a CNC machine tool production quality inspection system based on industrial vision provided in an embodiment of the present invention, comprising:

[0145] The instruction receiving module is used to receive instructions that indicate the movement of the tool and to initiate the image data acquisition process;

[0146] The image acquisition module is used to continuously acquire multiple frames of image data of the cutting edge area of ​​the tool using rapid imaging technology during the movement of the tool along the preset path.

[0147] A multi-dimensional feature extraction module is used to identify and extract local feature data reflecting the wear state of the tool from the multi-frame image data for several pre-defined micro-regions on the cutting edge of the tool; wherein, the local feature data includes at least two dimensions among edge sharpness, surface micro-texture changes, and the number of local brightness anomalies.

[0148] A time-series analysis module is used to perform time-series analysis on the local feature data, evaluate the change pattern of the local feature data in continuous image frames, and identify the true wear state of the tool from transient interference. The time-series analysis module includes: a time-frequency decomposition submodule, used to perform feature decomposition on the change sequences of edge sharpness, surface micro-texture changes, and the number of local brightness anomalies using a time-frequency decomposition method to obtain corresponding independent change components; an interference source identification submodule, used to perform correlation analysis on the independent change components to obtain interference source feature patterns; and a multi-timescale decision fusion submodule, used to perform judgment on the local feature data at at least two timescales of different lengths to obtain judgment results corresponding to each timescale. When more than a preset proportion of the judgment results indicate true wear signs of the tool, the fused judgment result is output. The time-frequency decomposition method is at least one of wavelet transform, empirical mode decomposition, and variational mode decomposition.

[0149] The adaptive learning and closed-loop adjustment module is used to, after the output fusion judgment result, match the corresponding wear feature benchmark pattern from the preset tool wear feature database according to the material, geometric parameters and manufacturer information of the tool, compare the wear feature benchmark pattern with the local feature data, update at least one of the length of the micro time window, the first threshold, the second threshold and the preset ratio to obtain the updated detection parameters, and use the updated detection parameters as input parameters for subsequent image frame temporal analysis.

[0150] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A method for inspecting the production quality of CNC machine tools based on industrial vision, characterized in that, include: Upon receiving an instruction to move the tool along a preset path, the image data acquisition process is initiated. During the movement of the cutting tool along the preset path, multi-frame image data of the cutting edge area of ​​the cutting tool are continuously acquired using rapid imaging technology; For several pre-defined micro-regions on the cutting edge of the tool, local feature data reflecting the wear state of the tool are identified and extracted from the multi-frame image data; wherein, the local feature data includes at least two dimensions among edge sharpness, surface micro-texture changes, and the number of local brightness anomalies; A time-series analysis is performed on the local feature data to evaluate the change patterns of the local feature data in consecutive image frames, and to identify the true wear state of the tool from transient interference. The time-series analysis includes: using a time-frequency decomposition method to perform feature decomposition on the change sequences of edge sharpness, surface micro-texture changes, and the number of local brightness anomalies, obtaining corresponding independent change components; and performing correlation analysis on the independent change components to obtain the interference source feature patterns. The time-frequency decomposition method is at least one of wavelet transform, empirical mode decomposition, and variational mode decomposition. Furthermore, the local feature data is judged at at least two time scales of different lengths to obtain judgment results corresponding to each time scale. When more than a preset proportion of the judgment results indicate true wear signs of the tool, a fused judgment result is output. After the output fusion judgment result, based on the material, geometric parameters and manufacturer information of the tool, the corresponding wear feature benchmark pattern is matched from the preset tool wear feature database. The wear feature benchmark pattern is compared with the local feature data, and at least one of the length of the micro time window, the first threshold, the second threshold and the preset ratio is updated to obtain the updated detection parameters. The updated detection parameters are used as input parameters for subsequent image frame temporal analysis.

2. The method according to claim 1, characterized in that, The step of performing time-series analysis on the local feature data, evaluating the change pattern of the local feature data in consecutive image frames, and identifying the true wear state of the tool from transient interference includes: Local consistency evaluation is performed on the local feature data within a micro time window, including calculating the average absolute difference of the local feature data in multiple consecutive frames of images to obtain a local consistency score; wherein, the average absolute difference is calculated in the following way: within the micro time window, the absolute value of the difference between the value of the local feature data in each frame and the mean value of the local feature data within the micro time window is taken and then the arithmetic mean is calculated. Long-term trend stability verification is performed on the local feature data within a long-term sliding window. The mean sequence of the local feature data within the long-term sliding window is calculated, and it is determined whether the mean sequence shows a monotonic change trend. When the local consistency score is higher than the first threshold, and the change in the mean sequence exceeds the second threshold and shows a monotonic trend, it is determined to be a true sign of tool wear.

3. The method according to claim 2, characterized in that, The step of performing time-series analysis on the local feature data, evaluating the change patterns of the local feature data in consecutive image frames, and identifying the true wear state of the tool from transient interference further includes a multi-dimensional feature pattern recognition and physical consistency cross-validation step, including: Obtain the sequence of changes in edge sharpness, surface micro-texture changes, and the number of local brightness anomalies in the local feature data within the micro-time window; The time-frequency decomposition method is used to perform feature decomposition on the change sequences of the edge sharpness, the surface micro-texture changes, and the number of local brightness anomalies to obtain the corresponding independent change components; the time-frequency decomposition method is at least one of wavelet transform, empirical mode decomposition, and variational mode decomposition. Correlation analysis was performed on the independent variation components to obtain the characteristic patterns of the interference source; The physical consistency of the changes in edge sharpness, surface micro-texture, and number of local brightness anomalies within the micro-time window is verified. When the change direction meets the consistency condition in terms of physical laws, the physical consistency is determined to be passed. When the interference source feature pattern indicates the presence of an interference source and the physical consistency fails, it is determined to be a non-physical interference; otherwise, it is determined to be the actual wear state of the tool.

4. The method according to claim 3, characterized in that, The step of performing correlation analysis on the independent variation components to obtain the characteristic pattern of the interference source includes: Obtain the lag correlation of the independent change components at different time steps, and construct a time lag correlation map; The processing material type and cutting parameters are acquired in real time. Based on the processing material type and cutting parameters, historical time delay correlation data matching the current working condition is retrieved from a preset working condition database. An interference source time delay correlation template is generated or updated based on the historical time delay correlation data. The time-delay correlation map is matched with the time-delay correlation template of the interference source to identify the characteristic patterns of different interference sources.

5. The method according to claim 4, characterized in that, The step of generating or updating the interference source time-delay correlation template based on the historical time-delay correlation data includes: When there is no historical time-delay correlation data in the working condition database that perfectly matches the current working condition, the cosine similarity between the current working condition and each historical working condition in the working condition database is calculated based on the processing material type and the cutting parameters, and several historical working condition data with cosine similarity higher than a preset similarity threshold are identified. Based on the cosine similarity normalization values ​​corresponding to the aforementioned historical operating condition data, the historical time-delay correlation data are weighted and fused to generate an interference source time-delay correlation template.

6. The method according to claim 2, characterized in that, The step of performing local consistency evaluation on the local feature data within the micro-time window includes: The average absolute difference of the local feature data in multiple consecutive frames of images is calculated in parallel under multiple preset micro time window lengths to obtain local consistency scores under multiple different window lengths. Periodic pattern analysis is performed on the local consistency scores under multiple different window lengths to identify periodic interference patterns; When the results of the periodic pattern analysis indicate that there is no periodic interference pattern, statistical aggregation is performed on the local consistency scores under multiple different window lengths to obtain the final local consistency score.

7. The method according to claim 6, characterized in that, The step of performing periodic pattern analysis on the local consistency scores under multiple different window lengths to identify periodic interference patterns includes: Perform multi-scale transformation on the local consistency scores under multiple different window lengths to obtain components at different scales and frequencies; Perform independent component analysis on the components to separate independent periodic components with independent temporal behavior; Perform cross-correlation analysis on the independent periodic components to identify the interaction patterns between the independent periodic components; The periodic interference pattern is identified based on the independent periodic components and the interaction pattern.

8. The method according to claim 2, characterized in that, The step of performing time-series analysis on the local feature data, evaluating the change pattern of the local feature data in consecutive image frames, and identifying the true wear state of the tool from transient interference further includes a multi-time-scale decision fusion step, which includes: The local feature data is judged at at least two time scales of different lengths to obtain the judgment results corresponding to each time scale. When more than a preset proportion of the judgment results indicate actual wear of the tool, the fused judgment result is output as the actual wear of the tool.

9. The method according to claim 1, characterized in that, Following the output fusion result, an adaptive learning and loop closure adjustment step is included, which includes: Based on the material, geometric parameters and manufacturer information of the cutting tool, a corresponding wear feature reference pattern is matched from a preset tool wear feature database, and the reference wear rate corresponding to the wear feature reference pattern is obtained. The reference wear rate is compared with the measured wear rate calculated based on the local feature data to obtain the wear rate deviation. Based on the wear rate deviation, at least one of the following is updated according to a preset adjustment strategy: the length of the micro-time window, the first threshold, the second threshold, and the preset ratio, to obtain updated detection parameters. The preset adjustment strategy includes: shortening the length of the micro-time window or lowering the first threshold when the wear rate deviation exceeds a first deviation threshold; and increasing the first threshold or the second threshold when the wear rate deviation is lower than a second deviation threshold and the proportion of interference sources in the fused determination result increases. The updated detection parameters are used as input parameters for subsequent image frame temporal analysis.

10. A CNC machine tool production quality inspection system based on industrial vision, characterized in that, include: The instruction receiving module is used to receive instructions that indicate the movement of the tool and to initiate the image data acquisition process; The image acquisition module is used to continuously acquire multiple frames of image data of the cutting edge area of ​​the tool using rapid imaging technology during the movement of the tool along the preset path. A multi-dimensional feature extraction module is used to identify and extract local feature data reflecting the wear state of the tool from the multi-frame image data for several pre-defined micro-regions on the cutting edge of the tool; wherein, the local feature data includes at least two dimensions among edge sharpness, surface micro-texture changes, and the number of local brightness anomalies. A time-series analysis module is used to perform time-series analysis on the local feature data, evaluate the change pattern of the local feature data in continuous image frames, and identify the true wear state of the tool from transient interference. The time-series analysis module includes: a time-frequency decomposition submodule, used to perform feature decomposition on the change sequences of edge sharpness, surface micro-texture changes, and the number of local brightness anomalies using a time-frequency decomposition method to obtain corresponding independent change components; an interference source identification submodule, used to perform correlation analysis on the independent change components to obtain interference source feature patterns; and a multi-timescale decision fusion submodule, used to perform judgment on the local feature data at at least two timescales of different lengths to obtain judgment results corresponding to each timescale. When more than a preset proportion of the judgment results indicate true wear signs of the tool, the fused judgment result is output. The time-frequency decomposition method is at least one of wavelet transform, empirical mode decomposition, and variational mode decomposition. The adaptive learning and closed-loop adjustment module is used to, after the output fusion judgment result, match the corresponding wear feature benchmark pattern from the preset tool wear feature database according to the material, geometric parameters and manufacturer information of the tool, compare the wear feature benchmark pattern with the local feature data, update at least one of the length of the micro time window, the first threshold, the second threshold and the preset ratio to obtain the updated detection parameters, and use the updated detection parameters as input parameters for subsequent image frame temporal analysis.