Carbon dot fluorescence performance detection method and system based on machine learning model

Through the detection method based on machine learning models, the most accurate prediction model is selected, which solves the problem of low efficiency of carbon dot fluorescence performance detection in traditional methods, achieves high-precision carbon dot fluorescence performance prediction, and saves cost and time.

CN118673789AInactive Publication Date: 2024-09-20SICHUAN KUANZHAI PRINTING CO LTD

Patent Information

Application Number
CN202410561982.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2024-09-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional methods for determining the fluorescence properties of carbon dots consume a lot of raw materials and manpower, are inefficient, and are difficult to quickly and accurately evaluate the fluorescence properties of new experimental formulas.

Method used

Using a detection method based on a machine learning model, by inputting the formula parameters of the carbon dot solution, the machine learning model with the most accurate predictions is selected, and the fluorescence performance of the carbon dot is tested, saving manpower and material resources and improving detection efficiency.

Benefits of technology

It achieves high-precision prediction of the fluorescence performance of carbon dots, reduces the number of experiments, saves production costs, and improves production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure SMS_1
    Figure SMS_1
  • Figure SMS_2
    Figure SMS_2
  • Figure SMS_3
    Figure SMS_3
Patent Text Reader

Abstract

The invention provides a carbon dot fluorescence performance detection method and system based on a machine learning model. The method comprises the following steps: inputting formula parameters of a carbon dot solution into various machine learning models; screening out the machine learning model with the most accurate prediction according to the prediction result of the machine learning model; and detecting the fluorescence performance of the carbon dots by adopting the most accurate machine learning model. An existing machine learning model is improved, the machine learning model with the optimal carbon dot fluorescence performance prediction effect is constructed, the fluorescence intensity of the carbon dot solution can be obtained by inputting the formula parameters of the carbon dot solution into the machine learning model, the fluorescence performance of the carbon dots is subjected to auxiliary analysis through the machine learning model, and the carbon dot fluorescence performance prediction accuracy is improved. A large amount of experimental detection is not needed, a large amount of manpower and material resources can be saved, the detection efficiency of the fluorescence performance of the carbon dots is greatly improved, and the prediction precision is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and system for detecting fluorescence performance of carbon dots based on a machine learning model. Background Art

[0002] Carbon dots (CDs) are an emerging class of nanomaterials with a variety of excellent properties, such as small size, good biocompatibility, low toxicity, high chemical and photochemical stability, and unique optical properties. They usually present a quasi-spherical morphology, with a size between 1 and 10 nm, and have tunable photoluminescence (PL) properties. The fluorescence properties of CDs are mainly attributed to their unique internal structure, including nanoclusters composed of carbon, hydrogen, oxygen, and other elements. These clusters may contain polycrystalline nanodomains, in which tiny carbon clusters may have conjugated π structures or diamond-like structures.

[0003] Carbon dots are widely used in various fields, such as biological fields: biosensing, bioimaging and drug release. First, carbon dots have good biocompatibility and can be combined with biomolecules to form biosensors for detecting biomolecules or cells. Second, carbon dots can be used as fluorescent probes for bioimaging. Since carbon dots have adjustable emission spectra and can emit fluorescence in different wavelength ranges, they can be made into probes of various colors for different types of imaging. Finally, carbon dots can also be used as drug carriers to transport drugs to specific tissues or cells to achieve targeted treatment while reducing drug damage to normal cells. For example, environmental protection fields: wastewater treatment, air pollution control and energy conversion. First, carbon dots have a large specific surface area and high chemical reaction activity, which can be used to adsorb harmful substances in wastewater, such as heavy metals, petroleum pollutants and dyes. Second, carbon dots can be used for air pollution control, such as adsorbing sulfur dioxide, nitrogen oxides and volatile organic compounds in the air. Finally, carbon dots can be used in energy conversion fields such as solar cells, lithium-ion batteries and supercapacitors, such as electrode materials and catalysts to improve energy conversion efficiency and electrochemical performance. For example, in the field of information technology: fluorescent display, quantum computing and optoelectronic devices. First, carbon dots can be used for fluorescent display, such as display devices such as LED and OLED, which have the advantages of high brightness, high color purity and long life. Secondly, carbon dots can be used for quantum computing, such as devices such as quantum dot arrays and single electron transistors, which have the advantages of high speed, low power consumption and wide temperature range. Finally, carbon dots can also be used in optoelectronic devices, such as solar cells and photodiodes, which have the advantages of high efficiency, adjustable spectrum and easy preparation.

