Safety hazard inspection method, CNC machine tool and readable storage medium

By conducting data analysis on the operating parameters and operation logs of CNC machine tools, and using basic models to identify potential safety hazards, the problem of personal safety and low efficiency in safety detection is solved, and early warning and diagnosis of potential safety hazards for CNC machine tools and electrical equipment are realized.

CN118094344BActive Publication Date: 2024-10-11ZKHM CNC SOFTWARE (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410502978.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2024-10-11
Estimated Expiration
2044-04-25

AI Technical Summary

Technical Problem

During the safety inspection and safety inspection process of CNC machine tools and related electrical equipment, there are potential personal safety hazards and low efficiency problems. Safety personnel may face mechanical injuries and electric shock hazards during the inspection process, and the inspection efficiency is low.

Method used

By obtaining the operating parameters and operation logs of CNC machine tools, extract time series data, feature data and operation data, and input them into basic models (such as CNN-LSTM, random forests, autoencoders) for analysis, and integrate the output results to identify safety Hidden hazards, generate diagnostic reports, provide maintenance measures, and improve the ability to identify and warn of potential safety hazards.

Benefits of technology

It achieves effective early warning and diagnosis of safety hazards in CNC machine tools and related electrical equipment, avoids personal safety risks and low detection efficiency, and improves the accuracy and efficiency of safety monitoring and hazard early warning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118094344B_ABST
    Figure CN118094344B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of electronic digital data processing technology, and in particular to a safety hazard inspection method, a CNC machine tool, and a readable storage medium. The method includes obtaining machine tool operating parameters and operation logs when the CNC machine tool is in operation; extracting time series data, feature data, and operation data from the machine tool operating parameters and operation logs when the CNC machine tool is in operation; inputting the time series data, feature data, and operation data into corresponding base models, and obtaining the output results of each base model; integrating the output results of each base model to determine the safety hazard of the CNC machine tool. Effective early warning and diagnosis of safety hazards of CNC machine tools and related electrical equipment are achieved, avoiding personal safety issues and inefficiency problems when safety personnel conduct safety inspections and safety inspections on CNC machine tools and related electrical equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a safety hazard inspection method, a numerically controlled machine tool and a readable storage medium. Background Art

[0002] When conducting safety inspections and safety checks on CNC machine tools and related electrical equipment, safety officers usually conduct manual safety inspections and manual checks. However, CNC machine tools usually involve large mechanical movements, such as rotating tools, moving workbenches, etc. If the safety officer is too close to moving parts or uses improper tools during the inspection process, mechanical injuries such as pinching, collisions, cuts, etc. may occur; and when the safety officer is inspecting electrical equipment, if the electrical equipment is not completely powered off, the safety officer is also at risk of electric shock. Therefore, in order to ensure the personal safety of the safety officer, before conducting safety inspections and safety checks, various cumbersome protective measures need to be taken according to the actual situation, which in turn leads to the problem of low efficiency in safety inspections and safety checks on CNC machine tools and related electrical equipment.

[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present invention is to provide a method for inspecting potential safety hazards, aiming to solve the personal safety problems and low efficiency problems that exist when safety officers perform safety inspections and safety checks on CNC machine tools and related electrical equipment.

[0005] To achieve the above object, the present invention provides a method for inspecting potential safety hazards, which comprises the following steps:

[0006] Obtain machine tool operating parameters and operation logs when the CNC machine tool is running;

[0007] Extracting time series data, feature data and operation data from machine tool operation parameters and operation logs when the numerical control machine tool is running;

[0008] Input the time series data, feature data and operation data into corresponding base models, and obtain output results of each base model;

[0009] The output results of each of the base models are integrated to determine the safety hazards of the CNC machine tool.

[0010] Optionally, the step of extracting time series data, feature data and operation data from machine tool operation parameters and operation logs when the CNC machine tool is running includes:

[0011] performing a time warping operation on the machine tool operating parameters and adding synthetic noise to the machine tool operating parameters to obtain enhanced machine tool operating parameters;

[0012] Based on a preset data processing process, performing a data cleaning operation, a missing value filling operation, a standardization operation, and a normalization operation on the enhanced machine tool operating parameters and the data recorded in the operation log to generate preprocessed data;

[0013] The time series data, feature data and operation data are extracted from the preprocessed data.

[0014] Optionally, the step of extracting the time series data, feature data and operation data from the preprocessed data includes:

[0015] Arranging the continuous data in the preprocessed data in chronological order to obtain the time series data;

[0016] Extracting temperature change rate data, current mutation data, voltage mutation data, and vibration mutation data from the preprocessed data to obtain the characteristic data;

[0017] The status data, fault data and maintenance data in the pre-processed data are extracted to obtain the operation data.

[0018] Optionally, the step of inputting the time series data, feature data and operation data into corresponding base models and obtaining output results of each base model includes:

[0019] Passing the time series data to the CNN-LSTM base model to identify the current safety problem mode of the CNC machine tool;

[0020] Passing the feature data to a random forest-based model to identify the current safety hazard category of the CNC machine tool;

[0021] The operation data is transmitted to the autoencoder base model, and the difference between the operation data and normal operation data is compared to determine the current danger level of the CNC machine tool.

[0022] Optionally, after the step of integrating the output results of each of the base models to determine the safety hazard of the CNC machine tool, the step further includes:

[0023] Matching corresponding maintenance measures according to the current danger level, safety problem mode, and safety hazard category of the CNC machine tool;

[0024] Generate a diagnostic report based on the current danger level, safety problem mode, safety hazard category, and maintenance measures of the CNC machine tool;

[0025] The diagnostic report is transmitted to the touch interface of the CNC machine tool for display.

[0026] Optionally, after the step of transmitting the diagnostic report to the touch interface of the CNC machine tool for display, the method further includes:

[0027] Output fault feedback interface;

[0028] After the fault feedback interface receives the fault processing information, calibration training is performed on each of the base models based on the fault processing information.

[0029] Optionally, after the fault feedback interface receives the fault handling information, after the step of calibrating and training each base model based on the fault handling information, the method further includes:

[0030] At each preset interval, determining the importance level of each base model parameter to the machine tool operating parameters and the data recorded in the operation log within the preset interval;

[0031] Based on the importance level, the constraint items of each base model parameter are adjusted, and an update operation is performed on each base model according to the machine tool operating parameters within the preset interval, the data recorded in the operation log and the fault handling information.

[0032] Optionally, before the step of inputting the time series data, feature data and operation data into corresponding base models and obtaining output results of each base model, the step further includes:

[0033] Obtaining common fault data of the CNC machine tool from the operation log;

[0034] Based on the common fault data, generating rare fault data;

[0035] A model training process is performed on each of the base models based on the common fault data and the rare fault data.

[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a CNC machine tool, which includes a memory, a processor, and a safety hazard inspection program stored in the memory and executable on the processor, and the safety hazard inspection program, when executed by the processor, implements the steps of the safety hazard inspection method described above.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a safety hazard inspection program is stored, and when the safety hazard inspection program is executed by a processor, the steps of the safety hazard inspection method described above are implemented.

[0038] The embodiment of the present invention provides a safety hazard inspection, which obtains the machine tool operation parameters and operation logs when the CNC machine tool is running to comprehensively obtain the operation status and operation status of the machine tool, thereby providing a comprehensive data basis for the safety hazard inspection. By extracting time series data, feature data and operation data from the machine tool operation parameters and operation logs, and inputting these data into the corresponding base model, the output results of each base model are obtained to comprehensively consider the coverage of different models and improve the ability to identify and judge safety hazards. By integrating the output results of the base model, the safety hazards of the CNC machine tool are determined. In this way, by comprehensively obtaining the operation parameters and operation logs, extracting multidimensional data from them, and integrating based on the output results of the base model, the defects of the CNC machine tool and related electrical equipment in safety monitoring and hazard warning are compensated, and effective warning and diagnosis of safety hazards of the CNC machine tool and related electrical equipment are achieved, and the personal safety problems and inefficiency problems that exist when the safety officer performs safety inspection and safety inspection on the CNC machine tool and related electrical equipment are avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the specification are used to explain the principles of the present invention. In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.

[0040] Figure 1 A schematic diagram of the architecture of the hardware operating environment of a CNC machine tool involved in an embodiment of the present invention;

[0041] Figure 2 It is a flowchart of a first embodiment of a method for inspecting potential safety hazards of the present invention;

[0042] Figure 3 It is a flow chart of a second embodiment of the method for checking potential safety hazards of the present invention;

[0043] Figure 4 This is a structural diagram of the CNN-LSTM base model of the safety hazard inspection method of the present invention.

[0044] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0045] The safety hazard inspection method of the present application obtains the machine tool operating parameters and operation logs when the CNC machine tool is running; extracts time series data, feature data and operation data from the machine tool operating parameters and operation logs when the CNC machine tool is running; inputs the time series data, feature data and operation data into the corresponding base model, and obtains the output results of each base model; integrates the output results of each base model to determine the safety hazard of the CNC machine tool. It realizes effective early warning and diagnosis of safety hazards of CNC machine tools and related electrical equipment, and avoids personal safety problems and inefficiency problems when safety officers conduct safety inspections and safety inspections on CNC machine tools and related electrical equipment.

[0046] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0047] As an implementation plan, Figure 1 The schematic diagram is a schematic diagram of the architecture of the hardware operating environment of the CNC machine tool involved in the embodiment of the present invention.

[0048] like Figure 1 As shown, the CNC machine tool may include: a processor 101, such as a core processor, a memory 102, and a communication bus 103. The memory 102 may be a high-speed random access memory (RAM) memory, or a stable non-volatile memory (NVM), such as a disk memory. The memory 102 may optionally be a storage device independent of the aforementioned processor 101. The communication bus 103 is used to realize the connection and communication between these components.

[0049] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the CNC machine tool, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0050] like Figure 1 As shown, the memory 102 as a computer-readable storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a potential safety hazard checking program.

