A method for quantifying microstructure of perovskite cells
By employing a deep learning edge extraction model and an unsupervised learning clustering algorithm, the challenge of quantitative analysis of the microstructure and performance of perovskite solar cells was solved. This enabled the automatic extraction and performance mapping of grain boundaries and grain numbers, optimized the design and fabrication of perovskite solar cells, and improved the energy conversion efficiency and stability of the devices.
Patent Information
- Application Number
- CN202410493582.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-23
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-04-23
AI Technical Summary
The stability and conversion efficiency of existing perovskite solar cells are affected by factors such as material defects and charge carrier recombination. The lack of quantitative analysis on the relationship between microstructure and performance makes performance optimization difficult.
By employing a deep learning edge extraction model and an unsupervised learning clustering algorithm, grain boundary length and grain number are extracted from scanning electron microscope images. The relationship between these parameters and device performance is established to optimize device design and fabrication processes.
This method enables quantitative analysis of perovskite solar cell performance, improves analytical efficiency and accuracy, promotes device performance optimization and stability enhancement, and has broad application prospects.
Smart Images

Figure CN118333987B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image data processing for perovskite solar cells, and more specifically, to a method for quantifying the microstructure of perovskite solar cells. Background Technology
[0002] In recent years, perovskite solar cells (PSCs) have attracted much attention due to their superior performance characteristics. Their high light absorption coefficient enables them to effectively convert solar energy into electrical energy, while their long-lived charge carriers and tunable band structure further enhance their application potential in the photovoltaic field. However, despite the significant progress made by PSCs in a short period, they still face a series of challenges and limitations. These challenges mainly include PSC stability and conversion efficiency. The stability of PSCs is one of the key factors for their widespread commercial application. Due to the inherent chemical properties of the materials and imperfections in the preparation process, PSCs are susceptible to degradation caused by environmental factors, leading to performance decline or even failure. The conversion efficiency of PSCs is affected by various factors, such as material defects and charge carrier recombination. Material imperfections can hinder charge transport, thus limiting the cell's efficiency. Furthermore, charge carrier recombination within the PSC is also a major cause of efficiency reduction. Therefore, improving the conversion efficiency and stability of PSCs has become one of the important research directions.
[0003] The performance of perovskite devices (PSCs) can be improved by optimizing the surface morphology, crystallinity, and grain orientation of perovskite thin films. One common method for detection is to use a scanning electron microscope (SEM) to scan the sample surface, generating high-resolution images of the surface morphology by detecting reflected electrons. The relationship between these images and the performance of the current devices is then analyzed. Currently, the analysis of the relationship between thin film surface morphology and PSC performance is primarily qualitative rather than quantitative. Therefore, linking SEM image information with PSC performance is highly significant for researchers in understanding how SEM image morphology influences PSC performance. Summary of the Invention
[0004] The embodiments of the present invention provide a method for quantifying the microstructure of perovskite solar cells, so as to enable researchers to effectively understand SEM image information, regulate the surface morphology of devices, and obtain high-efficiency perovskite solar cell device performance.
[0005] To achieve the above objectives, the present invention adopts the following technical solution.
[0006] A method for quantifying the microstructure of perovskite solar cells includes:
[0007] Acquire existing perovskite solar cell scanning electron microscope images, corresponding image scale sizes, and corresponding perovskite device performance parameters to establish an initial image dataset;
[0008] The initial image dataset is solidified to obtain a standard image dataset;
[0009] Establish different deep learning edge extraction models, train and test different deep learning edge extraction models using standard image datasets, evaluate the performance of different models, and select the optimal deep learning edge extraction model.
[0010] Grain boundaries in scanning electron microscope images of perovskite solar cells are extracted using an optimal deep learning edge extraction model. Morphological expansion and etching operations and watershed algorithms are used to reduce errors. The grain boundary length and grain number in the images are calculated. An unsupervised learning clustering algorithm is used to establish a mapping relationship between grain boundary length and grain number and the performance of perovskite solar cell devices.
[0011] Controlling the performance of perovskite solar cell devices based on relational mapping;
[0012] Preferably, the perovskite battery includes a perovskite solar cell.
[0013] Preferably, the step of acquiring existing perovskite solar cells, obtaining scanning electron microscope images of existing perovskite solar cells, corresponding image scale sizes, corresponding perovskite device performance parameters, and establishing an initial image dataset includes:
[0014] Extract the basic materials, scanning electron microscope images, scanning electron microscope image scale size, and perovskite solar cell performance parameters (short-circuit current, open-circuit voltage, fill factor, and energy conversion efficiency) from literature reports / experimental reports to establish an initial image dataset;
[0015] Preferably, the process of solidifying the initial image dataset to obtain a standard image dataset includes:
[0016] The initial image dataset is solidified, which includes: normalizing the colors and converting the images to grayscale, standardizing the scale size of the images, cleaning up abnormal images in the initial image dataset, and sharpening and removing noise from some low-quality images in the initial image dataset to obtain a standard image dataset.
[0017] Preferably, the step of establishing different deep learning edge extraction models, training and testing different deep learning edge extraction models using a standard image dataset, evaluating the performance of different models, and selecting the optimal deep learning edge extraction model includes:
[0018] Different deep learning edge extraction models were built using U-Net and Self-UNet;
[0019] The standard image dataset is divided into a training set and a test set. Different deep learning models are trained and tested using the training set and the test set. The performance of the deep learning edge extraction model is evaluated using the test accuracy, F1 coefficient and DICE coefficient. The model with the highest test accuracy, the largest F1 coefficient and the largest DICE coefficient is selected as the optimal deep learning edge extraction model.
[0020] The formula for calculating accuracy is as follows:
[0021] Accuracy = (TP + TF) / (P + F)
[0022] The formula for calculating the F1 coefficient is as follows:
[0023] F1 Score=2*(Precision*Recall) / (Precision+Recall)
[0024] The formula for calculating the DICE coefficient is as follows:
[0025] Dice = (2*TP) / (2*TP+FP+FN)
[0026] Where TP (True Positive) represents the number of pixels predicted as positive and labeled as positive, FP (False Positive) represents the number of pixels predicted as positive but labeled as negative, and FN (False Negative) represents the number of pixels predicted as negative but labeled as positive.
[0027] P stands for Positive, representing edges or target regions in the image;
[0028] F stands for negative sample, which usually represents the background or non-target region in the image;
[0029] Precision represents the proportion of pixels correctly identified as edges by the edge extraction algorithm out of all pixels identified as edges.
[0030] Recall represents the proportion of pixels that an edge extraction algorithm correctly identifies as an edge out of all actual edge pixels.
[0031] Preferably, the process of extracting grain boundaries from perovskite solar cell scanning electron microscope images using an optimal deep learning edge extraction model, employing morphological expansion and etching operations and watershed algorithms to reduce errors, calculating the grain boundary length and grain number in the images, and establishing a mapping relationship between grain boundary length, grain number, and perovskite solar cell device performance using an unsupervised learning clustering algorithm includes:
[0032] Grain boundaries in scanning electron microscope images of perovskite solar cells were extracted using an optimal deep learning edge extraction model. Morphological expansion and erosion operations and watershed algorithms were used to reduce errors. The length of extracted grain boundaries in images of the same size was calculated using the skeleton method and the number of grains was calculated using open-source software to obtain a quantitative description of the scanning electron microscope images.
[0033] The K-Means unsupervised learning clustering algorithm is used to establish a mapping relationship between grain boundary length and grain number and the performance of perovskite solar cell devices.
[0034] Preferably, the method further includes;
[0035] The relationship between grain boundary length and grain number and the performance of perovskite solar cell devices is established using unsupervised learning clustering algorithms, and this is demonstrated using published images and related morphology control experiments.
[0036] The beneficial effects of this invention are:
[0037] 1. The method of this invention enables researchers to quantify perovskite scanning electron microscope (SEM) images. By using a deep learning edge extraction model and an unsupervised learning clustering algorithm, it achieves the automatic extraction and quantification of grain boundary length and grain number in SEM images. This method not only improves the efficiency and accuracy of analysis but also establishes a mapping between grain boundary and grain number and perovskite solar cell performance, providing an important tool for understanding and optimizing perovskite solar cell performance. By saving labor costs and time, and promoting the development of perovskite solar cell technology, it has broad application prospects and social value.
[0038] 2. The method of this invention, through a deep learning edge extraction model, can accurately extract grain boundaries in scanning electron microscope images of perovskite solar cells, forming clear grain boundaries. Compared with traditional methods, this method can more accurately capture the characteristics of the microstructure, improving the accuracy of quantification. By establishing a mapping relationship between grain boundary length and grain number and perovskite solar cell device performance, a deeper understanding of the impact of microstructure on device performance can be achieved. This established relationship enables researchers to more accurately predict device performance and optimize device design and fabrication processes accordingly.
[0039] 3. The method of this invention utilizes deep learning models and clustering algorithms to automatically process large amounts of scanning electron microscope images and extract useful information from them. Compared with traditional analysis methods, this automated processing greatly improves efficiency and reduces human error. By adjusting device performance based on microstructural characteristics such as grain boundary length and grain number, the performance of perovskite solar cells can be optimized.
[0040] 4. The method of this invention provides effective guidance for the design and fabrication of perovskite solar cells, and helps to improve the energy conversion efficiency and long-term stability of the devices.
[0041] 5. The method of this invention improves the accuracy of microstructure quantification and establishes a mapping relationship between microstructure and device performance, thereby optimizing and guiding the performance of perovskite solar cells and has significant scientific research and application value.
[0042] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and will become apparent from the description or may be learned by practice of the invention. Attached Figure Description
[0043] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 This is a flowchart illustrating a method for quantifying the microstructure of perovskite solar cells, as provided in an embodiment of the present invention.
[0045] Figure 2 This is a visualization of the extraction and processing of scanning electron microscope images of perovskite solar cells provided in an embodiment of the present invention.
[0046] Figure 3 This invention provides a mapping diagram showing the relationship between scanning electron microscope image parameters of perovskite solar cells and the performance of perovskite solar cell devices. Detailed Implementation
[0047] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0048] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this specification means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or couplings. The term “and / or” as used herein includes any and all combinations of one or more of the associated listed items.
[0049] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless defined as herein.
[0050] To facilitate understanding of the embodiments of the present invention, the following will provide further explanation and description with reference to the accompanying drawings and several specific embodiments. These embodiments do not constitute a limitation on the embodiments of the present invention.
[0051] The method described in this invention enables researchers to quantify perovskite scanning electron microscope (SEM) images. By using a deep learning edge extraction model and an unsupervised learning clustering algorithm, it achieves the automatic extraction and quantification of grain boundary length and grain number in SEM images. This method not only improves the efficiency and accuracy of analysis but also establishes a mapping between grain boundary and grain number and perovskite solar cell performance, providing an important tool for understanding and optimizing perovskite solar cell performance. By saving labor costs and time and promoting the development of perovskite solar cell technology, it has broad application prospects and social value.
[0052] The processing flow of a perovskite solar cell microstructure quantification method provided in this embodiment of the invention is as follows: Figure 1 This includes the following processing steps:
[0053] Step S10: Establish the initial image dataset.
[0054] Obtain existing perovskite solar cell scanning electron microscope images, corresponding image scale sizes, and corresponding perovskite device performance parameters to establish an initial image dataset X; the aforementioned perovskite solar cell can be a perovskite solar cell.
[0055] Step S20: Use relevant code to normalize the colors and convert the images to grayscale, unify the scale size of the images, and clean up abnormal images in the initial image dataset. Use open source software to sharpen and enhance some low-quality images in the initial image dataset and remove noise to obtain the standard image dataset X2.
[0056] Step S30: Establish different deep learning edge extraction models using U-Net and Self-UNet; divide the standard image dataset into training and testing sets, and use the training and testing sets to train and test different deep learning models. Evaluate the performance of the deep learning edge extraction models using test accuracy, F1 coefficient, and DICE coefficient, and select the model with the highest test accuracy, the largest F1 coefficient, and the largest DICE coefficient as the optimal deep learning edge extraction model.
[0057] Step S40: Extract grain boundaries from the scanning electron microscope images of perovskite solar cells using the optimal deep learning edge extraction model. Employ morphological expansion and etching operations and watershed algorithms to reduce errors. Calculate the grain boundary length and grain number in the images. Use an unsupervised learning clustering algorithm to establish a mapping relationship between grain boundary length, grain number, and perovskite solar cell device performance.
[0058] Subsequently, the performance of perovskite solar cell devices was controlled based on relational mapping.
[0059] Step S50: Use published images and related morphology control experiments to verify the accuracy and scientific validity of the mapping between grain boundary length and grain number and the performance of perovskite solar cell devices established by the unsupervised learning clustering algorithm.
[0060] Specifically, step S10 above includes:
[0061] S11. Obtain the largest available scanning electron microscope image of the perovskite solar cell using the open-source Snipaste software. The corresponding image scale bars are 200nm, 500nm, and 1µm, as provided in the collected published papers in this step.
[0062] S12, obtain the corresponding perovskite device performance parameters as general photovoltaic device parameters, including open-circuit voltage Voc, short-circuit current Jsc, fill factor FF, and photoelectric conversion efficiency PCE. These parameters are provided in the collected published papers.
[0063] Specifically, step S20 above includes:
[0064] S21, Image preprocessing: The initial image dataset X is processed to obtain the preprocessed image dataset X1, which contains images of low quality, high noise, and unclear (low contrast). At the same time, the image size and scale are standardized.
[0065] In this step, images with low quality, high noise, and low contrast are processed using the open-source TopazSharpen AI software.
[0066] In this step, the image size is uniformly set to 250*250 pixels. 2 The scale size is uniformly set to 500nm, resulting in a final size of 1250*1250nm. 2 The pixel size is 250*250 pixels. 2 Scanning electron microscope image of a perovskite solar cell (5nm per pixel).
[0067] S22, Data Filtering: Abnormal images in the initial image dataset are removed, such as images with few boundaries or that do not constitute a complete grain. After filtering the preprocessed image dataset X1, a standard dataset X2 is obtained.
[0068] Specifically, step S30 above includes:
[0069] S31 uses Python or R as the deep learning platform to build deep learning edge extraction models such as U-Net and Self-UNet.
[0070] S32, the standard dataset X2 is divided into training and testing sets. Different deep learning edge extraction models are used to ensure that the model exhibits optimal performance on both the training and testing sets. The performance of the deep learning edge extraction model is evaluated using test accuracy, F1 coefficient, and DICE coefficient. The model with the highest test accuracy, the largest F1 coefficient, and the largest DICE coefficient is selected as the optimal deep learning edge extraction model.
[0071] The formula for calculating accuracy is as follows:
[0072] Accuracy = (TP + TF) / (P + F)
[0073] The formula for calculating the F1 coefficient is as follows:
[0074] F1 Score=2*(Precision*Recall) / (Precision+Recall)
[0075] The formula for calculating the DICE coefficient is as follows:
[0076] Dice = (2*TP) / (2*TP+FP+FN)
[0077] Where TP (True Positive) represents the number of pixels predicted as positive and labeled as positive, FP (False Positive) represents the number of pixels predicted as positive but labeled as negative, and FN (False Negative) represents the number of pixels predicted as negative but labeled as positive.
[0078] P stands for Positive, representing edges or target regions in the image;
[0079] F stands for negative sample, which usually represents the background or non-target region in the image;
[0080] Precision represents the proportion of pixels correctly identified as edges by the edge extraction algorithm out of all pixels identified as edges.
[0081] Recall represents the proportion of pixels that an edge extraction algorithm correctly identifies as an edge out of all actual edge pixels.
[0082] Specifically, accuracy is a metric that measures the overall accuracy of a model's predictions, representing the proportion of samples correctly predicted by the model out of all samples. In the formula, TP represents true positives (the number of samples correctly predicted as positive), TF represents true negatives (the number of samples correctly predicted as negative), P represents the total number of positive samples, and F represents the total number of negative samples.
[0083] The F1 score is the harmonic mean of precision and recall, combining the model's accuracy and recall. Precision and recall in the formula represent the model's precision and recall, respectively.
[0084] The DICE coefficient is a metric used to evaluate image segmentation quality and can be used to assess performance in edge detection tasks. In the formula, TP represents true positives, FP represents false positives (the number of negative samples incorrectly predicted as positive), and FN represents false negatives (the number of positive samples incorrectly predicted as negative). The data obtained from training the above model is shown below:
[0085] Model Train Acc(%) Test Acc (%) Precision (%) Recall (%) F1 score (%) Dice (%) Self-UNet 90.35 89.44 92.91 93.87 93.39 90.90 U-Net 89.77 89.28 92.00 94.76 93.36 90.55
[0086] Specifically, step S40 above includes:
[0087] S41, Grain boundaries in the scanning electron microscope image of perovskite solar cells are extracted using the optimal deep learning edge extraction model. Morphological expansion corrosion operation and watershed algorithm are used to reduce errors, and the grain boundary length and grain number in the image are calculated.
[0088] In this step, Python is used to perform morphological dilatation erosion and watershed algorithm operations.
[0089] In this step, the grain boundary length and the number of grains were calculated using the skeleton method and the open-source ImageJ software.
[0090] Figure 2 This is a visualization of the extraction and processing of scanning electron microscope images of perovskite solar cells provided in an embodiment of the present invention.
[0091] S42, an unsupervised learning clustering algorithm is used to establish a mapping relationship between grain boundary length and grain number and the performance of perovskite solar cell devices. The grain boundary length and grain number are then used to fit the trend relationships with the performance parameters of perovskite solar cell devices: open-circuit voltage Voc, short-circuit current Jsc, fill factor FF, and photoelectric conversion efficiency PCE.
[0092] In this step, the supervised learning clustering algorithm K-Means is used to discover relational mappings.
[0093] Then, the performance of perovskite solar cell devices can be controlled according to the relational mapping.
[0094] Figure 3 This invention provides a mapping diagram showing the relationship between scanning electron microscope (SEM) image parameters of perovskite solar cells and the performance of perovskite solar cell devices. Specifically, in the SEM images of PSCs at the same size (5nm / pixel), when the grain boundary length increases from 1437 pixels to 3639 pixels, the photoelectric conversion efficiency, fill factor, and short-circuit current density of PSCs all decrease, decreasing from 18.89% to 17.48%, from 77.55% to 74.69%, and from 22.55 mA / cm² to 21.7 mA / cm², respectively. The open-circuit voltage of PSCs remains around 1.08V, showing no clear trend. This indicates that with the same SEM image size, increasing the number of grains and decreasing the size of individual grains leads to a decrease in the photoelectric conversion efficiency, fill factor, and short-circuit current density of PSCs, while Voc shows no systematic trend.
[0095] Specifically, step S50 above includes:
[0096] S51. Based on the scanning electron microscope images of perovskite solar cells in published papers, conduct corresponding experimental verification and evaluate the accuracy of the relational mapping.
[0097] S52, based on the relationship mapping, set up experiments and used device simulation and other methods to analyze the performance of perovskite solar cell devices, to verify the scientificity and rationality of the relationship mapping between the microstructure of perovskite and the performance of perovskite solar cell devices.
[0098] In summary, this invention provides a method for quantifying the microstructure of perovskite solar cells. The method first establishes an initial image dataset, including acquiring scanning electron microscope images of perovskite solar cells, corresponding image scale sizes, and device performance parameters. Subsequently, a standard image dataset is obtained through image preprocessing and data filtering. Next, a deep learning model is used for edge extraction, and the optimal model is selected. In the grain boundary extraction and parameter calculation stage, the optimal model is used to extract grain boundaries and calculate grain boundary length and grain number. Then, an unsupervised learning clustering algorithm is used to establish a mapping relationship between grain boundary length and grain number and device performance. Finally, the accuracy and scientific validity of the mapping relationship are verified through validation experiments and device simulation analysis. Quantifying the relationship between the microstructure and performance of perovskite solar cells enables effective control of perovskite device performance, providing quantitative guidance for perovskite solar cell performance optimization.
[0099] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of one embodiment, and the modules or processes shown in the drawings are not necessarily essential for implementing the present invention.
[0100] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for apparatus or system embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments. The apparatus and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of the embodiments of the present invention according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0101] The above description is merely a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for quantifying the microstructure of perovskite solar cells, characterized in that, Includes the following steps: Initial image dataset creation: Obtain existing perovskite solar cell scanning electron microscope images, corresponding image scale sizes, and corresponding perovskite device performance parameters to create an initial image dataset; Data solidification processing: The initial image dataset is solidified to obtain a standard image dataset; Building and evaluating deep learning edge extraction models: Build different deep learning edge extraction models, train and test different deep learning edge extraction models using standard image datasets, evaluate the performance of different models, and select the optimal deep learning edge extraction model; Grain boundary extraction result calculation and corresponding mapping: Grain boundaries in perovskite solar cell scanning electron microscope images are extracted using the optimal deep learning edge extraction model. Morphological expansion corrosion operation and watershed algorithm are used to reduce errors. The grain boundary length and grain number in the image are calculated. Unsupervised learning clustering algorithm is used to establish the relationship mapping between grain boundary length and grain number and perovskite solar cell device performance. The performance of perovskite solar cell devices can be controlled by relational mapping.
2. The method for quantifying the microstructure of perovskite solar cells according to claim 1, characterized in that, The perovskite battery includes a perovskite solar cell.
3. The method for quantifying the microstructure of perovskite solar cells according to claim 1 or 2, characterized in that, The initial image dataset is established by extracting the basic materials of perovskite solar cells from literature reports or experimental reports.
4. The method for quantifying the microstructure of perovskite solar cells according to claim 1, characterized in that, The performance parameters of the perovskite solar cell include short-circuit current, open-circuit voltage, fill factor, and energy conversion efficiency.
5. The method for quantifying the microstructure of perovskite solar cells according to claim 1, characterized in that, The data solidification process specifically includes: normalizing the colors and converting the images to grayscale, standardizing the scale size of the images, cleaning up abnormal images in the initial image dataset, and sharpening and removing noise from low-quality images in the initial image dataset to obtain a standard image dataset.
6. The method for quantifying the microstructure of perovskite solar cells according to claim 1, characterized in that, The specific steps for establishing and evaluating the deep learning edge extraction model include the following: Different deep learning edge extraction models were built using U-Net and Self-UNet; The standard image dataset is divided into a training set and a test set. Different deep learning models are trained and tested using the training set and the test set. The performance of the deep learning edge extraction model is evaluated using the test accuracy, F1 coefficient and DICE coefficient. The model with the highest test accuracy, the largest F1 coefficient and the largest DICE coefficient is selected as the optimal deep learning edge extraction model. The formula for calculating accuracy is as follows: Accuracy = (TP + TF) / (P + F) The formula for calculating the F1 coefficient is as follows: F1 Score=2*(Precision*Recall) / (Precision+Recall) The formula for calculating the DICE coefficient is as follows: Dice = (2*TP) / (2*TP+FP+FN) Where TP represents the number of pixels predicted as positive and labeled as positive, FP represents the number of pixels predicted as positive but labeled as negative, and FN represents the number of pixels predicted as negative but labeled as positive; P represents positive samples, indicating edges or target regions in the image; F represents negative samples, typically indicating background or non-target regions in the image. Precision is the percentage of pixels correctly identified as edges by the edge extraction algorithm out of all pixels identified as edges; Recall is the percentage of pixels correctly identified as edges by the edge extraction algorithm out of all actual edge pixels.
7. The method for quantifying the microstructure of perovskite solar cells according to claim 1, characterized in that, The specific steps for calculating and mapping the grain boundary extraction results include the following: Grain boundaries in scanning electron microscope images of perovskite solar cells were extracted using an optimal deep learning edge extraction model. Morphological expansion and etching operations and watershed algorithms were used to reduce errors. The extracted grain boundaries in images of the same size (5nm / Pixel) were calculated using the skeleton method and the number of grains was calculated using open-source software to obtain a quantitative description of the scanning electron microscope images. The K-Means unsupervised learning clustering algorithm is used to establish a mapping relationship between grain boundary length and grain number and the performance of perovskite solar cell devices, and the performance of perovskite solar cell devices is controlled according to the mapping relationship.
8. The method for quantifying the microstructure of perovskite solar cells according to claim 1, characterized in that, It also includes experimental method verification steps, as follows: The relationship between grain boundary length and grain number and the performance of perovskite solar cell devices is established using unsupervised learning clustering algorithms, and this is demonstrated using published images and related morphology control experiments.