[0004] However, the traditional method of determining the fluorescence performance of carbon dots is usually based on a benchmark experimental ratio, and the combination of various materials is constantly adjusted to explore the carbon dot formula with the best fluorescence. This method not only consumes a lot of raw materials and wastes a lot of manpower and time, but also has problems such as large deviations and low efficiency, making it difficult to quickly and accurately evaluate new experimental formulas. Summary of the invention

[0005] The purpose of the present invention is to provide a method and system for detecting the fluorescence properties of carbon dots based on a machine learning model. The method is improved based on the existing machine learning model to construct a machine learning model with the best prediction effect on the fluorescence properties of carbon dots. The fluorescence intensity of the carbon dot solution can be obtained by inputting the formula parameters of the carbon dot solution into the machine learning model. The fluorescence properties of the carbon dots are assisted by the machine learning model, and there is no need to do a large number of experimental tests, which can save a lot of manpower and material resources, and has a high prediction accuracy while greatly improving the detection efficiency of the fluorescence properties of the carbon dots.

[0006] A method for detecting fluorescence performance of carbon dots based on a machine learning model, comprising:

[0007] The formulation parameters of the carbon dot solution were input into various machine learning models;

[0008] Filter out the most accurate machine learning model based on its prediction results;

[0009] The most accurate machine learning model was used to test the fluorescence performance of carbon dots.

[0010] Preferably, before inputting the formula parameters of the carbon dot solution into a plurality of machine learning models, the method further comprises:

[0011] Prepare multiple groups of carbon dot solutions with different formulation parameters;

[0012] The fluorescence properties of multiple groups of carbon dot solutions with different formulation parameters were detected.

[0013] Preferably, the method of selecting the most accurate machine learning model based on the prediction results of the machine learning model comprises:

[0014] Set error measurement indicators and trend measurement indicators to judge the prediction accuracy of the machine learning model;

[0015] The error measurement index and the trend measurement index are used to determine the difference between the fluorescence performance of the carbon dot solution output by the machine learning model and the fluorescence performance of the carbon dot solution actually detected;

[0016] The error measurement indicators include: mean absolute error MAE, mean square error MSE, root mean square error EMSE, mean absolute percentage error MAPE;

[0017] The trend measurement indicators include: EVS, R2

[0018] Preferably, calculating the error measurement indicator comprises:

[0019] The mean absolute error (MAE), mean square error (MSE), root mean square error (EMSE), and mean absolute percentage error (MAPE) are calculated based on the test set data of the carbon dot solution, the training set data of the carbon dot solution, and the number of samples of the carbon dot solution.

[0020] Preferably, calculating the trend measurement indicator comprises:

[0021] EVS and R2 are calculated according to the test set data of the carbon dot solution, the training set data of the carbon dot solution, and the number of samples of the carbon dot solution.

[0022] Preferably, constructing the machine learning model includes:

[0023] A three-layer Stacking model is constructed. The first layer of the Stacking model consists of multiple weak learner models trained through cross-validation and grid search.

[0024] The second-layer Stacking model selects n weak learner models by permutation and combination according to the weak learner models of the first layer, and uses the DT algorithm as the meta-learner to construct multiple Meta-models.

[0025] The third-layer Stacking model builds the final Meta-model based on multiple Meta-models in the second layer.

[0026] Preferably, before using the most accurate machine learning model to detect the fluorescence performance of carbon dots, the method further includes training the most accurate machine learning model, specifically:

[0027] Inputting multiple sets of recipe parameters as training sets into the machine learning model;

[0028] The machine learning model outputs the fluorescence intensity of the carbon dot solution prepared by multiple sets of recipe parameters;

[0029] The fluorescence intensity of the carbon dot solutions prepared by the multiple sets of formula parameters output by the machine learning model is compared with the fluorescence intensity of the carbon dot solutions prepared by the multiple sets of formula parameters actually tested;

[0030] The training is stopped when the difference between the fluorescence intensity of the carbon dot solution prepared by the multiple sets of formula parameters output by the machine learning model and the fluorescence intensity of the carbon dot solution prepared by the multiple sets of formula parameters actually detected is less than a threshold.

[0031] A carbon dot fluorescence performance detection system based on a machine learning model, comprising:

[0032] An input module, used to input the formula parameters of the carbon dot solution into the machine learning model;

[0033] A judgment module is used to select the most accurate machine learning model based on the prediction results of the machine learning model;

[0034] The data processing module is used to detect the fluorescence performance of carbon dots using the most accurate machine learning model.

[0035] An electronic device comprises: a processor and a memory, wherein the memory is used to store computer program code, and the computer program code comprises computer instructions. When the processor executes the computer instructions, the electronic device executes a method for detecting fluorescence performance of carbon dots based on a machine learning model.

[0036] A computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes a method for detecting the fluorescence performance of carbon dots based on a machine learning model.

