Intelligent anti-collision detection method and system for CNC machining center

By performing interpolation fitting and importance calculation on multi-dimensional time series data of CNC lathes, combined with the revolving door algorithm, the problem of long analysis time and errors caused by large data sets is solved, and the accuracy of intelligent anti-collision detection is improved.

CN118456119BActive Publication Date: 2024-09-20DICHUANG AUTOMATION TECHNOLOGY (JINJIANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410909947.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-09-20
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

Due to the huge amount of data sets during the programming and processing of existing CNC lathes, the neural network analysis time is too long. The revolving door algorithm causes a lag in trend change points during the data compression process, affecting the accuracy of intelligent anti-collision detection.

Method used

By obtaining multi-dimensional time series historical monitoring data, perform data interpolation fitting, calculate the incremental change, trend difference, modulation factor and regional factor of the data points, and combine it with the revolving door algorithm to calculate the importance and convergence parameters of the data points. The data is compressed and a collision prediction model is generated for intelligent anti-collision detection.

Benefits of technology

It improves the sensitivity of data lag, reduces the error of the revolving door algorithm in the compression and decompression process, and improves the accuracy of intelligent anti-collision detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118456119B
    Figure CN118456119B
Patent Text Reader

Abstract

The present invention relates to the field of industrial automation, and specifically to an intelligent anti-collision detection method and system for a CNC machining center, comprising: using a data monitoring system of a CNC machining center to obtain multi-dimensional time-series historical monitoring data, merging and aligning the historical monitoring data to obtain data to be compressed; calculating the importance of the data points to be compressed according to the inflection characteristics of the data points to be compressed, and calculating the convergence parameters of the data points to be compressed according to the importance of the data points to be compressed; using the convergence parameters of the data points to be compressed in combination with a revolving door algorithm to compress the data to be compressed to obtain compressed data; using the compressed data in a CNC machining center to generate a tool collision prediction model to complete intelligent anti-collision detection. The present invention solves the problem that the revolving door compression will cause the decompression lag of the trend change point to cause errors, and realizes intelligent anti-collision detection for CNC machining centers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial automation, and in particular to an intelligent anti-collision detection method and system for a numerical control machining center. Background Art

[0002] Through the use of neural network technology, the trend characteristics of the data set of CNC lathes are analyzed, and an intelligent anti-collision detection model is generated to predict the possibility of tool collision during the programming and processing stages, and to achieve anti-collision detection. There are many targets that need to be monitored during the programming and processing of CNC lathes, such as position data, dynamic data, temperature data, sound data, image data, etc. The high frequency of data acquisition causes the volume of CNC lathe data sets to be huge, and neural network analysis consumes too much time. Since the neural network analysis and prediction model mainly obtains features based on trend changes, the revolving door algorithm that retains the trend can be used to compress the data. However, during the compression process of the revolving door algorithm, the end data point will cause a lag in the trend change point, resulting in a certain error in the data prediction model based on decompression, affecting the detection accuracy of intelligent anti-collision. Summary of the invention

[0003] The invention provides an intelligent anti-collision detection method and system for a numerical control machining center to solve the existing problems.

[0004] The intelligent anti-collision detection method for a CNC machining center of the present invention adopts the following technical scheme:

[0005] On one hand, the present invention provides an intelligent anti-collision detection method for a CNC machining center, the method comprising the following steps:

[0006] The data monitoring platform of the CNC machining center is used to obtain multi-dimensional time-series historical monitoring data, and data interpolation fitting is performed on the historical monitoring data to obtain the data to be compressed represented by the collection items and the number of collection times;

[0007] Obtain the previous time series interval and the next time series interval of the data point to be compressed in the data to be compressed, calculate the incremental change of each data point to be compressed in the previous time series interval, and use the incremental change of each data point to be compressed to calculate the trend difference degree of each data point to be compressed in the previous time series interval and in the next time series interval; count the previous incremental entropy value and the next incremental entropy value of the data point to be compressed, and use the previous incremental entropy value and the next incremental entropy value of the data point to be compressed to calculate the modulation factor of each data point to be compressed; calculate the importance of each data point to be compressed according to the trend difference degree and the modulation factor; calculate the regional factor of each data point to be compressed in the previous time series interval and the next time series interval of the data point to be compressed; obtain the convergence parameter of the data point to be compressed according to the regional factor and the importance of each data point to be compressed;

[0008] The convergence parameters of the data points to be compressed are combined with the revolving door algorithm to compress the data to obtain compressed data; the compressed data is used to generate a tool collision prediction model in the CNC machining center to complete intelligent anti-collision detection.

[0009] Preferably, the step of calculating the incremental change amount of each data point to be compressed in the previous time series interval, and using the incremental change amount of each data point to be compressed to calculate the trend difference degree of each data point to be compressed in the previous time series interval and in the subsequent time series interval includes the following specific steps:

[0010] Calculate the difference between the data value of the data point to be compressed and the nearest data value in the previous time series interval, record it as the incremental change of each data point to be compressed, and calculate the trend difference degree of each data point to be compressed in the previous time series interval and the subsequent time series interval respectively. The specific calculation formula is as follows:

[0011] ,

[0012] ,

[0013] in, and Represent the data points to be compressed The degree of trend difference between the previous time series interval and the next time series interval, where and Respectively represent the collection items and the number of collections. and Represent the data points to be compressed and the data points to be compressed The incremental change of Indicates the default value of the preset interval. Indicates the data point to be compressed The first Neighboring data points to be compressed The incremental change of Indicates the data point to be compressed The first Neighboring data points to be compressed The incremental change of , Indicates taking the absolute value.

[0014] Preferably, the method of counting the pre-increment entropy value and the post-increment entropy value of the data point to be compressed, and calculating the modulation factor of each data point to be compressed by using the pre-increment entropy value and the post-increment entropy value of the data point to be compressed comprises the following specific steps:

[0015] Any data point to be compressed is recorded as the current data point to be compressed, and the information entropy of the incremental change of all data points to be compressed in the previous time series interval of the current data point to be compressed is counted as the previous incremental entropy value of the current data point to be compressed, and the information entropy of the incremental change of all data points to be compressed in the subsequent time series interval of the current data point to be compressed is counted as the subsequent incremental entropy value of the current data point to be compressed; the modulation factor of each data point to be compressed is calculated, and the specific calculation formula is as follows:

[0016] ,

[0017] in, Indicates the data point to be compressed The modulation factor, and Represent the data points to be compressed The pre-incremental entropy and post-incremental entropy, and Represent the data points to be compressed and the data points to be compressed The incremental change of Indicates taking the absolute value.

[0018] Preferably, the specific calculation formula for calculating the importance of each data point to be compressed according to the trend difference degree and the modulation factor is as follows:

[0019] ,

[0020] in, Indicates the data point to be compressed The importance of and Respectively represent the data to be compressed The degree of trend difference between the previous time series interval and the next time series interval, Indicates the data point to be compressed The modulation factor, Represents the preset error parameter.

[0021] Preferably, the step of calculating the regional factor of each data point to be compressed in the preceding time series interval and the succeeding time series interval of the data point to be compressed comprises the following specific steps:

[0022] Calculate the variance of each data point to be compressed and all the data points to be compressed in the previous time series interval as the front neighborhood variance of each data point to be compressed, calculate the variance of each data point to be compressed and all the data points to be compressed in the subsequent time series interval as the rear neighborhood variance of each data point to be compressed, and obtain the neighborhood maximum variance and neighborhood minimum variance of each data point to be compressed; obtain the first interval and the second interval according to the front neighborhood variance, the rear neighborhood variance, the neighborhood maximum variance and the neighborhood minimum variance of each data point to be compressed; calculate the regional factor of each data point to be compressed, and the specific calculation formula is as follows:

[0023] ,

[0024] in, Indicates the data point to be compressed The regional factor, and Represent the data points to be compressed The variance of the front and back neighbors of and Represent the data points to be compressed The neighborhood maximum variance and neighborhood minimum variance of represents the first interval, Indicates the second interval.

[0025] Preferably, the step of obtaining the neighborhood maximum variance and the neighborhood minimum variance of each data point to be compressed includes the following specific steps:

[0026] The front neighborhood variance and the back neighborhood variance of all the data points to be compressed in the front time series interval and the back time series interval of each data point to be compressed are counted and put into a set, which is recorded as the neighborhood variance set of each data point to be compressed; the maximum value and the minimum value in the neighborhood variance set of each data point to be compressed are respectively used as the neighborhood maximum variance and the neighborhood minimum variance of each data point to be compressed.

[0027] Preferably, the step of obtaining the first interval and the second interval according to the front neighborhood variance, the back neighborhood variance, the neighborhood maximum variance and the neighborhood minimum variance of each data point to be compressed comprises the following specific steps:

[0028] The absolute value of the difference between the rear neighborhood variance and the maximum neighborhood variance of each data point to be compressed, and the absolute value of the difference between the rear neighborhood variance and the minimum neighborhood variance of each data point to be compressed are calculated respectively, and the minimum value is used as the first threshold lower limit, the absolute value of the difference between the front neighborhood variance and the maximum neighborhood variance of each data point to be compressed, and the absolute value of the difference between the front neighborhood variance and the minimum neighborhood variance of each data point to be compressed are calculated respectively, and the minimum value is used as the first threshold upper limit, the interval formed by the first threshold lower limit and the first threshold upper limit is recorded as the first interval, the interval formed by the neighborhood maximum variance and the neighborhood minimum variance is recorded as the total interval, and the range of the first interval is removed from the total interval to obtain the second interval.

[0029] Preferably, the step of obtaining the convergence parameter of the data point to be compressed according to the regional factor and the importance of each data point to be compressed comprises the following specific steps:

[0030] For each data point to be compressed, the regional factor is added to the preset error parameter, and the inverse of the sum is taken to obtain the important weight value, and the important weight value is multiplied by the importance to obtain the convergence parameter of each data point to be compressed.

[0031] Preferably, the method of using the convergence parameters of the data points to be compressed in combination with the revolving door algorithm to compress the data to be compressed to obtain compressed data includes the following specific steps:

[0032] Each data point to be compressed is detected using the revolving door algorithm , obtain the upper slope and lower slope of each data point to be compressed , calculate the compression difference of each data point to be compressed. The specific calculation formula is as follows:

[0033] ,

[0034] in, Indicates the data point to be compressed The compression difference, Indicates the data point to be compressed The upper slope of Indicates the data point to be compressed The downward slope of Indicates the data point to be compressed The convergence parameter of

[0035] Starting from the data point to be compressed with a collection time of 1, compare the compression difference of each data point to be compressed with 0. When the compression difference of the data point to be compressed is greater than or equal to 0, the data point to be compressed is retained and not compressed. When the compression difference of the data point to be compressed is less than 0, the data point to be compressed is compressed until all the data points to be compressed are retained or compressed to obtain compressed data.

[0036] Another aspect of the present invention provides an intelligent anti-collision detection system for a CNC machining center, the system comprising:

[0037] The data integration module is used to obtain multi-dimensional time-series historical monitoring data using the data monitoring system of the CNC machining center, perform data interpolation fitting on the historical monitoring data, and obtain the data to be compressed represented by the collection items and the number of collection times;

[0038] A data processing module is used to obtain the previous time series interval and the next time series interval of the data point to be compressed in the data to be compressed, calculate the incremental change amount of each data point to be compressed in the previous time series interval, and use the incremental change amount of each data point to be compressed to calculate the trend difference degree of each data point to be compressed in the previous time series interval and in the next time series interval; count the previous incremental entropy value and the next incremental entropy value of the data point to be compressed, and use the previous incremental entropy value and the next incremental entropy value of the data point to be compressed to calculate the modulation factor of each data point to be compressed; calculate the importance of each data point to be compressed according to the trend difference degree and the modulation factor; calculate the regional factor of each data point to be compressed in the previous time series interval and the next time series interval of the data point to be compressed; obtain the convergence parameter of the data point to be compressed according to the regional factor and the importance of each data point to be compressed;

[0039] The compression fitting module is used to compress the data to be compressed using the convergence parameters of the data points to be compressed combined with the revolving door algorithm to obtain compressed data; the compressed data is used to generate a tool collision prediction model in the CNC machining center to complete intelligent anti-collision detection.

[0040] The beneficial effect of the technical solution of the present invention is: compared with the existing revolving door compression algorithm, when compressing the data set collected by CNC machining and using it for neural network analysis to obtain the tool collision prediction model, there is a compression tolerance generated by the revolving door algorithm for data compression, which leads to lag errors after decompression. The present invention analyzes the before and after change trends of the data points to be compressed and further obtains the importance of the data points, and combines the fluctuation characteristics and steady-state characteristics of the data in the collection process to obtain the sensitivity of the regional factor to the importance to characterize it, so that the sensitivity to data lag is improved, and further obtains the convergence parameter to perform weighted improvement on the revolving door algorithm, so as to achieve the technical effect of solving the influence of lag. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1A flowchart of the steps of an intelligent anti-collision detection method for a CNC machining center according to the present invention;

[0043] Figure 2 Schematic diagram of the hysteresis of the revolving door algorithm;

[0044] Figure 3 The present invention is a structural composition diagram of an intelligent anti-collision detection system for a CNC machining center. DETAILED DESCRIPTION

[0045] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of an intelligent anti-collision detection method for a CNC machining center proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0046] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0047] The specific scheme of the intelligent anti-collision detection method for a CNC machining center provided by the present invention is described in detail below with reference to the accompanying drawings.

