Carbon product quality prediction method and system based on deep learning
By constructing a deep learning-based dual-stream neural network model and combining process parameters and physical feature maps, non-destructive, real-time, and accurate prediction of carbon product quality was achieved. This solved the problems of long cycle time, high cost, and low accuracy of existing detection methods and provided interpretable analysis of quality anomaly areas.
Patent Information
- Application Number
- CN202611046183.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-14
- Publication Date
- 2026-11-27
AI Technical Summary
Existing methods for testing the quality of carbon products are characterized by long testing cycles, high costs, susceptibility to subjective factors, and inability to achieve full screening. Furthermore, existing machine learning solutions require significant hardware investment and stringent environmental requirements, making it difficult to meet the demands of high-standard industrial applications.
A deep learning-based approach is adopted to construct a two-stream neural network model. Using readily available process parameters and physical property parameters, a multi-channel physical feature map is generated. End-to-end quality prediction is then performed by combining fully connected neural networks and convolutional neural networks.
It enables non-destructive, real-time, and accurate prediction of carbon product quality, provides early warning of quality defects, significantly improves prediction accuracy, and offers interpretable analysis of quality anomaly areas.
Smart Images

Figure CN123180800A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of carbon product manufacturing quality control technology, and in particular to a carbon product quality prediction method and system based on deep learning. Background Technology
[0002] Carbon products, such as carbon fiber reinforced composites, graphite electrodes, and carbon-carbon composites, are widely used in aerospace, automotive manufacturing, new energy, and high-end industrial equipment due to their excellent properties such as high strength, high modulus, high temperature resistance, and corrosion resistance. As downstream industries continue to demand lighter and higher performance from components, quality control of carbon products has become crucial in the production process.
[0003] Currently, quality inspection of carbon products mainly relies on two methods. First, in a laboratory environment, specialized equipment such as nanoindenters, scanning electron microscopes, and universal testing machines are used to perform destructive or high-precision testing on product samples to obtain physical property parameters such as hardness, elastic modulus, and microstructure. While this method is highly accurate, it has a long testing cycle, is expensive, and is based on sampling, making it impossible to screen every single product and carrying the risk of missed detections. Second, on the production site, quality inspectors rely heavily on visual observation or simple measuring tools to judge surface defects (such as broken weft, pores, and cracks) and basic geometric dimensions of the products. This method is susceptible to subjective factors, inefficient, and cannot detect potential quality hazards that are about to develop into defects within the material.
[0004] Existing machine learning-based quality prediction solutions typically require the integration of complex non-destructive testing equipment such as infrared thermal imaging and ultrasonic flaw detection, resulting in significant hardware investment and stringent environmental requirements. Furthermore, some solutions focus on diagnosing process parameters during production, but often lack the ability to uncover the deep nonlinear relationship between the intrinsic physical properties of materials and the final quality. Consequently, the accuracy and generalization ability of the prediction models are insufficient to meet the demands of high-standard industrial applications. Summary of the Invention
[0005] The purpose of this invention is to provide a method and system for predicting the quality of carbon products based on deep learning. By utilizing easily obtainable process parameters and physical property parameters, a high-precision deep learning model is constructed to achieve non-destructive, real-time, and accurate prediction of the quality of carbon products and to provide early warning of quality defects.
[0006] To achieve the above objectives, in a first aspect, the present invention provides a method for predicting the quality of carbon products based on deep learning, comprising the following steps: Key process parameters during the preparation of carbon products are collected, as well as physical property parameters of the carbon products without damage, to construct a multidimensional feature vector; The physical property parameters in the multidimensional feature vector are reconstructed according to their spatial distribution on the surface of the workpiece to generate a multi-channel physical feature map. A two-stream neural network model is constructed, comprising a first processing branch and a second processing branch. The first processing branch is used to process the key process parameters, and the second processing branch is used to process the physical feature map. The dual-flow deep learning prediction model is trained end-to-end using historical production data. The corresponding data of the carbon products to be predicted are input into the trained dual-flow deep learning prediction model to obtain the corresponding quality prediction results.
[0007] The key process parameters include carbonization temperature, graphitization temperature, heat treatment time, and impregnation pressure; the physical property parameters include conductivity measured by eddy current method, sound velocity measured by ultrasonic method, and geometric dimensional deviation measured by laser rangefinder.
[0008] Specifically, the physical characteristic parameters in the multidimensional feature vector are reconstructed according to their spatial distribution on the surface of the workpiece to generate a multi-channel physical feature map, including: Map the physical coordinates of each detection point to a unified normalized coordinate system; Obtain a fixed-resolution output grid and use an interpolation algorithm to calculate the values of each physical property parameter on each grid node; The conductivity, sound velocity, and geometric deviation values on the same grid node are used as pixel values for independent channels and then synthesized into a multi-channel physical feature map.
[0009] The interpolation algorithm is a bilinear interpolation method, which is used to calculate the parameter values on the target grid node based on the physical characteristic parameter values of the surrounding known detection points.
[0010] The first processing branch is a fully connected neural network, which receives a one-dimensional key process parameter vector and extracts process parameter features through multiple fully connected layers; the second processing branch is a convolutional neural network, which receives a two-dimensional multi-channel physical feature map and extracts spatial distribution features through convolutional and pooling layers.
[0011] The second processing branch uses a lightweight convolutional neural network pre-trained on a large image dataset as the backbone network, and fine-tunes it on its own dataset through transfer learning.
[0012] The method further includes: In the feature fusion layer, the process parameter features and the spatial distribution features are concatenated to form a joint feature vector.
[0013] The end-to-end training of the dual-stream deep learning prediction model using historical production data includes: Using the actual quality inspection label of the product as a supervision signal, the parameters of the first processing branch, the second processing branch, and the network layer after feature fusion are jointly optimized through the backpropagation algorithm.
[0014] The method further includes: Gradient-weighted class activation mapping is used to process the feature map output of the last convolutional layer in the second processing branch of the convolutional neural network to generate a heat map, which is used to highlight the physical feature map regions that contribute to the quality prediction results according to the set standard.
[0015] Secondly, the present invention provides a carbon product quality prediction system based on deep learning, applied to a carbon product quality prediction method based on deep learning as provided in the first aspect, comprising: The data acquisition module is used to collect key process parameters and physical property parameters of carbon products during the preparation process; The map generation module is used to reconstruct the physical characteristic parameters into a multi-channel physical feature map according to their spatial distribution. The model processing module is equipped with a pre-trained dual-stream deep learning prediction model. The dual-stream deep learning prediction model includes a first processing branch for processing key process parameters and a second processing branch for processing physical feature maps, and is used to output quality prediction results.
[0016] This invention discloses a deep learning-based method and system for predicting the quality of carbon products, comprising: data acquisition and feature construction, collecting key process parameters and physical property parameters; physical feature mapping, reconstructing the physical property parameters into multi-channel physical feature maps according to their spatial distribution; constructing a dual-stream deep learning prediction model, including a first processing branch for processing process parameters and a second processing branch for processing the physical feature maps; and model training and quality prediction, fusing the dual-stream features for end-to-end training and outputting the prediction results. This invention achieves non-destructive, real-time online prediction of carbon product quality. By fusing process parameters and spatial distribution information of physical properties, it significantly improves prediction accuracy and, through interpretability analysis, locates quality anomaly areas, providing an intuitive basis for process optimization. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.
[0018] Figure 1 This is a schematic diagram illustrating the steps of a deep learning-based method for predicting the quality of carbon products according to the first embodiment of the present invention.
[0019] Figure 2 This is a flowchart illustrating a deep learning-based method for predicting the quality of carbon products provided by this invention.
[0020] Figure 3 This is a structural principle diagram of a carbon product quality prediction system based on deep learning, according to the second embodiment of the present invention.
[0021] Figure 4 This is a schematic diagram of the electronic device of the present invention.
[0022] In the diagram: 101 - Data acquisition module, 102 - Map generation module, 103 - Model processing module. Detailed Implementation
[0023] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application.
[0024] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0025] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0026] The first embodiment of this application is as follows: Please see Figures 1-2 This invention provides a method for predicting the quality of carbon products based on deep learning, comprising the following steps: S1. Collect key process parameters during the preparation of carbon products, and collect physical property parameters of the carbon products without damage, and construct a multi-dimensional feature vector.
[0027] Specifically, before implementing data acquisition, an integrated data acquisition system needs to be deployed on the carbon product production line. This system consists of three subsystems: a process parameter acquisition terminal, an online physical property detection unit, and a data aggregation server. The process parameter acquisition terminal is connected to the programmable logic controller (PLC) of the production control system via an industrial Ethernet network, reading the operating data of key process equipment in real time. The online physical property detection unit is installed beside the conveyor line after product forming and consists of various non-destructive testing probes, capable of automatically scanning and inspecting the product surface according to a preset path. The data aggregation server is responsible for receiving data from the above two subsystems and performing timestamp alignment and preliminary data cleaning based on the product's unique identifier (such as product serial number or production batch number). This pre-deployment ensures that subsequent data acquisition can be carried out automatically and continuously without interfering with the normal production cycle.
[0028] Key process parameters refer to the process conditions that determine the evolution of the material's microstructure and the formation of its final properties during the preparation of carbon products. These parameters are usually automatically recorded and stored by the production control system.
[0029] The specific data collection process is as follows: The data aggregation server sends data requests to the production control system once per minute to obtain the process parameter records of the products currently in production. For each carbon product, the system extracts data on the key process stages it undergoes throughout the entire manufacturing cycle. Taking a typical carbon / carbon composite material sheet as an example, the types of parameters collected and specific data examples are as follows: Carbonization temperature: refers to the temperature at which the carbon fiber precursor is heated to a high temperature in an inert atmosphere, causing non-carbon elements to pyrolyze and escape, and carbon elements to be enriched and reconstructed. During data acquisition, key points on the actual furnace temperature curve are recorded, such as the average temperature (e.g., 950℃), the highest temperature (e.g., 1100℃), and the heating rate (e.g., 5℃ / minute) during the carbonization holding stage.
[0030] Graphitization temperature: This refers to the temperature at which carbonized products are treated at a higher temperature, causing the disordered layered carbon structure to transform into three-dimensional ordered graphite crystals. Collected data includes the graphitization holding temperature (e.g., 2300℃), holding time (e.g., 2 hours), and cooling rate. Studies have shown that after heat treatment at 2300℃ for 2 hours, the graphitization degree of coarse layered pyrolytic carbon can exceed 77%.
[0031] Heat treatment time: refers to the total heating time of the product during the carbonization and graphitization process, including the sum of the heating and holding times. For example, the total time from room temperature to the carbonization temperature and the holding time may be 8 hours.
[0032] Impregnation pressure: In liquid phase impregnation processes, the pressure applied to force the impregnating agent (such as phenolic resin or bitumen) into the porous carbon blank. Data collected includes the magnitude of the impregnation pressure (e.g., 1.5 MPa), the holding time (e.g., 30 minutes), and the number of impregnation cycles.
[0033] These parameters are extracted as numerical variables, forming a one-dimensional vector describing the product. For example, for a batch of products, the process parameter vector can be represented as: [Carbonization temperature: 1050℃, Graphitization temperature: 2350℃, Heat treatment time: 10 hours, Impregnation pressure: 1.8 MPa].
[0034] Physical property parameters are characteristic data reflecting the current physical state of a product obtained through non-destructive testing techniques after molding and without damage. These data can indirectly reveal the material's internal uniformity, density, and potential microscopic defects. The specific data acquisition process is automatically executed by the online physical property detection unit, and the steps are as follows: Positioning and Scanning: When a carbon product arrives at the inspection station along the conveyor line, a photoelectric sensor triggers a positioning device to precisely fix the product. A multi-axis robotic arm carrying an inspection probe performs point-by-point inspection on the product surface according to a preset serpentine scanning path. The density of inspection points can be set according to the product size and accuracy requirements. For example, for a 500mm × 500mm sheet, a 20 × 20 grid can be set, resulting in a total of 400 inspection points.
[0035] Conductivity acquisition: Eddy current detection method is used. The excitation coil in the detection probe generates a high-frequency alternating magnetic field. When the probe approaches the surface of the carbon product, eddy currents are induced inside the product. The magnitude and phase of these eddy currents are affected by the conductivity of the product, which in turn acts on the probe coil, changing its impedance. By measuring the change in impedance, the conductivity value at that point can be calculated. The conductivity of carbon materials is closely related to their degree of graphitization, crystal integrity, and porosity.
[0036] Sound velocity acquisition: The ultrasonic pulse-echo method or transmission method is employed. The ultrasonic transducer in the detection probe emits high-frequency ultrasonic pulses (e.g., 2.25 MHz to 10 MHz) into the material. The ultrasonic waves propagate within the material and generate reflected echoes when they encounter the bottom surface or internal defects. By accurately measuring the time difference between the ultrasonic pulse emission and reception, and given the known distance between the probe and the bottom surface, the ultrasonic velocity at that point can be calculated. Ultrasonic velocity is a function of material density and elastic modulus, and is highly sensitive to material anisotropy and micropores. Studies have shown that the peak delay measurement method can effectively determine the ultrasonic velocity in carbon / phenolic composite materials.
[0037] Geometric Dimension Deviation Acquisition: Laser triangulation is employed. A laser diode projects a light spot onto the product surface. This light spot is reflected by the surface and received by a high-resolution complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) camera. When the height of the product surface changes, the position of the light spot on the camera's imaging plane shifts accordingly. Using calibrated geometric relationships, the actual height of this point can be accurately calculated. The actual height is compared with the theoretical height of a standard CAD model to obtain the dimensional deviation value of that point. For electrode products, dimensional accuracy directly affects their service life and safety.
[0038] The three parameters mentioned above are simultaneously collected at each detection point, forming a three-dimensional physical feature tuple: [point coordinates (x, y), conductivity value, ultrasonic velocity value, dimensional deviation value]. After scanning is completed, a physical characteristic dataset containing hundreds or even thousands of points is generated for the entire product.
[0039] The construction of multidimensional feature vectors is not a simple data accumulation, but rather the organization of data from different sources and with different physical meanings according to a specific logic, laying the foundation for subsequent feature mapping processing. The construction process includes the following key steps: Data alignment and cleaning: First, the time-ordered process parameter vectors and the spatially ordered physical characteristic datasets are linked using the unique identifier of the product. Outliers caused by sensor malfunctions or communication interruptions (such as data exceeding the measurement range or null values) are removed. For a small number of missing data points, the nearest neighbor mean interpolation method is used to fill in the gaps to ensure the integrity of the dataset.
[0040] Data normalization: Due to the significant differences in the dimensions and numerical ranges of process parameters (temperature, pressure, time) and physical property parameters (conductivity, sound velocity, dimensional deviation) (e.g., temperature may be in the thousands of degrees, while dimensional deviation may be in the millimeters), direct fusion can lead to unstable model training. Therefore, it is necessary to normalize all parameters, mapping them uniformly to the interval [0, 1] or [-1, 1]. The normalization formula can adopt minimum-maximum standardization: Normalized value = (original value - minimum value) / (maximum value - minimum value).
[0041] After the above processing, each carbon product corresponds to a structured dataset. This dataset consists of two parts: The process features section consists of a two-dimensional matrix of shape (1, N), where N is the number of types of process parameters (N=4 in this example). This matrix can be understood as a code describing "how the product is manufactured".
[0042] Physical characteristics: A three-dimensional tensor of shape (H, W, M), where H and W are the number of rows and columns of the scan grid, respectively (e.g., H=20, W=20), and M is the number of channels for the physical characteristic parameters (M=3 in this example). This tensor can be understood as a map describing how the current physical state of the artifact is distributed in space.
[0043] S2. Reconstruct the physical characteristic parameters in the multidimensional feature vector according to their spatial distribution on the surface of the product to generate a multi-channel physical feature map.
[0044] Specifically, the geometric dimensions of carbon products are not constant; different models and batches may have different lengths and widths. To ensure universality in subsequent processing, the physical inspection coordinates of all products must be mapped to a unified reference coordinate system. This process is called coordinate normalization, and the specific steps are as follows: For each product, first determine the boundaries of its effective inspection area. Assume the product is a rectangular sheet, with its length along the X-axis and its width along the Y-axis. The inspection system records the coordinates of all points (...). All of them are located within this rectangular area. Let the minimum value of the entire area in the X direction be [value missing]. The maximum value is The minimum value in the Y direction is The maximum value is Therefore, for any original detection point Pi, its normalized coordinates ( It can be calculated using the following formula: , .
[0045] After normalization, the effective detection area of all products is mapped to a square interval with a side length of 1, i.e. , This process not only eliminated the impact of differences in product dimensions, but more importantly, it provided a benchmark for the subsequent generation of atlases with uniform dimensions.
[0046] Normalized coordinates are continuous values, while digital images are composed of discrete pixels. Therefore, it is necessary to define a grid with a fixed resolution to discretize the continuous space and calculate the physical property values at each grid point (i.e., pixel). This step is the core of the map generation process; it transforms discrete point data into a continuous two-dimensional field through interpolation techniques.
[0047] Based on the actual detection point density and the model's detail requirements, the width W and height H of the output physical feature map are set. Typically, W and H can take the same value, such as 224, 256, or 512, to ensure compatibility with mainstream convolutional neural network input sizes. The choice of resolution requires a trade-off: too high a resolution increases computational load and may introduce noise, while too low a resolution may lose important spatial details. In this embodiment, considering that detection points are typically arranged in a 20×20 grid, W=H=224 is chosen, which can fully preserve the spatial variation trend of physical characteristics without generating excessive redundant information.
[0048] For each pixel in the graph, its pixel coordinates ( ) corresponds to a point in the normalized coordinate system, where , The center point of this pixel is located in the normalized coordinate system as follows: , .
[0049] To obtain pixels ( The physical characteristic value at point () needs to be interpolated using the values of known detection points in its vicinity. Since a serpentine scanning path is used in step S1, the detection points themselves form a regular rectangular grid. Therefore, the bilinear interpolation method can be used, which is computationally efficient and ensures the smoothness of the results. The basic idea of bilinear interpolation is: for a target pixel, find its cell in the original detection grid, and perform two linear interpolations using the known values at the four vertices of that cell.
[0050] The specific calculation process is as follows (taking the conductivity channel as an example): First, based on the normalized coordinates ( This determines which cell in the original detection grid it is located in. The original detection grid is also uniformly distributed in the normalized coordinate system. Assuming that the original grid has M rows and N columns (e.g., M=20, N=20), then the width of each cell is 1 / (N-1) and the height is 1 / (M-1).
[0051] Find the cell index (i,j) containing the target point, such that... , ,in , .
[0052] Get the conductivity values of the four vertices of this cell: .
[0053] Calculate the relative position of the target point within the cell: , ; First, perform linear interpolation in the horizontal direction: ; .
[0054] Then, linear interpolation is performed in the vertical direction to obtain the final value: .
[0055] For target pixels that fall outside the boundary of the product (i.e., beyond the coverage of the original detection grid), nearest neighbor extrapolation or a value of 0 is usually used (indicating no data area), and they are ignored by masking in subsequent processing.
[0056] Repeat the above interpolation process for ultrasonic velocity and geometric deviation to obtain the pixel values of the sound velocity channel, respectively. Pixel values of the size deviation channel .
[0057] After interpolation, we obtained three two-dimensional matrices, each with a size of H×W, corresponding to the conductivity field, ultrasonic velocity field, and geometric deviation field, respectively. To fully utilize the multi-channel image processing capabilities of convolutional neural networks, these matrices were merged into a three-channel pseudo-color spectrum. The specific synthesis method is as follows: Use the conductivity matrix as input to the red channel (R).
[0058] Use the ultrasonic velocity matrix as the input to the green channel (G).
[0059] Use the geometric dimension deviation matrix as input to the blue channel (B).
[0060] Because these three physical quantities have different numerical ranges and physical meanings, direct splicing may lead to some channels having an excessive impact on the model. Therefore, each channel needs to be independently normalized before synthesis, mapping its numerical range to between 0 and 255 to adapt to common image data formats. Normalization methods can include maximum / minimum value normalization or standardization based on mean and standard deviation. For example, for the conductivity channel, the maximum conductivity c of all pixels across all products is calculated. max and minimum value c min The normalized pixel value is: .
[0061] The sound velocity and deviation channels undergo similar processing. Ultimately, each pixel is composed of three 8-bit integers, forming a standard RGB image, or physical feature map.
[0062] S3. Construct a two-stream neural network model including a first processing branch and a second processing branch, wherein the first processing branch is used to process the key process parameters and the second processing branch is used to process the physical feature map.
[0063] Specifically, the design of the dual-stream deep learning prediction model follows the principle of "divide and conquer, fusion decision-making," with the model's input layer divided into two independent channels: Input Channel 1: Receives a one-dimensional process parameter vector, the dimension of which is determined by the number of process parameter types collected in step S1. In this embodiment, it is 4-dimensional, corresponding to carbonization temperature, graphitization temperature, heat treatment time, and impregnation pressure, respectively.
[0064] Input Channel 2: Receives a three-dimensional physical feature map with dimensions of 224×224×3, corresponding to a red, green, and blue three-channel image with a height of 224 pixels and a width of 224 pixels.
[0065] These two inputs flow into two parallel processing branches: The first processing branch uses a fully connected neural network to extract deep features from one-dimensional process parameters, denoted as the process feature vector F. proc .
[0066] The second processing branch uses a convolutional neural network to extract spatial distribution features from the two-dimensional physical feature map, denoted as the map feature vector F. map .
[0067] Subsequently, F proc and F map The features are concatenated at the feature fusion layer to form a joint feature vector F. fusion Finally, F fusion The data is fed into a quality prediction layer composed of fully connected layers. After layer-by-layer nonlinear transformation, the final prediction result is output, such as the probability of meeting the tensile strength standard or the hardness grade.
[0068] The design goal of the first processing branch is to deeply explore the macroscopic impact of process parameters on product quality. Its input is a normalized 4-dimensional process parameter vector X. proc =[x1,x2,x3,x4].
[0069] This branch is composed of multiple stacked fully connected layers, with the following specific structure: Input layer: Receives a 4-dimensional vector and learns without parameters.
[0070] The first hidden layer contains 128 neurons. Each neuron is fully connected to all four neurons in the input layer, and a weighted sum is calculated with a bias added. Then, a non-linearity is introduced through the Corrected Linear Unit (ReLU) activation function. To accelerate training and mitigate the vanishing gradient problem, batch normalization is applied after the activation function to normalize the data for each batch, making its mean close to 0 and its variance close to 1. To enhance the model's generalization ability and prevent overfitting, a Dropout layer is added after batch normalization, randomly discarding 50% of the neuron outputs.
[0071] The second hidden layer contains 64 neurons. Its structure is similar to that of the first hidden layer. It receives the 128-dimensional output from the first hidden layer and performs fully connected processing, ReLU activation, batch normalization, and Dropout (with a dropout rate of 50%).
[0072] The third hidden layer contains 32 neurons. It also uses fully connected layers, ReLU activation, and batch normalization, but Dropout is no longer applied to preserve all features before they enter the fusion layer.
[0073] Output layer (i.e., process feature vector F) proc The output of the 32 neurons in this layer is the extracted process feature, which condenses the high-order nonlinear information in the original process parameters.
[0074] Each layer of the first processing branch is designed to progressively abstract and refine process information, ultimately obtaining a compact 32-dimensional feature representation from the original 4-dimensional input, providing high-quality input for subsequent fusion.
[0075] The design goal of the second processing branch is to capture the spatial distribution patterns contained in the physical feature map. These patterns are often closely related to the microstructural inhomogeneities and potential defect regions within the material. Considering that the physical feature map is essentially a standard three-channel RGB image, this invention utilizes convolutional neural networks, which excel in image recognition, for feature extraction, and employs a transfer learning strategy to improve training efficiency and model performance.
[0076] The specific construction process of this branch is as follows: Input layer: Receives physical feature maps with a size of 224×224×3. This size is consistent with the input requirements of many pre-trained convolutional neural networks, facilitating the direct application of pre-trained weights.
[0077] Backbone Network: The lightweight MobileNetV2 was chosen as the backbone network. The reasons for this choice are as follows: First, MobileNetV2, through depthwise separable convolutions and inverse residual structures, significantly reduces the number of parameters and computational cost while maintaining high accuracy, making it suitable for industrial deployment. Second, this network has been pre-trained on datasets containing massive amounts of natural images (such as ImageNet), and its shallow convolutional kernels have learned to recognize common visual features such as edges, textures, and corners. These low-level features are also effective in recognizing changes in physical properties within the image.
[0078] Pre-trained weight loading and fine-tuning: Weights from a MobileNetV2 model pre-trained on ImageNet are loaded, but the top global average pooling layer and fully connected classification layer are removed. The remaining convolutional layers are used as feature extractors. During training, you can choose to freeze the weights of some shallow convolutional layers and fine-tune only the deeper layers, or you can train the entire network end-to-end. In this embodiment, considering the differences between carbon product maps and natural images, a strategy of fine-tuning the entire backbone network is adopted, allowing the model to adaptively learn features specific to the spatial patterns of the physical properties of carbon products.
[0079] Feature extraction: After layers of convolution, pooling, and nonlinear transformations in MobileNetV2, the physical feature map finally outputs a feature map of size 7×7×1280 (this is a typical value depending on the specific version of MobileNetV2). This feature map contains abstract features from different regions and scales within the map.
[0080] Global average pooling: To convert the aforementioned 3D feature maps into fixed-length feature vectors, reduce the number of parameters, and prevent overfitting, a global average pooling layer is added after the backbone network. This layer averages the 7×7 feature maps for each channel, resulting in a 1280-dimensional feature vector, i.e., the spectral feature vector F. map .
[0081] At this point, the second processing branch compresses a 224x224 map into a 1280-dimensional high-level semantic feature vector. This vector encapsulates the spatial distribution information of the physical properties of the product surface, such as whether there are regions with abnormal conductivity gradients, and whether the texture of sound velocity variation is uniform.
[0082] After obtaining the process feature vector F respectively proc (32-dimensional) and graph eigenvector F map After (1280 dimensions), the two need to be fused at the feature fusion layer to form a joint feature representation. The fusion method adopts the most direct and effective splicing operation.
[0083] Feature fusion layer: F procand F map By concatenating the features along their dimensions, we obtain a joint feature vector F with a total dimension of 32 + 1280 = 1312. fusion This vector contains both macroscopic information about the process and microscopic spatial distribution information about the physical properties, providing a comprehensive basis for the final decision.
[0084] Quality prediction layer: F fusion The input is then fed into a subsequent fully connected network for quality prediction. The network structure is as follows: The first fully connected layer contains 128 neurons, receives 1312-dimensional input, and undergoes fully connected processing, ReLU activation, and batch normalization to further fuse and refine joint features.
[0085] The second fully connected layer (output layer): The number of neurons is determined by the nature of the prediction task. If the task is binary classification (e.g., pass / fail), the output layer contains 1 neuron, using the sigmoid activation function to output a probability value between 0 and 1. If the task is multi-class classification (e.g., excellent, good, average, poor), the output layer contains 4 neurons, using the softmax activation function to output the probability distribution of each category. If the task is regression prediction (e.g., predicting a specific tensile strength value), the output layer contains 1 neuron and does not use an activation function (or uses linear activation).
[0086] Loss function: The appropriate loss function is selected during training based on the task type. Cross-entropy loss is used for classification tasks (binary cross-entropy for binary classification, and categorical cross-entropy for multi-class classification), while mean squared error loss is used for regression tasks.
[0087] After the model is built, initialization and configuration are required to prepare for training in step S4. This includes: Weight initialization: The weights of the fully connected layers in the first processing branch and the prediction layer are initialized using He (for the ReLU activation function), and the biases are initialized to 0. The convolutional layers in the second processing branch have pre-trained weights loaded and do not require random initialization.
[0088] Optimizer selection: The Adaptive Moment Estimation Optimizer (Adam) was adopted, with a learning rate set to 0.0001. The Adam optimizer can adaptively adjust the learning rate, has a fast convergence speed, and is insensitive to hyperparameters.
[0089] Learning rate scheduling: Set a learning rate decay strategy, such as multiplying the learning rate by 0.1 every 10 training rounds, to facilitate fine-tuning of the model in the later stages of training.
[0090] Batch size: Set the batch size to 32 based on the video memory size and the dataset size.
[0091] S4. Train the dual-stream deep learning prediction model end-to-end using historical production data; input the corresponding data of the carbon products to be predicted into the trained dual-stream deep learning prediction model to obtain the corresponding quality prediction results.
[0092] Specifically, the quality of the training data directly determines the upper limit of the model's performance. This step first extracts historical production records from the enterprise database. Each record contains process parameters, physical property test data, and corresponding quality labels for a carbon product. The quality labels are derived from offline laboratory testing or finished product inspection reports, such as measured tensile strength values, hardness grades, or pass / fail judgments.
[0093] To ensure the model's generalization ability and the objectivity of the evaluation, the dataset was divided according to production time sequence. Specifically, the first 80% of the production batch data was selected as the training set for updating model parameters; the next 10% was used as the validation set to monitor overfitting during training and adjust hyperparameters; and the last 10% was used as the test set, only for final performance evaluation after model training was completed. This time-based division simulates the model's future production scenarios in real-world applications, avoiding data leakage.
[0094] For each artifact in the training set, its data has been processed into two parts through steps S1 and S2: a normalized process parameter vector (4-dimensional) and a physical feature map with dimensions of 224×224×3. To enhance the robustness of the model, data augmentation techniques are applied to the physical feature map during training, including random horizontal flipping, random vertical flipping, and random rotation at small angles (within ±5°). These transformations simulate possible placement offsets of the artifacts during inspection without changing the essential distribution of physical properties, helping the model learn rotation-invariant features.
[0095] Model training is performed end-to-end, meaning the entire two-stream network is jointly optimized from input to output without staged training. The training environment is configured with the Adam optimizer, and the initial learning rate is set to 0.0001. The choice of loss function depends on the specific prediction task: for binary classification tasks (qualified / unqualified), binary cross-entropy loss is used; for multi-class tasks (quality grade), classification cross-entropy loss is used; for regression tasks (tensile strength prediction), mean squared error loss is used. This embodiment uses binary classification as an example for illustration.
[0096] The training process is performed in batches, with each batch containing 32 sets of data. For each batch, the following operations are performed: Forward propagation: 32 process parameter vectors and 32 physical feature maps are input into the first and second processing branches of the dual-stream model, respectively. The first branch passes through a three-layer fully connected network, outputting a 32-dimensional process feature vector; the second branch passes through a pre-trained MobileNetV2 backbone network and global average pooling, outputting a 1280-dimensional map feature vector. The two are concatenated to form a 1312-dimensional joint feature vector, which is then passed through a 128-neuron fully connected layer and an output layer (1 neuron, sigmoid activation) to obtain 32 predicted probability values between 0 and 1.
[0097] Loss calculation: Substitute the predicted probability and the corresponding true label (0 or 1) into the binary cross-entropy loss function to calculate the average loss of the current batch.
[0098] Backpropagation and parameter update: The backpropagation algorithm is used to calculate the gradient of the loss function with respect to all trainable parameters in the model, and then the Adam optimizer updates the parameters based on the gradient. For the pre-training part of the second branch, the learning rate is set to 0.1 times the overall learning rate, i.e., 0.00001, and updated in a fine-tuning manner to avoid destroying the pre-trained features.
[0099] After each epoch, the model performance is evaluated using a validation set. The validation set is not involved in gradient updates; it is only used to calculate metrics such as accuracy, precision, and recall. If the accuracy on the validation set no longer improves for 10 consecutive epochs, an early stopping mechanism is activated, training is halted, and the weights of the best-performing model on the validation set are saved. This effectively prevents overfitting.
[0100] During training, the curves showing the changes in training loss and validation loss are recorded to observe whether the model converges. After approximately 50 training iterations, the model's accuracy on the validation set typically stabilizes above 95%.
[0101] After training, the optimal model is deployed to the online inspection system of the production line for real-time quality prediction of newly produced carbon products. The prediction process is fully automated and synchronized with the production cycle. The specific steps are as follows: Data Acquisition and Processing: After a new product completes online physical property testing, the system automatically extracts its process parameter records (from the production control system) and physical property point data (from the testing unit) from the database. It then performs normalization, interpolation, and multi-channel synthesis operations in steps S1 and S2 to generate a 4D process parameter vector and a 224×224×3 physical feature map corresponding to the product.
[0102] Load Model: The saved optimal model weight file is invoked to restore the complete two-stream network structure, and the model is set to evaluation mode. In evaluation mode, the batch normalization layer and Dropout layer behave differently than during training, using global statistics instead of batch statistics to ensure the determinism of prediction results.
[0103] Forward propagation prediction: Input the processed process parameter vector and physical feature map into the model and perform a forward propagation calculation. The model outputs a probability value p between 0 and 1.
[0104] Result Interpretation and Judgment: The probability values are binarized according to a preset threshold (e.g., 0.7). If p ≥ 0.7, the product is judged as qualified; if p < 0.7, the product is judged as unqualified. The system automatically triggers an alarm and marks the product, notifying quality inspectors to review it or directly sorting it to the waste area. If the task is regression prediction, the predicted intensity value is directly output and compared with the standard value.
[0105] The entire prediction process takes less than 0.1 seconds on a single product, fully meeting the needs of real-time detection on the production line.
[0106] To enhance the reliability of the prediction results and provide directions for process improvement, this step integrates interpretability analysis based on gradient-weighted class activation mapping (Grad-CAM). This method can locate the regions in the physical feature map that contribute the most to the final prediction results.
[0107] The specific implementation process is as follows: Selecting the target layer: Select the last convolutional layer of MobileNetV2 in the second processing branch as the feature extraction layer because this layer contains the highest level of spatial semantic information.
[0108] Gradient calculation: Input the feature map of the product to be predicted into the model, and perform forward propagation to obtain the predicted probability p (for the qualified category). Then perform backpropagation to calculate the gradient of p with respect to the feature map output by the selected convolutional layer.
[0109] Weight generation: For the feature map of each channel, perform global average pooling on its gradient to obtain the importance weight of each channel. This weight reflects the contribution of the channel to the final prediction.
[0110] Weighted fusion: The feature map of each channel is multiplied by its corresponding weight, and then summed pixel by pixel to obtain a coarse-grained heatmap. Negative values are then filtered out using the ReLU function, retaining regions that positively contribute to prediction.
[0111] Upsampling and Superposition: The generated heatmap is upsampled via bilinear interpolation to the same size as the original input map (224×224), then superimposed on the original map in the form of pseudo-color to form the final visualization result of the saliency region.
[0112] On the prediction result interface, the system displays both the predicted probability value and the heatmap. The red or bright areas in the figure indicate that the physical characteristics (a combination of conductivity, sound velocity, and dimensional deviation) at these positions play a key role in the model's judgment of being qualified; conversely, if the product is judged to be unqualified, the highlighted areas in the heatmap indicate the main spatial locations that cause the unqualified. For example, the heatmap may show red at a certain edge of the product, indicating that abnormal physical characteristics in this area may be the root cause of the quality problem.
[0113] The second embodiment of the present application is as follows: Please refer to Figure 3 , the present invention provides a deep learning-based carbon product quality prediction system, which is applied to the deep learning-based carbon product quality prediction method provided in the first embodiment, including: The data acquisition module 101 is used to collect key process parameters and physical characteristic parameters of the carbon product during the preparation process; The map generation module 102 is used to reconstruct the physical characteristic parameters into a multi-channel physical feature map according to spatial distribution positions; The model processing module 103 is deployed with a trained dual-stream deep learning prediction model. The dual-stream deep learning prediction model includes a first processing branch for processing key process parameters and a second processing branch for processing physical feature maps, and is used to output quality prediction results.
[0114] Regarding the system in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0115] As for the system embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant parts. The above-described device embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the present application. It can be understood and implemented by those of ordinary skill in the art without creative effort.
[0116] Accordingly, this application also provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; and, when the one or more programs are executed by the one or more processors, causing the one or more processors to implement the deep learning-based carbon product quality prediction method described above. Figure 4 The diagram shown is a hardware structure diagram of any device with data processing capabilities, used in an embodiment of the present invention to provide a carbon product quality prediction system based on deep learning. (Except for...) Figure 4 In addition to the processor, memory, and network interface shown, any data processing device in the embodiment may also include other hardware depending on the actual function of the data processing device, which will not be described in detail here.
[0117] Accordingly, this application also provides a computer-readable storage medium storing computer instructions thereon, which, when executed by a processor, implement the deep learning-based carbon product quality prediction method described above. The computer-readable storage medium can be an internal storage unit of any data-processing device as described in any of the foregoing embodiments, such as a hard disk or memory. The computer-readable storage medium can also be an external storage device, such as a plug-in hard disk, smart media card (SMC), SD card, flash card, etc., equipped on the device. Furthermore, the computer-readable storage medium can include both internal storage units of any data-processing device and external storage devices. The computer-readable storage medium is used to store the computer program and other programs and data required by the data-processing device, and can also be used to temporarily store data that has been output or will be output.
[0118] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0119] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope.
Claims
1. A method for predicting the quality of carbon products based on deep learning, characterized in that, Includes the following steps: Key process parameters during the preparation of carbon products are collected, as well as physical property parameters of the carbon products without damage, to construct a multidimensional feature vector; The physical property parameters in the multidimensional feature vector are reconstructed according to their spatial distribution on the surface of the workpiece to generate a multi-channel physical feature map. A two-stream neural network model is constructed, comprising a first processing branch and a second processing branch. The first processing branch is used to process the key process parameters, and the second processing branch is used to process the physical feature map. The dual-flow deep learning prediction model is trained end-to-end using historical production data. The corresponding data of the carbon products to be predicted are input into the trained dual-flow deep learning prediction model to obtain the corresponding quality prediction results.
2. The method for predicting the quality of carbon products based on deep learning as described in claim 1, characterized in that, The key process parameters include carbonization temperature, graphitization temperature, heat treatment time, and impregnation pressure; the physical property parameters include conductivity measured by eddy current method, sound velocity measured by ultrasonic method, and geometric dimensional deviation measured by laser rangefinder.
3. The method for predicting the quality of carbon products based on deep learning as described in claim 1, characterized in that, The physical property parameters in the multidimensional feature vector are reconstructed according to their spatial distribution on the surface of the workpiece to generate a multi-channel physical feature map, including: Map the physical coordinates of each detection point to a unified normalized coordinate system; Obtain a fixed-resolution output grid and use an interpolation algorithm to calculate the values of each physical property parameter on each grid node; The conductivity, sound velocity, and geometric deviation values on the same grid node are used as pixel values for independent channels and then synthesized into a multi-channel physical feature map.
4. The method for predicting the quality of carbon products based on deep learning as described in claim 3, characterized in that, The interpolation algorithm is a bilinear interpolation method, used to calculate the parameter values on the target grid node based on the physical characteristic parameter values of the surrounding known detection points.
5. The method for predicting the quality of carbon products based on deep learning as described in claim 1, characterized in that, The first processing branch is a fully connected neural network, which is used to receive a one-dimensional vector of key process parameters and extract process parameter features through multiple fully connected layers; The second processing branch is a convolutional neural network, which is used to receive two-dimensional multi-channel physical feature maps and extract spatial distribution features through convolutional layers and pooling layers.
6. The method for predicting the quality of carbon products based on deep learning as described in claim 5, characterized in that, The second processing branch uses a lightweight convolutional neural network pre-trained on a large image dataset as the backbone network, and fine-tunes it on its own dataset through transfer learning.
7. The method for predicting the quality of carbon products based on deep learning as described in claim 1, characterized in that, The method further includes: In the feature fusion layer, the process parameter features and the spatial distribution features are concatenated to form a joint feature vector.
8. The method for predicting the quality of carbon products based on deep learning as described in claim 1, characterized in that, The dual-stream deep learning prediction model is trained end-to-end using historical production data, including: Using the actual quality inspection label of the product as a supervision signal, the parameters of the first processing branch, the second processing branch, and the network layer after feature fusion are jointly optimized through the backpropagation algorithm.
9. The method for predicting the quality of carbon products based on deep learning as described in claim 1, characterized in that, The method further includes: Gradient-weighted class activation mapping is used to process the feature map output of the last convolutional layer in the second processing branch of the convolutional neural network to generate a heatmap, which is used to highlight the physical feature map regions that contribute to the quality prediction results according to the set standard.
10. A deep learning-based carbon product quality prediction system, applied to the deep learning-based carbon product quality prediction method as described in claim 1, characterized in that, include: The data acquisition module is used to collect key process parameters and physical property parameters of carbon products during the preparation process; The map generation module is used to reconstruct the physical characteristic parameters into a multi-channel physical feature map according to their spatial distribution. The model processing module is equipped with a pre-trained dual-stream deep learning prediction model. The dual-stream deep learning prediction model includes a first processing branch for processing key process parameters and a second processing branch for processing physical feature maps, and is used to output quality prediction results.
