Photovoltaic cell film thickness prediction method based on improved deep learning
By improving the deep learning method and using HSL image data and Tanh function to accelerate training in the BP neural network, it solves the problems of high calculation pressure and inaccurate prediction of the traditional BP neural network in film thickness prediction, and achieves faster and more accurate film thickness. prediction effect.
Patent Information
- Application Number
- CN202410933865.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-07-12
AI Technical Summary
The traditional BP neural network has high computational pressure in photovoltaic cell film thickness prediction, and the Sigmoid function used has the vanishing gradient problem and high computational cost, resulting in inaccurate predictions and low efficiency.
An improved deep learning method is adopted to collect image information through a camera device, convert it into HSL image data, select the data with the strongest correlation with film thickness for processing, and use the Tanh function and momentum term to accelerate training in the BP neural network to form a color depth value. and film thickness prediction models, reducing computational stress and improving prediction accuracy.
It achieves faster and more accurate film thickness prediction, reduces calculation pressure, improves model reliability and prediction efficiency, and controls film thickness errors within the allowable range.
Smart Images

Figure CN118537332A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of photovoltaic cells, and in particular to a method for predicting the film thickness of photovoltaic cells based on improved deep learning. Background Art
[0002] Photovoltaic cells are the basic components of solar photovoltaic power generation, and their performance directly affects the efficiency and stability of solar cells. In order to improve the light absorption capacity and current output efficiency of the cells, it is often necessary to coat the surface of the cells, and the thickness of the cell coating will have a serious impact on the power generation efficiency of the cells.
[0003] The current mainstream in the market is the TopCon photovoltaic cell production process, which prepares an ultra-thin tunneling oxide layer and a highly doped polysilicon thin layer on the back of the cell. The two together form a passivation contact structure, which provides good surface passivation for the back of the silicon wafer. The ultra-thin oxide layer can allow multiple electrons to tunnel into the polysilicon layer while blocking the recombination of minority carriers and holes. Then, electrons are transmitted laterally in the polysilicon layer and collected by the metal, thereby greatly reducing the metal contact recombination current and improving the open circuit voltage and short-circuit current of the battery.
[0004] PECVD (plasma enhanced chemical vapor deposition) is one of the most important processes in the coating process of photovoltaic cell production. The coating quality is also an important indicator of the efficiency of a company's solar cell. The quality and performance of cell coating are affected by many factors, mainly including coating materials, coating process parameters and cell surface characteristics. Among them, the control of coating process parameters is the key to ensuring the quality and performance of the film.
[0005] A patent document with Chinese patent application number 202310186566.7 and announcement date 2023.06.30 discloses a method for manufacturing photovoltaic modules, which uses ion bombardment of a thin film substrate to clean surface dirt and water vapor, selects different ion bombardment energies in different regions according to different roughness, adopts magnetron coating when coating the Mo film, and uses a mobile sputtering target. When the mobile target moves to different regions, the sputtering target height and the sputtering power of the sputtering target are adjusted according to the roughness corresponding to the different regions, and the adjustment parameters are corrected to ensure the uniformity and consistency of the coating, avoid uneven coating due to roughness problems, and obtain better coating uniformity and consistency. The absorption layer is deposited by evaporation, and the temperature is adjusted by thickness changes to ensure that the temperature is in an optimal range, and a better film accumulation rate is obtained to avoid loose porosity, thereby improving the transmittance and the energy conversion efficiency of the finished product.
[0006] For film thickness prediction, it is generally sufficient to simply obtain film thickness information through a camera. However, there are many prediction models in the prior art, such as BP neural network. BP neural network has obvious advantages in dealing with such data prediction problems. Its outstanding advantages are strong nonlinear mapping capabilities and flexible network structure. The number of intermediate layers and the number of neurons in each layer of the network can be set according to the model requirements, and its performance varies with the difference in structure.
[0007] However, the traditional BP neural network generally predicts the input image data to obtain the output. If a large amount of input image data is input into the BP neural network, this will lead to a large computational pressure in the entire prediction process. If RGB image data is used as input, it is only the input average value, which is not easy to reflect the true situation of the entire image data, and thus the actual film thickness cannot be reliably predicted. In addition, the Sigmoid function is generally used in the BP neural network, but due to the composition of the function, it has a gradient vanishing problem, that is, gradient saturation, and due to the existence of the xth power term of e in the function, the calculation cost of the function is very high, which increases the operational pressure of the model. Summary of the invention
[0008] The purpose of the present invention is to propose a photovoltaic cell film thickness prediction method based on improved deep learning, which has a fast calculation speed and thus the measured film thickness is more accurate.
[0009] To achieve the above object, the present invention provides a photovoltaic cell film thickness prediction method based on improved deep learning, the specific steps of which include: (1) The image information and film thickness value of the photovoltaic cell after coating are collected by a camera device, and the image information includes image data of RGB three-channel grayscale values.
[0010] (2) Convert RGB image data to HSL image data.
[0011] (3) Determine the correlation R based on the HSL image data and the film thickness value, and determine the image data with the strongest correlation with the actual coating thickness based on the correlation R, and determine the color depth value Y based on the H value and L value in the HSL image data.
[0012] (4) Normalize the image data.
[0013] (5) A color depth value and film thickness prediction model is formed based on the BP neural network.
[0014] (51) The Tanh function is introduced into the hidden layer of the BP neural network.
[0015] (52) Add a momentum term to the weight relationship between the hidden layer and the output layer of the BP neural network.
[0016] (53) A film thickness prediction model is formed.
[0017] (6) The coating thickness of the photovoltaic cell is predicted by the film thickness prediction model and the color depth value Y, and the error between the predicted film thickness and the actual film thickness is determined to be within the allowable range.
[0018] The above method extracts the image information of the photovoltaic cell after coating through the camera device, extracts the image data from the image information, processes the image data, converts the obtained RGB image data into HSL image data, selects the image data with the greatest correlation with the film thickness as the basic data of the HSL image data for image processing, can further reduce the amount of image data, improve the running speed, and generate the color depth value Y representing the image parameters of the photovoltaic cell through the HSL image data. Since the HSL image data is the embodiment of the image in the color space, its three values can be processed separately and independently of each other, so that the basic image data is free from external influences, and the relationship between the HSL image data and the actual film thickness is The correlation is the best, but the span and gap between the HSL image data are large, so a color depth value is formed between the two data H and L, and then the color depth value is used as the input value of the neural network to determine the film thickness, so that the data for determining the film thickness is more reliable. When the image data is predicted by the neural network, the Tanh function is first used as the activation function of the BP neural network to introduce nonlinearity into the model. Since the gradient of the Tanh function is steeper, the function converges faster, which improves the accuracy of film thickness prediction, and introduces a momentum term in the weight relationship in the BP neural network to accelerate the convergence of the algorithm to jump out of the local minimum. When the network solves the minimum value of the function, the reliability and speed of the solution are further improved.
[0019] Furthermore, step (2) specifically includes the conversion formula between RGB and HSL as follows: ; in .
[0020] Range of values: .
[0021] Among them, H is hue, S is saturation, and L is brightness; R, G, and B represent the grayscale values on the red, green, and blue channels, respectively.
[0022] The above settings obtain the HSL image data corresponding to the RGB image data through the conversion relationship, so that it is convenient to obtain the Y value through the HSL image data later, so that the actual film thickness can be better predicted.
[0023] Furthermore, the calculation formula of the correlation R is: .
[0024] in: .
[0025] x is the image data input value, y is the film thickness value, is the average value of the image data, is the average value of the film thickness, the value range is: σ x is the variance of the image data, σ y is the variance of the image data, x i is the i-th image data, y i is the film thickness value corresponding to the i-th image data.
[0026] The above settings calculate the correlation to confirm the image data with the best correlation with the actual film thickness, thereby reducing the amount of training sample data and alleviating the calculation pressure of the system.
[0027] Furthermore, the calculation formula of the color depth value Y is: Y=A*H+(1-A)*L.
[0028] Among them, A is the color depth value coefficient, and H and L are the HSL image data with the best correlation with the actual film thickness in the image data.
[0029] The above settings determine the color depth value by determining the color depth parameter, so that the model obtained by training the color depth value and the actual film thickness avoids the interference of H and L on the neural network, and also reduces the data volume of the training samples and alleviates the calculation pressure of the system.
[0030] Furthermore, step (52) specifically includes adding momentum terms to the hidden layer and output layer of the BP neural network, and its expression is: .
[0031] Among them, α is the dynamic coefficient, and its value range is: 0<α<1.
[0032] The above settings can reduce the oscillation trend and improve the stability of the training process by adding the momentum term, that is, when the parameters are updated, the previous direction trend can be maintained.
[0033] Furthermore, the Tanh function in step (51) is: .
[0034] Where x is the input value.
[0035] With the above settings, the negative power of x is introduced into the Tanh function, thus avoiding the problem of vanishing gradient of the entire function and high computational cost.
[0036] Furthermore, step (4) includes: .
[0037] Where X norm is the normalized image data, X is the original image data size, X max , X min are the maximum and minimum values of the original image data.
[0038] With the above settings, after the data is normalized, the dimensional expression is converted into a dimensionless expression, which makes it easier for the color depth value and film thickness, two indicators with different units and different magnitudes, to be compared and weighted, and the dimensional data set is converted into a scalar, so as to simplify the calculation and facilitate the calculation of the neural network.
[0039] Furthermore, step (53) includes: using the LM regression algorithm as a training model of the BP neural network to finally obtain a film thickness prediction model.
[0040] In the above settings, the LM algorithm is selected as the training function of the network to improve the solution speed and convergence accuracy of the function. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is the work flow chart of the present invention.
[0042] Figure 2 It is a grayscale value display diagram of the image data of the present invention.
[0043] Figure 3 It is a flow chart of the BP neural network of the present invention.
[0044] Figure 4 It is a schematic diagram of the BP neural network architecture of the present invention.
[0045] Figure 5 It is a schematic diagram of the predicted average error curve of the present invention.
[0046] Figure 6 It is a curve diagram of the actual film thickness of the present invention, the film thickness predicted by the model without normalization processing, and the film thickness predicted by the model with normalization processing.
[0047] Figure 7 It is a schematic diagram of the predicted film thickness of the present invention. DETAILED DESCRIPTION
[0048] The present invention is further described in detail below in conjunction with specific implementation modes.
[0049] like Figure 1 As shown, the present invention provides a photovoltaic cell film thickness prediction method based on improved deep learning, and the specific steps include: (1) Collecting image information and film thickness value of the photovoltaic cell after coating by a camera device, wherein the image information includes image data of RGB three-channel grayscale values; (2) Convert RGB image data into HSL image data; (3) Determine the correlation R based on the HSL image data and the film thickness value, and determine the image data with the strongest correlation with the actual coating thickness based on the correlation R, and determine the color depth value Y value based on the H value and L value in the HSL image data; the image data with the strongest correlation can be set to the top 200 sets of image data with the strongest correlation, or can be set to other sets of image data; (4) Normalize the image data; (5) Forming a color depth value and film thickness prediction model based on BP neural network; (51) Introducing Tanh function into the hidden layer of BP neural network; (52) Add momentum term to the weight relationship between the hidden layer and the output layer of the BP neural network; (53) Forming a film thickness prediction model; (6) The coating thickness of the photovoltaic cell is predicted by the film thickness prediction model and the color depth value Y, and the error between the predicted film thickness and the actual film thickness is determined to be within the allowable range.
[0050] Wherein, step (2) specifically includes the conversion formula between the RGB image data and the HSL image data as follows: (1).
[0051] (2), wherein M1, M2 and I1 in formula (2) are obtained by formula (1).
[0052] Range of values: (3).
[0053] Among them, H is hue, S is saturation, and L is brightness; R, G, and B represent the color values on the red, green, and blue channels respectively.
[0054] The HSL image data corresponding to the RGB image data is obtained through the conversion relationship, so that the actual film thickness can be better predicted.
[0055] In this embodiment, the original image information of the photovoltaic cell sheet and the RGB image data and the HSL image data are as follows: Figure 2As shown, the image information also includes the outline features of the photovoltaic cell. The outline information of the photovoltaic cell can be generated by marking the outer dimensions of the cell on the photovoltaic cell to generate cross-shaped outline information, and then the acquisition area is calibrated to obtain the RGB image data of the area. The RGB image data is the average value of RGB grayscale.
[0056] The calculation formula of the correlation R is: (4).
[0057] in: (5).
[0058] x is the image data input value, y is the film thickness value, is the average value of the image data, is the average value of the film thickness, the value range is: σ x is the variance of the image data, σ y is the variance of the image data, x i is the i-th image data, y i is the film thickness value corresponding to the i-th image data.
[0059] In this embodiment, the correlation is calculated to identify the image data with the best correlation with the actual film thickness, thereby reducing the amount of training sample data and alleviating the calculation pressure of the system.
[0060] In this embodiment, the correlation between the actual film thickness and the image data is obtained through experiments and is shown in Table 1 below.
[0061]
[0062] Table 1 From the data in the table, we can see that H (hue) and L (lightness) have the best correlation with the actual film thickness. Due to the large span and gap between the two values, it is obviously unwise to use them as input for deep learning training at the same time, and models that interfere with each other will be generated.
[0063] H and L are independent values, so the color depth value Y is designed to construct a functional relationship between the two: (6).
[0064] Among them, A is the color depth value coefficient, and H and L are the image data with the best correlation with the actual film thickness.
[0065] The model obtained by training the color depth value and the actual film thickness avoids the interference of H and L on the neural network, while also reducing the amount of data for training samples and alleviating the computational pressure of the system.
[0066] In this embodiment, if Figure 3 As shown, the BP neural network (Back Propagation) is a back propagation neural network, which can learn and store a large number of input-output pattern mapping relationships without judging the functional formula of such mapping relationships. Its characteristics are: data is forward propagated, while errors are backward propagated.
[0067] Each neuron receives input signals from other neurons, each signal is transmitted through a connection with a weight w, and then the total input value is compared with the neuron's threshold b, and the final output is obtained through an activation function.
[0068] In a BP neural network, a single sample has m inputs and n outputs. There are usually several hidden layers (h) between the input layer (i) and the output layer (o). Usually the number of nodes in the input layer and the output layer is fixed, while the number of nodes in the hidden layer has a greater impact on the performance of the neural network. The number of nodes in the hidden layer h can be determined according to the empirical formula: (7).
[0069] Where g is a tuning constant between 1 and 10.
[0070] Now let the weight between node i and node j be w ij , the threshold of node j is b j , the output value of each node is X j .
[0071] The activation function f is often used as the Sigmoid (logistic) function, also known as the output value S of the S-shaped growth curve. j , the function works better when used in classifiers. Forward propagation, the output value of each node is realized based on the output values of all nodes in the upper layer, the weights of the current node and all nodes in the upper layer, the threshold of the current node, and the activation function.
[0072] (8).
[0073] (9).
[0074] In the formula, X i is the i-th image data, b j is the threshold of node j.
[0075] By continuously adjusting the weights and thresholds of the network along the steepest descent of the relative sum of squared errors, the weights and thresholds between the input layer and the hidden layer are calculated as follows according to the gradient descent method: (10).
[0076] (11).
[0077] Where E(w,b) is the total error value generated by the weight and threshold, is the total error between the weight and threshold of the kth hidden layer under the i-th input value, is the first derivative of the error value between the i-th input layer and the k-th hidden layer, is the preset ratio between the input layer and the hidden layer.
[0078] In order to improve the training speed of the network, the weight adjustment vector expression between the hidden layer and the output layer including the momentum term is obtained as follows: (17).
[0079] In the formula, Δ is the difference between the weight at time t and the weight at time t-1, and a is the preset weight parameter.
[0080] As can be seen from the above formula, adding the momentum term means taking a part of the previous weight adjustment and adding it to the current weight adjustment. It is called the momentum coefficient and takes a value of 0< <1. The physical meaning of the momentum term is to reflect the previously accumulated experience and to act as a damper at time t. When the weight surface drops suddenly, the momentum term can reduce the oscillation trend and improve the stability of the training process, that is, when the parameters are updated, the previous direction trend can be maintained.
[0081] By adding the momentum term, the oscillation trend can be reduced and the stability of the training process can be improved, that is, when the parameters are updated, the previous direction trend can be maintained.
[0082] When adjusting weights, the standard BP algorithm only adjusts the gradient direction of the error at time t, without considering the gradient direction before time t, which can easily cause oscillation and slow convergence in the training process. The error between the actual output and the expected output of the system is reduced by changing the connection weights between neurons, which is the error correction learning rule. The neural network architecture is as follows Figure 3 shown.
[0083] This embodiment is an improved algorithm for the problems that the traditional BP neural network has many defects: there are many minimum values in the network, which is easy to fall into local minimum values; too many training times will reduce learning efficiency and slow convergence speed.
[0084] In order to solve the problem of slow solution speed and slow convergence speed of the gradient descent method in the traditional BP algorithm, it was decided to normalize the data.
[0085] Normalization is essentially a linear transformation. Linear transformation has many good properties, such as not changing the numerical order of the original data. These properties determine that changing the data will not cause the data to become "invalid", but will improve the performance of the data.
[0086] When normalizing image data, it is more inclined to map the result to [-1,1]. The conversion function is as follows: (15).
[0087] The above formula is to scale the image data in equal proportion. norm is the normalized data, X is the original data size, X max , X min They are the maximum and minimum values of the original data respectively. After data normalization, the dimensional expression is transformed into a dimensionless expression, which makes it easier for the color depth value Y and film thickness T, two indicators of different units and different magnitudes, to be compared and weighted. Transforming the dimensional data set into a scalar can also simplify the calculation and facilitate the operation of the neural network.
[0088] Since the relationship between the color depth value of the image data and the actual film thickness is not a linear relationship, it is necessary to introduce nonlinearity into the network to learn complex patterns, mainly in the hidden layer of the network. The choice of activation function to use in the output layer of the neural network depends on the type of problem we want to solve. For regression prediction problems, a linear function can be used.
[0089] Film thickness prediction belongs to the problem of data prediction regression, so the Tanh function is selected as the activation function of the hidden layer of the BP neural network to introduce nonlinearity into the model.
[0090] (17).
[0091] Where x is the input value.
[0092] Although the Tanh function still has the problems of gradient vanishing and high computational cost, compared with the Sigmoid function, the Tanh function is centered at zero, making the optimization process easier, and the gradient of the Tanh function is steeper, and the function converges faster.
[0093] In the improved deep learning, the LM algorithm and the Gauss-Newton method are used as training functions of the BP neural network. The damping factor is added to the LM algorithm, which can achieve better convergence and stability under different conditions. The Gauss-Newton method approaches the optimal solution by utilizing the first-order derivative and second-order derivative information of the objective function. The specific working principles of the LM algorithm and the Gauss-Newton method are existing technologies and will not be repeated here.
[0094] When the damping parameter is larger, it is closer to the gradient descent method, and the convergence effect is very good when it is far away from the minimum value; when the damping parameter is smaller, it is closer to Gauss-Newton, and when it is close to the target, a quadratic convergence speed can be obtained, which can converge to the minimum value quickly.
[0095] In this embodiment, the algorithm is experimentally verified through experimental data, and the specific process is as follows: The camera device includes a camera. The camera is a 20-megapixel high-speed industrial camera of an array AOI device, which is used to shoot photovoltaic cell samples and analyze image data. The film thickness data corresponding to each cell is measured by an ellipsometer, with a total of 2,185 sets of sample data sets.
[0096] Deep learning training parameters: The original size of the photovoltaic cell is 1024×1024, and the 2185 sets of data are divided into training set, test set and validation set in a ratio of 7:1.5:1.5. Since training cannot be carried out endlessly, certain termination conditions must be designed: 1. Set the maximum number of iterations, and stop training when the data set is iterated to the specified number of times; 2. Calculate the prediction accuracy or error of the training set in the network, and stop training when a certain threshold value is reached.
[0097] The specific model training parameters are shown in Table 2.
[0098]
[0099] Table 2 The experiment sets the target error (Performance) to 0.0000100001 and the check point (ValidationValidation checkschecks) to 110000. Its function is to check the network model in training. When it is detected that the training error is less than the target error for 110000 times, it proves that the network has converged to the minimum value, the training ends, and the model is saved.
[0100] Deep learning training uses color depth value as input, and the color depth value coefficient a is used as the weight of H and L, and its value ranges from 0.1 to 0.99. Since H and L of cells produced by different processes or different production lines vary greatly, the color depth value coefficient should be calculated separately according to different production lines or batches of cells. For the two thousand sets of experimental data, the color depth value coefficient is used with a gradient of 0.1 and the color depth value calculated from the two thousand sets of H and L in the experiment is used for deep learning training with the actual film thickness. The obtained lines are used for 63 sets of film thickness prediction, and the error between the actual film thickness and the predicted film thickness is obtained (unit: nmnm).
[0101] The prediction error of the color depth value training model is shown in Table 3 below.
[0102]
[0103] Table 3 like Figure 5 As shown in the figure, for the data set of this experiment, when the color depth coefficient is 0.4, the average error of the trained model in predicting film thickness is the smallest, which is only 1.2370nm. Subsequent experiments are all carried out based on this color depth value.
[0104] The model obtained after deep learning training of 2185 sets of sample data was used to predict the film thickness of 63 solar cells on the on-site production line. The PECVD coating of photovoltaic cells on this production line requires the film thickness to be between 64-78nm. Cells with film thickness outside this range will be considered unqualified.
[0105] Before deep learning training, the data was normalized (Normalization), and the improvement of the model is shown in Table 4. Compared with before normalization, the number of iterations (epochsepochs) was reduced by 5 times, the convergence speed was improved, the accuracy of the model in predicting film thickness was improved by 7.7%, and the average error was reduced by 0.5795nm. Figure 6 The graphs shown are the actual film thickness 1, the film thickness predicted by the model without normalization 2, and the film thickness predicted by the model with normalization 3, which can more clearly show the difference between the two models. Normalization converts the dimensioned data set into a scalar, which simplifies the calculation and improves the performance of the model.
[0106]
[0107] Table 4 The improvement of the deep learning neural network model is mainly in the BP back propagation algorithm. In view of the slow convergence speed of the Sigmoid function of the traditional BP algorithm, the difficult optimization process, and the low efficiency of the gradient descent algorithm as a training function and the easy falling into the local minimum, Tanh is chosen as the activation function of the network to introduce nonlinearity into the model, the LM algorithm is used as the training function of the network, and the momentum term is added in the weight adjustment step.
[0108] The improvement of the deep learning neural network model is mainly in the BP back propagation algorithm. In view of the slow convergence speed of the Sigmoid function of the traditional BP algorithm, the difficulty in the optimization process, and the low efficiency and easy fall into the local minimum of the gradient descent algorithm as the training function, Tanh is selected as the activation function of the network to introduce nonlinearity to the model, and the LM algorithm is used as the training function of the network. The effect of the final model on film thickness prediction is shown in Table 5 below. The Tanh activation function makes the optimization process easier and improves the convergence speed of the function. Compared with the model before the improvement, the number of iterations is reduced by 8 times; the LM algorithm is used as the training function of the network, which combines the advantages of the gradient descent method and the Gauss-Newton method, can adaptively adjust the convergence speed, improve the stability of the training process, and enable the model to complete the regression task more accurately. The accuracy of film thickness prediction is improved by 129%, and the average error is reduced by 1.558nm; the added momentum term can reduce the oscillation trend during deep learning training, improve the stability of the model prediction process, and control the maximum error of film thickness prediction within 4nm. The predicted film thickness error is as follows Figure 7 As shown, the figure shows the error between the predicted film thickness and the actual film thickness of 63 battery cells in the production site before and after the network model is improved.
[0109]
[0110] Table 5 Final experimental results: 1. Compared with the normalization process, the number of iterations (epochs) was reduced by 5 times, the convergence speed was improved, the accuracy of the model in predicting film thickness was improved by 7.7%, and the average error was reduced by 0.5795nm. Normalization converts dimensioned data sets into pure quantities, which simplifies calculations and improves the performance of the model.
[0111] 2. The Tanh activation function makes the optimization process easier and improves the convergence speed of the function. Compared with the model before improvement, the number of iterations is reduced by 8 times.
[0112] 3. The LM algorithm is used as the training function of the network, which combines the advantages of the gradient descent method and the Gauss-Newton method. It can adaptively adjust the convergence speed, improve the stability of the training process, and enable the model to complete the regression task more accurately. The accuracy of film thickness prediction is improved by 12.9% and the average error is reduced by 1.558nm.
[0113] 4. The added momentum term can reduce the oscillation tendency during deep learning training, improve the stability of the model prediction process, and control the maximum error of film thickness prediction within 4nm.
[0114] The working principle of the present invention is as follows: the image information of the photovoltaic cell after coating is extracted by a camera device, and image data is extracted from the image information, the image data is processed, the obtained RGB image data is converted into HSL image data, and the image data with the greatest correlation with the film thickness is selected as the basic data of the HSL image data for image processing, which can further reduce the amount of image data and improve the running speed. At the same time, the color depth value Y representing the image parameters of the photovoltaic cell is generated through the HSL image data. Since the HSL image data is the embodiment of the image in the color space, its three values can be processed separately and independently of each other, so that the basic image data is free from external influences, and the difference between the HSL image data and the actual film thickness is small. The correlation between them is the best, but the span and gap between the HSL image data are large, so a color depth value is formed between the two data H and L, and then the color depth value is used as the input value of the neural network to determine the film thickness, so that the data for determining the film thickness is more reliable. When the image data is predicted by the neural network, the Tanh function is first used as the activation function of the BP neural network to introduce nonlinearity into the model. Since the gradient of the Tanh function is steeper, the function converges faster, which improves the accuracy of film thickness prediction, and introduces a momentum term in the weight relationship in the BP neural network to accelerate the convergence of the algorithm and jump out of the local minimum. When the network solves the minimum value of the function, the reliability and speed of the solution are further improved.
Claims
1. A photovoltaic cell film thickness prediction method based on improved deep learning, characterized in that: The specific steps include: (1) Collecting image information and film thickness value of the photovoltaic cell after coating by a camera device, wherein the image information includes image data of RGB three-channel grayscale values; (2) Convert RGB image data into HSL image data; (3) Determine the correlation R based on the HSL image data and the film thickness value, and determine the image data with the strongest correlation with the actual coating thickness based on the correlation R, and determine the color depth value Y based on the H value and L value in the HSL image data; (4) Normalize the image data; (5) Forming a color depth value and film thickness prediction model based on BP neural network; (51) Introducing Tanh function into the hidden layer of BP neural network; (52) Add momentum term to the weight relationship between the hidden layer and the output layer of the BP neural network; (53) Forming a film thickness prediction model; (6) The coating thickness of the photovoltaic cell is predicted by the film thickness prediction model and the color depth value Y, and the error between the predicted film thickness and the actual film thickness is determined to be within the allowable range.
2. A photovoltaic cell film thickness prediction method based on improved deep learning according to claim 1, characterized in that: Step (2) specifically includes the conversion formula between RGB and HSL: ; in ; Range of values: ; Among them, H is hue, S is saturation, and L is brightness; R, G, and B represent the grayscale values on the red, green, and blue channels, respectively.
3. A photovoltaic cell film thickness prediction method based on improved deep learning according to claim 1, characterized in that: The calculation formula of the correlation R is: ; in: ; x is the image data input value, y is the film thickness value, is the average value of the image data, is the average value of the film thickness, the value range is: ; σ x is the variance of the image data, σ y is the variance of the image data, x i is the i-th image data, y i is the film thickness value corresponding to the i-th image data.
4. A photovoltaic cell film thickness prediction method based on improved deep learning according to claim 1, characterized in that: The calculation formula of the color depth value Y is: ; Among them, A is the color depth value coefficient, and H and L are the HSL image data with the best correlation with the actual film thickness in the image data.
5. A photovoltaic cell film thickness prediction method based on improved deep learning according to claim 1, characterized in that: Step (52) specifically includes adding momentum terms to the hidden layer and output layer of the BP neural network, and its expression is: ; Among them, α is the dynamic coefficient, and its value range is: 0<α<1.
6. A photovoltaic cell film thickness prediction method based on improved deep learning according to claim 1, characterized in that: The Tanh function in step (51) is: ; Where x is the input value.
7. A photovoltaic cell film thickness prediction method based on improved deep learning according to claim 1, characterized in that: Step (4) includes: ; Where X norm is the normalized image data, X is the original image data size, X max , X min are the maximum and minimum values of the original image data.
8. A photovoltaic cell film thickness prediction method based on improved deep learning according to claim 1, characterized in that: Step (53) includes: using the LM regression algorithm as a training model of the BP neural network to finally obtain a film thickness prediction model.
Citation Information
Patent Citations
Film thickness control method for extrusion-coating machine
CN105921370A
Neural network deep learning-based cloth defect detection method
CN107123107A
Lithium battery health state assessment method based on neural network and migration ensemble learning
CN115015760A
Neural network model optimization method based on stainless steel ultra-thin strip annealing process
WO2023168916A1
