Method and device for predicting yield of chemical reaction

By screening and training the yield prediction model, using the combination of intermediate replacement reaction conditions as input, the problem of low prediction accuracy of chemical reaction yield is solved, and the prediction accuracy and model adaptability are improved.

CN119049593APending Publication Date: 2024-11-29GUANGZHOU NAT LAB +1
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411096336.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The low prediction accuracy of chemical reaction yield in the prior art limits the application of artificial intelligence algorithms in chemical reaction yield optimization.

Method used

By selecting the substrates of similar chemical reactions from the first database, screening candidate substrates, determining the sample products based on the candidate substrates, generating reaction samples, training yield prediction models, and applying the combination of intermediate replacement reaction conditions as input, so that the production The rate prediction model can learn knowledge in the chemical reaction process, reduce the complexity of the model, and improve the prediction accuracy.

Benefits of technology

It improves the accuracy and generalization ability of chemical reaction yield prediction, simplifies the yield optimization process, reduces the complexity of model training, and enhances the ability to adapt to multiple reaction conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119049593A_ABST
    Figure CN119049593A_ABST
Patent Text Reader

Abstract

The invention provides a chemical reaction yield prediction method and device, and the method comprises the steps: determining an intermediate of a chemical reaction based on a reaction condition combination of the chemical reaction and a first substrate participating in the chemical reaction; the intermediate, a second substrate participating in the chemical reaction and a product of the chemical reaction are input into a yield prediction model, the predicted yield of the chemical reaction output by the yield prediction model is obtained, and the second substrate is the substrate participating in the chemical reaction except the first substrate; the yield prediction model is obtained based on training of a plurality of reaction samples, and the reaction samples comprise sample second substrates participating in a sample chemical reaction, and sample intermediates, sample products and actually measured yields of the sample chemical reaction. According to the method, the device and the equipment provided by the invention, various and complex reaction condition combinations do not need to be input, so that the complexity of the yield prediction model is greatly reduced, and the yield prediction precision for chemical reaction is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chemical technology, and in particular to a method and device for predicting the yield of a chemical reaction. Background Art

[0002] Yield optimization strategies for chemical reactions mostly rely on researchers' experience and knowledge accumulation, and on repeated manual trial and error correction, which is undoubtedly a time-consuming and labor-intensive process.

[0003] With the development of artificial intelligence technology, solutions for predicting yields based on artificial intelligence algorithms have emerged. The introduction of artificial intelligence algorithms has effectively simplified the process of chemical reaction yield optimization and improved the efficiency of chemical reaction yield optimization.

[0004] However, the current prediction accuracy of chemical reaction yields based on artificial intelligence algorithms is low, which limits the application of artificial intelligence algorithms in optimizing the yield of chemical reactions. Summary of the invention

[0005] The present invention provides a method and device for predicting the yield of a chemical reaction, which are used to solve the defect of low accuracy in predicting the yield of a chemical reaction in the related art.

[0006] The present invention provides a chemical reaction yield prediction model training method, comprising: Selecting a substrate of a chemical reaction of the same type as the chemical reaction from a first database, wherein the first database is associated with the chemical reaction application; From substrates of each similar chemical reaction, selecting a substrate present in a second database as a candidate substrate, wherein the second database stores data of substrates that can be used for high-throughput experiments; Determine a sample product based on the candidate substrate, and generate a reaction sample based on the sample product, and a sample substrate, a sample reaction condition combination, and a measured yield of a sample chemical reaction corresponding to the sample product; Based on the reaction samples, a yield prediction model of the chemical reaction is trained.

[0007] According to a method for training a yield prediction model for a chemical reaction provided by the present invention, the method of determining a sample product based on the candidate substrate comprises: Based on the candidate substrate, determining a plurality of candidate products; arbitrarily selecting a candidate product from the multiple candidate products as the sample product, and deleting the sample product from the multiple candidate products; Calculate the minimum value of the structural distance between each candidate product in the multiple candidate products and all sample products, take the candidate product with the largest minimum value as the sample product, delete the sample product from the multiple candidate products, return to calculate the minimum value of the structural distance between each candidate product in the remaining multiple candidate products and all sample products, until the selection is completed, the structural distance is the distance between the structural features of the candidate product to be selected and the structural features of the sample product.

[0008] According to a chemical reaction yield prediction model training method provided by the present invention, the sample product is determined based on the candidate substrate, and further includes: Determining the spatial coverage of the sample product compared to the product of the same chemical reaction based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction; When the spatial coverage is greater than or equal to the coverage threshold, it is determined that the selection is completed.

[0009] According to a chemical reaction yield prediction model training method provided by the present invention, the sample product is determined based on the candidate substrate, and further includes: When the spatial coverage is less than the coverage threshold, return to randomly selecting one candidate product from the multiple candidate products as the sample product, or continue to select a new sample product.

[0010] According to a method for training a chemical reaction yield prediction model provided by the present invention, the spatial coverage of the sample product compared to the product of the same chemical reaction is determined based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction, and the method also includes: The structural features of the sample products are dimensionally reduced, and the structural features of the products of the same chemical reactions are dimensionally reduced, so that the structural features of the sample products after dimension reduction and the structural features of the products of the same chemical reactions after dimension reduction are mapped in the same feature space.

[0011] According to a chemical reaction yield prediction model training method provided by the present invention, the measured yield is obtained by performing a high-throughput experiment on the sample chemical reaction.

[0012] According to a chemical reaction yield prediction model training method provided by the present invention, generating a reaction sample based on the sample product, and the sample substrate, sample reaction condition combination and measured yield of the sample chemical reaction corresponding to the sample product, comprises: determining a sample intermediate of the sample chemical reaction based on the sample reaction condition combination and a sample first substrate participating in the sample substrate; The reaction sample is generated based on the sample product, a sample second substrate in the sample substrate and the measured yield, wherein the sample second substrate is a substrate in the sample substrate other than the sample first substrate.

[0013] According to a chemical reaction yield prediction model training method provided by the present invention, the yield prediction model of the chemical reaction is trained based on the reaction sample, comprising: Based on a plurality of reaction samples corresponding to the same sample reaction condition combination, a yield prediction model of the chemical reaction corresponding to the sample reaction condition combination is trained.

[0014] According to a chemical reaction yield prediction model training method provided by the present invention, the yield prediction model of the chemical reaction is trained based on the reaction sample, comprising: Based on the reaction samples corresponding to the plurality of sample reaction condition combinations, a yield prediction model of the chemical reaction is trained.

[0015] The present invention also provides a method for predicting the yield of a chemical reaction, comprising: determining an intermediate of the chemical reaction based on a combination of reaction conditions of the chemical reaction and a first substrate participating in the chemical reaction; Inputting the intermediate, a second substrate participating in the chemical reaction, and a product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model, wherein the second substrate is a substrate participating in the chemical reaction other than the first substrate; The yield prediction model is obtained by training based on a plurality of reaction samples, wherein the reaction samples include a sample second substrate participating in a sample chemical reaction, and a sample intermediate, a sample product and a measured yield of the sample chemical reaction.

[0016] According to a method for predicting the yield of a chemical reaction provided by the present invention, the intermediate, the second substrate involved in the chemical reaction, and the product of the chemical reaction are input into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model, comprising: Inputting the intermediate, the second substrate participating in the chemical reaction, and the product of the chemical reaction into a yield prediction model corresponding to the reaction condition combination, and obtaining a predicted yield of the chemical reaction output by the yield prediction model corresponding to the reaction condition combination; The reaction condition combinations corresponding to the multiple reaction samples are consistent with the reaction condition combinations of the chemical reaction.

[0017] According to a method for predicting the yield of a chemical reaction provided by the present invention, the plurality of reaction samples correspond to a plurality of reaction condition combinations, and the reaction condition combination of the chemical reaction belongs to one of the plurality of reaction condition combinations.

[0018] According to a method for predicting the yield of a chemical reaction provided by the present invention, the intermediate, the second substrate involved in the chemical reaction, and the product of the chemical reaction are input into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model, comprising: When the yield prediction model is a shallow machine learning model, the vector representation of the intermediate, the vector representation of the second substrate, and the vector representation of the product are input into the yield prediction model to obtain the predicted yield of the chemical reaction output by the yield prediction model.

[0019] According to a method for predicting the yield of a chemical reaction provided by the present invention, the intermediate, the second substrate involved in the chemical reaction, and the product of the chemical reaction are input into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model, comprising: In the case where the yield prediction model is a deep machine learning model, the reaction formula is input into the yield prediction model in the form of a linear molecular structure string to obtain the predicted yield of the chemical reaction output by the yield prediction model; The reaction formula includes the intermediate, the second substrate and the product.

[0020] According to a method for predicting the yield of a chemical reaction provided by the present invention, the acquisition of the sample product includes: Selecting a substrate of a similar chemical reaction to the chemical reaction from a first database, wherein the first database is associated with a chemical reaction application; From substrates of each similar chemical reaction, selecting a substrate present in a second database as a candidate substrate, wherein the second database stores data of substrates that can be used for high-throughput experiments; Based on the candidate substrate, the sample product is determined.

[0021] According to a method for predicting the yield of a chemical reaction provided by the present invention, the step of determining the sample product based on the candidate substrate comprises: Based on the candidate substrate, determining a plurality of candidate products; arbitrarily selecting a candidate product from the multiple candidate products as the sample product, and deleting the sample product from the multiple candidate products; Calculate the minimum value of the structural distance between each candidate product in the multiple candidate products and all sample products, take the candidate product with the largest minimum value as the sample product, delete the sample product from the multiple candidate products, return to calculate the minimum value of the structural distance between each candidate product in the remaining multiple candidate products and all sample products, until the selection is completed, the structural distance is the distance between the structural features of the candidate product to be selected and the structural features of the sample product.

[0022] According to a method for predicting the yield of a chemical reaction provided by the present invention, the determining of the sample product based on the candidate substrate further includes: Determining the spatial coverage of the sample product compared to the product of the same chemical reaction based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction; When the spatial coverage is greater than or equal to the coverage threshold, it is determined that the selection is completed.

[0023] According to a method for predicting the yield of a chemical reaction provided by the present invention, the determining of the sample product based on the candidate substrate further includes: When the spatial coverage is less than the coverage threshold, return to randomly selecting one candidate product from the multiple candidate products as the sample product, or continue to select a new sample product.

[0024] According to a method for predicting the yield of a chemical reaction provided by the present invention, the spatial coverage of the sample product compared to the product of the same chemical reaction is determined based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction, and the method also includes: The structural features of the sample products are dimensionally reduced, and the structural features of the products of the same chemical reactions are dimensionally reduced, so that the structural features of the sample products after dimension reduction and the structural features of the products of the same chemical reactions after dimension reduction are mapped in the same feature space.

[0025] According to a method for predicting the yield of a chemical reaction provided by the present invention, the measured yield is obtained by performing a high-throughput experiment on the sample chemical reaction.

[0026] The present invention also provides a chemical reaction yield prediction model training device, comprising: A first selection unit, configured to select a substrate of a chemical reaction of the same type as the chemical reaction from a first database, wherein the first database is associated with the chemical reaction application; A second selection unit is used to select substrates existing in a second database from substrates of the same type of chemical reactions as candidate substrates, wherein the second database stores data of substrates that can be used for high-throughput experiments; A sample generating unit, configured to determine a sample product based on the candidate substrate, and generate a reaction sample based on the sample product, and a sample substrate, a sample reaction condition combination and a measured yield of a sample chemical reaction corresponding to the sample product; A model training unit is used to train the yield prediction model of the chemical reaction based on the reaction sample.

[0027] The present invention also provides a chemical reaction yield prediction device, comprising: An intermediate determination unit, for determining an intermediate of the chemical reaction based on a combination of reaction conditions of the chemical reaction and a first substrate participating in the chemical reaction; A yield prediction unit, used for inputting the intermediate, a second substrate participating in the chemical reaction, and a product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model, wherein the second substrate is a substrate participating in the chemical reaction other than the first substrate; The yield prediction model is obtained by training based on a plurality of reaction samples, wherein the reaction samples include a sample second substrate participating in a sample chemical reaction, and a sample intermediate, a sample product and a measured yield of the sample chemical reaction.

[0028] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the yield prediction model training method for a chemical reaction or the yield prediction method for a chemical reaction as described above is implemented.

[0029] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the chemical reaction yield prediction model training methods or chemical reaction yield prediction methods described above.

[0030] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned chemical reaction yield prediction model training methods or chemical reaction yield prediction methods.

[0031] The yield prediction method and device for chemical reactions provided by the present invention use an intermediate to replace the first substrate and a combination of reaction conditions as the input of a yield prediction model, so that the yield prediction model can learn intermediate knowledge of the chemical reaction process. Moreover, since there is no need to input a wide variety of complex reaction condition combinations, the complexity of the yield prediction model is greatly reduced, and the yield prediction accuracy for chemical reactions is improved.

[0032] In addition, in combination with a first database associated with chemical reaction applications and a second database storing data on substrates that can be used for high-throughput experiments, candidate substrates stored in the first database and the second database are screened, so that the screened candidate substrates not only meet the application value but also have the characteristics of being easy to obtain and convenient for high-throughput experiments. Based on this, sample products are determined for high-throughput experiments, and evenly distributed and comprehensive reaction samples can be obtained, thereby ensuring the generalization ability of the yield prediction model and further improving the prediction accuracy of the yield prediction model. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 It is a schematic flow chart of the chemical reaction yield prediction model training method provided by the present invention.

[0035] Figure 2 It is a schematic diagram of the structural characteristics distribution of the sample product provided by the present invention and the products of the same chemical reaction.

[0036] Figure 3 It is a vector representation schematic diagram of the chemical reaction provided by the present invention.

[0037] Figure 4 It is one of the structural schematic diagrams of the yield prediction model provided by the present invention.

[0038] Figure 5 This is the second structural schematic diagram of the yield prediction model provided by the present invention.

[0039] Figure 6 It is a schematic flow chart of the yield prediction method of a chemical reaction provided by the present invention.

[0040] Figure 7 This is the third structural schematic diagram of the yield prediction model provided by the present invention.

[0041] Figure 8 It is a schematic diagram of the reaction formula provided by the present invention.

[0042] Fig. 9 This is the fourth structural schematic diagram of the yield prediction model provided by the present invention.

[0043] Fig.10 It is a schematic diagram of the flow of the method for obtaining the sample product provided by the present invention.

[0044] Fig.11 It is a schematic diagram of the yield prediction effect provided by the present invention.

[0045] Fig.12 It is a structural schematic diagram of a chemical reaction yield prediction model training device provided by the present invention.

[0046] Fig.13 It is a schematic diagram of the structure of the yield prediction device for a chemical reaction provided by the present invention.

[0047] Fig.14 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.

[0049] At present, in the scheme of predicting chemical reaction yield based on artificial intelligence algorithm, it is usually necessary to build a yield prediction model based on artificial intelligence algorithm. The data quality of the reaction samples used to train the yield prediction model will also affect the prediction accuracy of the yield prediction model.