[0051] exist Figure 1In the numerically controlled machine tool shown, the processor 101 and the memory 102 may be arranged in the numerically controlled machine tool, and the numerically controlled machine tool calls the potential safety hazard inspection program stored in the memory 102 through the processor 101, and performs the following operations:

[0052] Obtain machine tool operating parameters and operation logs when the CNC machine tool is running;

[0053] Extracting time series data, feature data and operation data from machine tool operation parameters and operation logs when the numerical control machine tool is running;

[0054] Input the time series data, feature data and operation data into corresponding base models, and obtain output results of each base model;

[0055] The output results of each of the base models are integrated to determine the safety hazards of the CNC machine tool.

[0056] In one embodiment, the processor 101 may be used to call the potential safety hazard checking program stored in the memory 102 and perform the following operations:

[0057] performing a time warping operation on the machine tool operating parameters and adding synthetic noise to the machine tool operating parameters to obtain enhanced machine tool operating parameters;

[0058] Based on a preset data processing process, performing a data cleaning operation, a missing value filling operation, a standardization operation, and a normalization operation on the enhanced machine tool operating parameters and the data recorded in the operation log to generate preprocessed data;

[0059] The time series data, feature data and operation data are extracted from the preprocessed data.

[0060] In one embodiment, the processor 101 may be used to call the potential safety hazard checking program stored in the memory 102 and perform the following operations:

[0061] Arranging the continuous data in the preprocessed data in chronological order to obtain the time series data;

[0062] Extracting temperature change rate data, current mutation data, voltage mutation data, and vibration mutation data from the preprocessed data to obtain the characteristic data;

[0063] The status data, fault data and maintenance data in the pre-processed data are extracted to obtain the operation data.

[0064] In one embodiment, the processor 101 may be used to call the potential safety hazard checking program stored in the memory 102 and perform the following operations:

[0065] Passing the time series data to the CNN-LSTM base model to identify the current safety problem mode of the CNC machine tool;

[0066] Passing the feature data to a random forest-based model to identify the current safety hazard category of the CNC machine tool;

[0067] The operation data is transmitted to the autoencoder base model, and the difference between the operation data and normal operation data is compared to determine the current danger level of the CNC machine tool.

[0068] In one embodiment, the processor 101 may be used to call the potential safety hazard checking program stored in the memory 102 and perform the following operations:

[0069] Matching corresponding maintenance measures according to the current danger level, safety problem mode, and safety hazard category of the CNC machine tool;

[0070] Generate a diagnostic report based on the current danger level, safety problem mode, safety hazard category, and maintenance measures of the CNC machine tool;

[0071] The diagnostic report is transmitted to the touch interface of the CNC machine tool for display.

[0072] In one embodiment, the processor 101 may be used to call the potential safety hazard checking program stored in the memory 102 and perform the following operations:

[0073] Output fault feedback interface;

[0074] After the fault feedback interface receives the fault processing information, calibration training is performed on each of the base models based on the fault processing information.

[0075] In one embodiment, the processor 101 may be used to call the potential safety hazard checking program stored in the memory 102 and perform the following operations:

[0076] At each preset interval, determining the importance level of each base model parameter to the machine tool operating parameters and the data recorded in the operation log within the preset interval;

[0077] Based on the importance level, the constraint items of each base model parameter are adjusted, and an update operation is performed on each base model according to the machine tool operating parameters within the preset interval, the data recorded in the operation log and the fault handling information.

[0078] In one embodiment, the processor 101 may be used to call the potential safety hazard checking program stored in the memory 102 and perform the following operations:

[0079] Obtaining common fault data of the CNC machine tool from the operation log;

[0080] Based on the common fault data, generating rare fault data;

[0081] A model training process is performed on each of the base models based on the common fault data and the rare fault data.

[0082] Based on the hardware architecture of the above-mentioned CNC machine tool, an embodiment of the safety hazard inspection method of the present invention is proposed.

[0083] Reference Figure 2 In a first embodiment, the safety hazard inspection method comprises the following steps:

[0084] Step S100: Acquire machine tool operating parameters and operation logs when the CNC machine tool is running.

[0085] In this embodiment, when the CNC machine tool is started, the machine tool operating parameters of the CNC machine tool are obtained through the temperature sensor, current sensor, voltage sensor and vibration sensor. It can be understood that the machine tool operating parameters here include but are not limited to operating temperature parameters, operating current status, operating voltage information, operating vibration information, etc.

[0086] It should be noted that during the operation of the CNC machine tool, the temperature sensor is used to monitor the temperature changes of the key components of the machine tool. Since the temperature changes of the key components of the machine tool will cause the machine tool to deform, and then cause safety hazards, it is necessary to obtain the operating temperature parameters to check whether the CNC machine tool has safety hazards. During the operation of the CNC machine tool, the abnormal current will cause damage to the motor or other electrical components, and then cause safety hazards. Therefore, it is necessary to obtain the operating current state to check whether the CNC machine tool has safety hazards. The voltage of the machine tool during operation is related to the stability of the machine tool operation, and the stability of the machine tool operation is related to the safety of the machine tool operation. Therefore, it is necessary to obtain the operating voltage information to check whether the CNC machine tool has safety hazards. Abnormal vibration during the operation of the machine tool usually reflects the potential mechanical failure of the machine tool, so it is necessary to obtain the operating vibration information to check whether the CNC machine tool has safety hazards.

[0087] Optionally, the data recorded in the operation log includes, but is not limited to, the operation status record, fault record, and maintenance record of the CNC machine tool. It is understandable that the operation status record of the CNC machine tool here includes the startup, shutdown, pause, and operation status of the CNC machine tool. By analyzing the operation status record, the normal operation status of the machine tool can be determined, and then when an abnormal state occurs, it can be determined that the machine tool has safety hazards. The fault record of the CNC machine tool includes fault information such as alarm codes and error messages that appear during the operation of the CNC machine tool. By analyzing the fault record, the fault mode and fault type of the CNC machine tool can be identified. The maintenance record of the CNC machine tool includes the operation information and records of the maintenance and maintenance of the CNC machine tool, such as replacing parts, checking lubricating oil, etc. By analyzing the maintenance record, the safety hazards of the CNC machine tool can be warned and diagnosed.

