A PCB inner layer expansion and shrinkage compensation prediction method based on lightgbm algorithm

Through the PCB inner layer expansion and contraction compensation prediction method based on the lightgbm algorithm, combined with the MES system, the problem of insufficient prediction ability of the PCB inner layer expansion and contraction compensation in the existing technology is solved, achieving higher prediction accuracy and precision, and reducing the cost The risk of quality scrap and production costs is eliminated, and the inner layer expansion and contraction compensation is automated.

CN116187556BActive Publication Date: 2024-10-29江西景旺精密电路有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310137281.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-20
Publication Date
2024-10-29
Estimated Expiration
2043-02-20

AI Technical Summary

Technical Problem

The existing technology has a weak ability to compensate for the expansion and contraction of the inner layers of PCBs with 6 layers and above, making automation difficult to achieve. Moreover, a high proportion of the average expansion and contraction data predicted by the regression model is above ±150um, which increases quality scrap and production costs. risk.

Method used

Using the PCB inner layer expansion and contraction compensation prediction method based on the lightgbm algorithm, through feature collection, data preprocessing, optimal data set division, model training and storage, combined with the MES system, automatic prediction of expansion and contraction compensation is achieved.

Benefits of technology

The prediction accuracy and accuracy of the model have been improved, the prediction yield has been increased from 75% to more than 90%, the proportion of the average expansion and contraction deviation data from more than ±150um has been reduced to less than 1%, and the inner layer expansion and contraction compensation has been realized. automation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116187556B_ABST
    Figure CN116187556B_ABST
Patent Text Reader

Abstract

The present invention discloses a PCB inner layer expansion and shrinkage compensation prediction method based on the LightGBM algorithm, the method comprising S1, feature collection: collecting historical production data; S2, preprocessing the collected data; S3, optimal data set division seed: dividing the preprocessed data set into a training set and a test set; S4, determining the best model; S5, model storage; S6, calling the model to output a predicted value; S7, submitting the predicted value to the MES system application; S8, training the model algorithm, outputting the best division seed a1, parameter value set b1, model c1, and applying the c1 model to predict the expansion and shrinkage compensation of the next batch. The present invention improves the accuracy and precision of model prediction, and integrates the LightGBM algorithm with the MES system to realize the automation of the inner layer expansion and shrinkage compensation, avoiding the deficiency of manually providing the expansion and shrinkage compensation coefficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of PCB processing, and in particular to a method for predicting PCB inner layer expansion and contraction compensation based on a LightGBM algorithm. Background Art

[0002] At present, the industry uses quantitative models to predict the expansion and shrinkage compensation coefficient of the inner layer of PCB, and the main model is the multivariate linear regression model. The prediction ability of expansion and shrinkage compensation for 4-layer boards is relatively good, and the predicted yield can reach more than 90%. However, the prediction ability of expansion and shrinkage compensation for 6 layers and above is relatively weak, and the comprehensive average of the predicted yield is less than 75%, and the automation of expansion and shrinkage compensation prediction cannot be achieved. In addition, the average of the expansion and shrinkage data produced by the regression model prediction value is more than 10% above ±150um. For products with a small number of SETs in the PCB panel design, it is easy to produce quality scrap and increase the risk of production costs, reducing the economic benefits of the enterprise. Summary of the invention

[0003] The problem to be solved by the present invention is to provide a PCB inner layer expansion and shrinkage compensation prediction method based on the lightgbm algorithm, improve the model prediction accuracy and precision, and integrate the lightgbm algorithm with the MES system to realize the automation of inner layer expansion and shrinkage compensation and avoid the shortcomings of manually providing expansion and shrinkage compensation coefficients.

[0004] The technical solution provided by the present invention to solve the above problems is: a PCB inner layer expansion and contraction compensation prediction method based on the lightgbm algorithm, the method comprising:

[0005] S1. Feature collection: collect historical production data;

[0006] S2, preprocessing the collected data;

[0007] S3, optimal data set partitioning seed: divide the preprocessed data set into training set and test set;

[0008] S4. Determine the best model: Call the GridSearch method to perform K-fold division on the training set, with K-1 parts as the training set and 1 part as the validation set. Set a certain interval value for the algorithm parameters, and after K cycles of training, output the algorithm parameter value set b with the smallest rmse mean of the validation set, and determine the algorithm model of parameter value set b as the best model c.

[0009] S5, model storage;

[0010] S6, calling the model to output the predicted value;

[0011] S7. Submit the predicted value to the MES system application;