[0050] For example, in some related technologies, people have proposed to use literature reaction data to establish a yield prediction model for acylation reactions. However, since literature reaction data often have problems such as inconsistency between reports and actual conditions, variability in experimental conditions, and lack of comprehensive data sets, it is actually difficult to establish a reliable and generalizable yield prediction model using only literature reaction data. In addition, since literature usually only reports successful reactions with high yields and lacks reaction data with low yields, only using literature reaction data for training yield prediction models ignores the negative data of low yields necessary for creating a well-distributed and accurate yield prediction model, which results in low yield accuracy of chemical reactions predicted based on yield prediction models.

[0051] Therefore, how to obtain reaction samples with comprehensive distribution to improve the prediction accuracy of the yield prediction model is still a problem to be solved urgently in this field.

[0052] In view of the above problems, an embodiment of the present invention provides a method for training a yield prediction model for a chemical reaction. Figure 1 : is a schematic diagram of a process for training a yield prediction model for a chemical reaction provided by the present invention, such as Figure 1 As shown, the method includes: Step 110 , selecting a substrate of a chemical reaction of the same type as the chemical reaction from a first database, wherein the first database is associated with the chemical reaction application.

[0053] The chemical reaction here is the chemical reaction for which yield prediction is required. For example, the chemical reaction here can be Buchwald-Hartwig amination reaction, Suzuki coupling reaction, ketone arylation reaction, acylation reaction, aromatic nucleophilic substitution reaction, Chan-Lam coupling reaction, Sonogashira coupling reaction, Ullmann coupling reaction, Heck reaction, reductive amination reaction, Miyaura borylation reaction, Hiyama coupling reaction, Grignard reaction, aromatic Finkelstein reaction, allyl substitution reaction, Kumada coupling reaction, palladium-catalyzed carbonylation reaction, esterification reaction, etc., which are not specifically limited in the embodiments of the present invention.

[0054] The first database is a database storing various chemical reaction-related data, and the first database is a database associated with the application scenario of the chemical reaction, and the application scenario here can be chemical informatics, drug discovery, reaction prediction, etc. That is, the first database is data focusing on reflecting the relevant information of the practical application of the chemical reaction, for example, the first database can be a patent database, specifically a USPTO reaction data set.

[0055] For a chemical reaction to be predicted, chemical reactions of the same type as the chemical reaction can be recorded as chemical reactions of the same type. For example, various amidation reactions using different types of carboxylic acid compounds and amine compounds as substrate pairs all belong to chemical reactions of the same type.

[0056] The relevant data of the same chemical reaction as the chemical reaction can be selected from the first database, and the substrate used for the same chemical reaction can be obtained therefrom. Here, the relevant data of the same chemical reaction selected from the first database can include information such as the substrate, reaction condition combination, and product used for the same chemical reaction. It can be understood that the relevant data of the same chemical reaction extracted here can fully cover the positive data, low yield data, and negative data related to the chemical reaction, and have a wide range of chemical diversity.

[0057] Substrates used in similar chemical reactions are selected from the first database and can be obtained by filtering and screening in the first database through reaction templates. The reaction template here can be understood as a general reaction formula, which is a chemical term used to describe the chemical reaction rules between one or several classes of compounds. As a general chemical equation, a reaction template contains at least one variable group or element to represent a class of compounds with similar reaction characteristics. For example, the SMILES ARbitrary Target Specification (SMARTS) can be used to establish a reaction template for a chemical reaction.

[0058] For example, substrates of similar chemical reactions that match the reaction template can be filtered from the USPTO reaction dataset through the open source software package RDKit26. Here, RDKit26t is an open source software package for cheminformatics, which can provide a series of tools and algorithms for molecular descriptor calculation, chemical information processing and drug design to facilitate data screening and filtering.

[0059] It can be understood that the substrates of the same type of chemical reaction obtained through the first database are substrates that may be applied when performing the chemical reaction to be predicted, are closer to the actual application scenario, and have stronger application value.

[0060] Step 120, selecting substrates existing in a second database from substrates of the same type of chemical reactions as candidate substrates, wherein the second database stores data of substrates that can be used for high-throughput experiments.

[0061] Specifically, after obtaining substrates of the same chemical reaction from the first database, further screening can be performed on the substrates of the same chemical reaction. The further screening here can be achieved through the second database.

[0062] Here, the second database is a database storing relevant data of substrates that can be used for high-throughput experiments (HTE), that is, the substrates included in the second database are accessible and easy to apply to high-throughput experiments. For example, the second database can be a commercial database, specifically an internal commercial molecule database.

[0063] From the substrates of each similar chemical reaction, the substrates present in the second database can be selected as candidate substrates. That is, the candidate substrate is a substrate that exists in the first database and also in the second database. Thus, the acquisition of the candidate substrate can be understood as the intersection of the substrates of the same chemical reaction in the first database and the substrates in the second database. For example, in the case where the chemical reaction to be predicted belongs to an amidation reaction, various carboxylic acid compounds and amine compounds used for the amidation reaction can be obtained through the first data, and then the carboxylic acid compounds and amine compounds present in the second database can be screened out as candidate substrates.

[0064] It is understandable that the candidate substrates thus obtained exist in the first database and have application value for conducting similar chemical reactions, and also exist in the second database and have the characteristics of being easy to obtain and can be used for high-throughput experiments.

[0065] Step 130 , determining a sample product based on the candidate substrate, and generating a reaction sample based on the sample product, and a sample substrate, a sample reaction condition combination, and a measured yield of a sample chemical reaction corresponding to the sample product.

[0066] Specifically, after the candidate substrates are obtained, the sample products can be determined based on them. For example, all the obtained candidate substrates can be used as sample substrates that can be used for sample chemical reactions, and the products that may be generated under the combination of various sample substrates can be listed through the reaction template as sample products. Alternatively, the obtained candidate substrates can be further screened, and the products that may be generated under the combination of various candidate substrates after screening can be listed through the reaction template as sample products, which is not specifically limited in the embodiment of the present invention.

[0067] The sample product here can be understood as the product of the sample chemical reaction corresponding to the reaction sample used to train the yield prediction model.

[0068] After obtaining the sample product, the sample substrate used to generate the sample product can be determined by the reaction template, thereby forming a completed sample chemical reaction. In this case, a high-throughput experiment can be performed on the sample chemical reaction to record the measured yield of the sample chemical reaction. Subsequently, a reaction sample can be generated based on the sample substrate, sample product, and sample reaction condition combination used to achieve the sample chemical reaction, as well as the measured yield of the sample chemical reaction.

[0069] Step 140: training a yield prediction model for the chemical reaction based on the reaction sample.

[0070] Specifically, after obtaining the reaction samples, the yield prediction model can be trained based on the reaction samples.

[0071] In the process of training the yield prediction model, the sample substrate, sample condition combination and sample product in the reaction sample can be input into the initial model, so as to obtain the predicted yield for the reaction sample output by the initial model, and then the loss function value is calculated by combining the predicted yield for the reaction sample with the measured yield in the reaction sample, and the calculated loss function value is applied to perform parameter iteration on the initial model. Finally, the initial model after parameter iteration can be used as the yield prediction model.

[0072] In the method provided in an embodiment of the present invention, a first database associated with a chemical reaction application and a second database storing data of substrates that can be used for high-throughput experiments are combined to screen and store candidate substrates in the first database and the second database, so that the screened candidate substrates not only meet the application value but also have the characteristics of being easy to obtain and convenient for high-throughput experiments. Based on this, sample products are determined for high-throughput experiments, and evenly distributed and comprehensive reaction samples can be obtained, thereby ensuring the generalization ability of the yield prediction model and further improving the prediction accuracy of the yield prediction model.

[0073] Based on any of the above embodiments, in step 130, determining the sample product based on the candidate substrate includes: Based on the candidate substrate, determining a plurality of candidate products; arbitrarily selecting a candidate product from the multiple candidate products as the sample product, and deleting the sample product from the multiple candidate products; Calculate the minimum value of the structural distance between each candidate product in the multiple candidate products and all sample products, take the candidate product with the largest minimum value as the sample product, delete the sample product from the multiple candidate products, return to calculate the minimum value of the structural distance between each candidate product in the remaining multiple candidate products and all sample products, until the selection is completed, the structural distance is the distance between the structural features of the candidate product to be selected and the structural features of the sample product.

[0074] Specifically, after obtaining the candidate substrates, the products that may be generated under the combination of various candidate substrates can be listed through the reaction template. In the embodiment of the present invention, the products thus obtained are recorded as candidate products.

[0075] In order to select representative candidate products from a large number of candidate products as sample products so as to ensure that the reaction samples obtained are evenly and comprehensively distributed, in the embodiments of the present invention, further screening of the candidate products is required.

[0076] Prior to this, it is necessary to extract the structural features of each candidate product. Here, for any candidate product, the structural features of the candidate product are feature codes obtained by abstractly characterizing the molecular structure of the candidate product. For example, the structural features may be the molecular fingerprint of the candidate product, or the structural features may be features obtained by further feature extraction of the molecular fingerprint of the candidate product, or the structural features may be features after dimensionality reduction of the molecular fingerprint of the candidate product, which is not specifically limited in the embodiments of the present invention.

[0077] In addition, in the embodiment of the present invention, the distance between the structural features of the two products is recorded as the structural distance, for example, the structural distance can be the Euclidean distance. It should be noted that, for two products, the closer the structural distance, the higher the similarity of the molecular structures of the two products, and the farther the structural distance, the lower the similarity of the molecular structures of the two products.

[0078] Here, the process of selecting a sample product from candidate products can be understood as starting from a random candidate product and selecting candidate products one by one as sample products. In this process, it is necessary to ensure that the minimum structural distance between the sample product selected first and the candidate product to be selected as the sample product later is maximized, thereby ensuring that the structural features of the sample product finally selected are as dispersed as possible in the feature space.

[0079] It can be understood that the minimum structural distance between the sample product selected previously and the candidate product to be selected later as the sample product reflects the similarity between the sample product that is most similar to the candidate product to be selected and the candidate product. Maximizing the minimum structural distance between the sample product selected previously and the candidate product to be selected later as the sample product means that it is necessary to select the candidate product with the smallest similarity with all the sample products that have been selected from all the selectable candidate products as the new sample product, that is, the sample product selected each time is the candidate product that is most different from all the sample products that have been selected among all the selectable candidate products.

[0080] In a specific implementation, when a sample product is selected for the first time, a candidate product can be randomly selected from all optional candidate products as the first sample product, and after the first sample product is selected, the sample product is removed from all optional candidate products.

[0081] Subsequently, when selecting the next sample product, the structural distances between all optional candidate products and the sample products that have been selected can be calculated. In the case of multiple sample products, for each optional candidate product, the minimum value of the structural distances between the candidate product and each sample product is counted, that is, the structural distance between the candidate product and the sample product that is most similar to itself.

[0082] Next, from all the optional candidate products, the candidate product with the largest minimum structural distance, that is, the candidate product with the largest structural distance to the sample product with the most similarity to itself, is selected as the new sample product. And after the new sample product is selected, the sample product is removed from all the optional candidate products.

[0083] Then, the process of selecting the next sample product can be returned. The above steps can be repeated until the selection is completed.

[0084] Here, the condition for ending the selection may be that the number of sample products selected reaches a preset number threshold, or that the distribution of structural characteristics of all sample products selected meets the uniform and comprehensive requirements for generating reaction samples. The embodiment of the present invention does not specifically limit this.

[0085] In the method provided in the embodiment of the present invention, by ensuring that the minimum structural distance between the sample product selected previously and the candidate product to be selected later as the sample product is maximized, it is ensured that the sample product finally selected can meet the uniform and comprehensive requirements of the distribution required for generating reaction samples, thereby ensuring the generalization ability of the yield prediction model and improving the prediction accuracy of the yield prediction model.

[0086] Based on any of the above embodiments, in step 130, determining the sample product based on the candidate substrate further includes: Determining the spatial coverage of the sample product compared to the product of the same chemical reaction based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction; When the spatial coverage is greater than or equal to the coverage threshold, it is determined that the selection is completed.

[0087] Specifically, feature distribution information refers to the distribution of a type of feature on all samples, which can reflect the statistical characteristics of this type of feature in different samples, such as the degree of dispersion and concentration.

[0088] In the process of selecting sample products, the characteristic distribution information of the structural characteristics of all selected sample products and the characteristic distribution information of the structural characteristics of the products of the same chemical reaction obtained by screening the first database can be compared to determine whether the extensiveness of the distribution of the structural characteristics of the target sample products that have been selected is similar to the extensiveness of the distribution of the structural characteristics of the products obtained by screening the first database, thereby ensuring that the structural characteristic distribution of the sample products finally selected can have the same broad chemical diversity as the first database.

[0089] In an embodiment of the present invention, the structural characteristics of all sample products can be taken as one type of features, and the structural characteristics of the products of the same chemical reaction obtained by screening the first database can be taken as another type of features. The two types of features can be projected into the same feature space to compare the feature distribution information of the two types of features, and then the spatial coverage of the sample products compared with the products of the same chemical reaction can be calculated.

[0090] Here, spatial coverage refers to the coverage of a data set within a specific spatial range. In an embodiment of the present invention, the structural features of all sample products are taken as a data set, and the structural features of the products of the same chemical reaction obtained by screening the first database are taken as a specific spatial range, that is, spatial coverage can be understood as the coverage of the structural features of all sample products in the structural features of the products of the same chemical reaction.

[0091] In the process of determining the spatial coverage of sample products compared with the products of the same chemical reaction based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the products of the same chemical reaction, the spatial coverage can be calculated by calculating the area ratio of the convex hull formed by the structural characteristics of all sample products in the convex hull formed by the structural characteristics of the products of the same chemical reaction, and the characteristic density within the convex hull formed by the structural characteristics of all sample products. Alternatively, the spatial coverage can also be calculated by algorithms such as the grid division method and the fractal dimension method, which is not specifically limited in the embodiments of the present invention.

[0092] The spatial coverage calculated in this way can be used as a basis for measuring whether the characteristic distribution of the structural characteristics of the sample product is extensive and diverse. Therefore, the calculated spatial coverage can be compared with the pre-set coverage threshold. If the spatial coverage is greater than or equal to the coverage threshold, it means that the currently selected sample products can meet the requirements of extensive and diverse structural characteristic distribution, and the selection of sample products can be completed.

[0093] The method provided in the embodiment of the present invention measures whether the currently selected sample products can meet the requirements of a wide and diverse distribution of structural characteristics by calculating the spatial coverage of the sample products compared to the products of the same chemical reactions, thereby further ensuring that the sample products finally selected can meet the requirements of uniform and comprehensive distribution required to generate reaction samples.

[0094] Based on any of the above embodiments, in step 130, determining the sample product based on the candidate substrate further includes: When the spatial coverage is less than the coverage threshold, return to randomly selecting one candidate product from the multiple candidate products as the sample product, or continue to select a new sample product.

[0095] Specifically, when the spatial coverage is less than the coverage threshold, it means that the selected sample products cannot meet the requirements of uniform and comprehensive distribution required for generating reaction samples.

[0096] In this case, we can return to the initial stage of selecting sample products from candidate products, and re-select any candidate product as the sample product from the multiple candidate products determined based on the candidate substrate, and then proceed to the next selection step. That is, we can re-execute the process of selecting sample products from candidate products to obtain a new batch of sample products, and then calculate the spatial coverage.

[0097] Alternatively, you can continue to select sample products, that is, based on the currently selected sample products and the remaining multiple candidate products, continue to select new sample products from the remaining multiple candidate products until the spatial coverage of all selected sample products is greater than or equal to the coverage threshold.