[0088] Step S200: extracting time series data, feature data and operation data from machine tool operation parameters and operation logs when the CNC machine tool is running.

[0089] In this embodiment, after obtaining the machine tool operating parameters and operation logs when the numerical control machine tool is running, time series data, feature data and operation data are extracted from the machine tool operating parameters and operation logs when the numerical control machine tool is running.

[0090] Specifically, a time warping operation is first performed on the machine tool operating parameters, and synthetic noise is added to the machine tool operating parameters to obtain enhanced machine tool operating parameters. Specifically, the function in the Pandas library is used to read the data containing time series from the machine tool operating parameters. The data containing time series here refers to the numerical data collected at different time points that reflect the state and operation changes of the machine tool. These data are timestamped, indicating at which specific time point each data is generated. Then, statistical methods such as interpolation and moving average are used to distort these data containing time series to simulate data changes at different time points.

[0091] Optionally, linear interpolation, polynomial interpolation and other methods are used to estimate the value between two time points in the data containing the time series. For example, assuming that the collected operating temperature parameters only include 1:01-36 degrees Celsius, 1:03-38 degrees Celsius, and 1:04-39 degrees Celsius, that is, the operating temperature parameter at 1:02 is missing, the operating temperature parameter at 1:02 is determined to be 37 degrees Celsius through the linear interpolation method, and 37 degrees Celsius is filled into the position of 1:02 in the operating temperature parameter to simulate the data change at this time point and ensure the continuity of the data.

[0092] Optionally, a moving average statistical method is used to smooth short-term fluctuations in the time series data to reveal the long-term trend of the data. Exemplarily, it is assumed that the collected operating voltage information is 1:00-230V, 1:1-235V, 1:2-240V, 1:3-225V, 1:4-230V, 1:5-235V, 1:6-240V, 1:7-225V, 1:8-230V, 1:9-235V. Assume that a moving average window of size 3 is used to perform a moving average operation on each time point. For example, for the time point 1:1, the moving average value will be (235 + 230 + 240) / 3 = 235. For the boundary value, the retention method is adopted. Finally, the operating voltage information after the moving average operation is 1 hour 0 minutes -230V, 1 hour 1 minute -235V, 1 hour 2 minutes -235V, 1 hour 3 minutes -233.3V, 1 hour 4 minutes -231.7V, 1 hour 5 minutes -235V, 1 hour 6 minutes -236.7V, 1 hour 7 minutes 233.3V, 1 hour 8 minutes -231.7V, 1 hour 9 minutes -235V.

[0093] Furthermore, after the distortion is completed, the random module in the NumPy library is used to generate synthetic noise and add it to the time series data to obtain enhanced machine tool operating parameters to compensate for the natural fluctuations and potential measurement errors of the sensor, thereby ensuring the accuracy of subsequent safety hazard inspections on CNC machine tools.

[0094] Exemplarily, it is assumed that in order to compensate for natural fluctuations and potential measurement errors of the vibration sensor, synthetic noise is generated by using the random module in the NumPy library, and then the synthetic noise is added to the operating vibration information collected by the vibration sensor.

[0095] Assume that in order to compensate for the natural fluctuations and potential measurement errors of the temperature sensor. Assume that a one-dimensional array of a set of original operating temperature parameters collected by the temperature sensor is [25, 26, 27, 28, 29], representing the temperature readings at five consecutive time points. Use the random module in the NumPy library to generate a synthetic noise array of normal distribution with the same length as the original operating temperature parameters. Optionally, the mean of the distribution is 0 and the standard deviation is 1. Then, the synthetic noise array and the one-dimensional array of the original operating temperature parameters are added to obtain enhanced operating temperature parameters that are close to the operating temperature parameters of the CNC machine tool.

[0096] After obtaining the enhanced machine tool operating parameters, based on the preset data processing process, the enhanced machine tool operating parameters and the data recorded in the operation log are preprocessed to generate preprocessed data. The preset data preprocessing process may specifically include data cleaning operations, missing value filling operations, standardization operations, and normalization operations.

[0097] Specifically, data cleaning operations are used to correct errors or inconsistencies in the data, such as removing duplicate records, correcting erroneous data input, etc., thereby improving the overall quality of the data. Through the missing value filling operation, the integrity and accuracy of the preprocessed data subsequently input into each base model are ensured. Through standardization and normalization operations, data of different magnitudes are made comparable. The enhanced machine tool operating parameters and data recorded in the operation log are processed through a preset data processing process to obtain preprocessed data to ensure the accuracy and validity of the time series data, feature data, and operation data subsequently extracted.

[0098] After completing the data preprocessing, the time series data, feature data and operation data are extracted from the preprocessed data. The time series data here refers to a data sequence arranged in chronological order, which contains continuous timestamps and corresponding values, such as temperature, current, voltage and other parameters. Feature data is data including temperature change rate, current mutation, voltage mutation and vibration mutation, etc., which are used to identify abnormal behavior and potential faults of CNC machine tools. Operation data is data including equipment status information, fault records and maintenance history, etc., which are used to determine the operating conditions and historical performance of CNC machine tools.