[0048] See also Figure 1 , which shows a flowchart of a method for intelligent anti-collision detection of a CNC machining center provided by an embodiment of the present invention, the method comprising the following steps:

[0049] S001: Utilize the data monitoring system of the CNC machining center to obtain multi-dimensional time-series historical monitoring data, and merge and align the historical monitoring data to obtain data to be compressed.

[0050] It should be noted that in the CNC machining process, anti-collision detection can be performed by collecting data to establish a collision model and using machine learning to give prediction results through neural network training to achieve the effect of anti-collision detection. Since detection anytime and anywhere will cause a huge waste of resources, the CNC machining lathe data is generally collected and compressed and stored, and detection is performed every once in a while to perform intelligent anti-collision risk judgment and timely processing. When compressing data based on the existing revolving door algorithm, it is mainly based on historical monitoring data collected at multiple frequencies in time, and because the data collection frequencies of different collection items are different, different data cannot be well comprehensively analyzed in terms of time series. Therefore, data integration is used to obtain multi-dimensional CNC data, and only the collection frequency is considered without considering the actual time range, so that the multi-dimensional CNC data is aligned in time series.

[0051] Specifically, the data monitoring system of the CNC machining center is used to obtain multi-dimensional time-series historical monitoring data, wherein the historical monitoring data includes multi-axis multi-dimensional position data, tool cutting force data, vibration intensity data, tool acceleration data, temperature data, decibel data and other collection items in time series data, and the two-dimensional least squares method is used to perform data interpolation fitting on the historical monitoring data to obtain the data points to be compressed represented by the collection items and the number of collections. ,in Indicates the collection project. Indicates the number of collections, i.e., time, and .