[0037] The present application modifies the existing carbon dot solution formula through the control variable method based on the existing carbon dot solution formula, so as to obtain multiple groups of carbon dot solution formulas and corresponding experimental data of the fluorescence performance of the carbon dot solution, so as to construct a machine learning model for screening and predicting the most accurate and a sample database for training the most accurate machine learning model. The present application improves the existing machine learning model according to the subject to be predicted, so that the machine learning model can be more suitable for predicting the fluorescence performance of the carbon dot solution, and then iteratively trains the screened machine learning model, so as to ensure the accuracy of the machine learning model in predicting the fluorescence performance of the carbon dot solution. The present application does not need to study the carbon dot solution formula parameters through a large number of experiments to obtain the carbon dot solution formula with the best fluorescence performance, which can greatly save production costs and improve production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0040] Figure 1 It is a schematic diagram of the process of the present invention;

[0041] Figure 2 A schematic diagram of a process for preparing a training set for a machine learning model of the present invention;

[0042] Figure 3 A schematic diagram of the training process of the machine learning model of the present invention;

[0043] Figure 4 A schematic diagram of the hardware structure of an electronic device of the present invention;

[0044] Figure 5 It is a schematic diagram of the Stacking model structure of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0047] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0048] The traditional method of determining the fluorescence performance of carbon dots is usually based on a benchmark experimental ratio, and the combination of various materials is constantly adjusted to explore the carbon dot formula with the best fluorescence. This method not only consumes a large amount of raw materials and wastes a lot of manpower and time, but also has problems such as large deviations and low efficiency, making it difficult to quickly and accurately evaluate new experimental formulas.

[0049] The present application modifies the existing carbon dot solution formula through the control variable method based on the existing carbon dot solution formula, so as to obtain multiple groups of carbon dot solution formulas and corresponding experimental data of the fluorescence performance of the carbon dot solution, so as to construct a machine learning model for screening and predicting the most accurate and a sample database for training the most accurate machine learning model. The present application improves the existing machine learning model according to the subject to be predicted, so that the machine learning model can be more suitable for predicting the fluorescence performance of the carbon dot solution, and then iteratively trains the screened machine learning model, so as to ensure the accuracy of the machine learning model in predicting the fluorescence performance of the carbon dot solution. The present application does not need to study the carbon dot solution formula parameters through a large number of experiments to obtain the carbon dot solution formula with the best fluorescence performance, which can greatly save production costs and improve production efficiency.

[0050] Example 1

[0051] A method for detecting the fluorescence performance of carbon dots based on a machine learning model, reference Figure 1 ,include:

[0052] S100, inputting the formulation parameters of the carbon dot solution into various machine learning models;

[0053] Carbon dot solution is a nanomaterial with photoluminescent properties. The applications of carbon dot solution mainly include the following aspects: Bioimaging. Carbon dots have low toxicity and biocompatibility and can be used for bioimaging. Carbon dots can be used as fluorescent probes for fluorescent labeling, staining and imaging of cells and tissues, which improves the efficiency of biomedical research. Photoelectric conversion. Carbon dots have photoelectric conversion properties and can be used as photosensitive materials for solar cells. Carbon dots can absorb sunlight and convert it into electric current, improving the photoelectric conversion efficiency of solar cells. Drug delivery. Carbon dots can be used as a carrier for drug delivery. Drugs are wrapped inside carbon dots. By controlling the release of drugs, directional delivery and sustained release of drugs can be achieved. Carbon dot solution is of great significance for drug research and treatment. The fluorescence emitted by carbon dots belongs to photoluminescence. Its luminescence process is two processes: absorption and emission. After the substance absorbs the excitation light, the electrons jump from the ground state to the excited state. Through vibration relaxation and internal transfer, the electrons in the high excited singlet state jump back to the lowest vibration energy level of the first excited singlet state, and then the electrons jump back to the ground state from the first excited singlet state, and emit fluorescence at the same time. The fluorescence intensity of the substance is related to the structure, concentration, external solvent, pH and other factors of the substance itself. Carbon dots show strong light absorption in the ultraviolet region, and gradually decay and extend to the visible light region. Carbon dots usually have characteristic absorption peaks at 270-390nm (carbon dots prepared with activated carbon as the carbon source have absorption peaks in the range of 250-300nm, and carbon dots synthesized with organosilane as the coordination agent have absorption peaks at 360nm). The luminescence property of carbon dots is that the emission wavelength can be "tuned". The fluorescence emission wavelength of carbon dots spans a wide range, which can extend from the visible light region to the near-infrared region, which makes up for the lack of traditional organic reagents in the near-infrared region. Most carbon dots have excitation wavelength dependence, that is, the fluorescence intensity of carbon dots decreases with the increase of excitation wavelength, and the fluorescence emission spectrum also changes, gradually red-shifting, showing the spectral characteristics of multi-excitation and multi-emission. Because the quantum size effect is still caused by the existence of energy wells on the surface of carbon dots, the fluorescence mechanism of carbon dots mainly includes the luminescence generated by carbon excitons, emission defects, quantum confinement effects, aromatic structures / oxygen-containing groups and edge effects.