[0099] The time series data is obtained by extracting data containing time series from the preprocessed data and arranging them in chronological order; the characteristic data is obtained by extracting temperature change rate data, current mutation data, voltage mutation data and vibration mutation data from the preprocessed data; and the operation data is obtained by extracting status data, fault data and maintenance data from the preprocessed data.

[0100] Specifically, the function in the Pandas library is used to arrange the data containing time series in the preprocessed data in chronological order according to the timestamp. It should be noted that the data containing time series in the preprocessed data are all with timestamps. By calculating the temperature difference between adjacent time points, the temperature change rate data in the preprocessed data is obtained; the current difference between adjacent time points is calculated, the mutation information is extracted, and the current mutation data in the preprocessed data is obtained; the voltage difference between adjacent time points is calculated, the mutation information is extracted to obtain the voltage mutation data in the preprocessed data; the vibration mutation data in the preprocessed data is identified by Fourier transforming the running vibration information, and then the characteristic data including temperature change rate data, current mutation data, voltage mutation data and vibration mutation data are obtained. It should be noted that the vibration data here is sampled periodically. By directly extracting data related to the machine tool status such as machine start, standby, running, fault and other states from the preprocessed data as the status data in the operation data; by extracting the fault records such as the time, type, severity of the fault in the preprocessed data as the fault data in the operation data; by extracting the maintenance records such as the maintenance time, maintenance content, and equipment performance after maintenance in the preprocessed data as the maintenance data in the operation data.

[0101] Through the preset data processing process, data cleaning operations, missing value filling operations, standardization operations and normalization operations are performed on the data recorded in the enhanced machine tool operating parameters and operation logs to generate preprocessed data, so as to ensure the quality and consistency of the data input into each base model, reduce the impact of noise and missing values ​​in the data on safety hazard inspection, and improve the accuracy and reliability of safety hazard inspection for CNC machine tools.

[0102] It can be understood that through time series data, the changing trend of the machine tool operation process can be obtained, and then the periodic and trending safety problem patterns can be determined. By extracting characteristic data that can clearly reflect the safety hazards of CNC machine tools, including temperature change rate data, current mutation data, voltage mutation data, and vibration mutation data, it can be used to determine the category of safety hazards in CNC machine tools, and then provide support for the diagnosis and prediction of CNC machine tool faults.

[0103] Step S300: input the time series data, feature data and operation data into corresponding base models, and obtain output results of each base model.

[0104] In this embodiment, after obtaining time series data, feature data and operation data, these data are respectively input into the corresponding base model to obtain output results including the current safety problem mode of the CNC machine tool, the current safety hazard category of the CNC machine tool, and the current danger level of the CNC machine tool. Optionally, the base models here are CNN-LSTM base model, random forest base model, and autoencoder base model. It can be understood that these base models are models trained in advance using historical time series data, historical feature data, historical operation data, simulated time series data, simulated feature data, and simulated operation data for safety hazard inspection of CNC machine tools.

[0105] It can be understood that the machine tool operating parameters reflect the working state and performance of the CNC machine tool. The causes of the failure of the CNC machine tool include but are not limited to mechanical wear, electrical problems, control system errors, etc., among which different machine tool operating parameters are generated by different failure causes. Exemplarily, mechanical wear can be bearing wear or transmission mechanism wear, etc. Bearing wear will lead to a decrease in the accuracy of the shaft, which in turn leads to a decrease in machining accuracy and increased vibration during operation; transmission mechanism wear will lead to unstable rotation and transmission speed fluctuations. Electrical problems can be servo motor failure or unstable power supply, etc. Servo motor failure will cause inaccurate motion control, the speed cannot reach the set value, or the motion loses synchronization; unstable power supply will cause system voltage fluctuations. Control system errors include control system errors or software failures, etc. Control system errors will cause motion control failure; software failures will cause the CNC machine tool to fail to start or run normally. Failure of the cooling system may cause the temperature in the cutting area to be too high.

[0106] Specifically, the time series data is passed to the CNN-LSTM base model to obtain the current safety problem pattern of the CNC machine tool; the feature data is passed to the random forest base model to obtain the current safety hazard category of the CNC machine tool; the operation data is passed to the autoencoder base model to obtain the current danger level of the CNC machine tool.

[0107] The CNN-LSTM base model is a hybrid model that combines Convolutional Neural Networks (CNN) and Long Short-Term Memory networks (LSTM) to model and analyze the time series data to identify the current safety problem mode of CNC machine tools, such as equipment overheating or abnormal current changes. Specifically, a convolutional neural network is used to extract spatial features in the time series data, such as statistical features such as the maximum, minimum, and mean values ​​of parameters such as temperature, current, and voltage; then the extracted feature sequence is input into the long short-term memory network for time modeling to capture time dependency, thereby combining CNN and LSTM to build a hybrid model to analyze time series data and identify the safety problem mode of CNC machine tools. It should be noted that time dependency refers to the correlation between parameters at different time points in the data. In practical applications, the time series data is input into the CNN-LSTM base model, and the CNN-LSTM base model identifies the safety problem mode of CNC machine tools based on the learned features and time dependency.