[0052] At this point, the data points to be compressed are obtained.

[0053] S002: Calculating the importance of the data points to be compressed according to the inflection characteristics of the data points to be compressed; and calculating the convergence parameters of the data points to be compressed according to the importance of the data points to be compressed.

[0054] It should be noted that in the process of using neural network to analyze the data trend changes of historical lathes to obtain the anti-collision model, small fluctuations interfere with the collision model, and redundant data will increase the model construction time. Therefore, this embodiment uses a lossy revolving door compression algorithm to compress the data, but the revolving door algorithm will cause trend lag in the fitting process, making the trend change point after actual decompression lag behind the actual change point, and the anti-collision model produces covariance due to the change of the data set, that is, the collision detection of the anti-collision model lags behind the actual one, resulting in detection errors. Therefore, this embodiment uses the historical data obtained by detection as a compressed data set, calculates the importance of the data point according to the trend change of the data, and obtains the slope convergence parameter in combination with the regional fluctuations, and obtains the start point and the end point as compressed data, so as to achieve the purpose of retaining important data. By analyzing the data trend of the CNC machined lathe, the optimized revolving door compression algorithm is used to retain the trend change point for retaining the feature data, and the lathe compressed data is obtained.

[0055] It should be further explained that the sudden change point of the decompressed data has a lag effect compared with the data to be compressed. For the convenience of explanation, this embodiment provides a lag diagram of the revolving door algorithm as shown in FIG. Figure 2 As shown, It is the compression tolerance generated between the data to be compressed and the decompressed data at the peak and valley values, indicating that the revolving door algorithm has generated errors in the compression and decompression process. The inflection characteristics of time series data reflect the mutation of the data. Therefore, when analyzing the knife collision detection model, the mutated data and the overall trend of the data are important features, but the traditional revolving door algorithm can only ensure that the overall trend is retained within the range of the compression tolerance during the compression process, and cannot make adaptive retention for the mutated data. Therefore, this embodiment analyzes the data according to the inflection characteristics of the collected time series data to obtain the compression importance. The inflection characteristics described in this embodiment are the trend change intensity before and after each data point collected. The stronger the trend change, the more important the data at that point. Therefore, the importance of the data is calculated based on the trend change relationship between the data points in the neighborhood.