[0098] It is understandable that, when it is determined that the spatial coverage is less than the coverage threshold, the sample product can be reselected, or new sample products can be selected based on the existing sample products. Alternatively, when it is determined that the spatial coverage is less than the coverage threshold, it can be further determined whether the number of existing sample products reaches the number threshold. If the number threshold is reached, the sample product is reselected. If the number threshold is not reached, new sample products are selected based on the existing sample products. The embodiment of the present invention does not specifically limit this.

[0099] Based on any of the above embodiments, in step 130, the spatial coverage of the sample product compared to the product of the same chemical reaction is determined based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction, which also includes: The structural features of the sample products are dimensionally reduced, and the structural features of the products of the same chemical reactions are dimensionally reduced, so that the structural features of the sample products after dimension reduction and the structural features of the products of the same chemical reactions after dimension reduction are mapped in the same feature space.

[0100] Specifically, as the dimensionality of structural features increases, the computational difficulty of spatial coverage also increases, and distance and similarity measures in high-dimensional spaces also become complex and difficult to interpret.

[0101] Therefore, in order to reduce the difficulty of calculating spatial coverage and to more conveniently reflect the structural characteristics of the sample products and the structural characteristics of the products of similar chemical reactions screened from the first database in the same feature space, in an embodiment of the present invention, dimensionality reduction can be performed on the structural characteristics of the sample products and the structural characteristics of the products of similar chemical reactions, respectively, thereby compressing the high-dimensional structural characteristics into a low-dimensional space.

[0102] Here, the dimension reduction for structural features can be achieved through principal component analysis (PCA), or can also be achieved through linear discriminant analysis (LDA), t-distributed stochastic neighbor embedding (t-SNE) and other algorithms, which are not specifically limited in the embodiments of the present invention.

[0103] It can be understood that through dimensionality reduction operations, the structural characteristics of the sample products and the structural characteristics of the products of similar chemical reactions can be mapped to the same low-dimensional feature space. In this case, it is possible to more conveniently observe the characteristic distribution information of the structural characteristics of the sample products and the characteristic distribution information of the structural characteristics of the products of similar chemical reactions, as well as calculate the spatial coverage of the sample products compared to the products of similar chemical reactions.

[0104] For example, Figure 2 is a schematic diagram of the structural characteristics distribution of the sample product provided by the present invention and the products of the same chemical reaction, such as Figure 2 As shown, the structural characteristics of the sample product and the product of the same chemical reaction can be reduced in dimension through principal component analysis, thereby projecting the structural characteristics onto a two-dimensional plane for display with principal component 1 of the structural characteristics obtained by dimensionality reduction as the horizontal coordinate and principal component 2 as the vertical coordinate.

[0105] Figure 2 All points in the figure are products of amidation reactions, blue points represent products of similar chemical reactions obtained by screening the first database, and red triangles represent sample products. The green dots represent sample products that share the same substrate pair with products of similar chemical reactions, yellow squares represent sample products that share amine compounds with products of similar chemical reactions, and pink diamonds represent sample products that share carboxylic acid compounds with products of similar chemical reactions.

[0106] It is understandable that Figure 2From the structural feature distribution of the sample products and the products of the same chemical reaction, it can be seen that the sample products obtained based on the above embodiment can cover the chemical diversity and breadth comparable to the first database, thus ensuring the generalization ability of the yield prediction model trained thereby.

[0107] Based on any of the above embodiments, in step 130, generating a reaction sample based on the sample product, the sample substrate of the sample chemical reaction corresponding to the sample product, the sample reaction condition combination and the measured yield includes: Based on the sample product and a combination of a sample substrate and a sample reaction condition of a sample chemical reaction corresponding to the sample product, a high-throughput experiment is performed on the sample chemical reaction to obtain a measured yield of the sample chemical reaction; The reaction sample is generated based on the sample product, the sample substrate, the sample reaction condition combination and the measured yield.

[0108] Specifically, after the sample product is determined, the sample substrate used to generate the sample product can be determined through the reaction template, thereby forming a completed sample chemical reaction. In this case, a high-throughput experiment can be performed on the sample chemical reaction to record the measured yield of the sample chemical reaction.

[0109] Thus, a reaction sample can be generated based on the sample substrate, sample product and sample reaction condition combination for realizing the sample chemical reaction, and the measured yield of the sample chemical reaction.

[0110] It can be understood that the reaction samples thus obtained, i.e., the samples for supervised training, each reaction sample includes the sample substrate participating in the sample chemical reaction as the model input in the supervised training, as well as the sample reaction condition combination of the sample chemical reaction, the sample product, and the measured yield as the training label in the supervised training.

[0111] Accordingly, for the yield prediction model obtained by such training, the substrate, reaction condition combination and product of the chemical reaction can be taken as input, and the yield prediction model predicts the yield of the chemical reaction based on the input substrate, reaction condition combination and product of the chemical reaction, thereby outputting the predicted yield.

[0112] For example, when the yield prediction model is a shallow machine learning model, the vector representation of the substrate of the chemical reaction, the vector representation of the combination of reaction conditions, and the vector representation of the product can be input into the yield prediction model to obtain the predicted yield of the chemical reaction output by the yield prediction model.

[0113] Here, a shallow machine learning model refers to a neural network model that uses one or a few hidden layers, or a model learned using a traditional machine learning algorithm. The traditional machine learning algorithm here can be a random forest, a support vector machine (SVM), or an extreme gradient boosting (eXtreme GradientBoosting, XGBoost), etc.

[0114] In the case where the yield prediction model is a shallow machine learning model, in order to adapt to the input rules of the shallow machine learning model, the combination of substrates, products and reaction conditions can be converted into vector representations, that is, the combination of substrates, products and reaction conditions can be input into the yield prediction model in the form of vector representation to achieve yield prediction for chemical reactions.

[0115] Here, both the substrate and the product are chemical molecules, and the vector representation of the chemical molecules can be a molecular fingerprint, or a molecular graph representation based on a graph convolutional network, or a topological fingerprint, etc., which is not specifically limited in the embodiment of the present invention.

[0116] In addition, common combinations of reaction conditions can be counted in advance, and a separate vector representation can be encoded for each type of reaction condition combination. For example, for amidation reactions, common combinations of reagents, additives, bases, and solvents can be counted, thereby forming 96 types of common reaction condition combinations for amidation reactions. The 96 types of reaction condition combinations are each encoded as an independent integer (1-95). Table 1 is a list of reaction condition combinations.

[0117]

[0118] For example, Figure 3 is a vector representation schematic diagram of the chemical reaction provided by the present invention, such as Figure 3 As shown, substrate 1, substrate 2, and the product of the amidation reaction can be converted into ECFP fingerprints (Extended Connectivity Fingerprint) respectively, and then vector aggregation is performed on the ECFP fingerprints of substrate 1, substrate 2, and the product. The specific aggregation method can be vector concatenation (Concatenate) or point-wise addition (Point-wiseaddition), thereby obtaining a substrate-product vector through aggregation.

[0119] Figure 4 It is one of the structural schematic diagrams of the yield prediction model provided by the present invention, such as Figure 4As shown, the yield prediction model can be a shallow machine learning model, whose model input is a substrate-product vector and an encoding of a reaction condition combination. After the substrate-product vector and the encoding of the reaction condition combination are input into the yield prediction model, the models 1-n in the yield prediction model can extract input features from different angles, and then the features extracted by each of the n models can be concatenated together, and then input into the models 1-n for further feature extraction, and then the features extracted by the n models are weighted, thereby outputting the final predicted yield, for example, a predicted yield of 97.7% can be output.

[0120] For another example, when the yield prediction model is a deep machine learning model, the reaction formula of the chemical reaction can be input into the yield prediction model in the form of a linear molecular structure string to obtain the predicted yield of the chemical reaction output by the yield prediction model.

[0121] Here, the yield prediction model can be a deep machine learning model. Deep machine learning is a form of machine learning, the core of which is to learn the feature representation and pattern recognition of data by building a deep neural network model. Here, the deep machine learning model can be a T5 (Text to Text Transfer Transformer) model or a BERT (Bidirectional Encoder Representations from Transformers) model, etc.

[0122] For the yield prediction model in the form of a deep machine learning model, in order to adapt to the input rules of the deep machine learning model, the reaction formula composed of substrates and products can be converted into the form of a linear molecular structure string, and the reaction condition combination can be converted into a coded form, so that the reaction formula can be input into the yield prediction model in the form of a linear molecular structure string, and the reaction condition combination can be input into the yield prediction model in the form of a code, so as to realize the yield prediction of the chemical reaction.

[0123] For example, Figure 5 This is the second structural schematic diagram of the yield prediction model provided by the present invention, such as Figure 5As shown, the yield prediction model can be a deep machine learning model, and its model input is a linear molecular structure string of a reaction formula, for example, it can be a SMILES of an amidation reaction, which can be specifically expressed as: CN.CC(O)=O>>CNC(C)=O. After the linear molecular structure string of the reaction formula is input into the yield prediction model, the yield prediction model can first perform data preprocessing on the data, and then input the result of the data preprocessing into the Transformer model for feature encoding. In addition, the encoding of the reaction condition combination is also input into the yield prediction model, thereby inputting the output of the Transformer and the encoding of the reaction condition combination into the combining module to integrate the features, thereby forming a more comprehensive feature representation, and finally input into the fully connected layers for yield prediction, thereby outputting the final predicted yield, for example, a predicted yield of 97.7% can be output.

[0124] In order to verify the effectiveness of using the reaction samples constructed based on the above embodiment for yield prediction model training and improving the yield prediction accuracy, the prediction accuracy of the yield prediction model trained in the embodiment of the present invention was tested. Table 2 is a statistical table of the prediction accuracy of the yield prediction model.

[0125]

[0126] Table 2 lists the predicted yields of the yield prediction models under different test dataset splits (such as random splits, partial substrate novelty, full substrate novelty) and different model structures (such as XGBoost, SVM, RF, AutoGluon, Yield-BERT, and T5-Chem). The performance indicators include R² (coefficient of determination), RMSE (root mean square error), and MAE (mean absolute error). In Table 2, the R² values ​​of various models are between 0.21 and 0.76.

[0127] In the scheme of predicting the yield of chemical reactions based on artificial intelligence algorithms, it is usually necessary to build a yield prediction model based on artificial intelligence algorithms, and take various reaction conditions of the chemical reaction as inputs of the yield prediction model. The wide variety of reaction conditions makes the complexity of the yield prediction model high, which directly affects the prediction accuracy of the yield prediction model, resulting in low yield accuracy of chemical reactions predicted based on the yield prediction model.

[0128] Based on any of the above embodiments, the measured yield is obtained by performing a high-throughput experiment on the chemical reaction of the sample.

[0129] Specifically, in the process of generating a reaction sample, the sample product of the sample chemical reaction corresponding to the reaction sample can be determined based on the method provided in the above embodiment. Accordingly, after determining the sample product, the sample substrate used to generate the sample product can be determined through the reaction template, thereby forming a completed sample chemical reaction. In this case, a high-throughput experiment can be performed on the sample chemical reaction, thereby recording the measured yield of the sample chemical reaction.

[0130] Based on any of the above embodiments, in step 130, generating a reaction sample based on the sample product, the sample substrate of the sample chemical reaction corresponding to the sample product, the sample reaction condition combination and the measured yield includes: determining a sample intermediate of the sample chemical reaction based on the sample reaction condition combination and a sample first substrate participating in the sample substrate; The reaction sample is generated based on the sample product, a sample second substrate in the sample substrate and the measured yield, wherein the sample second substrate is a substrate in the sample substrate other than the sample first substrate.

[0131] In the embodiment of the present invention, the sample chemical reaction is specifically a chemical reaction that produces an intermediate during the reaction process.

[0132] For example, the sample chemical reaction here can be an amidation reaction. The amidation reaction mainly involves the reaction of a carboxylic acid compound with an amine compound. The carboxylic acid compound can be a carboxylic acid or a derivative thereof (such as an acyl chloride, anhydride, ester, etc.). During the amidation reaction, the acyl group of the carboxylic acid compound replaces the hydrogen atom on the amino group of the amine compound to form an amide bond. That is, the substrates participating in the amidation reaction can include a carboxylic acid compound and an amine compound.

[0133] The reaction conditions of the sample chemical reaction characterize the conditions required for the chemical reaction to proceed. For example, when the sample chemical reaction is an amidation reaction, the reaction conditions may include conditions such as reagents, additives, bases, solvents, and temperatures used in the amidation reaction. In an embodiment of the present invention, the sample reaction condition combination of the sample chemical reaction may be understood as a combination of multiple reaction conditions, such as a reaction condition combination of an amidation reaction formed by reagents, additives, bases, and solvents used in the amidation reaction.

[0134] In the sample chemical reaction process, the sample substrates participating in the sample chemical reaction, i.e., reactants, can be specifically divided into sample first substrates and sample second substrates. The sample first substrate refers to a substrate that will form an intermediate under the action of a combination of reaction conditions during the sample chemical reaction process, and the sample second substrate refers to a sample substrate other than the sample first substrate that participates in the chemical reaction.

[0135] During the sample chemical reaction, the sample first substrate will form an intermediate under the action of the reaction condition combination, which is recorded as the sample intermediate. The sample intermediate is then combined with the sample second substrate to form a sample product of the sample chemical reaction. The generation of the sample intermediate depends specifically on the sample reaction condition combination. It can be understood that the sample intermediate of the sample chemical reaction itself carries the information of the sample first substrate participating in the sample chemical reaction and can reflect the information of the sample reaction condition combination of the sample chemical reaction.

[0136] For example, in the amidation reaction process, the carboxylic acid compound can be regarded as the sample first substrate, and the amine compound can be regarded as the sample second substrate. The carboxylic acid compound will form a sample intermediate under the action of the sample reaction condition combination, and the sample intermediate will then combine with the amine compound and be converted into a stable amide product. In this process, the sample intermediate is a highly active intermediate formed by the activated carboxylic acid compound, for example, it can be an active acid. The sample intermediate of the amidation reaction itself carries the information of the carboxylic acid compound involved in the amidation reaction, and can reflect the information of the sample reaction condition combination of the amidation reaction.

[0137] For another example, in the Buchwald-Hartwig coupling reaction, the aryl halide can be regarded as the sample first substrate, and the amine compound can be regarded as the sample second substrate. Under the action of the sample reaction condition combination, the aryl halide generates a sample intermediate, which is then combined with the amine compound to be converted into a stable aromatic amine coupling product. In this process, the sample intermediate can be a palladium-aryl complex. The Buchwald-Hartwig coupling reaction sample intermediate itself carries the information of the aryl halide participating in the Buchwald-Hartwig coupling reaction, and can reflect the information of the sample reaction condition combination of the Buchwald-Hartwig coupling reaction.

[0138] When a sample first substrate and a sample reaction condition combination participating in the sample chemical reaction are determined, the sample first substrate can be converted into a sample intermediate under the sample reaction condition combination based on a reaction template of the sample chemical reaction.

[0139] Compared with the related art in which all sample substrates, sample reaction condition combinations, sample products and measured yields participating in the sample chemical reaction are used as reaction samples of the yield prediction model, in an embodiment of the present invention, the sample second substrate, sample intermediates, sample products and measured yields participating in the sample chemical reaction are used as reaction samples of the yield prediction model, wherein the sample intermediates are used to replace the sample first substrate and the sample reaction condition combination in the original reaction sample.