[0108] The structure of the CNN-LSTM base model of this application is as follows Figure 4 As shown in the figure, the CNN-LSTM base model combines the convolutional neural network and the long short-term memory network. The CNN part includes the convolution layer and the pooling layer. The convolution layer is used to capture the local features of the time series data, and the pooling layer is used to reduce the dimension of the data, reduce the amount of calculation, and retain important feature information. Therefore, the spatial features of the time series data can be extracted through CNN; while LSTM is a recurrent neural network that captures the long-term dependency of the time series data through a gating mechanism. When processing time series data, CNN extracts the spatial features of the time series data, and LSTM captures the time dependency of each spatial feature based on the spatial features of the time series data, and then determines the safety problem mode. Exemplarily, after the time series data is passed to the CNN-LSTM base model, the convolutional neural network extracts the current features of the time series data and passes them to the long short-term memory network. The long short-term memory network obtains based on the time dependency of the current features that the current operating current parameters have abnormal current changes, and then determines that the safety problem mode of the current CNC machine tool is abnormal current changes.

[0109] The structure of the random forest base model of the present application is composed of multiple decision trees, and the outputs of these decision trees are merged through a voting mechanism or an averaging mechanism to make a final classification or regression prediction to identify the category of safety hazards. The random forest base model is an integrated learning algorithm that constructs multiple decision trees for classification or regression, and then determines the current type of safety hazards of CNC machine tools through input feature data. Optionally, the categories of safety hazards of CNC machine tools include but are not limited to electrical failures, mechanical damage, chemical injuries, etc. During the training process of the random forest base model, each decision tree is trained using a training set including feature data, and each decision tree independently selects samples from the training set for feature learning; then, the prediction results of multiple decision trees are integrated in an average or majority voting manner to determine the final result, which is the type of safety hazard. When constructing each decision tree, the random forest randomly selects a part of the features from all feature data for splitting nodes, so as to further increase the diversity of the model. For example, assume that the electrical fault features learned by the random forest base model during the training process include current mutation, voltage anomaly, etc.; after the random forest base model receives the feature data, multiple decision trees of the random forest analyze the feature data to obtain the prediction results of current mutation and voltage anomaly, and after integrating the prediction results of multiple decision trees through the majority voting principle, the result of "the input feature data presents a pattern that is highly correlated with electrical faults" is obtained, and then it is determined that the current safety hazard type of the CNC machine tool is electrical fault.

[0110] The structure of the autoencoder base model of the present application is mainly composed of an encoder and a decoder. The encoder compresses the input operation data into a low-dimensional representation, which is equivalent to feature extraction, retaining only important data features; the decoder then reconstructs these representations into the form of operation data, that is, reconstruction of the input operation data. It can be understood that the encoder of the pre-trained autoencoder base model can extract important data features related to the safety of CNC machine tools from the input operation data. The autoencoder base model reads, encodes, decodes and reconstructs the operation data through the encoder-decoder structure to compare the difference between the reconstructed operation data and the normal operation data to determine the current danger level of the CNC machine tool. In other words, the autoencoder base model can capture important features and differences in the data. After receiving the operation data, the autoencoder base model compares the difference between the received operation data and the normal operation data to determine the current danger level of the CNC machine tool. It can be understood that the greater the difference, the higher the danger level.

[0111] Exemplarily, it is assumed that the hazard level is divided into four levels, namely level zero, level one, level two and level three. In terms of mechanical damage, a first vibration threshold, a second vibration threshold and a third vibration threshold are set; when the vibration range in the reconstructed operation vibration information is less than the first vibration threshold compared with the normal vibration range, the mechanical damage hazard level is determined to be level zero; when the vibration range in the reconstructed operation vibration information is greater than or equal to the first vibration threshold and less than the second vibration threshold compared with the normal vibration range, the mechanical damage hazard level is determined to be level one; when the vibration range in the reconstructed operation vibration information is greater than or equal to the second vibration threshold and less than the third vibration threshold compared with the normal vibration range, the mechanical damage hazard level is determined to be level two; when the vibration range in the reconstructed operation vibration information is greater than or equal to the third vibration threshold compared with the normal vibration range, the mechanical damage hazard level is determined to be level three.

[0112] In this way, by inputting data into each corresponding base model and obtaining the output results of the base model, the purpose of conducting a comprehensive safety analysis and evaluation of CNC machine tools from different angles and levels can be achieved.

[0113] Furthermore, before the step of inputting the time series data, feature data and operation data into the corresponding base model and obtaining the output results of each base model, the common fault data of the CNC machine tool is obtained from the operation log; based on the common fault data, rare fault data is generated; and the model training process is performed on each base model based on the common fault data and the rare fault data. Optionally, rare fault data is generated based on common fault data by generating an adversarial network (GAN). The purpose of this is to take into account that some electrical safety hazards occur less frequently, so each base model is trained by generating rare fault data, thereby improving the ability of each base model to identify rare fault data.

[0114] Step S400: Integrate the output results of each of the base models to determine the safety hazards of the CNC machine tool.

[0115] In this embodiment, after obtaining the output results of each base model output including the current safety problem pattern of the CNC machine tool, the current safety hazard category of the CNC machine tool, and the current danger level of the CNC machine tool, the current safety problem pattern of the CNC machine tool, the current safety hazard category of the CNC machine tool, and the current danger level of the CNC machine tool are integrated to determine the safety hazard of the CNC machine tool.

[0116] Optionally, the output results of each of the base models are integrated by using a stacking method with logistic regression as a meta-model to determine the safety hazards of the CNC machine tool.

[0117] Furthermore, after integrating the output results of each of the base models and determining the safety hazards of the CNC machine tool, corresponding maintenance measures are matched according to the current danger level, safety problem mode, and safety hazard category of the CNC machine tool; a diagnostic report is generated based on the current danger level, safety problem mode, safety hazard category, and the maintenance measures of the CNC machine tool; and the diagnostic report is transmitted to the touch interface of the CNC machine tool for display.