[0056] Preset a default value for a range , wherein this embodiment is based on This is described as an example, and this embodiment is not specifically limited.

[0057] Specifically, get the data points to be compressed No. The previous time series interval (indicated by negative) and the next time series interval (indicated by positive) collected, where the interval lengths of the previous time series interval and the next time series interval are both interval default values; calculate the difference between the data value of the data point to be compressed and the nearest data value in the previous time series interval, record it as the incremental change of each data point to be compressed, and calculate the trend difference degree of each data point to be compressed in the previous time series interval and in the next time series interval respectively. The specific calculation formula is as follows:

[0058] ,

[0059] ,

[0060] in, and Represent the data points to be compressed The degree of trend difference between the previous time series interval and the next time series interval, and Represent the data points to be compressed and the data points to be compressed The incremental change of Indicates the default value of the interval. Indicates the data point to be compressed The first Neighboring data points to be compressed The incremental change of Indicates the data point to be compressed The first Neighboring data points to be compressed The incremental change of If the trends of the positive and negative intervals of the data point are the same, the incremental change values ​​of the positive and negative adjacent points of the data point corresponding to the positive and negative intervals are relatively similar, that is, the smaller the trend difference is; when the trends of the positive and negative intervals are different, the incremental change values ​​of the positive and negative adjacent points and the corresponding positive and negative intervals are relatively different, that is, the larger the trend difference is.

