Numerical control machine tool part machining data storage method and system
By acquiring and segmenting CNC machine tool data in real time, extracting multimodal features, and constructing a data gene chain, the problems of high data storage cost and severe data silos in CNC machine tools are solved, achieving efficient storage and process optimization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-02-27
- Publication Date
- 2026-03-24
AI Technical Summary
Existing data storage methods for CNC machine tools are costly, suffer from severe data silos, and fail to fully explore the value of data, making it difficult to achieve process optimization and quality traceability.
Real-time acquisition of multi-source data streams, segmentation into process segments based on process state changes, extraction of multimodal features and evaluation of value levels, adoption of differentiated storage strategies, construction of data gene chains, and utilization of graph neural network models for process optimization.
It achieves intelligent data compression, reduces storage costs, accurately traces processing problems, drives process optimization to form a closed loop, and has a flexible and easy-to-deploy system architecture.
Smart Images

Figure CN121722951A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent manufacturing, and particularly relates to a machining data storage method and system for parts of a numerical control machine tool. BACKGROUND
[0002] In the prior art, in modern intelligent manufacturing, a numerical control machine tool is a core production device. A processing process of the numerical control machine tool produces massive data, including instruction and state data in a numerical control system, such as G code, servo tracking error, and I / O signals of a programmable logic controller, such as a tool number, a cooling liquid state, and various external sensor data, such as vibration, acoustic emission, temperature, and power. These data have extremely high value for process optimization, quality traceability, predictive maintenance, and production management. At present, in the industry, the following problems and deficiencies exist in the storage and management of numerical control machining data: 1. Extensive storage mode with high cost: two extreme modes of "full storage" or "result storage" are generally used. The former records all original high-frequency data without distinction, which leads to rapid consumption of storage space and network bandwidth, and cost increases. The latter only saves the final machining result, such as a size report, and discards valuable processing process information, which makes it impossible to analyze the process and trace problems.
[0003] 2. Serious data island and difficult traceability: processing process data, material data, and quality detection data are usually scattered in different information systems, such as MES, ERP, QMS, or databases, and lack effective correlation mechanisms. When a part has a quality problem, it is difficult to quickly and accurately locate the defect to a specific processing procedure, machine tool state, or process parameter, and the troubleshooting efficiency is low.
[0004] 3. Data value is not deeply mined: the stored data are mostly "sleeping" archives, and lack effective analysis and utilization means. The process rules cannot be automatically learned from historical data, and intelligent and self-adaptive optimization of process parameters cannot be achieved, which limits the further improvement of machining quality, efficiency, and consistency.
[0005] The Chinese invention patent with the application number 202211097029.7 discloses a method for data acquisition, storage and application of numerical control machine tools, which comprises a numerical control machine tool data acquisition method: installing vibration sensors, noise sensors, alternating current transducers and alternating voltage transducers on the machine tool, obtaining real-time data collected by various sensors through serial communication technology, a numerical control machine tool data storage method: including real-time data and information processed by software data, real-time display on the human-machine interface of the industrial computer and the numerical control machine tool controller, realizing local storage of data to the detection and monitoring system database of the industrial computer background; or uploading to the network cloud platform server through the Ethernet by the Internet of Things intelligent gateway, realizing data cloud storage and cloud computing, and the cloud storage data is displayed through the software of the PC end or mobile terminal. However, although the method for data acquisition, storage and application of numerical control machine tools can automatically collect key process indicator data in real time, its storage method is extensive, the cost is high, the data island is serious, the traceability is difficult, and the data value is not deeply mined, therefore, there is an urgent need for a new data storage method and system which can intelligently judge data value, realize full life cycle data association, and drive process continuous optimization. SUMMARY
[0006] The purpose of the present application is to provide a numerical control machine tool part machining data storage method and system.
[0007] To achieve the above purpose, the technical solution proposed by the present application is: A numerical control machine tool part machining data storage method, comprising the following steps: S1, real-time acquisition and synchronization: real-time acquisition of multi-source data streams in the numerical control machine tool machining process, and storage in the cache area after marking all data with a unified time tag; the multi-source data streams at least include numerical control system internal state data, PLC signals and external sensor data.
[0008] S2, feature perception and intelligent compression: real-time analysis of the data stream in the cache area, segmentation into multiple process sections based on process state changes, extraction of multi-modal features for each process section and evaluation of its data value level, compression or summary processing of the original data of the process section according to the corresponding storage strategy according to the value level, and generation of feature data packets containing metadata and feature vectors.
[0009] S3, full chain association and traceability index: binding a unique data gene code for each machining part, associating and binding all feature data packets generated in step S2 with the data gene code of the corresponding part, and jointly constructing a traceable data gene chain with the upstream material data and downstream quality detection data of the part.
[0010] S4, closed-loop learning and optimization feedback: based on the feature data packet and the associated processing result, generate a "process-feature-result" triple sample, upload high-value samples to the central knowledge base, train the process optimization model using aggregated multi-source samples, and distribute the trained optimization model to the edge side for generating optimized process parameter recommendations for new processing tasks, and feed back the executed new data to the central knowledge base to realize iterative updating of the model.
[0011] The step S2 of "dividing the process into multiple process segments based on process state changes" specifically includes: S21. Based on the preset strong segmentation trigger event, perform initial segmentation, and the strong segmentation trigger event includes G code line number change, tool replacement completion signal or feed speed zero.
[0012] S22. In the continuous processing interval without strong segmentation trigger event, the process entropy value of the key variable is calculated by using the sliding window, and when the change amount of the process entropy value exceeds the preset threshold value, it is determined that the processing state has changed significantly, and soft segmentation is performed at this point.
[0013] The process entropy value is calculated as follows:
[0014] Wherein, is the total number of joint states of the key variable, represents the th joint state observed in the time window , is the empirical probability of the state appearing in the window, is the base of the logarithm.
[0015] The step S2 of "extracting the multi-modal features thereof" includes extracting frequency domain features, specifically: The time series signal of the vibration or acoustic emission sensor is subjected to fast Fourier transform to calculate its power spectral density :
[0016] Wherein, is the signal length, and the first Q dominant frequency components and their corresponding amplitudes are extracted from the power spectral density as the frequency domain feature vector of the process segment.
[0017] The step S2 of "evaluating the data value level thereof" specifically includes: The extracted multimodal features and semantic features parsed from the G code are input into a predefined value assessment classifier. The value assessment classifier combines a rule base and a lightweight machine learning model to output the value level of the process segment. The value level includes at least three levels: high, medium, and low.
[0018] The rule base contains judgment rules based on machining type, participating axis, and tool information.
[0019] Specifically, this is achieved through a value assessment classifier, whose decision function... Represented as:
[0020] in, The input consists of multimodal features and semantic feature vectors. As a value level category, The score is based on a rule matching degree from a preset rule base, which includes judgment rules in the form of "IF machining type == 'fine milling' AND participating axis includes 'C-axis' THEN value level = 'high'". This represents the class probabilities output by a lightweight machine learning model. This is a weighting coefficient used to adjust the weights of the rules and the model output.
[0021] The specific meaning of "adopting the corresponding storage strategy" in step S2 is as follows: If the value level is "high", then the original high-frequency data and complete feature set of the process segment are saved using a lossless or near-lossless compression algorithm and stored in a high-speed storage medium.
[0022] If the value level is "medium", then the downsampled data and feature set are saved and stored in a conventional storage medium.
[0023] If the value level is "low", only the statistical features, semantic features and processing result data of the process segment will be saved, and the original data will be discarded.
[0024] The step S3, "constructing a traceable data gene chain," specifically includes: S31. Using the data gene code as the primary key, construct a processing knowledge graph that includes entities such as parts, processes, process segments, machine tools, cutting tools, and quality inspection results.
[0025] S32. Each of the feature data packets is associated and stored as an attribute of its corresponding process segment entity, and is connected to the upstream process, part entity and downstream quality inspection result entity through graph relationships.
[0026] Among them, the knowledge graph of the processing process Represented as:
[0027] wherein, is a set of nodes, containing part, process, process segment, machine tool, tool, quality detection result entity, is a set of edges, representing the relationship between entities.
[0028] It also includes an intelligent traceability step: When receiving a quality abnormality alarm for a specific data gene code, in the machining process knowledge graph, starting from the corresponding part entity, traversing the graph to locate all associated process segment entities and corresponding feature data packages, filtering out suspicious stages according to process segment attributes, and calling their stored original data for in-depth analysis.
[0029] The step S4 of "training the process optimization model using aggregated multi-source samples" is specifically: The machining process knowledge graph is used as the organizational structure of the training data, and a graph neural network model is used for training. The input of the graph neural network model is the node features and edge relationships in the graph, and the output is the prediction of process parameter adjustment. The training target is to minimize the loss between the predicted features / results and the actual features / results.
[0030] The graph neural network model updates the node representation through a message passing mechanism.
[0031] For each node in the knowledge graph , the representation of the node at the first layer is calculated by the following formula:
[0032] wherein, represents the set of neighbor nodes of the node , is an aggregation function, is a trainable weight matrix, is a nonlinear activation function, and the training loss function of the model is a combination of mean square error and cross-entropy loss:
[0033] wherein, and are the process features and machining results predicted by the model, and are the true values, and are loss weight coefficients.
[0034] The "recommendation of optimized process parameters for new processing tasks" in step S4 specifically refers to: Based on the part information, cutting tool and machine tool context of the new task, a similar subgraph structure is matched or constructed in the central knowledge base. The trained graph neural network model is used to reason about the subgraph, and the optimal combination of process parameters that makes the predicted machining result is solved by the optimization algorithm. This optimal set of recommended parameters is then sent to the edge side.
[0035] Build a query subgraph based on the new task context. The trained graph neural network model is used as the evaluation function, and a Bayesian optimization algorithm is employed to find the optimal combination of process parameters. :
[0036] in, This represents a graph neural network model whose input is the injection process parameters. Subgraph of subsequent queries The output consists of the predicted processing results and stability indices. To map the model output to a function that maps the total utility value, This represents the expected utility under model prediction uncertainty.
[0037] A data storage system for CNC machine tool parts machining, used to implement the above method, the system comprising: Edge intelligent storage nodes, deployed on the side of CNC machine tools, include: The data acquisition and synchronization module is used to perform step S1.
[0038] A feature extraction and compression engine is used to perform step S2.
[0039] The local storage and management module is used to store feature data packets and associated indexes.
[0040] First communication interface.
[0041] The central knowledge base and optimization platform, deployed in the cloud or on a server, include: The second communication interface is used to communicate with the edge intelligent storage node.
[0042] The knowledge graph management module is used to perform the function of constructing and maintaining the knowledge graph of data gene chain and processing process in step S3.
[0043] A machine learning training platform is used to perform the model training and optimization functions in step S4.
[0044] Global repository.
[0045] The edge intelligent storage node and the central knowledge base and optimization platform perform data interaction through a network to cooperatively complete storage, management and optimization of the numerical control machine tool part machining data.
[0046] The beneficial effects of the present application are: 1. Intelligent data compression is realized, and storage cost is greatly reduced: by analyzing the machining process state in real time, data is classified and stored differently in value, and under the premise of retaining key process details, redundant data storage is effectively reduced.
[0047] 2. Construct a full-link data gene chain to realize accurate traceability: through unique data gene code and knowledge graph technology, the machining process data is strongly associated with upstream and downstream business data to realize minute-level root cause positioning of quality problems.
[0048] 3. Form a process optimization closed loop to drive continuous improvement: use stored high-value data to train artificial intelligence models to realize intelligent recommendation and adaptive optimization of process parameters, forming a virtuous cycle of "data-driven optimization".
[0049] 4. Flexible system architecture, easy to deploy and integrate: edge-cloud collaborative architecture ensures real-time data processing and system reliability, while supporting gradual deployment in existing factory information systems. BRIEF DESCRIPTION OF DRAWINGS
[0050] Figure 1 is the overall flowchart of the numerical control machine tool part machining data storage method of the present application; Figure 2 is the feature perception and intelligent compression flowchart in step S2 of the present application; Figure 3 is the closed-loop learning and optimization feedback flowchart in step S4 of the present application; Figure 4 is the structure block diagram of the numerical control machine tool part machining data storage system of the present application. DETAILED DESCRIPTION
[0051] The present application will be described in further detail below with reference to the accompanying drawings.
[0052] Example 1
[0053] A numerical control machine tool part machining data storage method, comprising the following steps: S1, real-time acquisition and synchronization: real-time acquisition of multi-source data streams in the numerical control machine tool machining process, and all data are labeled with a uniform time mark and stored in a cache area; the multi-source data stream at least includes numerical control system internal state data, PLC signal and external sensor data.
[0054] S2, feature perception and intelligent compression: real-time analysis of the data stream of the cache area, segmentation based on process state changes into multiple process segments, for each process segment, extract its multi-modal features and evaluate its data value level, according to the value level, adopt the corresponding storage strategy to compress or abstract the original data of the process segment, generate feature data package containing metadata and feature vector.
[0055] S3, full-chain association and traceability index: bind a unique data gene code to each machining part, associate and bind all feature data packages generated in step S2 with the data gene code of the corresponding part, and jointly construct a traceable data gene chain with the upstream material data and downstream quality detection data of the part.
[0056] S4, closed-loop learning and optimization feedback: based on the feature data package and the associated processing result, generate a "process-feature-result" triple sample, upload high-value samples to the central knowledge base, train the process optimization model using aggregated multi-source samples, and distribute the trained optimization model to the edge side for generating optimized process parameter recommendations for new processing tasks, and feedback the executed new data to the central knowledge base to realize iterative updating of the model.
[0057] Step S2 "segmenting based on process state changes into multiple process segments" specifically includes: S21. Based on the preset strong segmentation trigger event, the strong segmentation trigger event includes G code line number change, tool replacement completion signal or feed speed zero.
[0058] S22. In the continuous processing interval without strong segmentation trigger event, the process entropy value of the key variable is calculated by using the sliding window, when the change of the process entropy value exceeds the preset threshold, it is determined that the processing state changes significantly, and soft segmentation is performed at this point.
[0059] Wherein, the process entropy value The calculation formula is:
[0060] Wherein, is the total number of joint states of the key variable, represents the th joint state observed in the time window , and is the empirical probability of the state in the window, is the base of the logarithm.
[0061] Step S2 "extracting multi-modal features" includes extracting frequency domain features, specifically: The time series signal of the vibration or acoustic emission sensor performing fast Fourier transform to calculate the power spectral density thereof :
[0062] wherein, is the length of the signal, and the first Q dominant frequency components and their corresponding amplitudes are extracted from the power spectral density as the frequency domain feature vector of the process segment.
[0063] The "evaluating the data value level thereof" in step S2 specifically comprises: inputting the extracted multi-modal features and the semantic features parsed from the G-code into a predefined value evaluation classifier, the value evaluation classifier combining a rule base and a lightweight machine learning model to output the value level of the process segment, the value level including at least three levels of high, medium and low.
[0064] wherein, the rule base contains judgment rules based on machining type, participating axes and tool information.
[0065] which is specifically implemented by a value evaluation classifier, the decision function of the classifier being represented as:
[0066] wherein, is the input multi-modal feature and semantic feature vector, is the value level category, is the rule matching degree score based on the preset rule base, the rule base containing judgment rules in the form of "IF machining type == 'fine milling' AND participating axes contain 'C-axis' THEN value level = 'high'", is the category probability output by a lightweight machine learning model, is a weighting coefficient for adjusting the weights of the rules and the model output.
[0067] The "adopting the corresponding storage strategy" in step S2 specifically comprises: if the value level is "high", then saving the original high-frequency data and complete feature set of the process segment by using lossless or near-lossless compression algorithm, and storing them to a high-speed storage medium.
[0068] if the value level is "medium", then saving the data and feature set after downsampling, and storing them to a regular storage medium.
[0069] if the value level is "low", then only saving the statistical features, semantic features and machining result data of the process segment, and discarding the original data.
[0070] The "constructing a traceable data gene chain" in step S3 specifically comprises: S31. Take the data gene code as the primary key, and construct a machining process knowledge graph containing part, process, process segment, machine tool, tool, and quality detection result entities.
[0071] S32. Associate and store each feature data package as an attribute of its corresponding process segment entity, and connect it to the upstream process and part entities and downstream quality detection result entity through the graph relationship.
[0072] The machining process knowledge graph is represented as:
[0073] wherein, is a node set containing part, process, process segment, machine tool, tool, and quality detection result entities, is an edge set representing the relationship between entities.
[0074] It also includes an intelligent traceability step: When receiving a quality abnormality alert for a specific data gene code, the graph is traversed from the corresponding part entity as the starting point in the machining process knowledge graph to locate all associated process segment entities and corresponding feature data packages. According to the process segment attributes, suspicious stages are filtered out, and their stored original data are retrieved for in-depth analysis.
[0075] The "training of process optimization model using aggregated multi-source samples" in step S4 is specifically: The machining process knowledge graph is used as the organizational structure of the training data, and a graph neural network model is used for training. The input of the graph neural network model is the node features and edge relationships in the graph, and the output is the prediction of process parameter adjustment. The training goal is to minimize the loss between the predicted features / results and the actual features / results.
[0076] The graph neural network model updates the node representation through a message passing mechanism.
[0077] For each node in the knowledge graph , the representation at the layer is calculated by the following formula:
[0078] wherein, represents the neighbor node set of node , is an aggregation function, is a trainable weight matrix, is a nonlinear activation function, and the training loss function of the model is a combination of mean square error and cross-entropy loss:
[0079] in, and These are the process characteristics and processing results predicted by the model, respectively. and For the true value, and This is the loss weighting coefficient.
[0080] The specific steps in step S4, "Recommended process parameters for generating optimized processes for new machining tasks," are as follows: Based on the part information, tool and machine tool context of the new task, similar subgraph structures are matched or constructed in the central knowledge base. The trained graph neural network model is used to reason about the subgraph, and the optimal combination of process parameters that makes the predicted machining result is solved by the optimization algorithm. This set of recommended parameters is then sent to the edge side.
[0081] Build a query subgraph based on the new task context. The trained graph neural network model is used as the evaluation function, and the Bayesian optimization algorithm is employed to find the optimal combination of process parameters. :
[0082] in, This represents a graph neural network model whose input is the injection process parameters. Subgraph of subsequent queries The output consists of the predicted processing results and stability indices. To map the model output to a function that maps the total utility value, This represents the expected utility under model prediction uncertainty.
[0083] Example 2: A CNC machine tool parts processing data storage system is provided to implement the parts processing data storage method in Embodiment 1. The system includes: Edge intelligent storage nodes, deployed on the side of CNC machine tools, include: The data acquisition and synchronization module is used to execute step S1.
[0084] A feature extraction and compression engine is used to perform step S2.
[0085] The local storage and management module is used to store feature data packets and associated indexes.
[0086] First communication interface.
[0087] The central knowledge base and optimization platform, deployed in the cloud or on a server, include: The second communication interface is used to communicate with edge intelligent storage nodes.
[0088] A knowledge graph management module is configured to perform the function of constructing and maintaining the data gene chain and the process knowledge graph in step S3.
[0089] A machine learning training platform is configured to perform the function of model training and optimization in step S4.
[0090] A global repository.
[0091] The edge intelligent storage node and the central knowledge base and optimization platform perform data interaction through a network, and collaboratively complete the storage, management and optimization of the machining data of the parts of the numerical control machine tool.
[0092] Specifically, the hardware and software of the numerical control machine tool part machining data storage system are as follows: Edge intelligent storage node: Hardware: A rugged industrial edge computing gateway is adopted, which is equipped with a multi-core CPU, more than 8 GB of RAM, more than 256 GB of NVMe-SSD, and integrated with multiple industrial network interfaces such as Ethernet, serial port and data acquisition card slot.
[0093] Software modules: Data acquisition and synchronization service: Based on a real-time operating system such as Preempt-RT Linux, customized drivers and acquisition threads are run.
[0094] Real-time signal processing and feature extraction engine: Contains algorithm library such as FFT, wavelet transform and entropy calculation, implemented by C++ / Python.
[0095] Local lightweight database: Time series database such as InfluxDB or embedded relational database such as SQLite is used to manage CDP metadata and index.
[0096] Communication agent: Realize MQTT or HTTPS secure communication with the cloud platform.
[0097] 2. Central knowledge base and optimization platform: Hardware: Based on cloud server cluster or enterprise private cloud, containing computing nodes, storage nodes and high-performance GPU nodes, which are used for model training.
[0098] Software modules: Knowledge graph service: Based on Neo4j or JanusGraph graph database construction, providing graph adding, deleting, modifying, querying and traversal interfaces.
[0099] Distributed storage and computing platform: Using HDFS, object storage such as MinIO and Spark framework for mass sample data storage and batch processing.
[0100] Machine learning platform: Integrates TensorFlow or PyTorch, and encapsulates the pipeline for GNN model training, hyperparameter tuning, model version management and deployment.
[0101] Business Application Interface (API): Provides data traceability and optimization parameter query services for upper-layer systems such as MES and QMS.
[0102] Example 3: A method for storing data during CNC machine tool part machining includes the following steps: Step 1: Feature perception and intelligent compression based on temporal domain segmentation and process entropy.
[0103] 1. Synchronous acquisition and buffering of multi-source data: Data sources: Real-time capture of G-code line numbers, axis commands / actual positions / speeds / currents, spindle speeds / loads from the CNC system bus; tool numbers and coolant switch status from the PLC; synchronous physical signals acquired from external sensors, such as vibration sensors, acoustic emission sensors, and temperature sensors.
[0104] Synchronization and buffering: All data is tagged with a uniform microsecond-level high-precision time stamp and enters a circular memory buffer of fixed duration.
[0105] 2. Time-domain segmentation of the process section: Trigger signals: The strong segmentation trigger points are the G-code line number change, the tool change completion signal, and the feed rate returning to zero.
[0106] Process entropy calculation: In the absence of a strong trigger point, a sliding window is used to calculate the multivariate process entropy. Key variables are selected, such as spindle load and vibration energy. The calculation formula is as follows:
[0107] in, This is the probability estimate of the joint state of multiple variables within the sliding window at time t.
[0108] Segmentation Decision: hour, This is an empirical threshold that indicates a significant change in the machining state, such as from idle to cutting, or from roughing to finishing; in other words, soft segmentation is performed at this point.
[0109] 3. Multimodal feature extraction: For each segmented process section, three types of features are extracted: Statistical characteristics: mean, variance, peak value, and kurtosis of data for each channel.
[0110] Frequency domain characteristics: Perform FFT transformation on vibration and sound signals to extract dominant frequencies and frequency band energy.
[0111] Time-frequency domain characteristics: Statistical analysis of wavelet transform coefficients to obtain the characteristics of non-stationary signals.
[0112] At the same time, the G code is parsed to extract the machining type of this segment, such as milling, drilling, tapping, machining surface features, such as plane, curved surface, and semantic features of the shaft involved in the machining.
[0113] 4. Adaptive tiered storage: Value assessment and strategy matching: Design an evaluator that combines rules with a lightweight classification model. Example rule base: "IF machining type == 'fine milling' AND participating axis includes 'C-axis' THEN value level = 'high'". The classification model takes the extracted features as input and outputs "high", "medium" and "low" value levels.
[0114] Stored execution: High-value segment: Preserve the original data and complete feature set, and store it in a local SSD high-speed storage area using fast and lossless compression such as LZ4.
[0115] Mid-value segment: Save downsampled data and feature sets, such as downsampling from 10kHz to 1kHz, to the local HDD storage area.
[0116] Low-value segment: Only statistical features, semantic features and key results are saved, such as the size measurement values processed in this segment. The original data is discarded after being kept in the buffer for a period of time.
[0117] Generate a feature data package: The storage results of each process segment are encapsulated into a feature data package, whose data structure includes: package ID, start / end time, machine tool ID, value level, feature vector, and original data pointer / data itself.
[0118] The goal of this step is to segment the continuous raw data stream into meaningful process segments, identify their value, and store them differentially.
[0119] Step 2: Embed the full-chain association and traceability index of the "data gene chain".
[0120] 1. Unique Identifier and Binding: Each processed part is assigned a data gene code within the system, which can be physically associated with material RFID or QR codes.
[0121] Before processing begins, the data gene code is bound to the processing task sheet and CNC program name through scanning or system docking.
[0122] Each feature data packet generated during the manufacturing process is automatically written into the data gene code of the part.
[0123] 2. Construct a knowledge graph of the processing procedure: Entity definition: Define core entities, such as parts, processes, process segments, machine tools, cutting tools, and quality inspection results.
[0124] Relationship establishment: Using processing task sheets and MDC system data, relationships are automatically established. For example: Part - contains → Process - consists of → Feature data packages corresponding to the process segment; Process segment - uses → Tool; Process - output → Quality inspection result.
[0125] Storage and Indexing: This knowledge graph is stored using a graph database. Each feature data package is used as an attribute or external storage pointer of a process segment node in the graph. The corresponding part node can be quickly located through the data gene code, and all related entities can be traversed.
[0126] 3. Intelligent traceability analysis: When a quality alarm occurs, such as when the roundness of a certain data gene code part exceeds the tolerance, the traceability analysis engine is activated.
[0127] First, in the graph database, starting from the part node, find the problem node along the edge "part → quality inspection result", and then reverse along the edge "part ← process ← process segment" to locate all relevant process segment nodes.
[0128] The system filters out suspicious stages based on the attributes of process segment nodes, such as the processing type being "precision turning of outer diameter". Then, based on the feature data packet ID associated with the process segment node, it directly retrieves the holographic data stored in the high-value segment, allowing engineers to conduct in-depth spectrum and waveform comparison analysis to quickly pinpoint the root cause.
[0129] This step assigns an identity and association to each feature data packet, building a panoramic view.
[0130] Step 3: Closed-loop learning and optimization feedback based on edge-cloud collaboration.
[0131] 1. Edge-side sample generation and uploading: After each process segment is completed, the edge node generates a "process-feature-result" triplet sample.
[0132] Process: Key parameters used in this section, such as rotational speed S, feed rate F, and depth of cut Ap.
[0133] Features: High-order feature vectors extracted from feature data packets.
[0134] Results: Results measured immediately after machining of this section, such as the dimensions of the online probe, or the final quality attributes obtained through downstream detection systems, such as roughness Ra.
[0135] Intelligent screening and uploading: Not all samples are uploaded. Screening strategies are set, such as: a) the top 10% of samples with the best results; b) samples with abnormal process characteristics, such as samples with excessive vibration energy; c) samples of new tools used for the first time; the selected samples and their associated data gene codes and feature data package IDs are packaged and uploaded to the central knowledge base.
[0136] 2. Cloud-based knowledge base construction and model training: Knowledge Base: The central knowledge base consists of two core parts: a relational database that stores all uploaded samples and a graph database that stores the complete knowledge graph.
[0137] Training a graph neural network model: The knowledge graph of the machining process is used as input. The nodes in the graph, such as process segments and cutting tools, have characteristic attributes, and the edges represent relationships.
[0138] The training objective is to build a graph neural network model that can learn the complex relationships between nodes and edges in a graph and predict the features and results that a node in a specific process segment should produce under a given process input.
[0139] The loss function considers both feature prediction error and result prediction error. Through training, the model can learn implicit knowledge such as "when using a worn tool A to process material B, if you want to maintain low vibration characteristics, you should reduce the rotational speed S by X%".
[0140] 3. Optimize feedback and closed-loop execution: When a new part of the same type, that is, a part with the same or similar process requirements, begins to be processed, the edge node sends an optimization request to the cloud, along with the current context, namely the part material, tool information, and machine tool model.
[0141] The cloud-based GNN model constructs a temporary subgraph based on the current context, and through graph reasoning and optimization algorithms, such as gradient-based optimization or Bayesian optimization, it calculates a new set of recommended process parameters that will yield the best prediction results and the most stable features.
[0142] The recommended set is sent to the edge nodes, and after confirmation by the operators or automatic writing into the CNC system for execution, the operators must have CNC system permissions.
[0143] The new data generated in this process is then processed again in steps one and two to generate new samples and knowledge, which are fed back to the cloud for incremental learning of the GNN model, completing the closed loop.
[0144] This step utilizes the structured data generated in the first two steps to drive continuous process optimization.
[0145] Example 4: This part's machining data storage method is applied to the five-axis linkage milling machining of aero-engine impellers.
[0146] This embodiment takes the five-axis precision milling process of a certain type of aero-engine impeller made of Ti-6Al-4V as an example to illustrate the specific implementation process of this method. This process uses a ball end mill, the machining path is complex, and the requirements for vibration and surface quality are extremely high.
[0147] Step S1: Real-time data acquisition and synchronization.
[0148] The hardware components of deploying edge intelligent storage nodes on machine tools include: an industrial bus acquisition card supporting the OPC UA protocol, a multi-channel synchronous data acquisition card for sensors, an industrial-grade computing unit, such as a high-performance industrial computer and a local solid-state drive, such as an SSD, and a data acquisition and synchronization module running on the software.
[0149] Data collected from the CNC system includes: G-code line number, actual and commanded positions of the X / Y / Z / A / C axes (sampling rate 1kHz), and actual spindle speed and load (500Hz).
[0150] Data collected from the PLC: current tool number, i.e., event trigger and coolant pressure switch status.
[0151] Data collected from sensors includes: triaxial vibration acceleration signal at the spindle housing (sampling rate 20kHz), acoustic emission signal near the spindle end (sampling rate 1MHz), and temperature field data from an infrared thermal imager in the working area (10Hz).
[0152] Synchronization mechanism: All acquisition threads are driven by the same high-precision hardware clock, such as PTP synchronization clock, which gives each data point a uniform microsecond-level timestamp and temporarily stores it in a memory circular buffer.
[0153] Step S2: Feature perception and intelligent compression.
[0154] The edge node feature extraction and compression engine processes buffer data in real time.
[0155] Process section segmentation: Strong segmentation: When the system detects that the G code line number jumps from N100 to N101, that is, from finish milling the blade basin surface to finish milling the blade back surface, or receives a PLC signal that the tool change is complete, a new process segment is immediately created.
[0156] Soft segmentation is achieved through a core algorithm: during the continuous milling of a curved surface, the system uses a 1-second sliding window to calculate the joint state entropy of two key variables: spindle load and effective value of Z-axis vibration within the window. For example, if the load and vibration are quantified into three levels—low, medium, and high—there are nine possible joint states.
[0157] Within the time window t, the frequency of occurrence of each state is calculated as an empirical probability. Substituting into the entropy formula:
[0158] When the entropy change between two adjacent windows When the value exceeds the preset threshold, it indicates a significant change in processing stability, such as slight tool scratches. At this point, soft segmentation is performed, ending the current process segment and starting a new one. The impeller precision milling is divided into multiple stable process segments S1, S2... and several process segments A1 where minor anomalies are detected.
[0159] Multimodal feature extraction: For vibration signals, perform FFT on the data within each process segment. For example, for a 2-second vibration signal... Calculation with N=40000 points The first five peak frequencies (Q=5) in the power spectrum, such as 800Hz, 1200Hz, 2000Hz, etc., and their amplitudes are extracted to form a 10-dimensional frequency domain feature vector, which contains 5 frequency values and 5 amplitudes.
[0160] Simultaneously, time-domain statistical features are extracted, such as mean, variance, kurtosis, and semantic features parsed from G-code, such as "five-axis linkage fine milling", "tool radius R5", and "feed direction along surface normal".
[0161] Value assessment and tiered storage: Input the feature vector X into the value assessment classifier. There is a rule in the rule base R: "IF machining type == 'fine milling' AND participating axes include 'A axis' and 'C axis' THEN value level = 'high'". Since the current process is five-axis fine milling of the impeller, the matching score of this rule is R(X, 'high') = 1.0.
[0162] Meanwhile, a pre-trained gradient boosting tree model M, based on patterns learned from historical data, outputs probabilities for feature X: M(X,'High')=0.85, M(X,'Medium')=0.15.
[0163] Let the tradeoff coefficient α = 0.3, then the decision function is calculated.
[0164] .
[0165] The final value level was determined to be "high".
[0166] Storage execution: For the "high-value" impeller milling process section, the LZ4 lossless compression algorithm is used to save all the original 20kHz vibration, 1MHz acoustic emission data and all features, and store them on the local SSD. At the same time, a feature data package, namely CDP, is generated, whose metadata includes: CDP_ID: TURBINE_WHL_FINISH_001, timestamp, machine ID, data gene code: WHL_20231027_001, value level: high, feature vector: [800, 0.5, 1200, 0.3, ...].
[0167] Step S3: Full-chain association and traceability index.
[0168] Data Gene Code Binding: The impeller blank is assigned a QR code upon entering the warehouse, coded as WHL_20231027_001. Before processing, scanning this QR code binds the data gene code DGC to the current processing task.
[0169] Building a knowledge graph: The knowledge graph management module of the central knowledge base receives CDP and DGC uploaded by edge nodes. It uses DGC as the primary key to create or update a graph. .
[0170] Create a node: the part is WHL_20231027_001, the process is five-axis finish milling, the machine tool is five-axis milling machine 01, the tool is ball end mill R5-number T123, and create a corresponding process segment node for each CDP, such as process segment (TURBINE_WHL_FINISH_001).
[0171] Create relationship edges: Part - Owns → Operation, Operation - Contains → Process Segment, Process Segment - Uses → Tool, Process Segment - Originates from → Machine Tool.
[0172] Intelligent traceability: Subsequent testing revealed that the profile of one of the impeller blades was out of tolerance. The problem was described by inputting DGC-WHL_20231027_001 and a quality issue description into the interactive application layer.
[0173] The tracing engine starts with part WHL_20231027_001 in the graph and traverses to the associated processes, namely five-axis precision milling and all process segment nodes below it. Based on the node attributes, such as "machining area: third blade", it filters out suspicious process segment nodes.
[0174] Based on the CDP_ID associated with these nodes, the system directly retrieves the corresponding holographic vibration data from the edge SSD or central storage. Engineers analyzed the data and found that in a certain process segment CDP marked as "high" value, there was an abnormal peak in the vibration spectrum at 2000Hz. Combined with the tool nodes associated in the spectrum, it was determined that tool T123 had experienced slight wear and chipping in this area, thus accurately locating the root cause.
[0175] Step S4: Closed-loop learning and optimization feedback.
[0176] Sample generation and uploading: For each "high" value impeller milling process segment, edge nodes generate triplet samples.
[0177] Process = {Spindle speed S: 8000 rpm, Feed rate F: 1200 mm / min, Cutting width Ae: 0.2 mm}; Characteristics = {Dominant vibration frequency: 1200Hz, Amplitude: 0.3g}; Result = {Subsequent coordinate measuring machine measurement of surface roughness Ra in this area: 0.4 μm}.
[0178] This sample, along with DGC and CDP_ID, was marked as the "best sample" and uploaded.
[0179] Model training: The cloud-based machine learning training platform aggregates thousands of impeller samples processed by multiple machine tools.
[0180] It uses a knowledge graph G as its structure to train a graph neural network GNN. The AGGREGATE function of the GNN adopts an attention mechanism. For example, for a process segment node, it aggregates the wear state features of the tool nodes connected to it and the stiffness features of the machine tool nodes.
[0181] The model uses a message passing formula:
[0182] The node characterization is updated to ultimately predict the process adjustment amount. The loss function L is optimized for both vibration characteristics and surface roughness, that is, to improve the prediction accuracy of MSE loss and CE loss.
[0183] Optimization Recommendation: When a new batch of impellers of the same model, DGC: WHL_20231105_XXX, begins processing, the system matches similar graph substructures in the knowledge base based on the blank batch and tool information associated with its DGC. .
[0184] The current plan parameters injection The process segment nodes utilize a pre-trained GNN model. The Bayesian optimizer uses the predicted results as its evaluation function to search within the parameter space, such as S∈[7500,8500], F∈[1100,1300], for the function that maximizes the expected utility. parameters The utility function U combines the predicted Ra value and vibration stability. The smaller the Ra value, the better, and the more stable the vibration stability, the better.
[0185] Ultimately, the system recommends a set of optimization parameters. The data is sent to the edge nodes to guide the current processing. The new data generated after processing re-enters the system loop and is used for incremental training of the GNN model.
[0186] Example 5: This part's machining data storage method is applied to the precision turning of automotive gearbox shafts.
[0187] This embodiment takes the precision turning process of an automotive gearbox output shaft as an example to highlight the application of this method in the machining of shaft parts and the differences from Embodiment 4.
[0188] Step S1 is the same as step S1 in Example 4.
[0189] Step S2: Feature perception difference: Segmentation: Strong segmentation trigger events are more frequent, including "feed rate zeroing" for measurement points and "G-code switching to thread cutting command".
[0190] Feature extraction: Frequency domain analysis focuses on monitoring chatter frequencies during turning, performing FFT on the acoustic emission signal, and analyzing the power spectrum. Energy in the 2-5 kHz range was used as a key characteristic to evaluate cutting stability.
[0191] Value Assessment: The rule base contains: "IF machining feature == 'thread turning' THEN value level = 'high'" and "IF machining feature == 'rough turning' THEN value level = 'medium'". For the rough turning segment, the GBDT model may output a "low" probability due to stable load. The final decision is then processed by the decision function. The overall assessment is "medium".
[0192] Storage strategy: For the "medium" level coarse travel segment, the original current signal is downsampled from 2kHz to 500Hz and then saved; for the "low" level idle travel segment, only the start and end times, energy consumption, and travel distance are saved.
[0193] Step S3: Knowledge Graph Construction The construction of the graph G is more hierarchical. Under a part GEAR_SHAFT_XXX node, multiple process nodes are associated, such as rough turning, finish turning of the outer circle, milling of keyway, and grinding of the outer circle. Each process node contains multiple process segment nodes. The process segment node of the grinding of the outer circle process will be associated with the online measuring instrument node and the real-time dimension detection result node provided by the detection equipment used, forming a tighter machining-inspection closed loop chain.
[0194] Key points of closed-loop optimization in step S4: For turning, the optimization objective focuses more on dimensional accuracy, such as diameter tolerance and shape accuracy, such as roundness. The GNN model learns how to compensate for tool wear by adjusting the spindle speed (S) and feed rate (F), which is reflected in tool node features and machine tool thermal deformation, which is reflected in the time-series temperature features of machine tool nodes. When the model detects increased tool wear, it optimizes the recommended parameters using Bayesian methods. It may actively reduce the feed F to maintain dimensional stability.
[0195] Working principle: The system adopts a three-layer architecture: an edge intelligence layer, a central knowledge layer, and an interactive application layer. The edge intelligence layer is responsible for feature extraction, compression storage, and preliminary analysis of real-time data; the central knowledge layer is responsible for data aggregation, correlation modeling, and deep learning; and the interactive application layer provides human-machine interfaces such as quality traceability and process optimization recommendations. Its workflow is a process of continuous refinement and enhancement of data value: the raw data is first refined into high-density feature data packages through feature perception and intelligent compression; these data packages are given complete contextual semantics through full-chain association and traceability indexing, forming traceable knowledge units; finally, these knowledge units are transformed into optimization parameters that drive process improvement through closed-loop learning and optimization feedback, forming a continuously evolving intelligent cycle.
[0196] The beneficial effects of this invention are: achieving intelligent data compression and significantly reducing storage costs; by analyzing the processing status in real time, data is classified and stored differently based on its value, effectively reducing redundant data storage while retaining key process details; constructing a full-link data gene chain to achieve precise traceability; using unique data gene codes and knowledge graph technology to strongly correlate processing data with upstream and downstream business data, enabling minute-level root cause localization of quality problems; forming a closed loop for process optimization to drive continuous improvement; using stored high-value data to train artificial intelligence models to achieve intelligent recommendation and adaptive optimization of process parameters, forming a virtuous cycle of "data-driven optimization"; and a flexible system architecture that is easy to deploy and integrate; the edge-cloud collaborative architecture ensures the real-time performance of data processing and the reliability of the system, while supporting gradual deployment within existing factory information systems.
[0197] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the patent coverage of this invention.
Claims
1. A method for storing data during the machining of CNC machine tool parts, characterized in that, Includes the following steps: S1. Real-time acquisition and synchronization: Real-time acquisition of multi-source data streams during the CNC machine tool machining process, and storage of all data in a buffer after being stamped with a unified time stamp; the multi-source data streams include at least internal status data of the CNC system, PLC signals and external sensor data. S2. Feature perception and intelligent compression: Real-time analysis of the data stream in the buffer area, dividing it into multiple process segments based on process state changes, extracting multimodal features for each process segment and evaluating its data value level, and using the corresponding storage strategy to compress or summarize the original data of the process segment according to the value level, generating a feature data package containing metadata and feature vectors. S3. Full-chain association and traceability index: Bind a unique data gene code to each processed part, associate and bind all feature data packages generated in step S2 with the data gene code of the corresponding part, and jointly construct a traceable data gene chain with the upstream material data and downstream quality inspection data of the part. S4. Closed-loop learning and optimization feedback: Based on the feature data package and the associated processing results, generate "process-feature-result" triplet samples, upload high-value samples to the central knowledge base, train the process optimization model using aggregated multi-source samples, distribute the trained optimization model to the edge side for generating optimized process parameter recommendations for new processing tasks, and feed back the new data after execution to the central knowledge base to realize the iterative update of the model.
2. The data storage method for CNC machine tool parts processing as described in claim 1, characterized in that, Step S2, "dividing it into multiple process segments based on process state changes," specifically includes: S21. Initial segmentation is performed based on preset strong segmentation trigger events, including G-code line number change, tool change completion signal, or feed rate returning to zero; S22. In the continuous processing interval without strong segmentation triggering events, the process entropy value of key variables is calculated using a sliding window. When the change in the process entropy value exceeds a preset threshold, it is determined that a significant change has occurred in the processing state, and soft segmentation is performed at this point. Wherein, the process entropy value The calculation formula is: in, The total number of joint states for the key variables. Indicates within the time window The first internal observation A kind of joint state, This represents the empirical probability of this state occurring within the window. It is the base of the logarithm.
3. The data storage method for CNC machine tool parts processing as described in claim 2, characterized in that, The step S2, "extracting its multimodal features," includes extracting frequency domain features, specifically: Timing signals of vibration or acoustic emission sensors Perform a fast Fourier transform and calculate its power spectral density. : in, For the signal length, from the power spectral density The first Q dominant frequency components and their corresponding amplitudes are extracted and used as the frequency domain feature vectors of this process segment.
4. A method for storing data on CNC machine tool parts as described in claim 1 or 2, characterized in that, The specific steps in step S2, "assessing the data value level," are as follows: The extracted multimodal features and semantic features parsed from the G code are input into a predefined value assessment classifier. The value assessment classifier combines a rule base and a lightweight machine learning model to output the value level of the process segment. The value level includes at least three levels: high, medium, and low. The rule base includes judgment rules based on machining type, participating axis, and tool information; Specifically, this is achieved through a value assessment classifier, whose decision function... Represented as: in, The input consists of multimodal features and semantic feature vectors. As a value level category, The score is based on a rule matching score from a preset rule base, which includes judgment rules in the form of "IF machining type == 'fine milling' AND participating axis includes 'C-axis' THEN value level = 'high'". This represents the class probabilities output by a lightweight machine learning model. This is a weighting coefficient used to adjust the weights of the rules and the model output.
5. The data storage method for CNC machine tool parts processing as described in claim 3, characterized in that, The specific meaning of "adopting the corresponding storage strategy" in step S2 is as follows: If the value level is "high", then the original high-frequency data and complete feature set of the process segment are saved using a lossless or near-lossless compression algorithm and stored in a high-speed storage medium. If the value level is "medium", then save the downsampled data and feature set to a regular storage medium; If the value level is "low", only the statistical features, semantic features and processing result data of that process segment will be saved, and the original data will be discarded.
6. The data storage method for CNC machine tool parts machining as described in claim 1, characterized in that, The step S3, "constructing a traceable data gene chain," specifically includes: S31. Using the data gene code as the primary key, construct a processing knowledge graph that includes entities such as parts, processes, process segments, machine tools, cutting tools, and quality inspection results; S32. Each of the feature data packets is associated and stored as an attribute of its corresponding process segment entity, and is connected to the upstream process, part entity and downstream quality inspection result entity through graph relationships; Among them, the knowledge graph of the processing process Represented as: in, It is a set of nodes, containing entities such as parts, processes, process segments, machine tools, cutting tools, and quality inspection results. Let be the set of edges, representing the relationships between entities.
7. The data storage method for CNC machine tool parts machining as described in claim 6, characterized in that, It also includes intelligent traceability steps: When a quality anomaly alarm is received for a specific data gene code, the knowledge graph of the processing process is traversed starting from the corresponding part entity to locate all associated process segment entities and their corresponding feature data packets. Suspicious stages are selected based on the process segment attributes, and their stored raw data is retrieved for in-depth analysis.
8. The data storage method for CNC machine tool parts processing as described in claim 1, characterized in that, In step S4, "optimizing the model using aggregated multi-source sample training process" specifically refers to: Using a knowledge graph of the processing process as the organizational structure of the training data, a graph neural network model is used for training. The input of the graph neural network model is the node features and edge relationships in the graph, and the output is the prediction of the adjustment of process parameters. Its training objective is to minimize the loss between the predicted features / results and the actual features / results. Graph neural network models update node representations through message passing mechanisms: For each node in the knowledge graph In the Representation of +1 layer Calculated using the following formula: in, Represents a node The set of neighboring nodes, It is an aggregate function. For trainable weight matrix, The non-linear activation function is the model's training loss function. This is a combination of mean squared error and cross-entropy loss: in, and These are the process characteristics and processing results predicted by the model, respectively. and For the true value, and This is the loss weighting coefficient.
9. A method for storing data during CNC machine tool part machining as described in claim 8, characterized in that, The "recommendation of optimized process parameters for new processing tasks" in step S4 specifically refers to: Based on the part information, cutting tool and machine tool context of the new task, a similar subgraph structure is matched or constructed in the central knowledge base. The trained graph neural network model is used to reason about the subgraph, and the optimal combination of process parameters that makes the predicted processing result is solved by the optimization algorithm. This set of recommended parameters is then sent to the edge side. Build a query subgraph based on the new task context. The trained graph neural network model is used as the evaluation function, and a Bayesian optimization algorithm is employed to find the optimal combination of process parameters. : in, This represents a graph neural network model whose input is the injection process parameters. Subgraph of subsequent queries The output consists of the predicted processing results and stability indices. To map the model output to a function that maps the total utility value, E ⋅ This represents the expected utility under model prediction uncertainty.
10. A data storage system for machining parts in a CNC machine tool, used to implement the method according to any one of claims 1-9, characterized in that, The system includes: Edge intelligent storage nodes, deployed on the side of CNC machine tools, include: The data acquisition and synchronization module is used to perform step S1; Feature extraction and compression engine, used to perform step S2; The local storage and management module is used to store feature data packets and associated indexes; First communication interface; The central knowledge base and optimization platform, deployed in the cloud or on a server, include: The second communication interface is used to communicate with the edge intelligent storage node; The knowledge graph management module is used to perform the function of constructing and maintaining the knowledge graph of data gene chain and processing process in step S3; A machine learning training platform, used to perform the model training and optimization functions in step S4; Global repository; The edge intelligent storage node interacts with the central knowledge base and optimization platform via a network to collaboratively complete the storage, management and optimization of the CNC machine tool parts processing data.
Citation Information
Patent Citations
Data acquisition, storage and application method for numerical control machine tool
CN116300688A
Cigarette primary processing workshop simulation model auxiliary system, operation method, electronic equipment and storage medium
CN119294253A
Aerospace intelligent manufacturing large model construction method
CN120372834A
Industrial product data compression and tracing system and method
CN120994626A
Papermaking equipment fault tracing method and system based on process knowledge graph
CN121212342A
Cited By
High-voltage switch circumferential part milling method capable of avoiding angular movement
CN122058216A