[0054] S200, selecting the machine learning model with the most accurate prediction according to the prediction results of the machine learning model;

[0055] The present application selects the most accurate machine learning model from multiple machine learning models. Commonly used machine learning models in the prior art include: linear regression model, a model for establishing a linear relationship between variables, which fits data by minimizing the difference between the predicted value and the actual value; logistic regression model, which is a model for dealing with binary classification problems, which uses a logistic function to map input values ​​to probability outputs and classify them according to probability; decision tree model, which is a model based on a tree structure, which predicts through a series of decision nodes and leaf nodes, each node represents a feature, each edge represents a feature value, and the prediction result is obtained by traversing the tree; random forest model, which is an integrated learning model, which consists of multiple decision trees. Each decision tree is trained independently, and the final prediction result is determined by voting on the results of multiple decision trees; support vector machine model, which is a model used for classification and regression. The support vector machine model performs classification by finding an optimal hyperplane in the feature space, so that samples of different categories are as far away from the hyperplane as possible; K nearest neighbor model, the K nearest neighbor model is an instance-based learning model. The K nearest neighbor model performs classification by calculating the distance between the sample and other samples in the training set. The final prediction result is determined by voting by the labels of the K nearest neighbor samples; Naive Bayes model, the Naive Bayes model is a probability model based on Bayes' theorem. The Naive Bayes model assumes that the features are independent of each other. Classification is performed by calculating the posterior probability, and the category with the highest probability is selected as the prediction result; Neural network model, the neural network model is a model that simulates the working principle of human brain neurons. It consists of multiple neurons and layers, and makes predictions by learning weights and biases; Hidden Markov model, the hidden Markov model is a model for modeling sequence data. It assumes that the state in the sequence is invisible, and the hidden state is inferred from the observed sequence; Principal component analysis model, the principal component analysis model is a model for dimensionality reduction. It reduces the number of features by finding the main components in the data, thereby simplifying the model and improving performance.

[0056] S300, using the most accurate machine learning model to detect the fluorescence performance of carbon dots.

[0057] In this application, weak learners are used to screen machine learning models, and Python language is used to complete the construction of multiple machine learning models. Six evaluation indicators are set, among which the lower the error measurement index, the more accurate the model prediction, and the closer the trend measurement index is to 1, the better the model performance. During the model training process, o-phenylenediamine content, citric acid content, ethylene glycol content, stirring temperature, drying temperature, drying time and filter membrane pore size are used as machine learning model input values, and the fluorescence intensity of the carbon dot solution is used as the output value.

[0058] Preferably, before S100 inputs the formula parameters of the carbon dot solution into the multiple machine learning models, refer to Figure 2 , also includes:

[0059] S001, preparing multiple groups of carbon dot solutions with different formulation parameters;

[0060] The reagents for preparing the carbon dot solution and detecting the carbon dot solution include: polyethylene polyamine (275MW), urea (AR), g-o-phenylenediamine, citric acid (AR), ammonium citrate (AR), pH 4-10 buffer solution, anhydrous ethanol, deionized water, polyvinyl alcohol (PVA). The instruments include: mortar, crucible, crucible tongs, beaker, glass rod, electric constant temperature drying oven, vacuum drying oven, centrifuge, quartz cuvette, F-2700 fluorescence spectrophotometer.

[0061] The variables controlling the carbon dot solution include: the pH value of the carbon dot solution, the concentration of the carbon dot solution, the color of the carbon dot solution, and the solvent of the carbon dot solution. As a preferred embodiment, the present invention weighs 0.0545 grams of o-phenylenediamine and 0.032 grams of citric acid and dissolves them in 30 milliliters of ethylene glycol solution, stirs them evenly at 60°C, and then puts them into an oven at 180°C for reaction for 8 hours. The synthesized carbon dot solution is filtered through a 0.22 μm microporous organic filter membrane. The synthesized carbon dot solution is dried and dissolved in anhydrous ethanol to finally obtain the first carbon dot solution.

[0062] Weigh 0.2 g of ammonium citrate and 0.2 g of urea, grind them thoroughly in a mortar, transfer the ground powder to a crucible, react at 200° C. for 1 h, dissolve the reaction product in 50 mL of deionized water, centrifuge (12000 rpm, 20 min), and obtain the second carbon dot solution, which is freeze-dried for later use.