[0061] Further, the incremental change of each data point to be compressed is calculated in the previous time series interval and the subsequent time series interval of each data point to be compressed, and the information entropy of the incremental change of all data to be compressed in the previous time series interval is counted as the previous incremental entropy value of the data point to be compressed, and the information entropy of the incremental change of all data to be compressed in the subsequent time series interval is counted as the previous and next incremental entropy values ​​of the data point to be compressed; the modulation factor of each data point to be compressed is calculated, and the specific calculation formula is as follows:

[0062] ,

[0063] in, Indicates the data point to be compressed The modulation factor, and Represent the data points to be compressed The pre-incremental entropy and post-incremental entropy, and Represent the data points to be compressed and the data points to be compressed The incremental change of Indicates taking the absolute value. It represents the similarity between two adjacent data points to be compressed. When the value of the formula is closer to 1, the similarity between the two adjacent data points to be compressed is greater. When the value of the formula is closer to 0, the similarity between the two adjacent data points to be compressed is smaller.

[0064] Preset an error parameter , wherein this embodiment is based on This example is described as an example, and this embodiment is not specifically limited. That's it.

[0065] Furthermore, the importance of each data point to be compressed is calculated according to the trend difference degree and the modulation factor. The specific calculation formula is as follows:

[0066] ,

[0067] in, Indicates the data point to be compressed The importance of and Respectively represent the data to be compressed The degree of trend difference between the previous time series interval and the next time series interval, Indicates the data point to be compressed The modulation factor, Represents the error parameter. When the data increment difference in the unilateral interval of the data point to be compressed is larger, it means that the data in the neighborhood is more disordered and the trend cannot be maintained, that is, the data point to be compressed is less important; the larger the trend difference between the positive and negative intervals, the more important the data point to be compressed is. However, when the trend of the negative adjacent point is similar to that of the positive interval, the trend of the positive adjacent point is similar to that of the negative interval, and the increments of the positive and negative adjacent points are the same, that is is a fluctuation point, so cosine similarity is used to constrain the adjacent points. The larger the similarity value, the smaller the incremental difference between positive and negative adjacent points. It is a fluctuation point rather than an inflection point. The smaller the similarity, the smaller the weight given to the data point when the revolving door algorithm is finally improved, which represents its importance. The higher the error parameter is, the less likely it is that the denominator will be 0.

[0068] It needs to be further explained that when calculating the importance of a data point as an inflection point within a neighborhood, since the time series data itself has a certain degree of fluctuation, the degree of fluctuation of the data is mainly reflected in the distribution range of the data and the frequency of data changes. Therefore, according to the attributes of the data within the neighborhood, the more likely the data is to be stable or the more likely it is to be fluctuating, it is still necessary to consider the impact of the degree of fluctuation of the data itself within different time series ranges on the importance of the data point as an inflection point within the neighborhood, that is, the sensitivity of the data point to be compressed. Therefore, an influencing factor of the importance of the data point to be compressed is calculated according to the regional fluctuation transformation of the data, which is characterized by the regional factor.

[0069] Specifically, the variance of each data point to be compressed and all the data points to be compressed in the previous time series interval is calculated as the front neighborhood variance of each data point to be compressed, the variance of each data point to be compressed and all the data points to be compressed in the subsequent time series interval is calculated as the rear neighborhood variance of each data point to be compressed, the front neighborhood variance and the rear neighborhood variance of all the data points to be compressed in the previous time series interval and the subsequent time series interval of each data point to be compressed are counted and put into a set, which is recorded as the neighborhood variance set of each data point to be compressed; the maximum value and the minimum value in the neighborhood variance set of each data point to be compressed are respectively used as the neighborhood maximum variance and the neighborhood minimum variance of each data point to be compressed; the rear neighborhood variance of each data point to be compressed is calculated respectively. The absolute value of the difference between the difference and the maximum neighborhood variance, the absolute value of the difference between the rear neighborhood variance of each data point to be compressed and the minimum neighborhood variance, the minimum of which is used as the first threshold lower limit, the absolute value of the difference between the front neighborhood variance of each data point to be compressed and the maximum neighborhood variance, the absolute value of the difference between the front neighborhood variance of each data point to be compressed and the minimum neighborhood variance, the minimum of which is used as the first threshold upper limit, the interval formed by the first threshold lower limit and the first threshold upper limit is recorded as the first interval, the interval formed by the maximum neighborhood variance and the minimum neighborhood variance is recorded as the total interval, and the range of the first interval is removed from the total interval to obtain the second interval; calculate the regional factor of each data point to be compressed, and the specific calculation formula is as follows:

[0070] ,