[0140] Firstly, the sample intermediate itself carries the information of the sample first substrate participating in the sample chemical reaction, and can react to the information of the sample reaction condition combination of the sample chemical reaction. The use of the sample intermediate to replace the sample first substrate and the sample reaction condition combination and add them to the reaction sample will not cause information omission, and the yield prediction model can still learn complete and comprehensive information about the sample chemical reaction; secondly, there is no need to add a wide variety of complex sample reaction condition combinations to the reaction samples of the yield prediction model, which greatly reduces the training complexity of the yield prediction model, and there is no need to learn the relationship between different reaction conditions during the training process of the yield prediction model. The structural complexity of the yield prediction model can also be reduced accordingly, and the prediction accuracy of the corresponding yield prediction model can be improved.

[0141] Accordingly, when training the yield prediction model based on the reaction sample including the sample product, the sample second substrate in the sample substrate and the measured yield, the model training can be implemented specifically through the following steps: The sample second substrate, sample intermediate and sample product in the reaction sample can be input into the initial model to obtain the predicted yield for the reaction sample output by the initial model, and then the predicted yield for the reaction sample and the measured yield in the reaction sample are combined to calculate the loss function value, and the calculated loss function value is applied to perform parameter iteration on the initial model. In this process, the initial model can learn the influence of the intermediate on the yield, thereby improving the yield prediction accuracy. In addition, since the input of the initial model does not include the combination of reaction conditions, the initial model does not need to learn the relationship between different reaction conditions, and the iterative optimization process of the initial model is simplified. Finally, the initial model after parameter iteration can be used as a yield prediction model.

[0142] In the method provided in an embodiment of the present invention, an intermediate is used to replace the first substrate and the reaction condition combination as a reaction sample of the yield prediction model, so that the yield prediction model can learn the intermediate knowledge of the sample chemical reaction process. Moreover, since there is no need to input a wide variety of complex reaction condition combinations, the complexity of the yield prediction model is greatly reduced, and the yield prediction accuracy for chemical reactions is improved.

[0143] Based on any of the above embodiments, in step 140, training the yield prediction model of the chemical reaction based on the reaction sample includes: Based on a plurality of reaction samples corresponding to the same sample reaction condition combination, a yield prediction model of the chemical reaction corresponding to the sample reaction condition combination is trained.

[0144] Specifically, in order to further improve the yield prediction accuracy, corresponding yield prediction models can be trained for different reaction condition combinations. That is, the reaction condition combination and the yield prediction model can be one-to-one corresponding, different reaction condition combinations can correspond to different yield prediction models, and each yield prediction model is dedicated to realizing the yield prediction of the chemical reaction under its corresponding reaction condition combination.

[0145] The training of the yield prediction model corresponding to any sample reaction condition combination can be implemented by applying multiple reaction samples corresponding to the sample reaction condition combination. That is, the sample reaction condition combination of the sample chemical reactions corresponding to the reaction samples used to train the yield prediction model is the same. Therefore, during the training process, the yield prediction model can implicitly learn the mapping relationship between various sample chemical reactions and measured yields under the sample reaction condition combination.

[0146] Accordingly, when predicting the yield of a chemical reaction, it is also necessary to select the yield prediction model corresponding to the reaction condition combination of the chemical reaction from the yield prediction models corresponding to the various reaction condition combinations to perform yield prediction. That is, the sample reaction condition combination of the reaction sample used in the training of the yield prediction model for yield prediction is consistent with the reaction condition combination used in the chemical reaction actually predicted by the yield prediction model.

[0147] For example, multiple types of reaction condition combinations commonly used in a type of chemical reaction can be collected in advance, and then reaction samples can be collected for each type of reaction condition combination. Then, based on the reaction samples corresponding to each type of reaction condition combination, the yield prediction model corresponding to each type of reaction condition combination can be trained respectively.

[0148] In the method provided in an embodiment of the present invention, model training is performed based on multiple reaction samples corresponding to the same sample reaction condition combination, thereby realizing the yield prediction model training for a specific reaction condition combination. When predicting the yield, the yield prediction model corresponding to the reaction condition combination of the chemical reaction can be applied, thereby further improving the prediction accuracy of the yield prediction.

[0149] Based on any of the above embodiments, in step 140, training the yield prediction model of the chemical reaction based on the reaction sample includes: Based on the reaction samples corresponding to the plurality of sample reaction condition combinations, a yield prediction model of the chemical reaction is trained.

[0150] Specifically, in order to improve the generalization ability of the yield prediction model so that the yield prediction model can adapt to the yield prediction of chemical reactions under more types of reaction condition combinations, multiple reaction samples corresponding to multiple types of sample reaction condition combinations can be selected when training the yield prediction model. Thus, during the training process, the yield prediction model can implicitly learn the mapping relationship between various sample chemical reactions and measured yields under multiple reaction condition combinations.

[0151] It should be noted that the multiple reaction samples here correspond to multiple categories of sample reaction condition combinations, which means that the sample reaction condition combinations corresponding to the multiple reaction samples used for model training may include multiple categories. For example, multiple categories of commonly used reaction condition combinations can be selected in advance, and reaction samples can be collected for each category of reaction condition combinations respectively. Then, based on the reaction samples corresponding to all categories of reaction condition combinations, a yield prediction model can be jointly trained.

[0152] Therefore, for the yield prediction model obtained by training multiple reaction samples corresponding to multiple types of reaction condition combinations, the yield prediction of the chemical reaction corresponding to each type of reaction condition combination in the above-mentioned multiple types of reaction condition combinations can be realized, as long as the reaction condition combination of the chemical reaction for which the yield prediction needs to be performed belongs to the multiple types of reaction condition combinations applied during training.

[0153] In the method provided in the embodiment of the present invention, the yield prediction model is trained by using reaction samples corresponding to multiple types of reaction condition combinations, which greatly improves the generalization ability of the yield prediction model and helps to ensure the reliability of the yield prediction.

[0154] Based on any of the above embodiments, the yield prediction model training method for a chemical reaction provided by each embodiment of the present invention can be applied to the training of a yield prediction model for an amidation reaction, and can also be applied to the training of a yield prediction model for a Buchwald-Hartwig amination reaction, a Suzuki coupling reaction, an arylation reaction of a ketone, an acylation reaction, an aromatic nucleophilic substitution reaction, a Chan-Lam coupling reaction, a Sonogashira coupling reaction, an Ullmann coupling reaction, a Heck reaction, a reductive amination reaction, a Miyaura borylation reaction, a Hiyama coupling reaction, a Grignard reaction, an aromatic Finkelstein reaction, an allyl substitution reaction, a Kumada coupling reaction, a palladium-catalyzed carbonylation reaction, an esterification reaction, and the like.

[0155] For example, in the process of training a yield prediction model for an amidation reaction, the following steps may be included: In step 1, a reaction template for the amidation reaction can be constructed based on the SMlies AR dual-target specification.

[0156] In step 2, RDKit26 can be used to apply the above reaction template to filter the USPTO reaction data set as the first database to obtain information about a type of amidation reaction contained therein. The filtered information here may include a combination of reaction conditions, substrates, and products.

[0157] In step 3, each product in the information filtered from the USPTO reaction data set in step 2 can be converted into a molecular fingerprint through SMILES, and then the molecular fingerprint of the product can be reduced in dimension by principal component analysis, and the characteristics of principal component 1 and principal component 2 obtained by the principal component analysis can be mapped to a two-dimensional plane, thereby realizing the mapping of the structural characteristics of the product obtained through the first database to the two-dimensional plane.

[0158] Step 4: Each substrate in the information obtained by filtering from the USPTO reaction data set in step 2 can be further screened in the internal commercial database as the second database, thereby obtaining several carboxylic acid compounds and amine compounds that exist in both the USPTO reaction data set and the internal commercial database as candidate substrates. Subsequently, the products that can be generated can be listed based on the candidate substrates, which are recorded as candidate products here.

[0159] Then, the candidate products thus obtained can be selected by the MaxMin sampling method, and the selected candidate products are used as sample products, and the corresponding candidate substrates are used as sample substrates. The MaxMin sampling method referred to here is a sampling method that ensures that the minimum structural distance between the sample product selected earlier and the candidate product to be selected as the sample product later is maximized during the process of selecting the sample product. The specific selection method is as described in the above embodiment and will not be repeated here.

[0160] After the sample product is selected, the characteristics of the principal component 1 and the principal component 2 obtained by principal component analysis of the molecular fingerprint of the sample product can also be mapped into a two-dimensional plane.

[0161] Therefore, not only the products obtained from the first database are mapped in the two-dimensional plane, but also the sample products corresponding to the sample substrates screened by the second database and used in high-throughput experiments are mapped. By comparing the distribution of these two types of products in the two-dimensional plane, it can be determined that the distribution of sample products has a wide range of chemical diversity comparable to that of the first database.

[0162] After the sample product is determined, the sample amidation reaction corresponding to the sample product can be carried out through a high-throughput experiment, thereby obtaining a reaction sample of the amidation reaction, and based on the reaction sample of the amidation reaction, a yield prediction model for the amidation reaction is trained.

[0163] In order to achieve high yields in chemical reactions, it is usually necessary to consider the application of various reaction conditions when performing chemical reactions. Taking the amidation reaction as an example, the yield of the amidation reaction is related to many reaction conditions such as reagents, additives, bases, solvents, etc. Traditional yield optimization strategies mostly rely on the experience and knowledge accumulation of researchers, and rely on repeated manual trials and error correction, which is undoubtedly a time-consuming and labor-intensive process.

[0164] With the development of artificial intelligence technology, researchers have turned to applying artificial intelligence algorithms to reaction yield prediction schemes, thereby simplifying the reaction yield optimization process. In related technologies, people have proposed applying the Random Forest algorithm to CN cross-coupling reactions for yield prediction, tapping the potential of machine learning in reducing experimental workload and accelerating discovery. In addition, people have also used neural networks to predict reaction results based on text descriptions of the experimental process, providing a new implementation solution for yield prediction.

[0165] However, in the scheme of predicting the yield of chemical reactions based on artificial intelligence algorithms, it is usually necessary to build a yield prediction model based on artificial intelligence algorithms, and take various reaction conditions of the chemical reaction as inputs of the yield prediction model. The wide variety of reaction conditions makes the complexity of the yield prediction model high, which directly affects the prediction accuracy of the yield prediction model, resulting in low yield accuracy of chemical reactions predicted based on the yield prediction model.

[0166] In view of the above problems, an embodiment of the present invention provides a method for predicting the yield of a chemical reaction. Figure 6 It is a schematic diagram of the process of predicting the yield of a chemical reaction provided by the present invention, such as Figure 6 As shown, the method includes: Step 610, determining an intermediate of the chemical reaction based on a combination of reaction conditions of the chemical reaction and a first substrate participating in the chemical reaction.

[0167] The chemical reaction here is a chemical reaction for which yield prediction is required, and in the embodiment of the present invention, the chemical reaction for which yield prediction is required is specifically a chemical reaction that produces an intermediate during the reaction process.

[0168] For example, the chemical reaction here can be an amidation reaction, or it can be a Buchwald-Hartwig amination reaction, a Suzuki coupling reaction, an arylation reaction of a ketone, an acylation reaction, an aromatic nucleophilic substitution reaction, a Chan-Lam coupling reaction, a Sonogashira coupling reaction, an Ullmann coupling reaction, a Heck reaction, a reductive amination reaction, a Miyaura borylation reaction, a Hiyama coupling reaction, a Grignard reaction, an aromatic Finkelstein reaction, an allyl substitution reaction, a Kumada coupling reaction, a palladium-catalyzed carbonylation reaction, an esterification reaction, and the like, which is not specifically limited in the embodiments of the present invention.

[0169] Taking the amidation reaction as an example, the amidation reaction mainly involves the reaction between a carboxylic acid compound and an amine compound. Among them, the carboxylic acid compound can be a carboxylic acid or a derivative thereof (such as an acyl chloride, anhydride, ester, etc.). During the amidation reaction, the acyl group of the carboxylic acid compound replaces the hydrogen atom on the amino group of the amine compound to form an amide bond. That is, for the amidation reaction to be performed for yield prediction, the substrates participating in the amidation reaction may include a carboxylic acid compound and an amine compound.

[0170] For the chemical reaction to be predicted for yield, the reaction conditions of the chemical reaction characterize the conditions required for the chemical reaction. For example, when the chemical reaction is an amidation reaction, the reaction conditions may include conditions such as reagents, additives, bases, solvents, and temperatures used for the amidation reaction. In an embodiment of the present invention, the combination of reaction conditions for a chemical reaction may be understood as a combination of multiple reaction conditions, such as a combination of reaction conditions for an amidation reaction formed by reagents, additives, bases, and solvents used for the amidation reaction.

[0171] In a chemical reaction, the substrates involved in the chemical reaction, i.e. reactants, can be specifically divided into a first substrate and a second substrate. The first substrate refers to a substrate that forms an intermediate under the action of a combination of reaction conditions during a chemical reaction, and the second substrate refers to a substrate other than the first substrate that participates in the chemical reaction.

[0172] In a chemical reaction, the first substrate forms an intermediate under the action of the reaction condition combination, and the intermediate then combines with the second substrate to form a product of the chemical reaction. The generation of the intermediate depends on the reaction condition combination. It can be understood that the intermediate of the chemical reaction itself carries the information of the first substrate involved in the chemical reaction and can reflect the information of the reaction condition combination of the chemical reaction.

[0173] For example, in the amidation reaction process, the carboxylic acid compound can be regarded as the first substrate and the amine compound can be regarded as the second substrate. The carboxylic acid compound will form an intermediate under the action of the reaction condition combination, and the intermediate will then combine with the amine compound and convert into a stable amide product. In this process, the intermediate is a highly active intermediate formed by the activated carboxylic acid compound, for example, it can be an active acid. The intermediate of the amidation reaction itself carries the information of the carboxylic acid compound involved in the amidation reaction and can reflect the information of the reaction condition combination of the amidation reaction.

[0174] In the case of determining the first substrate and the combination of reaction conditions involved in the chemical reaction, the first substrate can be converted into an intermediate under the combination of reaction conditions based on the reaction template of the chemical reaction. The reaction template here can be understood as a general reaction formula, which is a chemical term used to describe the chemical reaction rules between one or several classes of compounds. As a general chemical equation, the reaction template contains at least one variable group or element to represent a class of compounds with similar reaction characteristics. For example, the SMlies AR dual-target specification can be used to establish a reaction template for a chemical reaction, so that after determining the first substrate and the combination of reaction conditions involved in the chemical reaction, the reaction template can be used to convert the first substrate into an intermediate of the chemical reaction under the combination of reaction conditions.

[0175] Step 620, inputting the intermediate, the second substrate participating in the chemical reaction, and the product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model, wherein the second substrate is a substrate participating in the chemical reaction other than the first substrate; The yield prediction model is obtained by training based on a plurality of reaction samples, wherein the reaction samples include a sample second substrate participating in a sample chemical reaction, and a sample intermediate, a sample product and a measured yield of the sample chemical reaction.