[0063] Weigh 1.25 g of citric acid, 0.5 mL of polyethylene polyamine and 10 mL of deionized water in a crucible, stir to mix evenly, heat at 200° C. for 1 h, dissolve the product in water, and then centrifuge (12000 rpm, 20 min) to obtain the third carbon dot solution, which is freeze-dried for later use.

[0064] S002, detecting the fluorescence properties of multiple groups of carbon dot solutions with different formulation parameters.

[0065] Select light around 450nm as the excitation light, measure the fluorescence emission spectrum of the carbon dot solution diluted 100 times in the wavelength range of 470-670nm, and select the maximum emission wavelength λ em The fluorescence excitation spectrum in the range of 300-550nm was measured for the emission light. ex At this maximum excitation wavelength λex Under the condition of , the fluorescence emission spectrum is scanned, and the fluorescence emission intensity of the carbon dot solution is the largest at the maximum emission wavelength.

[0066] The fluorescence excitation spectrum of the carbon dot solution is similar to the fluorescence emission spectrum, except that the initial excitation light is about 380nm, the fluorescence emission spectrum is measured in the range of 400-650nm, and the fluorescence excitation spectrum is measured in the range of 300-450nm. Within a certain concentration range, the fluorescence emission intensity of the carbon dot solution increases with the increase of the concentration of the carbon dot solution; the luminescence intensity of the blue carbon dot solution is larger in neutral and weakly acidic solutions, while the luminescence intensity in weakly alkaline solutions is significantly reduced, which is 15% lower than that in neutral pH solutions, while the luminescence phenomenon of the green carbon dot solution in different buffer solutions is just the opposite of that of the blue carbon dot solution, because the blue carbon dot solution and the green carbon dot solution have different functional groups on the surface, so the pH will have different effects on the luminescence of the blue carbon dot solution and the green carbon dot solution. The fluorescence emission intensity of the green carbon dot solution basically increases with the increase of ethanol concentration, and its relative fluorescence emission intensity increases. The fluorescence emission intensity of the blue carbon dot solution is the opposite. When the solvent is anhydrous ethanol, its relative fluorescence emission intensity decreases. It can be explained that the -OH of ethanol will destroy the molecular structure of the blue carbon dot solution or the change of solution polarity will change the structure of the carbon dot molecules, thereby affecting the fluorescence emission intensity of the carbon dot solution.

[0067] Preferably, S200, selecting the machine learning model with the most accurate prediction according to the prediction result of the machine learning model includes:

[0068] Set error measurement indicators and trend measurement indicators to judge the prediction accuracy of the machine learning model;

[0069] The error measurement index and trend measurement index are used to judge the difference between the fluorescence performance of the carbon dot solution output by the machine learning model and the fluorescence performance of the carbon dot solution actually detected;

[0070] Error measurement indicators include: mean absolute error MAE, mean square error MSE, root mean square error EMSE, mean absolute percentage error MAPE;

[0071] Trend measurement indicators include: EVS, R2

[0072] Preferably, calculating the error measurement indicator includes:

[0073] The mean absolute error (MAE), mean square error (MSE), root mean square error (EMSE), and mean absolute percentage error (MAPE) are calculated based on the test set data of the carbon dot solution, the training set data of the carbon dot solution, and the number of samples of the carbon dot solution.

[0074] MAE (Mean Absolute Error) is the average absolute error, which refers to the average value of the absolute deviation between the predicted value and the actual value. It can accurately reflect the size of the actual prediction error and is used to evaluate the degree of deviation between the true value and the predicted value:

[0075]

[0076] Mean Absolute Percentage Error (MAPE) is a statistical indicator used to measure the accuracy of predictions, such as time series predictions:

[0077]

[0078] The mean-square error (MSE) is the expected value of the square of the difference between the estimated parameter and the true parameter value (the mean of the residual sum of squares). In the model, it represents the deviation of the predicted value from the true value and describes the error size:

[0079]

[0080] Root mean square error (RMSE), also known as standard error, root mean square deviation (RMSD), is the square root of the ratio of the sum of the squares of the deviations between the predicted value and the true value to the number of observations m. In the model, it represents the deviation of the predicted value from the true value and describes the error size:

[0081]

[0082] Among them, y test is the test set data of carbon dot solution, y pred is the training set data of carbon dot solution, n is the number of carbon dot solution samples, and i is the i-th carbon dot solution sample.

[0083] Preferably, calculating the trend measurement indicator comprises:

[0084] EVS and R2 are calculated according to the test set data of the carbon dot solution, the training set data of the carbon dot solution, and the number of samples of the carbon dot solution.