[0118] By matching the corresponding maintenance measures, corresponding maintenance suggestions are provided for the specific danger level, safety problem mode and safety hazard category of the CNC machine tool. Optionally, maintenance measures include but are not limited to repair, replacement of parts, adjustment of parameters, etc. to reduce safety hazards. By transmitting the maintenance measures to the touch interface of the CNC machine tool for display, it is convenient for operators to obtain relevant maintenance information in a timely manner, perform corresponding maintenance measures, and improve maintenance efficiency and accuracy. By generating a diagnostic report based on the current danger level, safety problem mode, safety hazard category and matched maintenance measures of the CNC machine tool, a summary and record of the maintenance work is provided, which is convenient for subsequent tracing and reference, or for studying and solving safety hazards.

[0119] Exemplarily, the operation log of the CNC machine tool is read, and the machine tool operation parameters when the CNC machine tool is running are obtained through a temperature sensor, a current sensor, a voltage sensor, and a vibration sensor.

[0120] The machine tool operating parameters are time-warped and synthetic noise is added to enhance the accuracy of the data. The enhanced data is then cleaned, missing values ​​are filled, standardized and normalized to generate preprocessed data. From the preprocessed data, time series data, feature data and operation data are extracted. Time series data, feature data and operation data.

[0121] The time series data is input into the CNN-LSTM base model, and the current safety problem pattern of the CNC machine tool is identified as abnormal temperature rise rate. The feature data is input into the random forest base model, and the current safety hazard category of the CNC machine tool is identified as electrical failure. The operation data is input into the autoencoder base model, and it is detected that the current danger level of the CNC machine tool is level two.

[0122] The abnormal temperature rise rate identified by the CNN-LSTM base model, the electrical fault identified by the random forest base model, and the electrical load overload detected by the autoencoder base model are integrated to determine that there is an electrical fire risk in CNC machine tools.

[0123] In response to the risk of electrical fire, corresponding maintenance measures are taken: inspect the circuits and wiring inside the machine tool to ensure the normal operation of electrical components; strengthen electrical load monitoring to avoid circuit overload; regularly clean the inside of the machine tool to eliminate hidden dangers such as dust accumulation that may cause electrical fires.

[0124] A diagnostic report is generated based on the current hazard level, safety problem mode, safety hazard category and matching maintenance measures of the CNC machine tool, and the diagnostic report is displayed on the touch interface of the CNC machine tool.

[0125] In the technical solution provided in this embodiment, by obtaining the machine tool operating parameters and operation logs when the CNC machine tool is running, the operating status and operation of the machine tool are fully obtained, thereby providing a comprehensive data basis for safety hazard inspection. By extracting time series data, feature data and operation data from the machine tool operating parameters and operation logs, and inputting these data into the corresponding base model, the output results of each base model are obtained to comprehensively consider the coverage of different models and improve the ability to identify and judge safety hazards. By integrating the output results of the base model, the safety hazards of the CNC machine tool are determined. In this way, by comprehensively obtaining the operating parameters and operation logs, extracting multidimensional data from them, and integrating based on the output results of the base model, the defects of the CNC machine tool and related electrical equipment in safety monitoring and hazard warning are compensated, and effective warning and diagnosis of safety hazards of the CNC machine tool and related electrical equipment are achieved, avoiding the personal safety problems and inefficiency problems when the safety officer performs safety inspections and safety inspections on the CNC machine tool and related electrical equipment.

[0126] Reference Figure 3 Based on the above embodiment, in the second embodiment, after the step of transmitting the diagnostic report to the touch interface of the CNC machine tool for display, it also includes:

[0127] Step S610: outputting a fault feedback interface;

[0128] Step S620: After the fault feedback interface receives the fault handling information, calibration training is performed on each of the base models based on the fault handling information.

[0129] In this embodiment, after the fault handling information is received on the fault feedback interface, the information is applied to the calibration training of each base model to further improve the accuracy and reliability of each base model, thereby improving the accuracy and effect of fault diagnosis of each base model.

[0130] Since the working environment and operating status of CNC machine tools may change, the characteristics and manifestations of faults may also vary. By calibrating and training the base model, the base model can adaptively respond to different fault modes and changes, thereby improving the adaptability and robustness of fault diagnosis.

[0131] Furthermore, at every preset interval, the importance level of each base model parameter to the machine tool operating parameters within the preset interval and the data recorded in the operation log is determined; then based on the importance level, the constraint items of each base model parameter are adjusted, and an update operation is performed on each base model according to the machine tool operating parameters within the preset interval, the data recorded in the operation log and the fault handling information.

[0132] It is understandable that the importance of the parameters of each base model to the machine tool operating parameters and the data recorded in the operation log is not the same. By determining the importance level of each base model parameter to the machine tool operating parameters and the data recorded in the operation log within the preset interval, and adjusting the constraint items of the base model parameters according to the importance level, the parameters are reasonably constrained to avoid excessive or insufficient parameter adjustment. Then, based on the machine tool operating parameters, operation logs and fault handling information, the base model is updated so that the base model can more accurately predict and identify faults, thereby improving the accuracy and reliability of fault diagnosis.