[0012] S8. Perform model algorithm training, output the best partition seed a1, parameter value set b1, and model c1, and apply the c1 model to predict the next batch of expansion and shrinkage compensation.

[0013] Preferably, the historical production data is historical data for the past 180 days.

[0014] Preferably, the historical production data includes compensation coefficients, drill target expansion and contraction data, product stacking design, and plate characteristics.

[0015] Preferably, the product stacking design and plate characteristics include Tg value, plate thickness, plate copper thickness, pressing thickness, pp number, residual copper rate, line width, and line spacing.

[0016] Preferably, the data preprocessing in S2 includes compensation adjustment value calculation, data conversion and missing value completion.

[0017] Preferably, the optimal data set partitioning seed in S3 is specifically to set the data set partitioning seed interval, output the partitioning seed a with the minimum RMSE value of the test set within the interval, and use the seed a to divide the preprocessed data set into a training set and a test set.

[0018] Preferably, the calling of the model output prediction value in S6 is specifically to capture the corresponding feature data set required by the model when the next batch of products is cut and unloaded from the machine, and call the model c to output the expansion and contraction compensation prediction value d.

[0019] Preferably, the S7 specifically submits the predicted value d to the MI parameter field through the MES system for updating and production application.

[0020] Preferably, the model algorithm training cycle in S8 is set to one week.

[0021] Compared with the prior art, the advantages of the present invention are:

[0022] 1. Improve the prediction accuracy of the model. The prediction yield of the multivariate regression linear model is 75%. Applying the lightgbm algorithm to build the model can increase the prediction yield to more than 90%, a 15% increase compared to the previous model.

[0023] 2. Improve the accuracy of model prediction. The average value of the expansion and contraction tolerance data of the multivariate regression linear model is above ±150um, accounting for more than 10%. Applying the lightgbm algorithm to establish the model can reduce this proportion to less than 1%;

[0024] 3. By improving the accuracy and precision of model prediction and integrating the LightGBM algorithm with the MES system, the automation of internal expansion and shrinkage compensation can be achieved, avoiding the shortcomings of manually providing expansion and shrinkage compensation coefficients. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings described herein are used to provide further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0026] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0027] The following will describe the implementation methods of the present invention in detail with reference to the accompanying drawings and embodiments, so that the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.

[0028] In the description of the present invention, it should be noted that directional words, such as the terms "center", "lateral", "longitudinal", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", etc., indicating directions and positional relationships are based on the directions or positional relationships shown in the accompanying drawings, which are only for the convenience of narrating the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and cannot be understood as limiting the specific scope of protection of the present invention.

[0029] In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features. Therefore, the definition of "first" and "second" features can explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "several" is two or more, unless otherwise clearly and specifically defined.

[0030] In the present invention, unless otherwise specified and limited, the terms "assemble", "connect", and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can also be a mechanical connection; it can be directly connected, or it can be connected through an intermediate medium, or the two elements can be internally connected. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0031] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0032] It should also be understood that the terms used in this description of the embodiments of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the embodiments of the present invention. As used in the description of the embodiments of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms of "a", "an" and "the" are intended to include plural forms.

[0033] Example 1

[0034] The specific embodiment of the present invention is shown in the accompanying drawings. A PCB inner layer expansion and shrinkage compensation prediction method based on the lightgbm algorithm specifically includes the following steps:

[0035] 1. Export the recent records and related information of the products produced by the pressing process from the database. The time interval can be defined according to the amount of product data. It is better to keep the data volume above 1000+;

[0036] 2. The relevant information mainly includes the expansion and contraction compensation coefficient of the product during the inner layer production, the expansion and contraction data of the pressed drill target, the product stacking design and plate material and other characteristic information;

[0037] 3. Design an algorithm for adjusting the expansion and contraction compensation value based on the product expansion and contraction data interval type;

[0038] 4. Divide the preprocessed data set into training set and test set according to a certain ratio;

[0039] 5. Train the model on the training set by calling the lightgbm algorithm, use the test set as the evaluation object, and output the model evaluation index RMSE;

[0040] 6. To prevent overfitting, the training set is further divided into sub-training sets and validation sets by calling the GridSearch method, the optimal model parameters are output, and the optimal model is obtained;

[0041] 7. Save the best model. When the next batch of products is cut and shipped off the machine, retrieve the corresponding feature information of the products, output the predicted value of expansion and contraction compensation, and automatically submit the updated MI parameters through the MES system;

[0042] 8. Set the model update training cycle to one week, effectively use the latest data to output the best model with the best parameters, and stabilize the model prediction yield.