[0085] Explained variance measures how close the dispersion of the differences between all predictions and the sample is to the dispersion of the sample itself. It is itself a comparison of dispersion:

[0086]

[0087] R-squared is a statistic used to measure the degree of fit of a regression model. Its value range is between 0 and 1. It is usually used to indicate the explanatory power of the independent variable on the dependent variable. The closer the value of R-squared is to 1, the better the regression model fits the data. On the contrary, if the value of R-squared is low, it means that the regression model cannot explain the changes in the dependent variable well:

[0088]

[0089] Among them, E is the average value, is the average value of all carbon dot solution samples.

[0090] Preferably, building a machine learning model includes:

[0091] A three-layer Stacking model is constructed. The first layer of the Stacking model consists of multiple weak learner models trained through cross-validation and grid search.

[0092] The Stacking model is a stacking model and a model integration technology. The Stacking model generates the final prediction output by combining the prediction results of multiple base learners. The processing steps of Stacking mainly include the following steps: Dataset division. The original data set is divided into a training set and a test set; base learners are trained. Multiple base learners are trained using the training set. The base learners can be set by using different algorithms or parameters; prediction results of base learners are generated. The base learners predict the training set and the test set to generate prediction results; the training set of the secondary learner is constructed. The prediction results of the base learner on the training set are used as new features for training the secondary learner; the secondary learner is trained. The constructed feature set is used to train the secondary learner, such as logistic regression, support vector machine, etc. Generate the final prediction result; the secondary learner predicts the test set and outputs the final result. The advantages of Stacking include the ability to combine the advantages of multiple models, improve the generalization ability and prediction performance of the model, and reduce the risk of overfitting. However, it also has some disadvantages, such as long training time, more computing resources and memory space, and high requirements for the selection and parameter tuning of primary learners.

[0093] Learners include weak learners and strong learners. Weak learners refer to models whose performance is only slightly better than random guessing. For example, in a multiple-choice question with four options, the accuracy of a weak learner is slightly greater than 25%, that is, it is higher than the accuracy of random guessing, but the improvement is not large. The accuracy of a weak learner cannot be too high, otherwise it will be regarded as a strong learner. In ensemble learning, multiple weak learners can be combined in a certain combination method (such as Bagging, Stacking or Boosting) to form a strong learner with strong performance. Bagging is to generate B new training sets through Bootstrap sampling on the basis of the original training set Z, train a model on each new training set, and finally average these models to obtain the final model; Boosting is to select one from the base model set each time, and gradually add and expand the existing model to obtain the final strong learner. Each iteration of the Boosting forward step-by-step algorithm is to fit the residual of the current model on the training set. Each time the residual is reduced a little bit, it will eventually reach perfection and integrate the weak learners into a strong learner. Each layer of the stacked model is equivalent to the activation function of the neural network; if we look at the neural network from the perspective of feature extraction, the upper layer of the neural network will share the network structure and parameters of the lower layer, so the feature correlation of the neural network will be stronger, while the features used in stacking are more different. Therefore, the stacking process expands the range of the feature space and strengthens the expressive power of the final model.

[0094] The second-layer Stacking model selects n weak learner models by permutation and combination according to the weak learner models of the first layer, and uses the DT algorithm as the meta-learner to construct multiple Meta-models.

[0095] The basic principle of the DT algorithm is that all samples should be classified into the category that is closest to them. First, multiple condensation points are given according to the basic characteristics of the samples, that is, the center of the "class" to be formed, and the distance from each sample to the condensation point is calculated. The sample is classified into the nearest condensation point to form a rough initial classification. Then, according to certain principles, the initial classification is adjusted until the classification is reasonable and the classification result is output. In the process of adjusting the classification, the distance error between samples is continuously corrected. When the error reaches an acceptable range, a relatively accurate result can be obtained. In the process of repeated modifications, the level of the sample allows dynamic adjustment and can change from the initial classification.

[0096] The third-layer Stacking model builds the final Meta-model based on multiple Meta-models in the second layer.

[0097] The traditional Stacking model contains two levels of prediction models. However, it is difficult to solve this type of problem well by using a two-level structure to predict the fluorescence intensity of carbon dots, and its prediction accuracy is relatively limited. Therefore, the present application adds a new hierarchical structure on top of the two-level Stacking model, and uses a three-level Stacking model to analyze the characteristic values ​​of the fluorescent carbon dots. In the three-level Stacking model established, the model of the first level is the same as the first level of the two-level Stacking model. It is composed of a variety of weak learner models that have been trained based on the conductive ink database through cross-validation and grid search; the model of the second level is based on the weak learner model of the first level, and n weak learner models are selected by permutation and combination, and the DT algorithm is used as the meta-learner to construct a variety of Meta-models, named: Meta Model1-Meta Model5; the model of the third level is based on the multiple Meta-models of the second level to construct the last Meta-model, named Meta Regressor. Finally, Meta Regressor is used to complete the prediction of the fluorescence intensity of carbon dots. The construction of the three-level Stacking model is shown in the figure below. Figure 5 shown.