[0071] in, Indicates the data point to be compressed The regional factor, and Represent the data points to be compressed The variance of the front and back neighbors of and Represent the data points to be compressed The neighborhood maximum variance and neighborhood minimum variance of represents the first interval, represents the second interval. belong When The characteristics of the neighborhood interval are fluctuations, so For data in the fluctuation range, its importance needs to be lowered accordingly; belong When The characteristics in the neighborhood interval are stable, so For data in a stable range, its importance needs to be adjusted upward accordingly; and the regional factor is calculated based on the variance value. The larger the proportion of the variance offset, the larger the regional factor will be, and the greater the corresponding impact on the importance. The multiplication by 2 is to ensure that the fluctuation range The value of is greater than 1, and in the stable interval The value of is less than 1. When taking the inverse proportional function in the subsequent formulas, 1 is used as the dividing line for unified standardization.

[0072] Furthermore, for each data point to be compressed, the regional factor is added to the error parameter, and the inverse of the sum is taken to obtain the important weight value, and the important weight value is multiplied by the importance to obtain the convergence parameter, and the convergence parameter of each data point to be compressed is further obtained. When the regional factor exhibits the characteristics of the fluctuating region, its value is large, which weakens the importance and reduces the sensitivity to fluctuations. When the regional factor exhibits the characteristics of the stable region, its value is small, which enhances the importance and increases the sensitivity to fluctuations. Therefore, the importance is optimized according to the regional factor, so that each number to be compressed is an influencing factor that is processed differently during compression.

[0073] At this point, the convergence parameters of the data points to be compressed are obtained.

[0074] S003: Using the convergence parameters of the data points to be compressed combined with the revolving door algorithm to compress the data to be compressed to obtain compressed data.

[0075] It should be noted that, in the process of using the revolving door compression, when judging the starting and ending points of the data, the upper and lower slopes are weighted using the convergence parameters to obtain the end point of the compression, which can optimize the compression effect. When any data point is detected using the revolving door algorithm, the upper slope and lower slope of the data point can be obtained. The traditional revolving door algorithm determines whether the data point to be compressed needs to be compressed. When the difference between the upper slope and the lower slope is greater than 0, the data point is saved. This embodiment uses the convergence parameter to further improve the judgment condition. When the compression difference of the data point to be compressed is large, it means that the data point is greater than the preset compression tolerance, that is, the data point to be compressed is different from the compressed data trend or is more important, and therefore needs to be retained.

[0076] Specifically, the revolving door algorithm is used to detect each data point to be compressed , the upper slope and lower slope of the data point to be compressed are obtained , calculate the compression difference of each data point to be compressed. The specific calculation formula is as follows:

[0077] ,

[0078] in, Indicates the data point to be compressed The compression difference, Indicates the data point to be compressed The upper slope of Indicates the data point to be compressed The downward slope of Indicates the data point to be compressed The convergence parameter of .

[0079] Furthermore, starting from the data point to be compressed with a collection time of 1, the compression difference of each data point to be compressed is compared with 0. When the compression difference of the data point to be compressed is greater than or equal to 0, the data point to be compressed is retained, that is, it is not compressed. When the compression difference of the data point to be compressed is less than 0, the revolving door algorithm is used to compress the data point to be compressed until all the data points to be compressed are retained or compressed to obtain compressed data.

[0080] At this point, the compressed data is obtained.

[0081] S004: The compressed data is used to generate a tool collision prediction model in the CNC machining center to complete intelligent anti-collision detection.

[0082] Specifically, the compressed data is stored in a CNC machining center. When tool collision prediction is required, the compressed data is decompressed and used as a data set. A neural network is used to analyze the data set to generate a tool collision prediction model. Tool collision prediction analysis is performed and an analysis report is generated. The analysis report is displayed to relevant staff to complete intelligent anti-collision detection.

[0083] At this point, the intelligent anti-collision detection is completed.

[0084] See also Figure 3 , which shows a structural composition diagram of an intelligent anti-collision detection system for a CNC machining center provided by an embodiment of the present invention, the system comprising:

[0085] The data integration module is used to obtain multi-dimensional time-series historical monitoring data using the data monitoring system of the CNC machining center, perform data interpolation fitting on the historical monitoring data, and obtain the data to be compressed represented by the collection items and the number of collection times;

[0086] A data processing module is used to obtain the previous time series interval and the next time series interval of the data point to be compressed in the data to be compressed, calculate the incremental change amount of each data point to be compressed in the previous time series interval, and use the incremental change amount of each data point to be compressed to calculate the trend difference degree of each data point to be compressed in the previous time series interval and in the next time series interval; count the previous incremental entropy value and the next incremental entropy value of the data point to be compressed, and use the previous incremental entropy value and the next incremental entropy value of the data point to be compressed to calculate the modulation factor of each data point to be compressed; calculate the importance of each data point to be compressed according to the trend difference degree and the modulation factor; calculate the regional factor of each data point to be compressed in the previous time series interval and the next time series interval of the data point to be compressed; obtain the convergence parameter of the data point to be compressed according to the regional factor and the importance of each data point to be compressed;