[0176] Specifically, considering that there may be multiple categories of reaction conditions such as reagents, additives, bases, solvents, and temperatures, if the combination of reaction conditions such as reagents, additives, bases, solvents, and temperatures are all used as inputs to the yield prediction model of the chemical reaction, the complexity of the yield prediction model will remain high, affecting the prediction accuracy of the yield prediction model. In an embodiment of the present invention, the intermediate of the chemical reaction can be used to replace the first substrate involved in the chemical reaction and the combination of reaction conditions as the input of the yield prediction model, thereby reducing the complexity of the yield prediction model.

[0177] Compared with the related art in which all substrates, reaction condition combinations and products involved in a chemical reaction are used as inputs to a yield prediction model, in an embodiment of the present invention, a second substrate, an intermediate and a product of a chemical reaction involved in a chemical reaction are used as inputs to a yield prediction model, wherein the intermediate is used to replace the first substrate and reaction condition combination that were originally used as inputs to the yield prediction model.

[0178] Firstly, the intermediate itself carries the information of the first substrate involved in the chemical reaction and can reflect the information of the reaction condition combination of the chemical reaction. Using the intermediate to replace the first substrate and the reaction condition combination as the input of the yield prediction model will not cause omission of input information, and the yield prediction model can still obtain complete and comprehensive information of the chemical reaction; secondly, there is no need to use a wide variety of complex reaction condition combinations as the input of the yield prediction model, which greatly reduces the input complexity of the yield prediction model, and there is no need to learn the relationship between different reaction conditions. The structural complexity of the yield prediction model based on lower complexity input for yield prediction can also be reduced accordingly, and the prediction accuracy of the corresponding yield prediction model can be improved.

[0179] After obtaining the intermediate determined in step 610, the intermediate, the second substrate involved in the chemical reaction, and the product of the chemical reaction can be input into a pre-trained yield prediction model. The yield prediction model can predict the yield of the chemical reaction based on the input intermediate, the second substrate, and the product, and output the predicted yield of the chemical reaction as a prediction result. Thus, the yield of the chemical reaction output by the yield prediction model can be obtained.

[0180] For example, for the amidation reaction, the intermediate, the amine compound involved in the amidation reaction, and the product of the amidation reaction can be input into a pre-trained yield prediction model. The yield prediction model can predict the yield of the amidation reaction based on the input intermediate, amine compound and product, and output the predicted yield of the amidation reaction as a prediction result. Thus, the yield of the amidation reaction output by the yield prediction model can be obtained.

[0181] For another example, for the Buchwald-Hartwig coupling reaction, the intermediate, the amine compound involved in the Buchwald-Hartwig coupling reaction, and the product of the Buchwald-Hartwig coupling reaction can be input into a pre-trained yield prediction model. The yield prediction model can predict the yield of the Buchwald-Hartwig coupling reaction based on the input intermediate, amine compound and product, and output the predicted yield of the Buchwald-Hartwig coupling reaction as a prediction result. Thus, the yield of the Buchwald-Hartwig coupling reaction output by the yield prediction model can be obtained.

[0182] In addition, before executing step 620, it is necessary to pre-build and train the yield prediction model. Specifically, multiple reaction samples can be collected in advance, and then the initial model is trained based on the reaction samples to obtain the yield prediction model. The reaction samples here are samples of supervised training, and each reaction sample includes a sample second substrate participating in the sample chemical reaction as a model input in the supervised training, as well as a sample intermediate and a sample product of the sample chemical reaction, and a measured yield as a training label in the supervised training. Here, the sample chemical reaction is a chemical reaction as a reaction sample, and the sample second substrate, sample intermediate and sample product are the second substrate, intermediate and product of the sample chemical reaction; the measured yield is the yield obtained by actually performing the sample chemical reaction and measuring the obtained yield, and the sample chemical reaction can be achieved by high-throughput experiments. In addition, the initial model can be a model after parameter initialization, or it can be a pre-trained model, and the embodiment of the present invention does not specifically limit this.

[0183] For example, when training a yield prediction model for an amidation reaction, each reaction sample includes a sample amine compound participating in the sample amidation reaction as a model input in supervised training, as well as a sample intermediate and a sample product of the sample amidation reaction, and a measured yield as a training label in supervised training. Here, the sample amidation reaction is the amidation reaction as a reaction sample, the sample amine compound, the sample intermediate and the sample product are the amine compound, the intermediate and the product of the sample amidation reaction; the measured yield is the yield obtained by actually performing the sample amidation reaction and measuring it, and performing the sample amidation reaction can be achieved through high-throughput experiments.

[0184] In the process of training the yield prediction model, the sample second substrate, sample intermediate and sample product in the reaction sample can be input into the initial model, so as to obtain the predicted yield for the reaction sample output by the initial model, and then the predicted yield for the reaction sample and the measured yield in the reaction sample are combined to calculate the loss function value, and the calculated loss function value is applied to perform parameter iteration on the initial model. In this process, the initial model can learn the influence of the intermediate on the yield, thereby improving the yield prediction accuracy. In addition, since the input of the initial model does not contain the combination of reaction conditions, the initial model does not need to learn the relationship between different reaction conditions, and the iterative optimization process of the initial model is simplified. Finally, the initial model after parameter iteration can be used as the yield prediction model.

[0185] In the method provided in an embodiment of the present invention, an intermediate is used to replace the first substrate and the reaction condition combination as the input of the yield prediction model, so that the yield prediction model can learn the intermediate knowledge of the chemical reaction process. Moreover, since there is no need to input a wide variety of complex reaction condition combinations, the complexity of the yield prediction model is greatly reduced, and the yield prediction accuracy for chemical reactions is improved.

[0186] Based on the above embodiment, in step 620, the intermediate, the second substrate involved in the chemical reaction, and the product of the chemical reaction are input into the yield prediction model to obtain the predicted yield of the chemical reaction output by the yield prediction model, including: Inputting the intermediate, the second substrate participating in the chemical reaction, and the product of the chemical reaction into a yield prediction model corresponding to the reaction condition combination, and obtaining a predicted yield of the chemical reaction output by the yield prediction model corresponding to the reaction condition combination; The reaction condition combinations corresponding to the multiple reaction samples are consistent with the reaction condition combinations of the chemical reaction.

[0187] Specifically, in order to further improve the yield prediction accuracy, corresponding yield prediction models can be trained for different reaction condition combinations. That is, the reaction condition combination and the yield prediction model can be one-to-one corresponding, different reaction condition combinations can correspond to different yield prediction models, and each yield prediction model is dedicated to realizing the yield prediction of the chemical reaction under its corresponding reaction condition combination.

[0188] The training of the yield prediction model corresponding to any combination of reaction conditions can be implemented by applying multiple reaction samples corresponding to the combination of reaction conditions. That is, the reaction condition combination of the sample chemical reaction corresponding to the reaction samples used to train the yield prediction model is the same. Therefore, during the training process, the yield prediction model can implicitly learn the mapping relationship between the sample second substrate, sample intermediate, sample product and the measured yield of various sample chemical reactions under the combination of reaction conditions.

[0189] Accordingly, when predicting the yield of a chemical reaction, it is also necessary to select the yield prediction model corresponding to the reaction condition combination of the chemical reaction from the yield prediction models corresponding to the various reaction condition combinations to perform yield prediction. That is, the reaction condition combination of the reaction sample applied to the yield prediction model used for yield prediction during training is consistent with the reaction condition combination applied to the chemical reaction actually predicted by the yield prediction model.

[0190] For example, multiple types of reaction condition combinations commonly used in a type of chemical reaction can be collected in advance, and then reaction samples can be collected for each type of reaction condition combination. Then, based on the reaction samples corresponding to each type of reaction condition combination, the yield prediction model corresponding to each type of reaction condition combination can be trained respectively.

[0191] In the method provided in an embodiment of the present invention, the sample reaction condition combination corresponding to the multiple reaction samples used for model training is consistent with the reaction condition combination of the chemical reaction, thereby achieving a one-to-one correspondence between the reaction condition combination and the yield prediction model. When predicting the yield, the yield prediction model corresponding to the reaction condition combination of the chemical reaction can be applied, thereby further improving the prediction accuracy of the yield prediction.

[0192] Based on any of the above embodiments, the plurality of reaction samples correspond to a plurality of reaction condition combinations, and the reaction condition combination of the chemical reaction belongs to one of the plurality of reaction condition combinations.

[0193] Specifically, in order to improve the generalization ability of the yield prediction model so that the yield prediction model can adapt to the yield prediction of chemical reactions under more types of reaction condition combinations, multiple reaction samples corresponding to multiple types of sample reaction condition combinations can be selected when training the yield prediction model. Thus, during the training process, the yield prediction model can implicitly learn the mapping relationship between the sample second substrate, sample intermediate, sample product and the measured yield of various sample chemical reactions under multiple reaction condition combinations.

[0194] It should be noted that the multiple reaction samples here correspond to multiple types of reaction condition combinations, which means that the reaction condition combinations corresponding to the multiple reaction samples used for model training may include multiple categories. For example, multiple types of commonly used reaction condition combinations can be selected in advance, and reaction samples can be collected for each type of reaction condition combination. Then, based on the reaction samples corresponding to all types of reaction condition combinations, a yield prediction model can be jointly trained.

[0195] Therefore, for the yield prediction model obtained by training multiple reaction samples corresponding to multiple types of reaction condition combinations, the yield prediction of the chemical reaction corresponding to each type of reaction condition combination in the above-mentioned multiple types of reaction condition combinations can be realized, as long as the reaction condition combination of the chemical reaction for which the yield prediction needs to be performed belongs to the multiple types of reaction condition combinations applied during training.

[0196] For example, reaction samples corresponding to six types of reaction condition combinations may be selected to train a yield prediction model, and the yield prediction model obtained thereby may be used to predict the yield of chemical reactions under the above six types of reaction condition combinations.

[0197] In the method provided in the embodiment of the present invention, the yield prediction model is trained by using reaction samples corresponding to multiple types of reaction condition combinations, which greatly improves the generalization ability of the yield prediction model and helps to ensure the reliability of the yield prediction.

[0198] Based on any of the above embodiments, in step 620, the step of inputting the intermediate, the second substrate involved in the chemical reaction, and the product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model comprises: When the yield prediction model is a shallow machine learning model, the vector representation of the intermediate, the vector representation of the second substrate, and the vector representation of the product are input into the yield prediction model to obtain the predicted yield of the chemical reaction output by the yield prediction model.

[0199] Specifically, the yield prediction model can be a shallow machine learning model. A shallow machine learning model refers to a neural network model using one or a few hidden layers, or a model learned using a traditional machine learning algorithm, where the traditional machine learning algorithm can be a random forest, a support vector machine, or an extreme gradient boosting model.

[0200] In the case where the yield prediction model is a shallow machine learning model, in order to adapt to the input rules of the shallow machine learning model, the intermediate, the second substrate and the product can all be converted into vector representations, that is, the intermediate, the second substrate and the product are all input into the yield prediction model in the form of vector representation to achieve yield prediction for chemical reactions.

[0201] Here, the intermediate, the second substrate and the product are all chemical molecules. The vector representation of the chemical molecules can be a molecular fingerprint, a molecular graph representation based on a graph convolutional network, or a topological fingerprint, etc., which is not specifically limited in the embodiment of the present invention.

[0202] Among them, molecular fingerprint refers to a series of numbers or strings converted from the structure and chemical properties of a molecule, such as Morgan fingerprint, extended connectivity fingerprint, etc. Taking the vector representation as a molecular fingerprint as an example, the molecular fingerprint of the intermediate, the molecular fingerprint of the second substrate, and the molecular fingerprint of the product can all be input into the yield prediction model in the form of a shallow machine learning model to achieve yield prediction.

[0203] For example, Figure 7 This is the third structural schematic diagram of the yield prediction model provided by the present invention, such as Figure 7As shown, the yield prediction model can be a shallow machine learning model, whose model input is the vector representation of the second substrate, intermediate and product. After the vector representation of the second substrate, intermediate and product is input into the yield prediction model, the models 1-n in the yield prediction model can extract the input features from different angles, and then the features extracted by each of the n models can be concatenated together, and then input into the models 1-n for further feature extraction, and then the features extracted by the n models are applied for weighting, thereby outputting the final predicted yield, for example, a predicted yield of 97.7% can be output.

[0204] Based on any of the above embodiments, in step 620, the step of inputting the intermediate, the second substrate involved in the chemical reaction, and the product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model comprises: In the case where the yield prediction model is a deep machine learning model, the reaction formula is input into the yield prediction model in the form of a linear molecular structure string to obtain the predicted yield of the chemical reaction output by the yield prediction model; The reaction formula includes the intermediate, the second substrate and the product.

[0205] Specifically, the yield prediction model can be a deep machine learning model. Deep machine learning is a form of machine learning, the core of which is to learn the feature representation and pattern recognition of data by building a deep neural network model. Here, the deep machine learning model can be a T5 model or a BERT model, etc.

[0206] For the yield prediction model in the form of a deep machine learning model, in order to adapt to the input rules of the deep machine learning model, the reaction formula consisting of the intermediate, the second substrate and the product can be converted into the form of a linear molecular structure string, and then the reaction formula can be input into the yield prediction model in the form of a linear molecular structure string to achieve yield prediction for chemical reactions.

[0207] For example, Figure 8 It is a schematic diagram of the reaction formula provided by the present invention, such as Figure 8 As shown, in the amidation reaction of methylamine and acetic acid as substrates, HATU is used as a reaction condition. Under the action of HATU, acetic acid is converted into an active acid, and thus the reaction formula of the amidation reaction becomes that methylamine reacts with the intermediate active acid to generate a product.

[0208] The reaction formula in the form of a linear molecular structure string can be, for example, a reaction formula expressed in the form of a simplified molecular input line entry system (SMILES) or a reaction formula expressed in the form of a SMlies AR double target specification. The simplified molecular input line entry system is a specification that explicitly describes the molecular structure using an American Standard Code for Information Interchange (ASCII) string. The SMlies AR double target specification is a text format for describing chemical structures, which allows users to define complex chemical patterns that can be used to search, match, and identify specific chemical structures. The SMliesAR double target specification is an extended SMILES syntax.