[0098] Preferably, reference Figure 3 , S300, before using the most accurate machine learning model to detect the fluorescence performance of carbon dots, it also includes training the most accurate machine learning model, specifically:

[0099] S210, inputting multiple groups of recipe parameters into a machine learning model as training sets;

[0100] S220, the machine learning model outputs the fluorescence intensity of the carbon dot solution prepared by multiple sets of recipe parameters;

[0101] A model is a mathematical function consisting of a set of parameters. These parameters are adjusted through the learning process of training data so that the model can adapt to the characteristics of the data. The goal of training is to find the optimal parameter configuration so that the model can best capture the underlying pattern of the data.

[0102] S230, comparing the fluorescence intensity of the carbon dot solutions prepared by the multiple sets of formula parameters output by the machine learning model with the fluorescence intensity of the carbon dot solutions prepared by the multiple sets of formula parameters actually detected;

[0103] In machine learning, machine learning models learn patterns and regularities in input data so that they can make predictions or perform tasks. This learning process is called training of machine learning models. Machine learning models are the application of mathematical and statistical methods. They learn from training data and adjust internal parameters so that they can generalize to unseen data. The purpose of machine learning model training is to enable the model to generalize, that is, to adapt to and predict new input data. If the model is only effective for training data and does not perform well on new data, it cannot be used in practice.

[0104] S240, when the difference between the fluorescence intensity of the carbon dot solutions prepared by the multiple sets of formula parameters output by the machine learning model and the fluorescence intensity of the carbon dot solutions prepared by the multiple sets of formula parameters actually detected is less than a threshold, stop training.

[0105] In order to prove the accuracy of Meta Regressor in predicting the fluorescence intensity of carbon dots, Meta Regressor was compared with several traditional machine learning models. As can be seen from Table 1, the evaluation indicators of Meta Regressor are significantly better than those of other models, among which EVS and R 2 All of them are higher than other models, while MAE, MSE, RMSE and MAPE are lower than other models, indicating that Meta Regressor has excellent prediction performance for the fluorescence intensity of carbon dots.

[0106] Table 1: Comparison parameters of Meta Regressor and multiple traditional machine learning models

[0107]

[0108] Example 2

[0109] A carbon dot fluorescence performance detection system based on a machine learning model, comprising:

[0110] An input module, used to input the formula parameters of the carbon dot solution into the machine learning model;

[0111] A judgment module is used to select the most accurate machine learning model based on the prediction results of the machine learning model;

[0112] The data processing module is used to detect the fluorescence performance of carbon dots using the most accurate machine learning model.

[0113] Example 3

[0114] An electronic device includes: a processor and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor executes the computer instructions, the electronic device executes a carbon dot fluorescence performance detection method based on a machine learning model.

[0115] refer to Figure 4 , the electronic device 2 includes a processor 21, a memory 22, an input device 23, and an output device 24. The processor 21, the memory 22, the input device 23, and the output device 24 are coupled via a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiments of the present invention. It should be understood that in various embodiments of the present invention, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, through various interfaces, transmission lines, buses, etc.

[0116] The processor 21 may be one or more graphics processing units (GPUs). When the processor 21 is a GPU, the GPU may be a single-core GPU or a multi-core GPU. Optionally, the processor 21 may be a processor group consisting of multiple GPUs, and the multiple processors are coupled to each other via one or more buses. Optionally, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present invention.

[0117] The memory 22 can be used to store computer program instructions and various computer program codes including program codes for executing the scheme of the present invention. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), which is used for related instructions and data.

[0118] The input device 23 is used to input data and / or signals, and the output device 24 is used to output data and / or signals. The output device 23 and the input device 24 can be independent devices or an integrated device.

[0119] Example 4

[0120] A computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes a method for detecting the fluorescence performance of carbon dots based on a machine learning model.

[0121] The present application modifies the existing carbon dot solution formula through the control variable method based on the existing carbon dot solution formula, so as to obtain multiple groups of carbon dot solution formulas and corresponding experimental data of the fluorescence performance of the carbon dot solution, so as to construct a machine learning model for screening and predicting the most accurate and a sample database for training the most accurate machine learning model. The present application improves the existing machine learning model according to the subject to be predicted, so that the machine learning model can be more suitable for predicting the fluorescence performance of the carbon dot solution, and then iteratively trains the screened machine learning model, so as to ensure the accuracy of the machine learning model in predicting the fluorescence performance of the carbon dot solution. The present application does not need to study the carbon dot solution formula parameters through a large number of experiments to obtain the carbon dot solution formula with the best fluorescence performance, which can greatly save production costs and improve production efficiency.