[0087] The compression fitting module is used to compress the data to be compressed using the convergence parameters of the data points to be compressed combined with the revolving door algorithm to obtain compressed data; the compressed data is used to generate a tool collision prediction model in the CNC machining center to complete intelligent anti-collision detection.

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

Claims

1. An intelligent anti-collision detection method for a CNC machining center, characterized in that: The method comprises the following steps: The data monitoring platform of the CNC machining center is used to obtain multi-dimensional time-series historical monitoring data, and data interpolation fitting is performed on the historical monitoring data to obtain the data to be compressed represented by the collection items and the number of collection times; Obtain the previous time series interval and the next time series interval of the data point to be compressed in the data to be compressed, calculate the incremental change of each data point to be compressed in the previous time series interval, and use the incremental change of each data point to be compressed to calculate the trend difference degree of each data point to be compressed in the previous time series interval and in the next time series interval; count the previous incremental entropy value and the next incremental entropy value of the data point to be compressed, and use the previous incremental entropy value and the next incremental entropy value of the data point to be compressed to calculate the modulation factor of each data point to be compressed; calculate the importance of each data point to be compressed according to the trend difference degree and the modulation factor; calculate the regional factor of each data point to be compressed in the previous time series interval and the next time series interval of the data point to be compressed; obtain the convergence parameter of the data point to be compressed according to the regional factor and the importance of each data point to be compressed; The convergence parameters of the data points to be compressed are combined with the revolving door algorithm to compress the compressed data to obtain compressed data; the compressed data is used to generate a tool collision prediction model in the CNC machining center to complete intelligent anti-collision detection; The step of calculating the incremental change amount of each data point to be compressed in the previous time series interval, and using the incremental change amount of each data point to be compressed to calculate the trend difference degree of each data point to be compressed in the previous time series interval and in the subsequent time series interval includes the following specific steps: Calculate the difference between the data value of the data point to be compressed and the nearest data value in the previous time series interval, record it as the incremental change of each data point to be compressed, and calculate the trend difference degree of each data point to be compressed in the previous time series interval and the subsequent time series interval respectively. The specific calculation formula is as follows: in, and Represent the data points to be compressed The degree of trend difference between the previous time series interval and the next time series interval, where and Respectively represent the collection items and the number of collections. and Represent the data points to be compressed and the data points to be compressed The incremental change of Indicates the default value of the preset interval. Indicates the data point to be compressed The first Neighboring data points to be compressed The incremental change of Indicates the data point to be compressed The first Neighboring data points to be compressed The incremental change of , Indicates taking the absolute value; The method of counting the pre-increment entropy value and the post-increment entropy value of the data point to be compressed, and calculating the modulation factor of each data point to be compressed by using the pre-increment entropy value and the post-increment entropy value of the data point to be compressed includes the following specific steps: Any data point to be compressed is recorded as the current data point to be compressed, and the information entropy of the incremental change of all data points to be compressed in the previous time series interval of the current data point to be compressed is counted as the previous incremental entropy value of the current data point to be compressed, and the information entropy of the incremental change of all data points to be compressed in the subsequent time series interval of the current data point to be compressed is counted as the subsequent incremental entropy value of the current data point to be compressed; the modulation factor of each data point to be compressed is calculated, and the specific calculation formula is as follows: in, Indicates the data point to be compressed The modulation factor, and Represent the data points to be compressed The pre-incremental entropy and post-incremental entropy, and Represent the data points to be compressed and the data points to be compressed The incremental change of Indicates taking the absolute value; The specific calculation formula for calculating the importance of each data point to be compressed according to the trend difference degree and the modulation factor is as follows: in, Indicates the data point to be compressed The importance of and Respectively represent the data to be compressed The degree of trend difference between the previous time series interval and the next time series interval, Indicates the data point to be compressed The modulation factor, Indicates the preset error parameter; The specific steps of calculating the regional factor of each data point to be compressed in the preceding time series interval and the succeeding time series interval of the data point to be compressed are as follows: Calculate the variance of each data point to be compressed and all the data points to be compressed in the previous time series interval as the front neighborhood variance of each data point to be compressed, calculate the variance of each data point to be compressed and all the data points to be compressed in the subsequent time series interval as the rear neighborhood variance of each data point to be compressed, and obtain the neighborhood maximum variance and neighborhood minimum variance of each data point to be compressed; obtain the first interval and the second interval according to the front neighborhood variance, the rear neighborhood variance, the neighborhood maximum variance and the neighborhood minimum variance of each data point to be compressed; calculate the regional factor of each data point to be compressed, and the specific calculation formula is as follows: in, Indicates the data point to be compressed The regional factor, and Represent the data points to be compressed The variance of the front and back neighbors of and Represent the data points to be compressed The neighborhood maximum variance and neighborhood minimum variance of represents the first interval, represents the second interval; The specific steps of obtaining the neighborhood maximum variance and neighborhood minimum variance of each data point to be compressed are as follows: The front neighborhood variance and the back neighborhood variance of all the data points to be compressed in the front time series interval and the back time series interval of each data point to be compressed are counted and put into a set, which is recorded as the neighborhood variance set of each data point to be compressed; the maximum value and the minimum value in the neighborhood variance set of each data point to be compressed are respectively used as the neighborhood maximum variance and the neighborhood minimum variance of each data point to be compressed; The specific steps of obtaining the first interval and the second interval according to the front neighborhood variance, the back neighborhood variance, the neighborhood maximum variance and the neighborhood minimum variance of each data point to be compressed are as follows: Calculate the absolute value of the difference between the rear neighborhood variance and the maximum neighborhood variance of each data point to be compressed, and the absolute value of the difference between the rear neighborhood variance and the minimum neighborhood variance of each data point to be compressed, and use the minimum value as the first threshold lower limit; calculate the absolute value of the difference between the front neighborhood variance and the maximum neighborhood variance of each data point to be compressed, and the absolute value of the difference between the front neighborhood variance and the minimum neighborhood variance of each data point to be compressed, and use the minimum value as the first threshold upper limit; record the interval formed by the first threshold lower limit and the first threshold upper limit as the first interval; record the interval formed by the maximum neighborhood variance and the minimum neighborhood variance as the total interval; remove the range of the first interval from the total interval to obtain the second interval; The specific steps of obtaining the convergence parameter of the data point to be compressed according to the regional factor and the importance of each data point to be compressed are as follows: For each data point to be compressed, the regional factor is added to the preset error parameter, and the inverse of the sum is taken to obtain the important weight value, and the important weight value is multiplied by the importance to obtain the convergence parameter of each data point to be compressed.