[0133] The operating parameters and operation log data of the machine tool will change with time and usage, and the fault handling information will also be updated. By updating the base model at preset intervals, the base model can be ensured to adapt to changes in machine tool operation and fault information in a timely manner, maintaining the accuracy and stability of fault diagnosis.

[0134] In the technical solution provided in this embodiment, by outputting a fault feedback interface and receiving fault handling information, more comprehensive fault information and corresponding solutions are provided for the training of each base model. Based on this information, the base model is calibrated and trained to improve the accuracy and adaptability of fault diagnosis of each base model.

[0135] In addition, it can be understood by a person skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the CNC machine tool to implement the process steps of the embodiment of the above method.

[0136] Therefore, the present invention also provides a computer-readable storage medium, which stores a safety hazard inspection program. When the safety hazard inspection program is executed by a processor, the various steps of the safety hazard inspection method described in the above embodiment are implemented.

[0137] The computer-readable storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0138] It should be noted that since the storage medium provided in the embodiment of the present application is the storage medium used to implement the method of the embodiment of the present application, based on the method introduced in the embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the storage medium, so it is not repeated here. All storage media used in the method of the embodiment of the present application belong to the scope of protection of this application.

[0139] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0140] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0141] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0142] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0143] It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second and third etc. does not indicate any order. These words may be interpreted as names.

[0144] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0145] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for inspecting potential safety hazards, characterized in that: The potential safety hazard inspection method comprises the following steps: Obtain machine tool operating parameters and operation logs during the operation of CNC machine tools; Extracting time series data, feature data and operation data from machine tool operation parameters and operation logs when the numerical control machine tool is running; Input the time series data, feature data and operation data into corresponding base models, and obtain output results of each base model, wherein the base model is a model pre-trained with historical time series data, historical feature data, historical operation data, simulated time series data, simulated feature data and simulated operation data; Integrate the output results of each of the base models to determine the safety hazards of the CNC machine tool; The step of extracting time series data, feature data and operation data from the machine tool operation parameters and operation logs when the CNC machine tool is running comprises: performing a time warping operation on the machine tool operating parameters and adding synthetic noise to the machine tool operating parameters to obtain enhanced machine tool operating parameters; Based on a preset data processing process, performing a data cleaning operation, a missing value filling operation, a standardization operation, and a normalization operation on the enhanced machine tool operating parameters and the data recorded in the operation log to generate preprocessed data; Extracting the time series data, feature data and operation data from the preprocessed data; Before the step of inputting the time series data, feature data and operation data into the corresponding base models and obtaining the output results of each base model, the method further includes: Obtaining common fault data of the CNC machine tool from the operation log; Based on the common fault data, generating rare fault data; A model training process is performed on each of the base models based on the common fault data and the rare fault data.

2. The method for inspecting potential safety hazards according to claim 1, characterized in that: The step of extracting the time series data, feature data and operation data from the pre-processed data comprises: Arranging the continuous data in the preprocessed data in chronological order to obtain the time series data; Extracting temperature change rate data, current mutation data, voltage mutation data, and vibration mutation data from the preprocessed data to obtain the characteristic data; The status data, fault data and maintenance data in the pre-processed data are extracted to obtain the operation data.

3. The method for inspecting potential safety hazards according to claim 1, wherein: The step of inputting the time series data, feature data and operation data into corresponding base models and obtaining output results of each base model comprises: Passing the time series data to the CNN-LSTM base model to identify the current safety problem mode of the CNC machine tool; Passing the feature data to a random forest-based model to identify the current safety hazard category of the CNC machine tool; The operation data is transmitted to the autoencoder base model, and the difference between the operation data and normal operation data is compared to determine the current danger level of the CNC machine tool.

4. The method for inspecting potential safety hazards according to claim 3, characterized in that: After the step of integrating the output results of each of the base models to determine the safety hazard of the CNC machine tool, the method further includes: Matching corresponding maintenance measures according to the current danger level, safety problem mode, and safety hazard category of the CNC machine tool; Generate a diagnostic report based on the current danger level, safety problem mode, safety hazard category, and maintenance measures of the CNC machine tool; The diagnostic report is transmitted to the touch interface of the CNC machine tool for display.

5. The method for inspecting potential safety hazards according to claim 4, characterized in that: After the step of transmitting the diagnostic report to the touch interface of the CNC machine tool for display, the method further includes: Output fault feedback interface; After the fault feedback interface receives the fault processing information, calibration training is performed on each of the base models based on the fault processing information.

6. The method for inspecting potential safety hazards according to claim 5, characterized in that: After the fault feedback interface receives the fault processing information, after the step of calibrating and training each of the base models based on the fault processing information, the method further includes: At each preset interval, determining the importance level of each base model parameter to the machine tool operating parameters and the data recorded in the operation log within the preset interval; Based on the importance level, the constraint items of each base model parameter are adjusted, and an update operation is performed on each base model according to the machine tool operating parameters within the preset interval, the data recorded in the operation log and the fault handling information.

7. A CNC machine tool, characterized in that: The CNC machine tool comprises: a memory, a processor, and a safety hazard inspection program stored in the memory and executable on the processor, wherein the safety hazard inspection program is configured to implement the steps of the safety hazard inspection method according to any one of claims 1 to 6.

8. A readable storage medium, characterized in that: The readable storage medium stores a safety hazard checking program, and when the safety hazard checking program is executed by the processor, the steps of the safety hazard checking method according to any one of claims 1 to 6 are implemented.