[0122] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for detecting fluorescence properties of carbon dots based on a machine learning model, characterized in that: include: The formulation parameters of the carbon dot solution were input into various machine learning models; Filter out the most accurate machine learning model based on its prediction results; The most accurate machine learning model was used to test the fluorescence performance of carbon dots.

2. The method for detecting fluorescence performance of carbon dots based on a machine learning model according to claim 1, characterized in that: Before inputting the formula parameters of the carbon dot solution into a plurality of machine learning models, the method further includes: Prepare multiple groups of carbon dot solutions with different formulation parameters; The fluorescence properties of multiple groups of carbon dot solutions with different formulation parameters were detected.

3. The method for detecting fluorescence performance of carbon dots based on a machine learning model according to claim 1, characterized in that: The method of selecting the most accurate machine learning model based on the prediction results of the machine learning model includes: Set error measurement indicators and trend measurement indicators to judge the prediction accuracy of the machine learning model; The error measurement index and the trend measurement index are used to determine the difference between the fluorescence performance of the carbon dot solution output by the machine learning model and the fluorescence performance of the carbon dot solution actually detected; The error measurement indicators include: mean absolute error MAE, mean square error MSE, root mean square error EMSE, mean absolute percentage error MAPE; The trend measurement indicators include: EVS, R2.

4. The method for detecting fluorescence performance of carbon dots based on a machine learning model according to claim 3, characterized in that: Calculating the error measurement index includes: The mean absolute error (MAE), mean square error (MSE), root mean square error (EMSE), and mean absolute percentage error (MAPE) are calculated based on the test set data of the carbon dot solution, the training set data of the carbon dot solution, and the number of samples of the carbon dot solution.

5. The method for detecting fluorescence performance of carbon dots based on a machine learning model according to claim 3, characterized in that: Calculating the trend measurement indicator includes: EVS and R2 are calculated according to the test set data of the carbon dot solution, the training set data of the carbon dot solution, and the number of samples of the carbon dot solution.

6. The method for detecting fluorescence performance of carbon dots based on a machine learning model according to claim 1, characterized in that: Building the machine learning model includes: A three-layer Stacking model is constructed. The first layer of the Stacking model consists of multiple weak learner models trained through cross-validation and grid search. The second-layer Stacking model selects n weak learner models by permutation and combination according to the weak learner models of the first layer, and uses the DT algorithm as the meta-learner to construct multiple Meta-models. The third-layer Stacking model builds the final Meta-model based on multiple Meta-models in the second layer.

7. The method for detecting fluorescence performance of carbon dots based on a machine learning model according to claim 2, characterized in that: Before using the most accurate machine learning model to detect the fluorescence performance of carbon dots, the method further includes training the most accurate machine learning model, specifically: Inputting multiple sets of recipe parameters as training sets into the machine learning model; The machine learning model outputs the fluorescence intensity of the carbon dot solution prepared by multiple sets of recipe parameters; The fluorescence intensity of the carbon dot solutions prepared by the multiple sets of formula parameters output by the machine learning model is compared with the fluorescence intensity of the carbon dot solutions prepared by the multiple sets of formula parameters actually tested; The training is stopped when the difference between the fluorescence intensity of the carbon dot solution prepared by the multiple sets of formula parameters output by the machine learning model and the fluorescence intensity of the carbon dot solution prepared by the multiple sets of formula parameters actually detected is less than a threshold.

8. A carbon dot fluorescence performance detection system based on a machine learning model, characterized in that: include: An input module, used to input the formula parameters of the carbon dot solution into the machine learning model; A judgment module is used to select the most accurate machine learning model based on the prediction results of the machine learning model; The data processing module is used to detect the fluorescence performance of carbon dots using the most accurate machine learning model.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store computer program codes, wherein the computer program codes include computer instructions. When the processor executes the computer instructions, the electronic device executes a method for detecting fluorescence properties of carbon dots based on a machine learning model as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes a carbon dot fluorescence performance detection method based on a machine learning model as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Concrete compressive strength prediction model, construction method, medium and electronic equipment

    CN116434893A

  • Landslide risk result evaluation method based on improved Stacking fusion model

    CN117725493A

  • KR20230077280A

Cited By

  • Method and system for evaluating light absorption intensity of near-infrared two-region fluorescent molecular aggregate

    CN120280007A

  • Near-infrared second-region fluorescent molecular aggregate light absorption intensity evaluation method and system

    CN120280007B