[0209] For example, Figure 8 The reaction formula shown can be expressed in SMlies AR dual-target canonical form as: [#6:1](=[#8:2])[#8:3]>>[#6:1]([#8:3]N1N=NC2=CC=CN=C21)=[#8:2].

[0210] For example, Fig. 9 This is the fourth structural diagram of the yield prediction model provided by the present invention, such as Fig. 9 As shown, the yield prediction model can be a deep machine learning model, and its model input is a linear molecular structure string of a reaction formula, for example, it can be a SMILES of an amidation reaction, which can be specifically expressed as: CN.CC(=O)ON1N=NC2=CC=CN=C21>>CNC(C)=O. After the linear molecular structure string of the reaction formula is input into the yield prediction model, the yield prediction model can first perform data preprocessing on the data, and then input the result of the data preprocessing into the Transformer model for feature encoding, and then input the output of the Transformer into the combining module to integrate the features of the Transformer output, thereby forming a more comprehensive feature representation, and finally input into the fully connected layers for yield prediction, thereby outputting the final predicted yield, for example, a predicted yield with a value of 97.7% can be output.

[0211] At present, in the scheme of predicting chemical reaction yield based on artificial intelligence algorithm, it is usually necessary to build a yield prediction model based on artificial intelligence algorithm. The data quality of the reaction samples used to train the yield prediction model will also affect the prediction accuracy of the yield prediction model.

[0212] For example, in some related technologies, people have proposed to use literature reaction data to establish a yield prediction model for acylation reactions. However, since literature reaction data often have problems such as inconsistency between reports and actual conditions, variability in experimental conditions, and lack of comprehensive data sets, it is actually difficult to establish a reliable and generalizable yield prediction model using only literature reaction data. In addition, since literature usually only reports successful reactions with high yields and lacks reaction data with low yields, only using literature reaction data for training yield prediction models ignores the negative data of low yields necessary for creating a well-distributed and accurate yield prediction model, which results in low yield accuracy of chemical reactions predicted based on yield prediction models.

[0213] Therefore, how to obtain reaction samples with comprehensive distribution to improve the prediction accuracy of the yield prediction model is still a problem to be solved urgently in this field.

[0214] Based on any of the above embodiments, Fig.10 is a flow chart of the method for obtaining the sample product provided by the present invention, such as Fig.10 As shown, the sample products used in the yield prediction model training can be obtained based on the following steps: Step 1010: selecting a substrate of a similar chemical reaction to the chemical reaction from a first database, wherein the first database is associated with a chemical reaction application.

[0215] Here, the first database is a database storing various chemical reaction-related data, and the first database is a database associated with the application scenario of the chemical reaction, and the application scenario here may be chemical informatics, drug discovery, reaction prediction, etc. That is, the first database is data focusing on reflecting relevant information of the practical application of chemical reactions, for example, the first database may be a patent database, specifically a USPTO reaction data set.

[0216] For a chemical reaction to be predicted, chemical reactions of the same type as the chemical reaction can be recorded as chemical reactions of the same type. For example, various amidation reactions using different types of carboxylic acid compounds and amine compounds as substrate pairs all belong to chemical reactions of the same type.

[0217] The relevant data of the same chemical reaction for the chemical reaction can be selected from the first database, and the substrate used by the same chemical reaction can be obtained therefrom. Here, the relevant data of the same chemical reaction selected from the first database can include information such as the substrate, reaction condition combination, and product used by the same chemical reaction. It is understandable that the relevant data of the same chemical reaction extracted here can comprehensively cover the positive data, low yield data, and negative data related to the chemical reaction, and have a wide range of chemical diversity. The substrate used by the same chemical reaction can be selected from the first database, and can be obtained by filtering and screening in the first database through the reaction template.

[0218] For example, substrates of similar chemical reactions that match the reaction template can be filtered from the USPTO reaction dataset through the open source software package RDKit26. Here, RDKit26t is an open source software package for cheminformatics, which can provide a series of tools and algorithms for molecular descriptor calculation, chemical information processing and drug design to facilitate data screening and filtering.

[0219] It can be understood that the substrates of the same type of chemical reaction obtained through the first database are substrates that may be applied when performing the chemical reaction to be predicted, are closer to the actual application scenario, and have stronger application value.

[0220] Step 1020: Select substrates in a second database from substrates of the same type of chemical reactions as candidate substrates. The second database stores data of substrates that can be used for high-throughput experiments.

[0221] Specifically, after obtaining substrates of the same chemical reaction from the first database, further screening can be performed on the substrates of the same chemical reaction. The further screening here can be achieved through the second database.

[0222] Here, the second database is a database storing relevant data of substrates that can be used for high-throughput experiments, that is, the substrates included in the second database are accessible and easy to apply to high-throughput experiments. For example, the second database can be a commercial database, specifically an internal commercial molecule database.

[0223] From the substrates of each similar chemical reaction, the substrates present in the second database can be selected as candidate substrates. That is, the candidate substrate is a substrate that exists in the first database and also in the second database. Thus, the acquisition of the candidate substrate can be understood as the intersection of the substrates of the same chemical reaction in the first database and the substrates in the second database. For example, in the case where the chemical reaction to be predicted belongs to an amidation reaction, various carboxylic acid compounds and amine compounds used for the amidation reaction can be obtained through the first data, and then the carboxylic acid compounds and amine compounds present in the second database can be screened out as candidate substrates.

[0224] It is understandable that the candidate substrates thus obtained exist in the first database and have application value for conducting similar chemical reactions, and also exist in the second database and have the characteristics of being easy to obtain and can be used for high-throughput experiments.

[0225] Step 1030: determining the sample product based on the candidate substrate.

[0226] Specifically, after the candidate substrates are obtained, the sample products can be determined based on them. For example, all the obtained candidate substrates can be used as sample substrates that can be used for sample chemical reactions, and the products that may be generated under the combination of various sample substrates can be listed through the reaction template as sample products. Alternatively, the obtained candidate substrates can be further screened, and the products that may be generated under the combination of various candidate substrates after screening can be listed through the reaction template as sample products, which is not specifically limited in the embodiment of the present invention.

[0227] In the method provided in an embodiment of the present invention, a first database associated with a chemical reaction application and a second database storing data of substrates that can be used for high-throughput experiments are combined to screen and store candidate substrates in the first database and the second database, so that the screened candidate substrates not only meet the application value but also have the characteristics of being easy to obtain and convenient for high-throughput experiments. Based on this, sample products are determined for high-throughput experiments, and evenly distributed and comprehensive reaction samples can be obtained, thereby ensuring the generalization ability of the yield prediction model and further improving the prediction accuracy of the yield prediction model.

[0228] Based on any of the above embodiments, in step 1030, determining the sample product based on the candidate substrate includes: Based on the candidate substrate, determining a plurality of candidate products; arbitrarily selecting a candidate product from the multiple candidate products as the sample product, and deleting the sample product from the multiple candidate products; Calculate the minimum value of the structural distance between each candidate product in the multiple candidate products and all sample products, take the candidate product with the largest minimum value as the sample product, delete the sample product from the multiple candidate products, return to calculate the minimum value of the structural distance between each candidate product in the remaining multiple candidate products and all sample products, until the selection is completed, the structural distance is the distance between the structural features of the candidate product to be selected and the structural features of the sample product.

[0229] Specifically, after obtaining the candidate substrates, the products that may be generated under the combination of various candidate substrates can be listed through the reaction template. In the embodiment of the present invention, the products thus obtained are recorded as candidate products.

[0230] In order to select representative candidate products from a large number of candidate products as sample products so as to ensure that the reaction samples obtained are evenly and comprehensively distributed, in the embodiments of the present invention, further screening of the candidate products is required.

[0231] Prior to this, it is necessary to extract the structural features of each candidate product. Here, for any candidate product, the structural features of the candidate product are feature codes obtained by abstractly characterizing the molecular structure of the candidate product. For example, the structural features may be the molecular fingerprint of the candidate product, or the structural features may be features obtained by further feature extraction of the molecular fingerprint of the candidate product, or the structural features may be features after dimensionality reduction of the molecular fingerprint of the candidate product, which is not specifically limited in the embodiments of the present invention.

[0232] In addition, in the embodiment of the present invention, the distance between the structural features of the two products is recorded as the structural distance, for example, the structural distance can be the Euclidean distance. It should be noted that, for two products, the closer the structural distance, the higher the similarity of the molecular structures of the two products, and the farther the structural distance, the lower the similarity of the molecular structures of the two products.

[0233] Here, the process of selecting a sample product from candidate products can be understood as starting from a random candidate product and selecting candidate products one by one as sample products. In this process, it is necessary to ensure that the minimum structural distance between the sample product selected first and the candidate product to be selected as the sample product later is maximized, thereby ensuring that the structural features of the sample product finally selected are as dispersed as possible in the feature space.

[0234] It can be understood that the minimum structural distance between the sample product selected previously and the candidate product to be selected later as the sample product reflects the similarity between the sample product that is most similar to the candidate product to be selected and the candidate product. Maximizing the minimum structural distance between the sample product selected previously and the candidate product to be selected later as the sample product means that it is necessary to select the candidate product with the smallest similarity with all the sample products that have been selected from all the selectable candidate products as the new sample product, that is, the sample product selected each time is the candidate product that is most different from all the sample products that have been selected among all the selectable candidate products.

[0235] In a specific implementation, when a sample product is selected for the first time, a candidate product can be randomly selected from all optional candidate products as the first sample product, and after the first sample product is selected, the sample product is removed from all optional candidate products.

[0236] Subsequently, when selecting the next sample product, the structural distances between all optional candidate products and the sample products that have been selected can be calculated. In the case of multiple sample products, for each optional candidate product, the minimum value of the structural distances between the candidate product and each sample product is counted, that is, the structural distance between the candidate product and the sample product that is most similar to itself.

[0237] Next, from all the optional candidate products, the candidate product with the largest minimum structural distance, that is, the candidate product with the largest structural distance to the sample product with the most similarity to itself, is selected as the new sample product. And after the new sample product is selected, the sample product is removed from all the optional candidate products.

[0238] Then, the process of selecting the next sample product can be returned. The above steps can be repeated until the selection is completed.

[0239] Here, the condition for ending the selection may be that the number of sample products selected reaches a preset number threshold, or that the distribution of structural characteristics of all sample products selected meets the uniform and comprehensive requirements for generating reaction samples. The embodiment of the present invention does not specifically limit this.

[0240] In the method provided in the embodiment of the present invention, by ensuring that the minimum structural distance between the sample product selected previously and the candidate product to be selected later as the sample product is maximized, it is ensured that the sample product finally selected can meet the uniform and comprehensive requirements of the distribution required for generating reaction samples, thereby ensuring the generalization ability of the yield prediction model and improving the prediction accuracy of the yield prediction model.

[0241] Based on any of the above embodiments, in step 1030, determining the sample product based on the candidate substrate further includes: Determining the spatial coverage of the sample product compared to the product of the same chemical reaction based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction; When the spatial coverage is greater than or equal to the coverage threshold, it is determined that the selection is completed.

[0242] Specifically, feature distribution information refers to the distribution of a type of feature on all samples, which can reflect the statistical characteristics of this type of feature in different samples, such as the degree of dispersion and concentration.

[0243] In the process of selecting sample products, the characteristic distribution information of the structural characteristics of all selected sample products and the characteristic distribution information of the structural characteristics of the products of the same chemical reaction obtained by screening the first database can be compared to determine whether the extensiveness of the distribution of the structural characteristics of the target sample products that have been selected is similar to the extensiveness of the distribution of the structural characteristics of the products obtained by screening the first database, thereby ensuring that the structural characteristic distribution of the sample products finally selected can have the same broad chemical diversity as the first database.

[0244] In an embodiment of the present invention, the structural characteristics of all sample products can be taken as one type of features, and the structural characteristics of the products of the same chemical reaction obtained by screening the first database can be taken as another type of features. The two types of features can be projected into the same feature space to compare the feature distribution information of the two types of features, and then the spatial coverage of the sample products compared with the products of the same chemical reaction can be calculated.

[0245] Here, spatial coverage refers to the coverage of a data set within a specific spatial range. In an embodiment of the present invention, the structural features of all sample products are taken as a data set, and the structural features of the products of the same chemical reaction obtained by screening the first database are taken as a specific spatial range, that is, spatial coverage can be understood as the coverage of the structural features of all sample products in the structural features of the products of the same chemical reaction.

[0246] In the process of determining the spatial coverage of sample products compared with the products of the same chemical reaction based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the products of the same chemical reaction, the spatial coverage can be calculated by calculating the area ratio of the convex hull formed by the structural characteristics of all sample products in the convex hull formed by the structural characteristics of the products of the same chemical reaction, and the characteristic density within the convex hull formed by the structural characteristics of all sample products. Alternatively, the spatial coverage can also be calculated by algorithms such as the grid division method and the fractal dimension method, which is not specifically limited in the embodiments of the present invention.

[0247] The spatial coverage calculated in this way can be used as a basis for measuring whether the characteristic distribution of the structural characteristics of the sample product is extensive and diverse. Therefore, the calculated spatial coverage can be compared with the pre-set coverage threshold. If the spatial coverage is greater than or equal to the coverage threshold, it means that the currently selected sample products can meet the requirements of extensive and diverse structural characteristic distribution, and the selection of sample products can be completed.

[0248] The method provided in the embodiment of the present invention measures whether the currently selected sample products can meet the requirements of a wide and diverse distribution of structural characteristics by calculating the spatial coverage of the sample products compared to the products of the same chemical reactions, thereby further ensuring that the sample products finally selected can meet the requirements of uniform and comprehensive distribution required to generate reaction samples.

[0249] Based on any of the above embodiments, in step 1030, determining the sample product based on the candidate substrate further includes: When the spatial coverage is less than the coverage threshold, return to randomly selecting one candidate product from the multiple candidate products as the sample product, or continue to select a new sample product.

[0250] Specifically, when the spatial coverage is less than the coverage threshold, it means that the selected sample products cannot meet the requirements of uniform and comprehensive distribution required for generating reaction samples.

[0251] In this case, we can return to the initial stage of selecting sample products from candidate products, and re-select any candidate product as the sample product from the multiple candidate products determined based on the candidate substrate, and then proceed to the next selection step. That is, we can re-execute the process of selecting sample products from candidate products to obtain a new batch of sample products, and then calculate the spatial coverage.

[0252] Alternatively, you can continue to select sample products, that is, based on the currently selected sample products and the remaining multiple candidate products, continue to select new sample products from the remaining multiple candidate products until the spatial coverage of all selected sample products is greater than or equal to the coverage threshold.

[0253] It is understandable that, when it is determined that the spatial coverage is less than the coverage threshold, the sample product can be reselected, or new sample products can be selected based on the existing sample products. Alternatively, when it is determined that the spatial coverage is less than the coverage threshold, it can be further determined whether the number of existing sample products reaches the number threshold. If the number threshold is reached, the sample product is reselected. If the number threshold is not reached, new sample products are selected based on the existing sample products. The embodiment of the present invention does not specifically limit this.

[0254] Based on any of the above embodiments, in step 1030, the spatial coverage of the sample product compared to the product of the same chemical reaction is determined based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction, which also includes: The structural features of the sample products are dimensionally reduced, and the structural features of the products of the same chemical reactions are dimensionally reduced, so that the structural features of the sample products after dimension reduction and the structural features of the products of the same chemical reactions after dimension reduction are mapped in the same feature space.

[0255] Specifically, as the dimensionality of structural features increases, the computational difficulty of spatial coverage also increases, and distance and similarity measures in high-dimensional spaces also become complex and difficult to interpret.

[0256] Therefore, in order to reduce the difficulty of calculating spatial coverage and to more conveniently reflect the structural characteristics of the sample products and the structural characteristics of the products of similar chemical reactions screened from the first database in the same feature space, in an embodiment of the present invention, dimensionality reduction can be performed on the structural characteristics of the sample products and the structural characteristics of the products of similar chemical reactions, respectively, thereby compressing the high-dimensional structural characteristics into a low-dimensional space.

[0257] Here, the dimension reduction is performed on the structural features, and the dimension reduction can be achieved through principal component analysis, or can also be performed through algorithms such as linear discriminant analysis and t-distribution random neighbor embedding, which is not specifically limited in the embodiment of the present invention.

[0258] It can be understood that through dimensionality reduction operations, the structural characteristics of the sample products and the structural characteristics of the products of similar chemical reactions can be mapped to the same low-dimensional feature space. In this case, it is possible to more conveniently observe the characteristic distribution information of the structural characteristics of the sample products and the characteristic distribution information of the structural characteristics of the products of similar chemical reactions, as well as calculate the spatial coverage of the sample products compared to the products of similar chemical reactions.

[0259] For example, Figure 2 is a schematic diagram of the structural characteristics distribution of the sample product provided by the present invention and the products of the same chemical reaction, such as Figure 2 As shown, the structural characteristics of the sample product and the product of the same chemical reaction can be reduced in dimension through principal component analysis, thereby projecting the structural characteristics onto a two-dimensional plane for display with principal component 1 of the structural characteristics obtained by dimensionality reduction as the horizontal coordinate and principal component 2 as the vertical coordinate.

[0260] Figure 2 All points in the figure are products of amidation reactions, blue points represent products of similar chemical reactions obtained by screening the first database, and red triangles represent sample products. The green dots represent sample products that share the same substrate pair with products of similar chemical reactions, yellow squares represent sample products that share amine compounds with products of similar chemical reactions, and pink diamonds represent sample products that share carboxylic acid compounds with products of similar chemical reactions.

[0261] It is understandable that Figure 2 From the structural feature distribution of the sample products and the products of the same chemical reaction, it can be seen that the sample products obtained based on the above embodiment can cover the chemical diversity and breadth comparable to the first database, thus ensuring the generalization ability of the yield prediction model trained thereby.

[0262] Based on any of the above embodiments, the measured yield is obtained by performing a high-throughput experiment on the chemical reaction of the sample.

[0263] Specifically, in the process of generating a reaction sample, the sample product of the sample chemical reaction corresponding to the reaction sample can be determined based on the method provided in the above embodiment. Accordingly, after determining the sample product, the sample substrate used to generate the sample product can be determined through the reaction template, thereby forming a completed sample chemical reaction. In this case, a high-throughput experiment can be performed on the sample chemical reaction, thereby recording the measured yield of the sample chemical reaction.

[0264] Thus, the sample intermediates in the sample chemical reaction, the sample second substrate not involved in the generation of the intermediates, the sample products, and the measured yields obtained through high-throughput experiments can be used to generate corresponding reaction samples.

[0265] Based on any of the above embodiments, the yield prediction method of a chemical reaction provided by each embodiment of the present invention can be applied to the yield prediction of an amidation reaction, and can also be applied to the yield prediction of chemical reactions such as Buchwald-Hartwig amination reaction, Suzuki coupling reaction, ketone arylation reaction, acylation reaction, aromatic nucleophilic substitution reaction, Chan-Lam coupling reaction, Sonogashira coupling reaction, Ullmann coupling reaction, Heck reaction, reductive amination reaction, Miyaura borylation reaction, Hiyama coupling reaction, Grignard reaction, aromatic Finkelstein reaction, allyl substitution reaction, Kumada coupling reaction, palladium-catalyzed carbonylation reaction, and esterification reaction.

[0266] For example, when predicting an amidation reaction, the reaction condition combination of the amidation reaction and the carboxylic acid compound as the first substrate can be determined, and the intermediate of the amidation reaction can be determined in combination with the two. Subsequently, the intermediate, the amine compound as the second substrate of the amidation reaction, and the product of the amidation reaction can be input into the yield prediction model of the amidation reaction, thereby obtaining the predicted yield for the amidation reaction output by the yield prediction model.

[0267] For another example, when predicting a Buchwald-Hartwig coupling reaction, the reaction condition combination of the Buchwald-Hartwig coupling reaction and the halogenated aromatic hydrocarbon as the first substrate can be determined, and the intermediate of the Buchwald-Hartwig coupling reaction can be determined in combination with the two. Subsequently, the intermediate, the amine compound as the second substrate of the Buchwald-Hartwig coupling reaction, and the product of the Buchwald-Hartwig coupling reaction can be input into the yield prediction model of the Buchwald-Hartwig coupling reaction, thereby obtaining the predicted yield for the Buchwald-Hartwig coupling reaction output by the yield prediction model.

[0268] In order to verify the effectiveness of using the intermediate as the model input for improving the yield prediction accuracy, the prediction accuracy of the yield prediction model for the amidation reaction was tested in the embodiment of the present invention, and Table 3 is a statistical table of the prediction accuracy of the yield prediction model. Among them, the data shown in brackets indicate that the model takes the intermediate into account when predicting the yield, and the data not shown in brackets indicate that the model does not take the intermediate into account when predicting the yield.

[0269]

[0270] Table 3 lists the predicted yields of the yield prediction model under different test data set splits (such as random splits, partial substrate novelty, full substrate novelty) and different chemical coupling reagents (such as TBTU, HATU, PyBOP, DCC, HBTU, EDC). Performance indicators include R² (coefficient of determination), RMSE (root mean square error) and MAE (mean absolute error). In Table 3, the R² values ​​using intermediates as input are between 0.84 and 0.90.

[0271] As shown in Table 3, in most cases, using intermediates as input can significantly improve the prediction accuracy of the yield prediction model (as shown by higher R² values ​​and lower RMSE and MAE values). This shows that the knowledge provided by the intermediates plays an important role in improving the accuracy and generalization ability of the yield model in yield prediction.

[0272] In addition, in the embodiment of the present invention, 30 chemical reactions were selected for yield prediction using the yield prediction model. Fig.11 It is a schematic diagram of the yield prediction effect provided by the present invention. Fig.11 The predicted and measured yields of 9 chemical reactions out of 30 are shown. Fig.11 Each chemical molecule in corresponds to a product of a chemical reaction. Fig.11 It can be seen that in the yield prediction of most chemical reactions, the measured yield is very close to the predicted yield.

[0273] It should be noted that in the yield prediction for each of the above-mentioned chemical reactions, the intermediate of the chemical reaction is determined based on the first substrate participating in the chemical reaction of the reaction condition combination of the chemical reaction, and then the intermediate of the chemical reaction, the second substrate participating in the chemical reaction, and the product of the chemical reaction are input into the yield prediction model to obtain the predicted yield output by the yield prediction model. The measured yield of the chemical reaction is the yield obtained by performing a chemical reaction based on the first substrate and the second substrate of the chemical reaction under the reaction condition combination, and specifically can be the yield obtained by actually performing a high-throughput experiment. It is worth noting that the combination of substrates and reaction conditions applied in the process of obtaining the predicted yield is consistent with the combination of substrates and reaction conditions applied in the process of obtaining the measured yield.

[0274] In addition, in order to strictly evaluate the performance of the yield prediction model, the embodiment of the present invention predicts the yield of chemical reactions recorded in various public documents. In specific implementation, the embodiment of the present invention selects 30 chemical reactions related to medicinal chemistry, and inputs the intermediates, second substrates and products of each of the above chemical reactions into the yield prediction model for yield prediction. Based on the evaluation results, the yield prediction model trained based on the BERT model has excellent prediction performance, reaching an average absolute error of 12.2%, and the errors of the predicted yields of 9 chemical reactions are less than 5%. Table 4 is a statistical table of the prediction accuracy of the yield prediction model.

[0275]

[0276] In Table 4, in the reaction condition combination marked as "HATU", the activator is HATU, the solvent is DIPEA, and the reagent is DMF; in the reaction condition combination marked as "TBTU", the activator is TBTU, the solvent is DIPEA, and the reagent is DMF; in the reaction condition combination marked as "EDC", the activator is EDC.HCI, the base is HOBT, the solvent is DIPEA, and the reagent is DMF; in the reaction condition combination marked as "HBTU", the activator is HBTU, the solvent is DIPEA, and the reagent is DMF; in the reaction condition combination marked as "PyBOP", the activator is PyBOP, the solvent is DIPEA, and the reagent is DMF; in the reaction condition combination marked as "DCC", the activator is DCC, the base is HOBT, and the reagent is DMF.

[0277] The training device for the yield prediction model of a chemical reaction provided by the present invention is described below. The training device for the yield prediction model of a chemical reaction described below and the training method for the yield prediction model of a chemical reaction described above can be referenced to each other.

[0278] Fig.12 is a schematic diagram of the structure of the yield prediction model training device for a chemical reaction provided by the present invention, such as Fig.12 As shown, the device comprises: A first selection unit 1210 is used to select a substrate of a chemical reaction of the same type as the chemical reaction from a first database, wherein the first database is associated with the chemical reaction application; A second selection unit 1220, for selecting, from substrates of the same type of chemical reaction, substrates present in a second database as candidate substrates, wherein the second database stores data of substrates that can be used for high-throughput experiments; The sample generating unit 1230 is used to determine a sample product based on the candidate substrate, and generate a reaction sample based on the sample product, the sample substrate of the sample chemical reaction corresponding to the sample product, the sample reaction condition combination and the measured yield; The model training unit 1240 is used to train the yield prediction model of the chemical reaction based on the reaction sample.

[0279] The device provided by the embodiment of the present invention combines a first database associated with chemical reaction applications and a second database storing data of substrates that can be used for high-throughput experiments to screen candidate substrates stored in the first database and the second database, so that the screened candidate substrates not only meet the application value but also have the characteristics of being easy to obtain and convenient for high-throughput experiments. Based on this, sample products are determined for high-throughput experiments, and evenly distributed and comprehensive reaction samples can be obtained, thereby ensuring the generalization ability of the yield prediction model and further improving the prediction accuracy of the yield prediction model.

[0280] Based on the above embodiment, the sample generation unit is specifically used for: Based on the candidate substrate, determining a plurality of candidate products; arbitrarily selecting a candidate product from the multiple candidate products as the sample product, and deleting the sample product from the multiple candidate products; Calculate the minimum value of the structural distance between each candidate product in the multiple candidate products and all sample products, take the candidate product with the largest minimum value as the sample product, delete the sample product from the multiple candidate products, return to calculate the minimum value of the structural distance between each candidate product in the remaining multiple candidate products and all sample products, until the selection is completed, the structural distance is the distance between the structural features of the candidate product to be selected and the structural features of the sample product.

[0281] Based on any of the above embodiments, the sample generating unit is further used for: Determining the spatial coverage of the sample product compared to the product of the same chemical reaction based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction; When the spatial coverage is greater than or equal to the coverage threshold, it is determined that the selection is completed.

[0282] Based on any of the above embodiments, the sample generating unit is further used for: When the spatial coverage is less than the coverage threshold, return to randomly selecting one candidate product from the multiple candidate products as the sample product, or continue to select a new sample product.

[0283] Based on any of the above embodiments, the sample generating unit is further used for: The structural features of the sample products are dimensionally reduced, and the structural features of the products of the same chemical reactions are dimensionally reduced, so that the structural features of the sample products after dimension reduction and the structural features of the products of the same chemical reactions after dimension reduction are mapped in the same feature space.

[0284] Based on any of the above embodiments, the measured yield is obtained by performing a high-throughput experiment on the chemical reaction of the sample.

[0285] Based on any of the above embodiments, the sample generation unit is specifically used for: determining a sample intermediate of the sample chemical reaction based on the sample reaction condition combination and a sample first substrate participating in the sample substrate; The reaction sample is generated based on the sample product, a sample second substrate in the sample substrate and the measured yield, wherein the sample second substrate is a substrate in the sample substrate other than the sample first substrate.

[0286] Based on any of the above embodiments, the model training unit is specifically used for: Based on a plurality of reaction samples corresponding to the same sample reaction condition combination, a yield prediction model of the chemical reaction corresponding to the sample reaction condition combination is trained.

[0287] Based on any of the above embodiments, the model training unit is specifically used for: Based on the reaction samples corresponding to the plurality of sample reaction condition combinations, a yield prediction model of the chemical reaction is trained.

[0288] The yield prediction device for a chemical reaction provided by the present invention is described below. The yield prediction device for a chemical reaction described below and the yield prediction method for a chemical reaction described above can be referred to each other.

[0289] Fig.13 Schematic diagram of the structure of the yield prediction device of the chemical reaction provided by the present invention, such as Fig.13 As shown, the device comprises: An intermediate determination unit 1310, for determining an intermediate of the chemical reaction based on a combination of reaction conditions of the chemical reaction and a first substrate participating in the chemical reaction; A yield prediction unit 1320, for inputting the intermediate, a second substrate participating in the chemical reaction, and a product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model, wherein the second substrate is a substrate participating in the chemical reaction other than the first substrate; The yield prediction model is obtained by training based on a plurality of reaction samples, wherein the reaction samples include a sample second substrate participating in a sample chemical reaction, and a sample intermediate, a sample product and a measured yield of the sample chemical reaction.

[0290] The device provided in an embodiment of the present invention uses an intermediate to replace the first substrate and a reaction condition combination as the input of a yield prediction model, so that the yield prediction model can learn the intermediate knowledge of the chemical reaction process. Moreover, since there is no need to input a wide variety of complex reaction condition combinations, the complexity of the yield prediction model is greatly reduced, and the yield prediction accuracy for chemical reactions is improved.

[0291] Based on the above embodiment, the yield prediction unit is specifically used for: Inputting the intermediate, the second substrate participating in the chemical reaction, and the product of the chemical reaction into a yield prediction model corresponding to the reaction condition combination, and obtaining a predicted yield of the chemical reaction output by the yield prediction model corresponding to the reaction condition combination; The reaction condition combinations corresponding to the multiple reaction samples are consistent with the reaction condition combinations of the chemical reaction.

[0292] Based on any of the above embodiments, the plurality of reaction samples correspond to a plurality of reaction condition combinations, and the reaction condition combination of the chemical reaction belongs to one of the plurality of reaction condition combinations.

[0293] Based on any of the above embodiments, the yield prediction unit is specifically used for: When the yield prediction model is a shallow machine learning model, the vector representation of the intermediate, the vector representation of the second substrate, and the vector representation of the product are input into the yield prediction model to obtain the predicted yield of the chemical reaction output by the yield prediction model.

[0294] Based on any of the above embodiments, the yield prediction unit is specifically used for: In the case where the yield prediction model is a deep machine learning model, the reaction formula is input into the yield prediction model in the form of a linear molecular structure string to obtain the predicted yield of the chemical reaction output by the yield prediction model; The reaction formula includes the intermediate, the second substrate and the product.

[0295] Based on any of the above embodiments, the device further includes a sample determination unit, and the sample determination unit is used to: Selecting a substrate of a similar chemical reaction to the chemical reaction from a first database, wherein the first database is associated with a chemical reaction application; From substrates of each similar chemical reaction, selecting a substrate present in a second database as a candidate substrate, wherein the second database stores data of substrates that can be used for high-throughput experiments; Based on the candidate substrate, the sample product is determined.

[0296] Based on any of the above embodiments, the sample determination unit is specifically used for: Based on the candidate substrate, determining a plurality of candidate products; arbitrarily selecting a candidate product from the multiple candidate products as the sample product, and deleting the sample product from the multiple candidate products; Calculate the minimum value of the structural distance between each candidate product in the multiple candidate products and all sample products, take the candidate product with the largest minimum value as the sample product, delete the sample product from the multiple candidate products, return to calculate the minimum value of the structural distance between each candidate product in the remaining multiple candidate products and all sample products, until the selection is completed, the structural distance is the distance between the structural features of the candidate product to be selected and the structural features of the sample product.

[0297] Based on any of the above embodiments, the sample determination unit is further configured to: Determining the spatial coverage of the sample product compared to the product of the same chemical reaction based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction; When the spatial coverage is greater than or equal to the coverage threshold, it is determined that the selection is completed.

[0298] Based on any of the above embodiments, the sample determination unit is further configured to: When the spatial coverage is less than the coverage threshold, return to randomly selecting one candidate product from the multiple candidate products as the sample product, or continue to select a new sample product.

[0299] Based on any of the above embodiments, the sample determination unit is further configured to: The structural features of the sample products are dimensionally reduced, and the structural features of the products of the same chemical reactions are dimensionally reduced, so that the structural features of the sample products after dimension reduction and the structural features of the products of the same chemical reactions after dimension reduction are mapped in the same feature space.

[0300] Based on any of the above embodiments, the measured yield is obtained by performing a high-throughput experiment on the chemical reaction of the sample.

[0301] Fig.14 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.14As shown, the electronic device may include: a processor 1410, a communication interface 1420, a memory 1430 and a communication bus 1440, wherein the processor 1410, the communication interface 1420 and the memory 1430 communicate with each other through the communication bus 1440. The processor 1410 may call the logic instructions in the memory 1430 to execute a yield prediction model training method for a chemical reaction, the method comprising: selecting substrates of the same chemical reaction of the chemical reaction from a first database, the first database being associated with a chemical reaction application; selecting substrates existing in a second database from the substrates of each same chemical reaction as candidate substrates, the second database storing data of substrates that can be used for high-throughput experiments; determining a sample product based on the candidate substrate, and generating a reaction sample based on the sample product, and the sample substrate of the sample chemical reaction corresponding to the sample product, the sample reaction condition combination and the measured yield; and training the yield prediction model of the chemical reaction based on the reaction sample.

[0302] Alternatively, the processor 1410 can call the logic instructions in the memory 1430 to execute a yield prediction method for a chemical reaction, the method comprising: determining an intermediate of the chemical reaction based on a combination of reaction conditions of the chemical reaction and a first substrate participating in the chemical reaction; inputting the intermediate, the second substrate participating in the chemical reaction, and the product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model, wherein the second substrate is a substrate participating in the chemical reaction other than the first substrate; the yield prediction model is obtained by training based on multiple reaction samples, wherein the reaction samples include a sample second substrate participating in a sample chemical reaction, as well as a sample intermediate, a sample product and a measured yield of the sample chemical reaction.

[0303] In addition, the logic instructions in the above-mentioned memory 1430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0304] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the chemical reaction yield prediction model training method provided by the above methods, the method including: selecting substrates of similar chemical reactions of chemical reactions from a first database, the first database being associated with a chemical reaction application; selecting substrates existing in a second database from substrates of each similar chemical reaction as candidate substrates, the second database storing data of substrates that can be used for high-throughput experiments; determining a sample product based on the candidate substrate, and generating a reaction sample based on the sample product, and the sample substrate, sample reaction condition combination and measured yield of the sample chemical reaction corresponding to the sample product; and training the yield prediction model of the chemical reaction based on the reaction sample.

