Numerical control machine tool fault self-diagnosis monitoring method and monitoring device
By establishing a monitoring database and fault monitoring network and optimizing fault monitoring parameters, the problem of low accuracy and low efficiency of fault prediction of CNC machine tools has been solved, more efficient fault detection and maintenance have been achieved, and the operational stability and production efficiency of machine tools have been improved.
Patent Information
- Application Number
- CN202410934538.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Due to the slow convergence speed and low prediction accuracy of the existing CNC machine tool mechanical fault prediction methods, the accuracy and efficiency of fault prediction are low, which affects the machine tool operation stability and production efficiency.
Using the fault self-diagnosis monitoring method, by establishing a monitoring database and fault monitoring network, and using technical means such as population size configuration, initial population classification, continuous elimination constraints and iterative updates, the parameters of the fault monitoring network are optimized and the temperature and vibration data of CNC machine tools are obtained in real time. , generate fault monitoring results.
It improves the accuracy and efficiency of mechanical fault prediction of CNC machine tools, handles faults in a timely manner, reduces losses, and improves machine tool operation stability and production efficiency.
Smart Images

Figure CN118625733A
Abstract
Description
Technical Field
[0001] The present disclosure relates to a mechanical fault prediction technology, and more specifically, to a fault self-diagnosis monitoring method and a monitoring device for a numerically controlled machine tool. Background Art
[0002] CNC machine tools are a method of processing and producing parts by controlling machine tools through computer instructions. They have many advantages such as high production efficiency, high processing precision, and stable quality. They are widely used in industries such as automobiles, electronics, aviation, aerospace, and molds.
[0003] The complexity of CNC machine tools also leads to the diversity of mechanical failures. At present, the mechanical failure prediction method of CNC machine tools usually uses traditional optimization algorithms for fault prediction. Due to the slow convergence speed and low prediction accuracy of the existing optimization algorithms, the accuracy and efficiency of mechanical failure prediction of CNC machine tools are low, which reduces the operating stability and production efficiency of CNC machine tools.
[0004] The shortcomings of the existing CNC machine tool mechanical fault prediction method are: due to the slow convergence speed and low prediction accuracy of the CNC machine tool mechanical fault prediction algorithm, the accuracy and efficiency of the CNC machine tool mechanical fault prediction are low. Summary of the invention
[0005] Therefore, in order to solve the above technical problems, the technical solutions adopted by the embodiments of the present disclosure are as follows: A method for self-diagnosis monitoring of faults of numerically controlled machine tools comprises the following steps: establishing a monitoring database of numerically controlled machine tools, wherein the monitoring database is a data set of machine tools of the same batch of target numerically controlled machine tools, and the monitoring data in the monitoring database includes temperature data, vibration data and mode mapping; using the monitoring database as a training sample, establishing a fault monitoring network, wherein the fault monitoring network performs parameter optimization process including: configuring a population size M, wherein the population size is set by the sample size of the training sample; randomly distributing an initial population, and calculating the fitness values of individuals in the initial population by a fitness function, and performing initial classification of individuals according to the calculation results of the individual fitness values, wherein the initial classification includes a discovery category, a follow-up category and a judgment category, and the initial classification has a preset ratio; updating the position of the initial population based on the initial classification, and setting a continuous elimination constraint; iteratively updating the position update result, and iteratively eliminating by the continuous elimination constraint, and completing the parameter optimization of the fault monitoring network if the iterative update result meets the preset threshold; acquiring the monitoring data of the numerically controlled machine tool in real time, and synchronizing the monitoring data to the fault monitoring network to generate a fault monitoring result.
[0006] The fault self-diagnosis monitoring device for numerical control machine tools comprises: a monitoring database establishment module, the monitoring database establishment module is used to establish a monitoring database for numerical control machine tools, the monitoring database is a data set of machine tools of the same batch of target numerical control machine tools, and the monitoring data in the monitoring database includes temperature data, vibration data and pattern mapping; a fault monitoring network establishment module, the fault monitoring network establishment module is used to establish a fault monitoring network using the monitoring database as a training sample, and the parameter optimization process of the fault monitoring network comprises: a population size configuration module, the population size configuration module is used to configure a population size M, and the population size is set by the sample size of the training sample; an individual initial classification module, the individual initial classification module is used to randomly distribute an initial population, and to classify individuals in the initial population through a fitness function Fitness value calculation, initial classification of individuals based on the individual fitness value calculation results, the initial classification includes discovery category, follow-up category and judgment category, and the initial classification has a preset ratio; continuous elimination constraint setting module, the continuous elimination constraint setting module is used to update the position of the initial population based on the initial classification, and set continuous elimination constraints; iterative update result judgment module, the iterative update result judgment module is used to iteratively update the position update result, and iteratively eliminate through continuous elimination constraints. If the iterative update result meets the preset threshold, the parameter optimization of the fault monitoring network is completed; fault monitoring result generation module, the fault monitoring result generation module is used to obtain the monitoring data of the CNC machine tool in real time, and synchronize the monitoring data to the fault monitoring network to generate a fault monitoring result.
[0007] Due to the adoption of the above technical method, the present disclosure has achieved the following technical advances compared with the prior art: It can solve the technical problem that the existing CNC machine tool mechanical fault prediction algorithm has low accuracy and efficiency due to slow convergence speed and low prediction accuracy. First, obtain a monitoring data set of the same batch of machine tools as the target CNC machine tool, wherein the monitoring data includes temperature data, vibration data and pattern mapping of the spindle position of the CNC machine tool, and build a monitoring database of the target CNC machine tool based on the monitoring data set; establish a fault monitoring network, and use the monitoring database as a training sample to optimize the parameters of the fault monitoring network, wherein the parameter optimization process of the fault monitoring network is as follows: first, set the population size M based on the sample size of the training sample; randomly distribute the initial population, calculate the fitness of the individuals in the initial population through the fitness function, and divide the individuals in the initial population into discovery categories according to the preset ratio based on the fitness calculation results. , follow the category and determine the category to obtain the individual initial classification result; update the position of the initial population according to the initial classification, and set the continuous elimination constraint; further iterate the position update result, and iterate through the continuous elimination constraint; then judge the iterative update result according to the preset threshold, and when the iterative update result meets the preset threshold, obtain the fault monitoring network with parameter optimization completed; obtain the real-time monitoring data of the CNC machine tool through multiple sensors, wherein the real-time monitoring data includes the real-time temperature data, real-time vibration data and real-time working mode of the spindle position of the CNC machine tool; then input the real-time monitoring data into the fault monitoring network to generate the fault monitoring result. The above method can improve the accuracy and efficiency of the mechanical fault prediction of the CNC machine tool, so as to timely handle and maintain the mechanical fault of the CNC machine tool, reduce or avoid the significant losses caused by the mechanical fault of the machine tool, and improve the stability and production efficiency of the machine tool operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for describing the embodiments are briefly introduced below.
[0009] Figure 1 A flowchart of a method for self-diagnosis and monitoring of faults of a numerically controlled machine tool is provided for this application; Figure 2 A schematic diagram of a process for completing initial classification in a method for self-diagnosis and monitoring of faults in a numerically controlled machine tool is provided for this application; Figure 3 A structural schematic diagram of a fault self-diagnosis monitoring device for a CNC machine tool is provided for the present application. DETAILED DESCRIPTION
[0010] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0011] Based on the above description, if Figure 1 As shown, the present disclosure provides a method for self-diagnosis and monitoring of faults of a numerically controlled machine tool, comprising: The method provided in the present application is used to optimize the traditional CNC machine tool mechanical failure prediction algorithm to achieve the purpose of improving the accuracy and efficiency of CNC machine tool mechanical failure prediction, thereby reducing or avoiding significant losses caused by machine tool failures. The method is specifically implemented in a CNC machine tool fault self-diagnosis monitoring device.
[0012] Establishing a monitoring database for CNC machine tools, wherein the monitoring database is a data set of machine tools of the same batch as the target CNC machine tools, and the monitoring data in the monitoring database includes temperature data, vibration data and mode mapping; In an embodiment of the present application, first, machine tool equipment from the same batch as the target CNC machine tool is obtained, wherein the target CNC machine tool is a CNC machine tool equipment to be subjected to fault prediction and diagnosis, and the machine tool equipment from the same batch refers to machine tool equipment of the same model, same production batch, and same operating parameters as the target CNC machine tool.
[0013] The spindle components of CNC machine tools are composed of rotating mechanical components such as spindle boxes and bearings. The spindle temperature and vibration data can be used to determine whether the spindle may fail. Then, the temperature, vibration data, and current working mode of the spindle components of the same batch of machine tools are collected through temperature sensors and vibration sensors to obtain monitoring data of the same batch of machine tools, wherein the monitoring data includes temperature data, vibration data, and mode mapping, wherein the temperature data refers to the temperature of the spindle components; the vibration data refers to the vibration speed, vibration acceleration, displacement and other data of the spindle components; the mode mapping refers to the corresponding relationship between the current spindle temperature, the current vibration data and the current working mode of the CNC machine tool, wherein the working mode of the CNC machine tool includes turning, milling, hole processing and other modes. Then, according to the monitoring database of the target CNC machine tool of the monitoring data component, a monitoring database is obtained.
[0014] By constructing a monitoring database based on the same batch of machine tool monitoring data sets of the target CNC machine tools, training data support is provided for the next step of fault monitoring network training. At the same time, the adaptability of the training data to the target CNC machine tools can be improved, thereby improving the accuracy of fault monitoring network training.
[0015] Using the monitoring database as a training sample, a fault monitoring network is established. The parameter optimization process of the fault monitoring network includes: In an embodiment of the present application, a fault monitoring network is constructed based on a BP neural network. The fault monitoring network is a neural network model for predicting faults of a target machine tool device, and a fault prediction optimization algorithm is embedded inside. The input data of the fault monitoring network are spindle temperature data, spindle vibration data and working mode, and the output data are fault monitoring results. The monitoring database is then used as a training sample to perform supervised training on the fault monitoring network. The supervised training process of the fault monitoring network for parameter optimization is as follows.
[0016] Configuring a population size M, wherein the population size is set by the sample size of the training sample; In an embodiment of the present application, first, the sample size of the training sample is obtained, and then the population size is set according to the sample size, wherein the population size is the number of sample data of the training sample, wherein a group of temperature data, vibration data and pattern mapping is a group of sample data, and a group of sample data is an individual in the population, and the population size M is obtained.
[0017] Randomly distribute the initial population, calculate the individual fitness values in the initial population through the fitness function, and perform initial classification of the individuals according to the calculation results of the individual fitness values. The initial classification includes discovery category, follow-up category and judgment category, and the initial classification has a preset ratio; In an embodiment of the present application, the initial population is randomly distributed by generating random numbers using a normal distribution algorithm to obtain a randomly distributed initial population. Then, the fitness of the individuals in the initial population is calculated in sequence by a fitness function, wherein the larger the fitness value of the individual is, the closer the individual is to the optimal individual, and a plurality of individual fitness values, i.e., the individual fitness value calculation results, are obtained. Then, the individuals are initially classified according to the plurality of individual fitness values, wherein the initial classification results include a discovery category, a follow-up category, and a determination category, and the discovery category, the follow-up category, and the determination category all have a preset ratio, and the preset ratio can be set by a person skilled in the art according to the actual number of individuals in the initial population, wherein the discovery category preset ratio is less than the follow-up category preset ratio, and the sum of the discovery category preset ratio and the follow-up category preset ratio is 1, for example: if the discovery category ratio is set to 25% of the individuals in the population, then the follow-up category ratio is 75%, and the determination category ratio is set to 20%. The discovery category is individuals with higher individual fitness values, which play a guiding role in the optimization process; the following category is individuals with smaller individual fitness values in the population, which are used to follow the discovery category for optimization; the judgment category is used to detect, identify and warn of dangerous areas in the optimization process, and the judgment category includes warning safety thresholds.
[0018] like Figure 2 As shown, in one embodiment, the method further includes: Obtaining a quantity constraint of the discovery category according to the preset ratio; Sorting the values in order according to the calculation results of the individual fitness values, extracting the order sorting results through the quantity constraint, and completing the discovery category classification based on the extracted results; Eliminate individuals with discovery category classification in the initial population, and randomly distribute individuals according to the number constraints of follow category and judgment category, generate elimination space through judgment category individuals, and complete the initial classification according to random distribution results, discovery category classification and elimination space.
[0019] In an embodiment of the present application, a quantity constraint of a discovery category is obtained according to the preset ratio, wherein the quantity constraint refers to the number of individuals in the discovery category. Then, according to the calculation result of the individual fitness value, the individuals in the initial population are sorted from large to small according to the fitness value to obtain an individual sequence sorting result. And according to the quantity constraint, individuals are extracted from the individual sequence sorting result, and the extracted individuals are used as discovery categories. For example, assuming that the number of individuals in the initial population is 100, the preset ratio of the discovery category is 25%, and the quantity constraint of the discovery category is 25, the first 25 individuals in the individual sequence sorting result are extracted as discovery category individuals.
[0020] Then, the individuals with the discovery category classification in the initial population are eliminated, and the number constraints of the following category and the determination category are obtained according to the preset ratio, and then the following category individuals are obtained according to the following category number constraints, and the determination category individuals are obtained according to the determination category number constraints, and the following category individuals and the determination category individuals are randomly distributed. Then, the elimination space is generated according to the determination category individuals, where the elimination space refers to the early warning area in the individual optimization process, and the individuals in the elimination space will be eliminated. Finally, the initial classification is completed according to the random distribution results, the discovery category classification and the elimination space.
[0021] Based on the initial classification, the position of the initial population is updated, and a continuous elimination constraint is set; In an embodiment of the present application, first, the position of the initial population is updated according to the initial classification, and a continuous elimination constraint is set. The continuous elimination constraint is used to eliminate individuals with smaller fitness values in the continuous optimization process. In the population, the fitness value of the following category individual is usually smaller than the fitness value of the discoverer. The individual can be eliminated by judging the number of times the individual is continuously used as the following category. The continuous elimination constraint can be set by technicians in this field according to actual needs. The higher the optimization accuracy requirement, the smaller the continuous elimination constraint is, and the longer the optimization time required is. For example, the continuous elimination constraint is set to 5, that is, each time the individuals in the population that have been used as the following category for more than 5 consecutive times are eliminated.
[0022] Iteratively updating the position update result and iteratively eliminating through continuous elimination constraints, if the iterative update result meets the preset threshold, the parameter optimization of the fault monitoring network is completed; In an embodiment of the present application, first, the position update result is iteratively updated according to a preset adjustment step size, and individuals whose individual fitness satisfies the continuous elimination constraint during the update process are eliminated according to the continuous elimination constraint, and a preset threshold is obtained. The preset threshold is used to judge the fitness value of individuals in the population. Technical personnel in this field can set it according to actual conditions. When the individual fitness value in the iterative update result is greater than the preset threshold, the individual with the highest current fitness value is output as the optimal solution, and the parameter optimization of the fault monitoring network is completed.
[0023] In one embodiment, the method further comprises: Taking the discovery category individual as the advancing direction, the fitness value of the discovery category individual is used to perform attraction calculation on the follow category individual, wherein the attraction calculation result is the double gravity calculation result, and the attraction calculation between any discovery category individual and the follow category individual is obtained by the fitness value of the discovery category individual and the individual distance; The position of the individual in the following category is updated by the preset step length and the direction determined by the attraction calculation result; The solution space is partitioned by determining the distribution position and fitness value of the individual categories, and the elimination space is generated based on the spatial partitioning results; Randomly select the forward direction of the following category individual in the elimination space as the update direction of the discriminant category individual, and perform the position update of the discriminant category individual; An iteration is completed based on the position update of the follower category individual and the discriminant category individual position update.
[0024] In an embodiment of the present application, first, the discovery category individual is taken as the forward direction, wherein the forward direction is the optimization direction, and then the following category individual is attracted and calculated according to the fitness value of the discovery category individual, the distance between the discovery category individual and the following category individual is obtained and recorded as the individual distance, and a double gravity calculation is performed according to the fitness value of any group of discovery category individuals and the individual distance of the following category individuals, wherein the double gravity calculation refers to obtaining two fitness values with the closest distance to the position of the following category individual, wherein the larger the fitness value of the discovery category individual and the smaller the individual distance, the higher the double gravity calculation result, and the double gravity calculation can be performed by setting different weights for the individual fitness value and the individual distance, wherein the greater the influence of which indicator, the fitness value or the individual distance, on the double gravity calculation result is, the greater the corresponding weight is, and the weight setting can be performed by the existing coefficient of variation method, which is a weighting method commonly used by technicians in this field and will not be described in detail here, and the attraction calculation results of multiple discovery category individuals are obtained, wherein the gravity calculation result is a double gravity calculation result.
[0025] A preset step length is obtained, and the preset step length is used to update the individual position. Those skilled in the art can set it according to the actual situation. The optimal direction of the following category individual is determined according to the attraction calculation result, wherein the optimal direction is the direction of the finding category individual corresponding to the attraction calculation result with the largest value. Then, based on the optimal direction, the position of the following category individual is updated according to the preset step length.
[0026] The solution space is spatially segmented according to the distribution position and fitness value of the judgment category individuals. First, the coverage range of the judgment category individuals is obtained according to the fitness value of the judgment category individuals. The larger the fitness value, the larger the coverage range. The coverage area corresponding to the minimum fitness value of the judgment category individuals is used as the elimination space. Then, the forward direction of the following category individuals in the elimination space is randomly selected as the update direction of the discriminant category individuals, and the position of the array category individuals is updated. When the following category individuals complete a position update and the discriminant category individuals complete a position update, the optimization is completed.
[0027] In one embodiment, the method further comprises: Keep the discriminant category individuals after the position update, and clear the labels of the follow category individuals and the discovered category individuals; Recalculate and sort the individual fitness values of the individuals whose labels have been cleared, and re-determine the discovery category individuals and the follow category individuals according to the sorting results and the preset ratio; According to the re-determination result, it is judged whether there is a follower category individual that meets the continuous elimination constraint; If it exists, the corresponding follower category individual is eliminated, and the iterative update is completed according to the elimination result.
[0028] In an embodiment of the present application, first, the discriminant category individuals that have completed the position update are retained, and then the labels of the following category individuals and the discovery category individuals in the population are cleared, that is, each time an update is completed, the individuals after the position update are reclassified into the discovery category and the following category. Then, the individual fitness values of the individuals after the labels are cleared are recalculated through the fitness function, and they are sorted in order from large to small according to the fitness values to determine the sorting results of the fitness values of the individuals that have completed the update. According to the preset ratio and the sorting results, the population is re-divided into the discovery category individuals and the following category individuals, and the updated discovery category individuals and the updated following category individuals are determined.
[0029] Then, the re-determination result is judged according to the continuous elimination constraint, and the follower category individuals that meet the continuous elimination constraint in the re-determination result are eliminated, and the iterative update is continued according to the elimination result.
[0030] In one embodiment, the method further comprises: Obtaining continuous values of the continuous elimination constraint; Performing an entry judgment to redetermine the result through the continuous value; If the entry judgment is passed, the first elimination judgment value is generated according to the elimination space where the individual is located; Generate a second elimination judgment value according to the fitness value of the individual; Elimination identification is performed on the first elimination criterion value and the second elimination criterion value based on the continuous elimination constraint.
[0031] In the embodiment of the present application, first, the continuous value of the continuous elimination constraint is obtained, and the continuous value refers to the continuous number of times the individual is a follower category. Then, the re-determination result is judged according to the continuous value. When the number of times the individual is a follower in the re-determination result is greater than the continuous value, the entry judgment is passed, and a first judgment value is generated according to the elimination space where the individual is located. A second elimination judgment value is generated according to the individual's fitness value, wherein the smaller the individual's fitness value, the larger the second elimination judgment value.
[0032] Obtain a second elimination judgment threshold, which can be set according to actual conditions. For example, set the fitness of the second elimination judgment threshold to 10, and then eliminate and identify individuals based on the first elimination judgment value and the second elimination judgment value according to the continuous elimination constraint. When the individual meets the first elimination judgment value, the second elimination judgment value of the individual is judged according to the second elimination judgment threshold. When the second elimination judgment value is greater than the second elimination judgment threshold, the individual is eliminated.
[0033] By performing elimination identification on the first elimination discriminant value and the second elimination discriminant value according to the continuous elimination constraint, the accuracy of individual elimination can be improved, thereby improving the accuracy of the optimization result.
[0034] Continue to perform iterative optimization, and judge the iterative update result according to the preset threshold value, and when the iterative update result is greater than the preset threshold value, the parameter optimization of the fault monitoring network is completed.
[0035] In one embodiment, the method further comprises: If the iterative update result cannot meet the preset threshold, a reset instruction is generated; The initial population is updated again according to the reset instruction, and parameter optimization is performed.
[0036] In the embodiment of the present application, when the iterative update result is less than or equal to the preset threshold, a reset instruction is generated, and then the initial population is updated according to the reset instruction, and parameter optimization is performed based on the updated population.
[0037] The monitoring data of the CNC machine tool is acquired in real time, and the monitoring data is synchronized to the fault monitoring network to generate a fault monitoring result.
[0038] In the embodiment of the present application, the spindle component of the target numerical control machine tool is collected in real time by a temperature sensor and a vibration sensor, and the current working mode of the target numerical control machine tool is obtained to obtain the real-time monitoring data of the target numerical control machine tool. Then the monitoring data is input into the fault monitoring network for working mode matching, and the matching monitoring data corresponding to the working mode is obtained. When the monitoring data does not meet the matching monitoring data, that is, the real-time temperature data of the numerical control machine tool does not meet the matching temperature data in the matching monitoring data and / or the real-time vibration data does not meet the matching vibration data in the matching monitoring data, a fault warning instruction is generated, and the target numerical control machine tool is timely repaired and maintained according to the fault warning instruction. The above method can solve the technical problem that the existing numerical control machine tool mechanical fault prediction algorithm has low accuracy and efficiency due to slow convergence speed and low prediction accuracy, and can improve the accuracy and efficiency of numerical control machine tool mechanical fault prediction, so as to timely handle and maintain the numerical control machine tool mechanical fault, reduce or avoid the significant losses caused by the machine tool mechanical fault, and improve the stability and production efficiency of the machine tool operation.
[0039] In one embodiment, the method further comprises: Perform fault troubleshooting based on the fault monitoring results and generate troubleshooting verification; If the maintenance verification is inconsistent with the fault monitoring result, extracting the monitoring data corresponding to the fault monitoring result, mapping the monitoring data with the maintenance verification as newly added protection data; The newly added protection data is updated to the fault monitoring network.
[0040] In the embodiment of the present application, the target CNC machine tool is subjected to fault maintenance according to the fault monitoring result, and the mechanical fault maintenance result is recorded to generate maintenance verification. Then the maintenance verification is compared with the fault monitoring result. When the maintenance verification is inconsistent with the fault monitoring result, the monitoring data in the fault monitoring result is extracted, and the monitoring data is associated and mapped with the maintenance verification. The associated mapping result of the monitoring data and the maintenance verification is used as the newly added protection data, and the newly added protection data is updated to the fault monitoring network to complete the replacement of the corresponding matching monitoring data of the fault monitoring network.
[0041] By optimizing the fault monitoring network through generating maintenance verification, the accuracy of mechanical fault prediction by the fault monitoring network can be further improved.
[0042] In one embodiment, Figure 3 The invention provides a fault self-diagnosis monitoring device for a numerically controlled machine tool, comprising: A monitoring database establishment module, wherein the monitoring database establishment module is used to establish a monitoring database for a CNC machine tool, wherein the monitoring database is a data set of machine tools of the same batch as the target CNC machine tool, and the monitoring data in the monitoring database includes temperature data, vibration data and mode mapping; A fault monitoring network establishment module is used to establish a fault monitoring network using the monitoring database as a training sample. The fault monitoring network performs parameter optimization process including: A population size configuration module, the population size configuration module is used to configure a population size M, the population size is set by the sample size of the training sample; An individual initial classification module, which is used to randomly distribute an initial population, calculate the individual fitness values in the initial population through a fitness function, and perform initial classification of individuals based on the calculation results of the individual fitness values. The initial classification includes discovery categories, follow-up categories, and determination categories, and the initial classification has a preset ratio; A continuous elimination constraint setting module, the continuous elimination constraint setting module is used to update the position of the initial population based on the initial classification and set continuous elimination constraints; An iterative update result judgment module, which is used to iteratively update the position update result and iteratively eliminate iteratively through continuous elimination constraints. If the iterative update result meets a preset threshold, the parameter optimization of the fault monitoring network is completed; A fault monitoring result generating module is used to obtain the monitoring data of the CNC machine tool in real time, synchronize the monitoring data to the fault monitoring network, and generate a fault monitoring result.
[0043] In one embodiment, the apparatus further comprises: A quantity constraint acquisition module, the quantity constraint acquisition module is used to acquire the quantity constraint of the discovery category according to the preset ratio; A discovery category classification module, the discovery category classification module is used to sort the order of values according to the individual fitness value calculation results, extract the order sorting results through the quantity constraint, and complete the discovery category classification based on the extracted results; An initial classification module is used to eliminate individuals with discovery category classification in the initial population, and randomly distribute individuals according to the number constraints of the follow category and the judgment category, generate elimination space through the judgment category individuals, and complete the initial classification according to the random distribution results, discovery category classification and elimination space.
[0044] In one embodiment, the apparatus further comprises: An attraction calculation module, wherein the attraction calculation module is used to take the discovery category individual as the advancing direction, and perform attraction calculation on the following category individual through the fitness value of the discovery category individual, wherein the attraction calculation result is a double gravity calculation result, and the attraction calculation of any discovery category individual and the following category individual is obtained through the fitness value of the discovery category individual and the individual distance; A position updating module, the position updating module is used to update the position of the individual of the following category according to a preset step length and a direction determined by an attraction calculation result; An elimination space generation module, the elimination space generation module is used to perform spatial segmentation of the solution space by determining the distribution positions and fitness values of the category individuals, and generate an elimination space based on the spatial segmentation result; A discriminant category individual position update module, wherein the discriminant category individual position update module is used to randomly select a forward direction of a following category individual in an elimination space as an update direction of the discriminant category individual, and execute the discriminant category individual position update; A one-iteration completion module is used to complete one iteration based on the position update of the follower category individual and the position update of the discriminator category individual.
[0045] In one embodiment, the apparatus further comprises: An individual label clearing module, the individual label clearing module is used to retain the individual of the distinguished category after the position update, and clear the individual labels of the followed category and the individual labels of the discovered category; A category individual determination module, the category individual determination module is used to recalculate and sort the individual fitness values of the individuals after the labels are cleared, and re-determine the discovery category individuals and the follow category individuals according to the sorting results and the preset ratio; A following category individual judgment module, wherein the following category individual judgment module is used to judge whether there is a following category individual that satisfies the continuous elimination constraint according to the re-determination result; The following category individual elimination module means that if the following category individual exists, the corresponding following category individual is eliminated, and the iterative update is completed according to the elimination result.
[0046] In one embodiment, the apparatus further comprises: A continuous value obtaining module, the continuous value obtaining module is used to obtain the continuous value of the continuous elimination constraint; An entry determination module, the entry determination module is used to perform entry determination to redetermine a result through the continuous value; A first elimination discrimination value generation module, wherein the first elimination discrimination value generation module is used to generate a first elimination discrimination value according to the elimination space where the individual is located if the entry discrimination is passed; A second elimination discriminant value generating module, wherein the second elimination discriminant value generating module is used to generate a second elimination discriminant value according to the fitness value of the individual; An elimination identification module is used to perform elimination identification on the first elimination discrimination value and the second elimination discrimination value based on the continuous elimination constraint.
[0047] In one embodiment, the apparatus further comprises: A reset instruction generation module, wherein the reset instruction generation module is used to generate a reset instruction if the iterative update result fails to meet a preset threshold; A parameter optimization execution module is used to re-update the initial population according to the reset instruction and execute parameter optimization.
[0048] In one embodiment, the apparatus further comprises: A maintenance verification generation module, the maintenance verification generation module is used to perform fault maintenance based on the fault monitoring result and generate maintenance verification; A newly added protection data setting module is used to extract the monitoring data corresponding to the fault monitoring result if the maintenance verification is inconsistent with the fault monitoring result, and map the monitoring data with the maintenance verification as the newly added protection data; A new protection data updating module is added, and the new protection data updating module is used to update the new protection data to the fault monitoring network.
[0049] In summary, compared with the prior art, the embodiments of the present disclosure have the following technical effects: (1) It can improve the convergence speed and prediction accuracy of the mechanical fault prediction algorithm, thereby improving the accuracy and efficiency of CNC machine tool mechanical fault prediction, timely handling and maintenance of CNC machine tool mechanical faults, reducing or avoiding major losses caused by machine tool mechanical faults, and further improving the stability of machine tool operation and production efficiency.
[0050] (2) By performing elimination identification on the first elimination discriminant value and the second elimination discriminant value according to the continuous elimination constraint, the accuracy of individual elimination can be improved, thereby improving the accuracy of the optimization result.
[0051] (3) By optimizing the fault monitoring network through generating maintenance verification, the accuracy of mechanical fault prediction by the fault monitoring network can be further improved.
[0052] The above-described embodiments only express several implementation methods of the present disclosure, but they cannot be understood as limiting the scope of the invention patent. Therefore, without departing from the scope of the present disclosure concept as defined by the attached claims, a person of ordinary skill in the art may make various types of substitutions, modifications and changes, and these substitutions, modifications and changes all belong to the protection scope of the present disclosure.
Claims
1. A method for self-diagnosis and monitoring of faults in numerically controlled machine tools, characterized in that: The method comprises: Establishing a monitoring database for CNC machine tools, wherein the monitoring database is a data set of machine tools of the same batch as the target CNC machine tools, and the monitoring data in the monitoring database includes temperature data, vibration data and mode mapping; Using the monitoring database as a training sample, a fault monitoring network is established. The parameter optimization process of the fault monitoring network includes: Configuring a population size M, wherein the population size is set by the sample size of the training sample; Randomly distribute the initial population, calculate the individual fitness values in the initial population through the fitness function, and perform initial classification of the individuals according to the calculation results of the individual fitness values. The initial classification includes discovery category, follow-up category and judgment category, and the initial classification has a preset ratio; Based on the initial classification, the position of the initial population is updated, and a continuous elimination constraint is set; Iteratively updating the position update result and iteratively eliminating through continuous elimination constraints, if the iterative update result meets the preset threshold, the parameter optimization of the fault monitoring network is completed; The monitoring data of the CNC machine tool is acquired in real time, and the monitoring data is synchronized to the fault monitoring network to generate a fault monitoring result.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining a quantity constraint of the discovery category according to the preset ratio; Sorting the values in order according to the calculation results of the individual fitness values, extracting the order sorting results through the quantity constraint, and completing the discovery category classification based on the extracted results; Eliminate individuals with discovery category classification in the initial population, and randomly distribute individuals according to the number constraints of follow category and judgment category, generate elimination space through judgment category individuals, and complete the initial classification according to random distribution results, discovery category classification and elimination space.
3. The method according to claim 2, characterized in that The method further comprises: Taking the discovery category individual as the advancing direction, the fitness value of the discovery category individual is used to perform attraction calculation on the follow category individual, wherein the attraction calculation result is the double gravity calculation result, and the attraction calculation between any discovery category individual and the follow category individual is obtained by the fitness value of the discovery category individual and the individual distance; The position of the individual in the following category is updated by the preset step length and the direction determined by the attraction calculation result; The solution space is partitioned by determining the distribution position and fitness value of the individual categories, and the elimination space is generated based on the spatial partitioning results; Randomly select the forward direction of the following category individual in the elimination space as the update direction of the discriminant category individual, and perform the position update of the discriminant category individual; An iteration is completed based on the position update of the follower category individual and the discriminant category individual position update.
4. The method according to claim 3, characterized in that The method further comprises: Keep the discriminant category individuals after the position update, and clear the labels of the follow category individuals and the discovered category individuals; Recalculate and sort the individual fitness values of the individuals whose labels have been cleared, and re-determine the discovery category individuals and the follow category individuals according to the sorting results and the preset ratio; According to the re-determination result, it is judged whether there is a follower category individual that meets the continuous elimination constraint; If it exists, the corresponding follower category individual is eliminated, and the iterative update is completed according to the elimination result.
5. The method according to claim 4, characterized in that The method further comprises: Obtaining continuous values of the continuous elimination constraint; Performing an entry judgment to redetermine the result through the continuous value; If the entry judgment is passed, the first elimination judgment value is generated according to the elimination space where the individual is located; Generate a second elimination judgment value according to the fitness value of the individual; Elimination identification is performed on the first elimination criterion value and the second elimination criterion value based on the continuous elimination constraint.
6. The method according to claim 1, characterized in that The method further comprises: If the iterative update result cannot meet the preset threshold, a reset instruction is generated; The initial population is updated again according to the reset instruction, and parameter optimization is performed.
7. The method according to claim 1, characterized in that The method further comprises: Perform fault troubleshooting based on the fault monitoring results and generate troubleshooting verification; If the maintenance verification is inconsistent with the fault monitoring result, extracting the monitoring data corresponding to the fault monitoring result, mapping the monitoring data with the maintenance verification as newly added protection data; The newly added protection data is updated to the fault monitoring network.
8. A CNC machine tool fault self-diagnosis monitoring device, characterized in that: The steps for executing any one of the methods for self-diagnosis and monitoring of faults of numerically controlled machine tools described in claims 1 to 7 include: A monitoring database establishment module, wherein the monitoring database establishment module is used to establish a monitoring database for a CNC machine tool, wherein the monitoring database is a data set of machine tools of the same batch as the target CNC machine tool, and the monitoring data in the monitoring database includes temperature data, vibration data and mode mapping; A fault monitoring network establishment module is used to establish a fault monitoring network using the monitoring database as a training sample. The fault monitoring network performs parameter optimization process including: A population size configuration module, the population size configuration module is used to configure a population size M, the population size is set by the sample size of the training sample; An individual initial classification module, which is used to randomly distribute an initial population, calculate the individual fitness values in the initial population through a fitness function, and perform initial classification of individuals based on the calculation results of the individual fitness values. The initial classification includes discovery categories, follow-up categories, and determination categories, and the initial classification has a preset ratio; A continuous elimination constraint setting module, the continuous elimination constraint setting module is used to update the position of the initial population based on the initial classification and set continuous elimination constraints; An iterative update result judgment module, which is used to iteratively update the position update result and iteratively eliminate iteratively through continuous elimination constraints. If the iterative update result meets a preset threshold, the parameter optimization of the fault monitoring network is completed; A fault monitoring result generating module is used to obtain the monitoring data of the CNC machine tool in real time, synchronize the monitoring data to the fault monitoring network, and generate a fault monitoring result.
