A method for rapid prediction of nuclear magnetic resonance chemical shifts based on machine learning
By using machine learning-based methods and using feature descriptors and neural network models, the problem of high resource consumption in NMR chemical shift calculations in complex systems is solved, fast and accurate chemical shift predictions are achieved, and it is suitable for calculations of large systems.
Patent Information
- Application Number
- CN202210108013.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-28
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-01-28
AI Technical Summary
Existing NMR chemical shift calculation methods consume high computational resources in complex systems and are difficult to achieve fast and accurate predictions, especially in systems with complex structures.
Using a machine learning-based approach, a neural network model is trained to predict NMR chemical shifts through electronic structure calculations of atomic configurations and generation of feature descriptors, including smooth overlap of atomic positions, atomic center symmetry functions, and many-body Tensor representation can be rotated, translated, and inverted invariantly.
It achieves fast and accurate NMR chemical shift prediction, reducing computing resource requirements. The prediction speed is increased by 40,000 times compared with DFT calculation, while maintaining high accuracy and is suitable for chemical shift calculation of large systems.
Smart Images

Figure CN114496111B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of nuclear magnetic resonance technology, computational chemistry and physical chemistry, and in particular to a method for rapidly predicting nuclear magnetic resonance chemical shifts based on machine learning. Background Art
[0002] Nuclear Magnetic Resonance (NMR) is a unique characterization technique that is sensitive to the local chemical environment of atoms and has a wide range of applications in physical, chemical, and biological systems. The shielding effect of the chemical environment on the external magnetic field of the atomic nucleus varies, and different chemical shifts are shown in the NMR spectrum. The mechanism of this shielding effect depends on the type of system. The chemical shift in the diamagnetic system is contributed by paired electrons, that is, orbital shielding shift; in the paramagnetic system, the mechanism of chemical shift is more complicated, including not only orbital shielding shift, but also Fermi contact shift and pseudocontact shift contributed by unpaired electrons. The complex displacement mechanism often makes it difficult to accurately identify the signal peaks measured in the experiment.
[0003] Using ab initio methods based on quantum mechanics or density functional theory (DFT) to calculate the electronic structure of a system, chemical shifts can be directly obtained, thereby achieving accurate identification of signal peaks. However, accurate electronic structure calculations require high computing resources and are cubically related to the number of atoms in the system, making them difficult to be widely applied to systems with complex structures. Therefore, it is very important to develop an accurate, fast, and easily scalable method for calculating chemical shifts.
[0004] Machine Learning (ML) methods are becoming new tools in many fields of chemistry and physics, learning the relationship between variables based on large amounts of data. The local structure of atoms and chemical shift are a pair of strongly correlated variables. In order to use machine learning methods, it is necessary to characterize the local structure of atoms. This expression is also called a "descriptor", which needs to satisfy rotation, translation, and inversion invariance at the same time. For example, the "Smooth Overlap of Atomic Positions" (SOAP) descriptor developed by Gabor Csanyi (Bartók et al., 2013) and others can expand the local structure of any atom into an expansion of Gaussian smoothed atomic density and orthogonal functions based on spherical harmonics and radial distribution functions, which has been widely used in the fields of physics and chemistry. Summary of the invention
[0005] In order to solve at least one of the above technical problems, the present disclosure provides a method, device, electronic device and readable storage medium for quickly predicting nuclear magnetic resonance chemical shift based on machine learning.
[0006] According to one aspect of the present disclosure, a method for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning is provided, comprising:
[0007] Performing electronic structure calculation on the collected set of atomic configurations to obtain chemical shifts of the set of atomic configurations;
[0008] Representing the local structure of each atom in the set of atomic configurations as a feature descriptor, wherein the feature descriptor is invariant to rotation, translation and inversion of the local structure of the atom;
[0009] Dividing the feature descriptors and the corresponding chemical shift data into a training set and a test set according to a predetermined ratio, wherein the training set is used to train the neural network, and the test set is used to test the trained neural network;
[0010] Training a neural network based on the training set and the test set to obtain a neural network prediction model;
[0011] The atomic local structure of the chemical shift to be predicted is converted into a feature descriptor, and input into the neural network prediction model to obtain the predicted chemical shift of the atomic local structure of the chemical shift to be predicted.
[0012] According to at least one embodiment of the present disclosure, a method for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning is provided, wherein a neural network is trained based on the training set and the test set to obtain a neural network prediction model, including:
[0013] Using each chemical shift in the training set as an output layer of a neural network, using a characteristic descriptor of a local structure of an atom corresponding to the chemical shift in the training set as an input layer of the neural network, training the neural network, and obtaining a trained neural network;
[0014] Each chemical shift in the test set is used as the output layer of the trained neural network, and the characteristic descriptor of the local structure of the atom corresponding to the chemical shift in the test set is used as the input layer of the trained neural network. The trained neural network is tested to obtain an error value.
[0015] According to the method for rapidly predicting nuclear magnetic resonance chemical shifts based on machine learning according to at least one embodiment of the present disclosure, the collected atomic configurations include isolated organic molecules, molecular solids, crystals, amorphous materials or solutions.
[0016] According to at least one embodiment of the present disclosure, in a method for rapidly predicting nuclear magnetic resonance chemical shifts based on machine learning, the method for generating feature descriptors includes:
[0017] The feature descriptor is generated by one or more of smooth overlap of atomic positions, atomic center symmetry function, and multi-body tensor representation.
[0018] According to the method for quickly predicting nuclear magnetic resonance chemical shift based on machine learning according to at least one embodiment of the present disclosure, the feature descriptor includes several parameters, and the parameters are adjusted according to the local structural complexity of the actual system.
[0019] According to the method for quickly predicting nuclear magnetic resonance chemical shift based on machine learning according to at least one embodiment of the present disclosure, the method for calculating the electronic structure includes: a quantum mechanics ab initio algorithm or a first principles density functional method.
[0020] According to at least one embodiment of the present disclosure, there is provided a method for rapidly predicting nuclear magnetic resonance chemical shifts based on machine learning, wherein the chemical shifts include orbital shielding shifts, Fermi contact shifts, or pseudo-contact shifts.
[0021] According to another aspect of the present disclosure, a device for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning is provided, comprising:
[0022] A chemical shift calculation module performs electronic structure calculation on the collected set of atomic configurations to obtain the chemical shift of the set of atomic configurations;
[0023] A feature descriptor generation module, which represents the local structure of each atom in the set of atomic configurations as a feature descriptor, wherein the feature descriptor is invariant to rotation, translation and inversion of the local structure of the atom;
[0024] A set partitioning module, which partitions the feature descriptors and corresponding chemical shift data into a training set and a test set according to a predetermined ratio, wherein the training set is used to train the neural network, and the test set is used to test the trained neural network;
[0025] A training module, which trains a neural network based on the training set and the test set to obtain a neural network prediction model;
[0026] The prediction module converts the atomic local structure of the chemical shift to be predicted into a feature descriptor, inputs it into the neural network prediction model, and obtains the predicted chemical shift of the atomic local structure of the chemical shift to be predicted.
[0027] According to at least one embodiment of the present disclosure, a device for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning is provided, wherein a neural network is trained based on the training set and the test set to obtain a neural network prediction model, including:
[0028] Using each chemical shift in the training set as an output layer of a neural network, using a characteristic descriptor of a local structure of an atom corresponding to the chemical shift in the training set as an input layer of the neural network, training the neural network, and obtaining a trained neural network;
[0029] Using each chemical shift in the test set as the output layer of the trained neural network, using the characteristic descriptors of the local structures of atoms corresponding to the chemical shifts in the test set as the input layer of the trained neural network, testing the trained neural network, obtaining an error value, and comparing the error value with an error threshold;
[0030] If the error value is less than or equal to the error threshold, using the trained neural network as a neural network prediction model;
[0031] If the error value is greater than the error threshold, the training set and the test set are re-divided, and the neural network is trained based on the re-divided training set and the test set.
[0032] According to the device for rapidly predicting nuclear magnetic resonance chemical shifts based on machine learning according to at least one embodiment of the present disclosure, the collected atomic configurations include isolated organic molecules, molecular solids, crystals, amorphous materials or solutions.
[0033] According to the device for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning according to at least one embodiment of the present disclosure, the method for generating feature descriptors includes:
[0034] The feature descriptor is generated by one or more of smooth overlap of atomic positions, atomic center symmetry function, and multi-body tensor representation.
[0035] According to the device for quickly predicting nuclear magnetic resonance chemical shift based on machine learning according to at least one embodiment of the present disclosure, the feature descriptor includes several parameters, and the parameters are adjusted according to the local structural complexity of the actual system.
[0036] According to the device for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning of at least one embodiment of the present disclosure, the method for calculating the electronic structure includes: a quantum mechanics ab initio algorithm or a first principles density functional method.
[0037] According to at least one embodiment of the present disclosure, a device for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning is disclosed, wherein the chemical shift includes orbital shielding shift, Fermi contact shift or pseudo-contact shift.
[0038] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0039] A memory storing execution instructions;
[0040] A processor, wherein the processor executes the execution instruction stored in the memory, so that the processor executes any one of the methods described above.
[0041] According to another aspect of the present disclosure, a readable storage medium is provided, wherein the readable storage medium stores execution instructions, and the execution instructions are used to implement any of the above-mentioned methods when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.
[0043] Figure 1 It is a schematic flow chart of a method for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning according to one embodiment of the present disclosure.
[0044] Figure 2 It is a flowchart of a method for obtaining a neural network prediction model by training a neural network model according to an embodiment of the present disclosure.
[0045] Figure 3 Schematic diagram of the framework of the machine learning method for predicting chemical shifts provided in the present disclosure.
[0046] Figure 4 The present invention provides the measured P2 type Na 2 / 3 (Mg 1 / 3 Mn 2 / 3 )O2 23 Comparison of DFT calculations and neural network model prediction results for the Na NMR chemical shift test set.
[0047] Figure 5 It is a schematic diagram of the structure of a device for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning according to one embodiment of the present disclosure.
[0048] Description of Reference Numerals
[0049] 1002 Chemical Shift Calculation Module
[0050] 1004 Feature Descriptor Generation Module
[0051] 1006 Set Partition Module
[0052] 1008 Training Module
[0053] 1010 Prediction Module
[0054] 1100 Bus
[0055] 1200 processor
[0056] 1300 Memory
[0057] 1400 Other circuits. DETAILED DESCRIPTION
[0058] The present disclosure is further described in detail below in conjunction with the accompanying drawings and implementations. It is understood that the specific implementations described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.
[0059] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0060] Unless otherwise specified, the exemplary embodiments / embodiments shown will be understood as providing exemplary features of various details of some ways in which the technical concept of the present disclosure can be implemented in practice. Therefore, unless otherwise specified, the features of the various embodiments / embodiments can be combined, separated, interchanged and / or rearranged without departing from the technical concept of the present disclosure.
[0061] The use of cross-hatching and / or shading in the accompanying drawings is generally used to make the boundaries between adjacent components clear. As such, unless otherwise specified, the presence or absence of cross-hatching or shading does not convey or indicate any preference or requirement for the specific materials, material properties, dimensions, proportions, commonalities between the components shown, and / or any other characteristics, attributes, properties, etc. of the components. In addition, in the accompanying drawings, the sizes and relative sizes of the components may be exaggerated for clarity and / or descriptive purposes. When the exemplary embodiments can be implemented differently, the specific process sequence can be performed in a different order than described. For example, two successively described processes can be performed substantially simultaneously or in an order opposite to the described order. In addition, the same figure numbers represent the same components.
[0062] When a component is referred to as being "on," "over," "connected to," or "coupled to" another component, the component may be directly on, directly connected to, or directly coupled to the other component, or intervening components may be present. However, when a component is referred to as being "directly on," "directly connected to," or "directly coupled to" another component, there are no intervening components. For this purpose, the term "connected" may refer to a physical connection, an electrical connection, etc., with or without intervening components.
[0063] The terms used herein are for the purpose of describing specific embodiments, and are not intended to be restrictive. As used herein, unless the context clearly indicates otherwise, the singular forms "one (kind, person)" and "said (the)" are also intended to include plural forms. In addition, when the terms "comprise" and / or "include" and their variations are used in this specification, it is explained that there are stated features, integral bodies, steps, operations, parts, assemblies and / or their groups, but it is not excluded that there are or add one or more other features, integral bodies, steps, operations, parts, assemblies and / or their groups. It should also be noted that, as used herein, the terms "substantially", "approximately" and other similar terms are used as approximate terms and not as degree terms, so that they are used to explain the inherent deviations of the measured values, calculated values and / or the values provided that will be recognized by those of ordinary skill in the art.
[0064] like Figure 1 As shown, a method S100 for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning includes the following steps.
[0065] In step S102, electronic structure calculation is performed on the set of collected atomic configurations to obtain chemical shifts of the set of atomic configurations. The collected atomic configurations include isolated organic molecules, molecular solids, crystals, amorphous materials or solutions. The electronic structure calculation method includes: quantum mechanics ab initio algorithm or first principle density functional method. Chemical shift includes orbital screening shift, Fermi contact shift or pseudo-contact shift. In the specific implementation process, the P2 type Na 2 / 3 (Mg 1 / 3 Mn 2 / 3 )O2 has two structures, the space groups are P63 / mcm and P6322, respectively. 500 structures are extracted at equal intervals in the 200 nanosecond molecular dynamics trajectory, for a total of 1000 structures to be labeled. The 200 nanosecond simulation fully samples the possibilities of different Na ions / vacancies. The single-point energy calculations of these configurations are performed using the first-principles calculation software VASP and SCAN functional calculations to obtain the Na hyperfine field. Based on the hyperfine field calculations, 23 Na chemical shift.
[0066] In step S104, the local structure of each atom in the set of atomic configurations is represented as a feature descriptor, and the feature descriptor is invariant to the rotation, translation and inversion of the local structure of the atom. The method for generating the feature descriptor includes: generating the feature descriptor by one or more of Smooth Overlap of Atomic Positions (SOAP), Atom-centered Symmetry Functions (ACSF), and Many-body Tensor Representation (MBTR). The feature descriptor contains several parameters, and the parameters are adjusted according to the complexity of the local structure of the actual system. Specifically, when generating the feature descriptor, the quippy software package can be used to express the Na local structure as a SOAP vector as a feature descriptor, and the SOAP related parameters r cut =5.5,σ=0.5,n max = l max =9, the length of the generated one-dimensional SOAP vector is 6661.
[0067] In step S106, the feature descriptors and the corresponding chemical shift data are divided into a training set and a test set according to a predetermined ratio, the training set is used to train the neural network, and the test set is used to test the trained neural network. In the specific implementation process, the calculation results of the 1000 structures in step S102 can be divided into a training set and a test set according to a predetermined ratio of 0.8:0.2, and the training set and the test set are distributed including 800 and 200 data.
[0068] In step S108, a neural network is trained based on the training set and the test set to obtain a neural network prediction model. Figure 2 As shown, a specific implementation of step S108 includes the following processing steps.
[0069] In step S1081, each chemical shift in the training set is used as the output layer of the neural network, and the characteristic descriptor of the local structure of the atom corresponding to the chemical shift in the training set is used as the input layer of the neural network to train the neural network and obtain the trained neural network. Specifically, the Na local structure in the training set is expressed as a SOAP vector as the input layer, and the characteristic descriptor of the local structure of the atom corresponding to the chemical shift in the training set is used as the input layer. 23 Na chemical shift is used as the output layer to train the neural network.
[0070] In step S1082, each chemical shift in the test set is used as the output layer of the trained neural network, and the characteristic descriptor of the local structure of the atom corresponding to the chemical shift in the test set is used as the input layer of the trained neural network. The trained neural network is tested to obtain the error value. Specifically, the Na local structure in the training set is expressed as a SOAP vector as the input layer, and the characteristic descriptor of the local structure of the atom in the test set is used as the input layer. 23 The Na chemical shift was used as the output layer to test the neural network trained in S1081. Figure 4 As shown, P2 type Na 2 / 3 (Mg 1 / 3 Mn 2 / 3 )O2 23 The RMSE of Na displacement was 125±6ppm, and the correlation coefficient (R 2 ) is 0.96, showing good model accuracy.
[0071] In step S1083, the error value is compared with the error threshold. All 23 The Na chemical shift model was used to test the root mean square error (RMSE) and the standard deviation of the root mean square error. The root mean square error (RMSE) and the standard deviation of the root mean square error were compared with the corresponding error threshold.
[0072] In step S1084, if the error value is less than or equal to the error threshold, the trained neural network is used as a neural network prediction model.
[0073] In step S1085, if the error value is greater than the error threshold, the training set and the test set are re-divided, and the neural network is trained based on the re-divided training set and the test set, and steps S1081 to S1085 are repeated.
[0074] In step S110, the atomic local structure of the to-be-predicted chemical shift is converted into a feature descriptor and input into a neural network prediction model to obtain a predicted chemical shift of the atomic local structure of the to-be-predicted chemical shift. Figure 4 As shown, P2 type Na 2 / 3 (Mg 1 / 3 Mn 2 / 3 )O2 23 The RMSE of Na displacement was 125±6ppm, and the correlation coefficient (R 2 ) is 0.96, showing good model accuracy.
[0075] In this embodiment, a trained model, namely a neural network prediction model, is used to predict 50,000 structures at equal intervals in a 200 nanosecond molecular dynamics trajectory. 23The Na chemical shift takes about 40 minutes on an NVIDIA GeForce RTX2080 Ti GPU card. The same electronic structure calculation takes about 3 years on a parallel node consisting of 28 Intel Xeon E5-2680 v4 CPU cores. The neural network model is very effective on this system. 23 The prediction of Na chemical shifts is improved by about 40,000 times without significant loss of accuracy.
[0076] Before training the neural network, the neural network model needs to be initialized. In the hidden layer of the neural network model, 3 layers of 512 nodes are used as the hidden layer of the neural network.
[0077] Figure 5 FIG. 1 is a schematic diagram of a device for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning according to an embodiment of the present disclosure. Figure 5 As shown, a device for quickly predicting nuclear magnetic resonance chemical shift based on machine learning includes the following modules.
[0078] The chemical shift calculation module 1002 performs electronic structure calculation on the set of collected atomic configurations to obtain the chemical shift of the set of atomic configurations. The collected atomic configurations include isolated organic molecules, molecular solids, crystals, amorphous materials or solutions. The electronic structure calculation method includes: quantum mechanics ab initio algorithm or first principle density functional method. Chemical shift includes orbital shielding shift, Fermi contact shift or pseudo-contact shift. In the specific implementation process, the P2 type Na 2 / 3 (Mg 1 / 3Mn 2 / 3 )O2 has two structures, the space groups are P63 / mcm and P6322, respectively. 500 structures are extracted at equal intervals in the 200 nanosecond molecular dynamics trajectory, for a total of 1000 structures to be labeled. The 200 nanosecond simulation fully samples the possibilities of different Na ions / vacancies. The single-point energy calculations of these configurations are performed using the first-principles calculation software VASP and SCAN functional calculations to obtain the Na hyperfine field. Based on the hyperfine field calculations, 23 Na chemical shift.
[0079] The feature descriptor generation module 1004 represents the local structure of each atom in the set of atomic configurations as a feature descriptor, and the feature descriptor is invariant to the rotation, translation and inversion of the local structure of the atom. The method of generating the feature descriptor includes: generating the feature descriptor through one or more of Smooth Overlap of Atomic Positions (SOAP), Atom-centered Symmetry Functions (ACSF), and Many-body Tensor Representation (MBTR). The feature descriptor contains several parameters, and the parameters are adjusted according to the complexity of the local structure of the actual system. Specifically, when generating the feature descriptor, the quippy software package can be used to express the Na local structure as a SOAP vector as a feature descriptor, and the SOAP related parameters r cut 5.5,σ=0.5,n max = l max =9, the length of the generated one-dimensional SOAP vector is 6661.
[0080] The set partitioning module 1006 partitions the feature descriptors and the corresponding chemical shift data into a training set and a test set according to a predetermined ratio, wherein the training set is used to train the neural network, and the test set is used to test the trained neural network. In a specific implementation, the calculation results of the 1000 structures in step S102 can be split into a training set and a test set according to a predetermined ratio of 0.8:0.2, and the training set and the test set include 800 and 200 data.
[0081] The training module 1008 trains the neural network based on the training set and the test set to obtain a neural network prediction model. Figure 3 As shown, the schematic diagram of the neural network structure provided by the present disclosure. The atomic local structure is converted into a SOAP vector as the input layer of the neural network, and the chemical shift is used as the output layer. The input layer and the output layer are connected by a hidden layer in the middle. Specifically, 3X512 nodes are used as the hidden layer of the neural network. The number of layers of the neural network model, the number of nodes in each layer, and the regularization method parameters of the training process, the training step size, and the training speed can be adjusted according to the convergence of the training and test errors.
[0082] Figure 3 In the neural network shown in FIG. 1 , the training process of the neural network includes: taking each chemical shift in the training set as the output layer of the neural network, taking the characteristic descriptor of the local structure of the atom corresponding to the chemical shift in the training set as the input layer of the neural network, training the neural network, and obtaining the trained neural network. Specifically, the local structure of Na in the training set is expressed as a SOAP vector as the input layer, and the characteristic descriptor of the local structure of the atom corresponding to the chemical shift in the training set is taken as the input layer.23 Na chemical shift is used as the output layer to train the neural network.
[0083] Figure 3 In the neural network shown in FIG. 1 , the testing process of the neural network includes: using each chemical shift in the test set as the output layer of the trained neural network, using the characteristic descriptor of the local structure of the atom corresponding to the chemical shift in the test set as the input layer of the trained neural network, testing the trained neural network, and obtaining the error value. Specifically, the Na local structure in the training set is expressed as a SOAP vector as the input layer, and the characteristic descriptor of the local structure of the atom corresponding to the chemical shift in the test set is used as the input layer. 23 The Na chemical shift was used as the output layer to test the neural network trained in S1081. All neural networks were trained in turn using the 5-fold method. 23 Na chemical shift model was developed and the root mean square error (RMSE) and standard deviation of the root mean square error were obtained.
[0084] After testing the trained neural network on the test set, the error value is compared with the error threshold. Use the 5-fold method to train all 23 Na chemical shift model, and test the root mean square error (RMSE) and the standard deviation of the root mean square error. Compare the root mean square error (RMSE) and the standard deviation of the root mean square error with the corresponding error threshold. If the error value is less than or equal to the error threshold, use the trained neural network as the neural network prediction model. If the error value is greater than the error threshold, re-divide the training set and the test set, and train the neural network based on the re-divided training set and the test set, and repeat steps S1081 to S1085.
[0085] The prediction module 1010 converts the atomic local structure of the to-be-predicted chemical shift into a feature descriptor, inputs it into a neural network prediction model, and obtains the predicted chemical shift of the atomic local structure of the to-be-predicted chemical shift.
[0086] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0087] a memory storing execution instructions; and
[0088] The processor executes the execution instructions stored in the memory, so that the processor executes any of the above methods.
[0089] According to another aspect of the present disclosure, a readable storage medium is provided, in which execution instructions are stored. When the execution instructions are executed by a processor, they are used to implement any of the above methods.
[0090] The present disclosure has the following technical effects:
[0091] First, good model accuracy can be achieved, and the correlation coefficient (R 2 ) can reach 0.96;
[0092] Second, it saves resources and time, overcoming the disadvantage that electronic structure calculation of chemical shift requires high computing resources. The prediction speed of the neural network model mainly depends on the generation and reading and writing speed of the descriptor.
[0093] Third, the time required for prediction is linearly related to the number of atoms in the system, while the computing resources required for conventional DFT calculations are cubically related to the number of atoms. Therefore, this method is easier to extend to chemical shift calculations in large systems.
[0094] Figure 5 An exemplary diagram of an apparatus using a hardware implementation of a processing system is shown.
[0095] The device may include a corresponding module for performing each or several steps in the above flowchart. Therefore, each step or several steps in the above flowchart may be performed by a corresponding module, and the device may include one or more modules in these modules. The module may be one or more hardware modules specially configured to perform the corresponding steps, or implemented by a processor configured to perform the corresponding steps, or stored in a computer-readable medium for implementation by a processor, or implemented by some combination.
[0096] The hardware structure can be implemented using a bus architecture. The bus architecture can include any number of interconnecting buses and bridges, depending on the specific application and overall design constraints of the hardware. The bus 1100 connects various circuits including one or more processors 1200, memory 1300, and / or hardware modules together. The bus 1100 can also connect various other circuits 1400 such as peripherals, voltage regulators, power management circuits, external antennas, etc.
[0097] The bus 1100 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the figure only uses one connecting line, but does not mean that there is only one bus or one type of bus.
[0098] Any process or method description in the flowchart or otherwise described herein can be understood as a module, fragment or portion of a code representing one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes other implementations, in which the functions may not be performed in the order shown or discussed, including performing the functions in a substantially simultaneous manner or in a reverse order according to the functions involved, which should be understood by a person skilled in the art of the present disclosure. The processor performs the various methods and processes described above. For example, the method implementation in the present disclosure can be implemented as a software program, which is tangibly contained in a machine-readable medium, such as a memory. In some embodiments, part or all of the software program can be loaded and / or installed via a memory and / or a communication interface. When the software program is loaded into the memory and executed by the processor, one or more steps in the method described above can be performed. Alternatively, in other embodiments, the processor can be configured to perform one of the above methods in any other appropriate manner (e.g., by means of firmware).
[0099] The logic and / or steps represented in the flowchart or otherwise described herein may be embodied in any readable storage medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions on an instruction execution system, apparatus, or device), or in combination with such instruction execution systems, apparatuses, or devices.
[0100] For the purposes of this specification, a "readable storage medium" may be any device that can contain, store, communicate, propagate or transmit a program for use with or in conjunction with an instruction execution system, device or apparatus. More specific examples of readable storage media (a non-exhaustive list) include the following: an electrical connection with one or more wirings (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), a fiber optic device, and a portable read-only memory (CDROM). In addition, the readable storage medium may even be paper or other suitable medium on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a memory.
[0101] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0102] A person skilled in the art may understand that all or part of the steps of implementing the above-mentioned implementation method may be completed by instructing related hardware through a program, and the program may be stored in a readable storage medium, which, when executed, includes one or a combination of the steps of the implementation method.
[0103] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a readable storage medium. The storage medium may be a read-only memory, a disk or an optical disk, etc.
[0104] In the description of this specification, the description with reference to the terms "one embodiment / method", "some embodiments / methods", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present application. In this specification, the schematic representations of the above terms are not necessarily the same embodiment / method or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments / methods or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments / methods or examples described in this specification and the features of the different embodiments / methods or examples, unless they are contradictory.
[0105] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0106] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.
Claims
1. A method for rapid prediction of nuclear magnetic resonance chemical shifts based on machine learning, It is characterized in that include: Performing electronic structure calculation on the collected set of atomic configurations to obtain chemical shifts of the set of atomic configurations; Representing the local structure of each atom in the set of atomic configurations as a feature descriptor, wherein the feature descriptor is invariant to rotation, translation and inversion of the local structure of the atom; Dividing the feature descriptors and the corresponding chemical shift data into a training set and a test set according to a predetermined ratio, wherein the training set is used to train the neural network, and the test set is used to test the trained neural network; Training a neural network based on the training set and the test set to obtain a neural network prediction model; as well as Converting the atomic local structure of the to-be-predicted chemical shift into a feature descriptor, and inputting the feature descriptor into the neural network prediction model to obtain a predicted chemical shift of the atomic local structure of the to-be-predicted chemical shift; Wherein, training a neural network based on the training set and the test set to obtain a neural network prediction model includes: Using each chemical shift in the training set as an output layer of a neural network, using a characteristic descriptor of a local structure of an atom corresponding to the chemical shift in the training set as an input layer of the neural network, training the neural network, and obtaining a trained neural network; Each chemical shift in the test set is used as the output layer of the trained neural network, and the characteristic descriptor of the local structure of the atom corresponding to the chemical shift in the test set is used as the input layer of the trained neural network. The trained neural network is tested to obtain an error value.
2. The method for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning according to claim 1, It is characterized in that The collected atomic configurations include isolated organic molecules, molecular solids, crystals, amorphous materials or solutions.
3. The method for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning according to claim 1, It is characterized in that The method for generating the feature descriptor comprises: The feature descriptor is generated by one or more of smooth overlap of atomic positions, atomic center symmetry function, and multi-body tensor representation.
4. The method for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning according to claim 3, It is characterized in that The feature descriptor includes several parameters, and the parameters are adjusted according to the local structural complexity of the actual system.
5. The method for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning according to claim 1, It is characterized in that The electronic structure calculation method includes: quantum mechanics ab initio method or first principle density functional method.
6. The method for rapidly predicting nuclear magnetic resonance chemical shift based on machine learning according to claim 1, It is characterized in that The chemical shift includes orbital screening shift, Fermi contact shift or pseudo-contact shift.
7. A device for rapid prediction of nuclear magnetic resonance chemical shift based on machine learning, It is characterized in that include: A chemical shift calculation module performs electronic structure calculation on the collected set of atomic configurations to obtain the chemical shift of the set of atomic configurations; A feature descriptor generation module, which represents the local structure of each atom in the set of atomic configurations as a feature descriptor, wherein the feature descriptor is invariant to rotation, translation and inversion of the local structure of the atom; A set partitioning module, which partitions the chemical shift data into a training set and a test set according to a predetermined ratio, wherein the training set is used to train the neural network, and the test set is used to test the trained neural network; A training module, which trains a neural network based on the training set and the test set to obtain a neural network prediction model; as well as A prediction module converts the atomic local structure of the chemical shift to be predicted into a feature descriptor, inputs the feature descriptor into the neural network prediction model, and obtains the predicted chemical shift of the atomic local structure of the chemical shift to be predicted; Wherein, training a neural network based on the training set and the test set to obtain a neural network prediction model includes: Using each chemical shift in the training set as an output layer of a neural network, using a characteristic descriptor of a local structure of an atom corresponding to the chemical shift in the training set as an input layer of the neural network, training the neural network, and obtaining a trained neural network; Each chemical shift in the test set is used as the output layer of the trained neural network, and the characteristic descriptor of the local structure of the atom corresponding to the chemical shift in the test set is used as the input layer of the trained neural network. The trained neural network is tested to obtain an error value.
8. An electronic device, It is characterized in that include: A memory storing execution instructions; as well as A processor, wherein the processor executes the execution instruction stored in the memory, so that the processor executes the method according to any one of claims 1 to 6.
9. A readable storage medium, It is characterized in that The readable storage medium stores execution instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.
Citation Information
Patent Citations
Light energy power generation prediction method and device, computer equipment and storage medium
CN112348247A
Metal organic framework material structure characteristic rapid evaluation method based on machine learning
CN112382352A
Method for predicting enantioselectivity of chemical reaction product
CN113160902A
Method and apparatus for generating chemical structure using neural network
US20200066377A1