2. According to claim 1, a CNC machining center intelligent anti-collision detection method is characterized in that: The method of using the convergence parameters of the data points to be compressed in combination with the revolving door algorithm to compress the data to be compressed to obtain compressed data includes the following specific steps: Each data point to be compressed is detected using the revolving door algorithm , obtain the upper slope and lower slope of each data point to be compressed , calculate the compression difference of each data point to be compressed. The specific calculation formula is as follows: in, Indicates the data point to be compressed The compression difference, Indicates the data point to be compressed The upper slope of Indicates the data point to be compressed The downward slope of Indicates the data point to be compressed The convergence parameter of Starting from the data point to be compressed with a collection time of 1, compare the compression difference of each data point to be compressed with 0. When the compression difference of the data point to be compressed is greater than or equal to 0, the data point to be compressed is retained and not compressed. When the compression difference of the data point to be compressed is less than 0, the data point to be compressed is compressed until all the data points to be compressed are retained or compressed to obtain compressed data.

3. An intelligent anti-collision detection system for a CNC machining center, characterized in that: The system is used to implement an intelligent anti-collision detection method for a CNC machining center as described in any one of claims 1-2, and the system comprises: The data integration module is used to obtain multi-dimensional time-series historical monitoring data using the data monitoring system of the CNC machining center, perform data interpolation fitting on the historical monitoring data, and obtain the data to be compressed represented by the collection items and the number of collection times; A data processing module is used to obtain the previous time series interval and the next time series interval of the data point to be compressed in the data to be compressed, calculate the incremental change amount of each data point to be compressed in the previous time series interval, and use the incremental change amount of each data point to be compressed to calculate the trend difference degree of each data point to be compressed in the previous time series interval and in the next time series interval; count the previous incremental entropy value and the next incremental entropy value of the data point to be compressed, and use the previous incremental entropy value and the next incremental entropy value of the data point to be compressed to calculate the modulation factor of each data point to be compressed; calculate the importance of each data point to be compressed according to the trend difference degree and the modulation factor; calculate the regional factor of each data point to be compressed in the previous time series interval and the next time series interval of the data point to be compressed; obtain the convergence parameter of the data point to be compressed according to the regional factor and the importance of each data point to be compressed; The compression fitting module is used to compress the data to be compressed using the convergence parameters of the data points to be compressed combined with the revolving door algorithm to obtain compressed data; the compressed data is used to generate a tool collision prediction model in the CNC machining center to complete intelligent anti-collision detection.