[0043] Among them, it should be noted that the present invention can reduce the proportion of expansion and shrinkage defects, the standard of expansion and shrinkage defects is that the PNL expansion and shrinkage data exceeds ±100um; control the range of expansion and shrinkage defect out-of-tolerance data, and reduce the proportion of the mean of out-of-tolerance data above ±150um; integrate the lightgbm model algorithm with the MES system to realize the automation of inner layer expansion and shrinkage compensation.

[0044] Example 2

[0045] This embodiment is a further explanation of Embodiment 1, a PCB inner layer expansion and shrinkage compensation prediction method based on the lightgbm algorithm, specifically comprising the following steps:

[0046] 1. Collect the production history data of the past 180 days, including compensation coefficient, drilling target expansion and contraction data, product stacking design and plate characteristics: Tg value, plate thickness, plate copper thickness, pressing thickness, pp number, residual copper rate, line width, line spacing and other 30 fields of information;

[0047] 2. Preprocess the collected data: calculate the compensation adjustment value according to the expansion and contraction data interval using the corresponding algorithm, and remove duplicate records, field missing records, and abnormal value records;

[0048] 3. Set the seed interval for data set partitioning, output the partition seed a with the minimum RMSE value of the test set within the interval, and use seed a to divide the preprocessed data set into training set and test set;

[0049] 4. Call the GridSearch method to perform K-fold division on the training set, with K-1 parts as the training set and 1 part as the validation set. Set a certain interval value for the algorithm parameters, and after K cycles of training, output the algorithm parameter value set b with the smallest rmse mean of the validation set, and determine the algorithm model of parameter value set b as the optimal model c;

[0050] 45. Store model c. When the next batch of products is cut and unloaded from the machine, grab the corresponding feature data set required by the model and call model c to output the expansion and contraction compensation prediction value d.

[0051] 6. Submit the predicted value d to the MI parameter column through the MES system for update and production application;

[0052] 7. Set the model algorithm training cycle to one week, use the latest 180 days of data to train the model algorithm, output the best partition seed a1, parameter value set b1, model c1, and use the c1 model to predict the next batch of expansion and shrinkage compensation.

[0053] The above description is only for the best embodiment of the present invention, but it should not be understood as limiting the claims. The present invention is not limited to the above embodiments, and its specific structure is allowed to be changed. All changes made within the scope of protection of the independent claims of the present invention are within the scope of protection of the present invention.

Claims

1. A PCB inner layer expansion and shrinkage compensation prediction method based on the lightgbm algorithm, Features: The method comprises S1. Feature collection: collect historical production data; S2, preprocessing the collected data; S3, optimal data set partitioning seed: divide the preprocessed data set into training set and test set; S4. Determine the best model: Call the GridSearch method to perform K-fold division on the training set, with K-1 parts as the training set and 1 part as the validation set. Set a certain interval value for the algorithm parameters, and after K cycles of training, output the algorithm parameter value set b with the smallest rmse mean of the validation set, and determine the algorithm model of parameter value set b as the best model c. S5, model storage; S6, calling the model to output the predicted value; S7. Submit the predicted value to the MES system application; S8, perform model algorithm training, output the best partition seed a1, parameter value set b1, model c1, and apply the c1 model to predict the next batch of expansion and contraction compensation; The historical production data is the historical data of the past 180 days; Historical production data includes compensation coefficients, drill target expansion and contraction data, product stacking design, and plate characteristics; Product stacking design and plate characteristics include Tg value, plate thickness, plate copper thickness, pressing thickness, pp number, residual copper rate, line width, and line spacing; The data preprocessing in S2 includes compensation adjustment value calculation, data conversion and missing value completion; The optimal dataset partitioning seed in S3 is specifically to set a dataset partitioning seed interval, output a partitioning seed a with the minimum RMSE value of the test set within the interval, and apply the seed a to divide the preprocessed dataset into a training set and a test set; The calling model output prediction value in S6 specifically involves grabbing the corresponding feature data set required by the model when the next batch of products is cut and unloaded from the machine, and calling the model c to output the expansion and contraction compensation prediction value d; The S7 specifically includes submitting the predicted value d to the MI parameter field through the MES system for updating and production application; The model algorithm training cycle in S8 is set to one week.

Citation Information

Patent Citations

  • PCB order combining and typesetting prediction method and system based on machine learning

    CN111242363A

  • Method and system for controlling expansion and shrinkage ratio of PCB (Printed Circuit Board) and storable medium

    CN115204092A