[0305] Alternatively, a computer can execute the yield prediction method of a chemical reaction provided by the above methods, the method comprising: determining an intermediate of the chemical reaction based on a combination of reaction conditions of the chemical reaction and a first substrate participating in the chemical reaction; inputting the intermediate, the second substrate participating in the chemical reaction, and the product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model, wherein the second substrate is a substrate participating in the chemical reaction other than the first substrate; the yield prediction model is obtained by training based on multiple reaction samples, wherein the reaction samples include a sample second substrate participating in a sample chemical reaction, and a sample intermediate, a sample product and a measured yield of the sample chemical reaction.

[0306] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the yield prediction model training method for a chemical reaction provided by the above-mentioned methods, the method comprising: selecting substrates of similar chemical reactions of a chemical reaction from a first database, wherein the first database is associated with a chemical reaction application; selecting substrates existing in a second database from substrates of each similar chemical reaction as candidate substrates, wherein the second database stores data of substrates that can be used for high-throughput experiments; determining a sample product based on the candidate substrate, and generating a reaction sample based on the sample product, and the sample substrate, sample reaction condition combination and measured yield of the sample chemical reaction corresponding to the sample product; and training the yield prediction model of the chemical reaction based on the reaction sample.

[0307] Alternatively, when the computer program is executed by a processor, it is implemented to execute the yield prediction method of the chemical reaction provided by the above methods, the method comprising: determining the intermediate of the chemical reaction based on the reaction condition combination of the chemical reaction and the first substrate participating in the chemical reaction; inputting the intermediate, the second substrate participating in the chemical reaction, and the product of the chemical reaction into a yield prediction model to obtain the predicted yield of the chemical reaction output by the yield prediction model, wherein the second substrate is a substrate participating in the chemical reaction other than the first substrate; the yield prediction model is obtained by training based on multiple reaction samples, wherein the reaction samples include a sample second substrate participating in a sample chemical reaction, and a sample intermediate, a sample product and a measured yield of the sample chemical reaction.

[0308] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0309] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.

[0310] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for training a yield prediction model for a chemical reaction, characterized in that: include: Selecting a substrate of a chemical reaction of the same type as the chemical reaction from a first database, wherein the first database is associated with the chemical reaction application; From substrates of each similar chemical reaction, selecting a substrate present in a second database as a candidate substrate, wherein the second database stores data of substrates that can be used for high-throughput experiments; Determine a sample product based on the candidate substrate, and generate a reaction sample based on the sample product, and a sample substrate, a sample reaction condition combination, and a measured yield of a sample chemical reaction corresponding to the sample product; Based on the reaction samples, a yield prediction model of the chemical reaction is trained.

2. The yield prediction model training method for a chemical reaction according to claim 1, characterized in that: Determining the sample product based on the candidate substrate comprises: Based on the candidate substrate, determining a plurality of candidate products; arbitrarily selecting a candidate product from the multiple candidate products as the sample product, and deleting the sample product from the multiple candidate products; Calculate the minimum value of the structural distance between each candidate product in the multiple candidate products and all sample products, take the candidate product with the largest minimum value as the sample product, delete the sample product from the multiple candidate products, return to calculate the minimum value of the structural distance between each candidate product in the remaining multiple candidate products and all sample products, until the selection is completed, the structural distance is the distance between the structural features of the candidate product to be selected and the structural features of the sample product.

3. The yield prediction model training method for a chemical reaction according to claim 2, characterized in that: The step of determining the sample product based on the candidate substrate further comprises: Determining the spatial coverage of the sample product compared to the product of the same chemical reaction based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction; When the spatial coverage is greater than or equal to the coverage threshold, it is determined that the selection is completed.

4. The yield prediction model training method for a chemical reaction according to claim 3, characterized in that: The step of determining the sample product based on the candidate substrate further comprises: When the spatial coverage is less than the coverage threshold, return to randomly selecting one candidate product from the multiple candidate products as the sample product, or continue to select a new sample product.

5. The yield prediction model training method for a chemical reaction according to claim 3, characterized in that: The step of determining the spatial coverage of the sample product compared with the product of the same chemical reaction based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction may also include: The structural features of the sample products are dimensionally reduced, and the structural features of the products of the same chemical reactions are dimensionally reduced, so that the structural features of the sample products after dimension reduction and the structural features of the products of the same chemical reactions after dimension reduction are mapped in the same feature space.

6. The yield prediction model training method for a chemical reaction according to claim 1, characterized in that: The measured yield is obtained by performing high-throughput experiments on the chemical reaction of the sample.

7. The yield prediction model training method for a chemical reaction according to claim 1, characterized in that: The step of generating a reaction sample based on the sample product, a sample substrate of a sample chemical reaction corresponding to the sample product, a sample reaction condition combination and a measured yield comprises: determining a sample intermediate of the sample chemical reaction based on the sample reaction condition combination and a sample first substrate participating in the sample substrate; The reaction sample is generated based on the sample product, a sample second substrate in the sample substrate and the measured yield, wherein the sample second substrate is a substrate in the sample substrate other than the sample first substrate.

8. The yield prediction model training method for a chemical reaction according to any one of claims 1 to 7, characterized in that: The step of training the yield prediction model of the chemical reaction based on the reaction sample comprises: Based on a plurality of reaction samples corresponding to the same sample reaction condition combination, a yield prediction model of the chemical reaction corresponding to the sample reaction condition combination is trained.

9. The yield prediction model training method for a chemical reaction according to any one of claims 1 to 7, characterized in that: The step of training the yield prediction model of the chemical reaction based on the reaction sample comprises: Based on the reaction samples corresponding to the plurality of sample reaction condition combinations, a yield prediction model of the chemical reaction is trained.

10. A method for predicting the yield of a chemical reaction, characterized in that: include: determining an intermediate of the chemical reaction based on a combination of reaction conditions of the chemical reaction and a first substrate participating in the chemical reaction; Inputting the intermediate, a second substrate participating in the chemical reaction, and a product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model, wherein the second substrate is a substrate participating in the chemical reaction other than the first substrate; The yield prediction model is obtained by training based on a plurality of reaction samples, wherein the reaction samples include a sample second substrate participating in a sample chemical reaction, and a sample intermediate, a sample product and a measured yield of the sample chemical reaction.

11. The method for predicting the yield of a chemical reaction according to claim 10, characterized in that: The step of inputting the intermediate, the second substrate involved in the chemical reaction, and the product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model comprises: Inputting the intermediate, the second substrate participating in the chemical reaction, and the product of the chemical reaction into a yield prediction model corresponding to the reaction condition combination, and obtaining a predicted yield of the chemical reaction output by the yield prediction model corresponding to the reaction condition combination; The reaction condition combinations corresponding to the multiple reaction samples are consistent with the reaction condition combinations of the chemical reaction.

12. The method for predicting the yield of a chemical reaction according to claim 10, characterized in that: The plurality of reaction samples correspond to a plurality of reaction condition combinations, and the reaction condition combination of the chemical reaction belongs to one of the plurality of reaction condition combinations.

13. The method for predicting the yield of a chemical reaction according to claim 10, characterized in that: The step of inputting the intermediate, the second substrate involved in the chemical reaction, and the product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model comprises: When the yield prediction model is a shallow machine learning model, the vector representation of the intermediate, the vector representation of the second substrate, and the vector representation of the product are input into the yield prediction model to obtain the predicted yield of the chemical reaction output by the yield prediction model.

14. The method for predicting the yield of a chemical reaction according to claim 10, characterized in that: The step of inputting the intermediate, the second substrate involved in the chemical reaction, and the product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model comprises: In the case where the yield prediction model is a deep machine learning model, the reaction formula is input into the yield prediction model in the form of a linear molecular structure string to obtain the predicted yield of the chemical reaction output by the yield prediction model; The reaction formula includes the intermediate, the second substrate and the product.

15. The method for predicting the yield of a chemical reaction according to claim 10, characterized in that: The acquisition of the sample product includes: Selecting a substrate of a similar chemical reaction to the chemical reaction from a first database, wherein the first database is associated with a chemical reaction application; From substrates of each similar chemical reaction, selecting a substrate present in a second database as a candidate substrate, wherein the second database stores data of substrates that can be used for high-throughput experiments; Based on the candidate substrate, the sample product is determined.

16. The method for predicting the yield of a chemical reaction according to claim 15, characterized in that: Determining the sample product based on the candidate substrate includes: Based on the candidate substrate, determining a plurality of candidate products; arbitrarily selecting a candidate product from the multiple candidate products as the sample product, and deleting the sample product from the multiple candidate products; Calculate the minimum value of the structural distance between each candidate product in the multiple candidate products and all sample products, take the candidate product with the largest minimum value as the sample product, delete the sample product from the multiple candidate products, return to calculate the minimum value of the structural distance between each candidate product in the remaining multiple candidate products and all sample products, until the selection is completed, the structural distance is the distance between the structural features of the candidate product to be selected and the structural features of the sample product.

17. The method for predicting the yield of a chemical reaction according to claim 16, characterized in that: The step of determining the sample product based on the candidate substrate further comprises: Determining the spatial coverage of the sample product compared to the product of the same chemical reaction based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction; When the spatial coverage is greater than or equal to the coverage threshold, it is determined that the selection is completed.

18. The method for predicting the yield of a chemical reaction according to claim 17, characterized in that: The step of determining the sample product based on the candidate substrate further comprises: When the spatial coverage is less than the coverage threshold, return to randomly selecting one candidate product from the multiple candidate products as the sample product, or continue to select a new sample product.

19. The method for predicting the yield of a chemical reaction according to claim 17, characterized in that: The step of determining the spatial coverage of the sample product compared with the product of the same chemical reaction based on the characteristic distribution information of the structural characteristics of all sample products and the characteristic distribution information of the structural characteristics of the product of the same chemical reaction may also include: The structural features of the sample products are dimensionally reduced, and the structural features of the products of the same chemical reactions are dimensionally reduced, so that the structural features of the sample products after dimension reduction and the structural features of the products of the same chemical reactions after dimension reduction are mapped in the same feature space.

20. The method for predicting the yield of a chemical reaction according to any one of claims 10 to 19, characterized in that: The measured yield is obtained by performing high throughput experiments on the sample chemical reactions.

21. A chemical reaction yield prediction model training device, characterized in that: include: A first selection unit, configured to select a substrate of a chemical reaction of the same type as the chemical reaction from a first database, wherein the first database is associated with the chemical reaction application; A second selection unit is used to select substrates existing in a second database from substrates of the same type of chemical reactions as candidate substrates, wherein the second database stores data of substrates that can be used for high-throughput experiments; A sample generating unit, configured to determine a sample product based on the candidate substrate, and generate a reaction sample based on the sample product, and a sample substrate, a sample reaction condition combination and a measured yield of a sample chemical reaction corresponding to the sample product; A model training unit is used to train the yield prediction model of the chemical reaction based on the reaction sample.

22. A chemical reaction yield prediction device, characterized in that: include: An intermediate determination unit, for determining an intermediate of the chemical reaction based on a combination of reaction conditions of the chemical reaction and a first substrate participating in the chemical reaction; A yield prediction unit, used for inputting the intermediate, a second substrate participating in the chemical reaction, and a product of the chemical reaction into a yield prediction model to obtain a predicted yield of the chemical reaction output by the yield prediction model, wherein the second substrate is a substrate participating in the chemical reaction other than the first substrate; The yield prediction model is obtained by training based on a plurality of reaction samples, wherein the reaction samples include a sample second substrate participating in a sample chemical reaction, and a sample intermediate, a sample product and a measured yield of the sample chemical reaction.

23. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, it implements the yield prediction model training method for the chemical reaction as described in any one of claims 1 to 9, or implements the yield prediction method for the chemical reaction as described in any one of claims 10 to 20.

24. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the yield prediction model training method for a chemical reaction as described in any one of claims 1 to 9, or implements the yield prediction method for a chemical reaction as described in any one of claims 10 to 20.

25. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the yield prediction model training method for a chemical reaction as described in any one of claims 1 to 9, or implements the yield prediction method for a chemical reaction as described in any one of claims 10 to 20.

Citation Information

Cited By

  • Yield prediction method and device and electronic equipment

    CN119446313A

  • Method, system and equipment for optimizing chemical reaction yield and medium

    CN121958905A

  • Methods, systems, devices, and media for optimization of chemical reaction yields

    CN121958905B

  • Chemical reaction design method and system based on artificial intelligence and computer equipment

    CN122290745A