Improved processing method, device, equipment and storage medium for drug compression parameters
Through the combination of predictive pressure calculator and optimizer, deep convolutional neural network and simulated annealing algorithm are used to automatically optimize the pressure parameters, which solves the problems of low efficiency of pressure parameter adjustment and reliance on experimental trial and error in the existing technology, and realizes Efficient automatic adjustment of medicine pressure parameters.
Patent Information
- Application Number
- CN202111575591.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-12-21
AI Technical Summary
The existing pressure adjustment parameters rely on the experimental trial and error method, which is low in efficiency, high cost, difficult to control and relies on expert experience. Even if computer simulation is used, it is still necessary to use the experimental trial and error method to find improvement methods. The pressure pressure simulation software is only used as a Auxiliary tools.
Use the predictive pressure calculator and optimizer to obtain the sample input vector and the preset target output vector, perform optimization iterative calculations until the difference value is less than the threshold, automatically adjust and optimize the pressure parameters, and use deep convolutional neural networks and simulated annealing. The algorithm performs parameter adjustments.
It can automatically adjust and optimize the pressing parameters without repeated manual adjustments, significantly improving the tuning efficiency, reducing reliance on expert experience, and improving the automatic control capability of the pressing parameters.
Smart Images

Figure CN114334031B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of drug development technology, and in particular to an improved processing method, device, equipment and storage medium for drug compression parameters. Background Art
[0002] The methods, equipment, excipients and active pharmaceutical ingredients (API) used in the tablet compression process will affect the properties of the target tablet. In the past, researchers used trial and error to adjust the compression parameters to produce the target tablet, but the trial and error method has the disadvantages of low efficiency, high cost, difficulty in control and reliance on expert experience.
[0003] With the development of computer technology, experimenters began to try to use computers to simulate the drug pressing process. Computer simulation of the drug pressing process has many advantages. First, computer simulation can reduce decision-making time; second, computer simulation can save costs; third, computer simulation can control and analyze the results.
[0004] At present, there are pill pressing simulation software systems on the market. The characteristic of this kind of software system is that it uses computers to simulate the pill pressing process. However, if it is necessary to adjust the pill pressing parameters to find a method to improve the target tablet, it is still necessary to use the trial and error method. However, the trial and error is carried out in the pill pressing simulation system, so this method still relies heavily on the experience of the experimenter, and the pill pressing simulation software system is only an auxiliary tool for the experimenter. Summary of the invention
[0005] In order to solve or partially solve the problems existing in the related art, the present application provides an improved processing method, device, equipment and storage medium for pressing medicine, which can automatically adjust and optimize the parameters of pressing medicine and improve the tuning efficiency.
[0006] The first aspect of the present application provides an improved processing method for drug compression parameters, comprising:
[0007] Obtaining a sample input vector for a pharmaceutically active molecule to be compressed;
[0008] Obtaining a preset sample target output vector for the active molecule of the drug to be compressed;
[0009] Utilizing the constructed predictive drug compression calculator and optimizer to perform iterative optimization calculation on the sample input vector, until the predictive drug compression calculator calculates that the difference between the sample predicted output vector corresponding to the current sample input vector and the preset sample target output vector is less than a first preset threshold value, and using the current sample input vector as the target drug compression parameter of the active drug molecule to be compressed, and terminating the iterative optimization calculation;
[0010] The target drug compression parameter is output.
[0011] Preferably, the sample input vector includes a fixed input vector and an adjustable input vector. When optimizing and iteratively calculating the sample input vector, the adjustable input vector is adjusted, and the adjusted adjustable input vector and the fixed input vector are combined to form the current sample input vector.
[0012] Preferably, the optimized iterative calculation of the sample input vector using the constructed predictive drug compression calculator and optimizer is performed until the predictive drug compression calculator calculates that the difference between the sample predicted output vector corresponding to the current sample input vector and the preset sample target output vector is less than a first preset threshold value, and the current sample input vector is used as the target drug compression parameter of the active drug molecule to be compressed, and the optimized iterative calculation is terminated, including:
[0013] Setting a termination temperature and multiple rounds of iterations, each of which has an initial temperature;
[0014] Execute the iteration body of the current round in a loop, and if the initial temperature of the iteration body of the current round is greater than or equal to the termination temperature and the number of iterations of the iteration body overflows, execute the iteration body of the next round in a loop;
[0015] The iterative body: utilizes the optimizer to randomly adjust the sample input vector, receives the randomly adjusted sample input vector as the current sample input vector according to preset rules, and if the difference between the sample predicted output vector corresponding to the current sample input vector and the preset sample target output vector calculated by the predicted drug compression calculator is less than a first preset threshold, uses the current sample input vector as the target drug compression parameter of the active molecule of the drug to be compressed, and ends the optimization iterative calculation.
[0016] Preferably, the initial temperature of the iteration body in the current round = the initial temperature of the iteration body in the previous round * attenuation coefficient, wherein the attenuation coefficient ranges from 0 to 1.
[0017] Preferably, using the optimizer to randomly adjust the sample input vector comprises:
[0018] The optimizer is used to randomly generate a random number, and the current sample input vector is added to the random number to obtain the randomly adjusted sample input vector.
[0019] Preferably, the receiving the randomly adjusted sample input vector as the current sample input vector according to a preset rule comprises:
[0020] Calculating the difference between the sample prediction output vectors corresponding to the sample input vectors before and after the random adjustment using the prediction pressure calculator;
[0021] If the difference is less than a second preset threshold, taking the randomly adjusted sample input vector as the current sample input vector;
[0022] If the difference is greater than or equal to the second preset threshold, the randomly adjusted sample input vector is used as the current sample input vector according to the Metropolis criterion probability.
[0023] Preferably, the construction of the predictive pressure medicine calculator includes:
[0024] Collecting original data, the original data includes an original input vector and an original output vector, and the original input vector and the original output vector have a corresponding relationship;
[0025] The raw data is input into a deep convolutional neural network to construct a predictive drug compression calculator.
[0026] Preferably, the inputting the raw data into a deep convolutional neural network to construct a predictive pressure medicine calculator comprises:
[0027] Dividing the original data into training original data and testing original data according to a preset division method;
[0028] Inputting the raw training data into the deep convolutional network to construct an initial prediction pressure medicine calculator;
[0029] The initial predicted drug pressure calculator is used to verify the test original data and construct the predicted drug pressure calculator.
[0030] The second aspect of the present application provides an improved processing device for drug compression parameters, comprising:
[0031] A first acquisition module is used to acquire a sample input vector for the active molecule of the drug to be compressed;
[0032] A second acquisition module is used to acquire a preset sample target output vector for the active molecule of the drug to be compressed;
[0033] An optimization module, used to use the constructed predictive compression calculator and optimizer to perform iterative optimization calculation on the sample input vector, until the predictive compression calculator calculates that the difference between the sample predicted output vector corresponding to the current sample input vector and the preset sample target output vector is less than a first preset threshold value, and uses the current sample input vector as the target compression parameter of the active molecule of the drug to be compressed, and ends the iterative optimization calculation;
[0034] An output module is used to output the target drug compression parameter.
[0035] Preferably, the sample input vector includes a fixed input vector and an adjustable input vector, and the optimization module performs iterative optimization calculation on the sample input vector, including: adjusting the adjustable input vector, and combining the adjusted adjustable input vector and the fixed input vector to form the current sample input vector.
[0036] Preferably, the optimization module includes:
[0037] An initialization unit, used to set a termination temperature and multiple rounds of iterations, each of which has an initial temperature;
[0038] An iteration unit, configured to execute the iteration body of the current round in a loop, and if the initial temperature of the iteration body of the current round is greater than or equal to the termination temperature and the number of iterations of the iteration body overflows, execute the iteration body of the next round in a loop;
[0039] The iterative body: utilizes the optimizer to randomly adjust the sample input vector, receives the randomly adjusted sample input vector as the current sample input vector according to preset rules, and if the difference between the sample predicted output vector corresponding to the current sample input vector and the preset sample target output vector calculated by the predicted drug compression calculator is less than a first preset threshold, uses the current sample input vector as the target drug compression parameter of the active molecule of the drug to be compressed, and ends the optimization iterative calculation.
[0040] A third aspect of the present application provides an electronic device, including:
[0041] Processor; and
[0042] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.
[0043] A fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.
[0044] The technical solution provided by this application may have the following beneficial effects:
[0045] The technical solution of the present application obtains a sample input vector and a preset sample target output vector for the active drug molecule to be compressed, and uses an optimizer and a predicted drug compression calculator to optimize and iterate the sample input vector until the difference between the sample predicted output vector corresponding to the current sample input vector and the preset sample target output vector is calculated to be less than a first preset threshold, and the current sample input vector is used as the target drug compression parameter for the active drug molecule to be compressed. Since the drug compression parameters can be automatically adjusted and optimized without repeated adjustments using manual experimental trial and error methods, the tuning efficiency is greatly improved.
[0046] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0048] Figure 1 It is a flow chart of an improved processing method for drug compression parameters shown in an embodiment of the present application;
[0049] Figure 2 is a flow chart of an improved method for processing drug compression parameters according to another embodiment of the present application;
[0050] Figure 3 It is a flowchart of the optimized iterative calculation shown in the embodiment of the present application;
[0051] Figure 4 It is a structural schematic diagram of an improved processing device for drug compression parameters shown in an embodiment of the present application;
[0052] Figure 5 is a schematic structural diagram of an improved processing device for drug compression parameters shown in another embodiment of the present application;
[0053] Figure 6 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0055] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0056] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0057] At present, in the relevant technology, the experimenters use the trial and error method to fine-tune the compression parameters to make the target tablets, but the trial and error method has the disadvantages of low efficiency, high cost, difficult control and reliance on expert experience. In recent years, the compression process has been simulated by computers, but when it is necessary to find a method to improve the target tablet, the trial and error method is still needed. However, the trial and error is carried out in the compression simulation system, which still relies heavily on the experience of the experimenters, and the compression simulation software system is only an auxiliary tool for the experimenters.
[0058] In view of the above problems, the present application provides an improved processing method, device, equipment and storage medium for drug compression parameters, which can automatically adjust and optimize drug compression parameters and improve tuning efficiency. In order to facilitate understanding of the technical solution of the present application, the technical solution of the present application is described in detail below in conjunction with the accompanying drawings.
[0059] Figure 1 A schematic flow chart of an improved method for processing drug compression parameters according to an embodiment of the present application is shown.
[0060] See also Figure 1 , an improved processing method for drug compression parameters, comprising the following steps:
[0061] S11. Obtain a sample input vector for the active drug molecule to be compressed.
[0062] In the drug production process, raw materials are almost always produced by combining active pharmaceutical molecules (API, the same below) + excipients + drug pressing equipment. Therefore, the sample input vector can contain three types of information: the first type is for active pharmaceutical molecules, the second type is for excipient molecules, and the third type is for drug pressing equipment. That is, the sample input vector can include the property parameters of the active pharmaceutical molecules to be pressed, the property parameters of the excipient molecules, and the parameters related to the drug pressing equipment.
[0063] S12, obtaining a preset sample target output vector for the active drug molecule to be compressed.
[0064] The preset sample target output vector is the preset target tablet property vector. The user can preset the target tablet property vector for the active molecule of the drug to be compressed according to the actual tablet properties required.
[0065] S13. Use the constructed predictive drug compression calculator and optimizer to perform iterative optimization calculations on the sample input vector until the predictive drug compression calculator calculates that the difference between the sample predicted output vector corresponding to the current sample input vector and the preset sample target output vector is less than a first preset threshold value, and use the current sample input vector as the target drug compression parameter of the active drug molecule to be compressed, and end the iterative optimization calculation.
[0066] The purpose of building an optimizer is to perform iterative optimization calculations, replace old solutions with new solutions, and thus calculate the global optimal solution.
[0067] The current sample input vector is input into the predicted drug compression calculator to obtain the sample predicted output vector corresponding to the current sample input vector. The current sample input vector is equivalent to the combination of active drug molecules + excipients + drug compression equipment.
[0068] By judging whether the difference between the sample predicted output vector and the sample target output vector corresponding to the sample input vector is less than the first preset threshold value (i.e. judging whether the predicted tablet is close to the target tablet). If it is less than the first preset threshold value, the predicted tablet is judged to be equivalent to the target tablet, and the current sample input vector is used as the target compression parameter of the active drug molecule to be compressed (i.e. according to the current combination of active drug molecule + excipient + compression equipment, the predicted tablet produced is equivalent to the target tablet). If it is greater than or equal to the first preset threshold value, the predicted tablet is judged to be different from the target tablet (i.e. according to the current combination of active drug molecule + excipient + compression equipment, the predicted tablet produced is different from the target tablet).
[0069] The current sample input vector is changed by using an optimizer, and the current sample input vector is optimized and iteratively calculated until the difference between the sample prediction output vector corresponding to the current sample input vector and the preset sample target output vector is calculated to be less than the first preset threshold, and the current sample input vector is used as the target compression parameter of the active molecule of the drug to be compressed. The difference value can be an absolute difference or a ratio, etc., which is not limited here.
[0070] It should be noted that the sample input vector includes a fixed input vector and an adjustable input vector. The fixed input vector corresponds to the active drug molecule, which is fixed. The adjustable input vector corresponds to the excipient and drug pressing equipment parameters, which are adjustable. When optimizing the sample input vector, the adjustable input vector is adjusted, and the adjusted adjustable input vector and the fixed input vector are combined to form the current sample input vector.
[0071] S14. Output target drug compression parameters.
[0072] The technical solution of this embodiment obtains a sample input vector and a preset sample target output vector for the active drug molecule to be compressed, and uses an optimizer and a predicted compression calculator to optimize and iterate the sample input vector until the difference between the sample predicted output vector and the sample target output vector corresponding to the current sample input vector is calculated to be less than a first preset threshold, and the current sample input vector is used as the target compression parameter of the active drug molecule to be compressed. Since the compression parameters can be automatically adjusted and optimized without repeated adjustments using manual experimental trial and error methods, the tuning efficiency is greatly improved.
[0073] Figure 2 A schematic flow chart of an improved method for direct drug compression according to another embodiment of the present application is shown.
[0074] See also Figure 2 , an improved processing method for drug compression parameters, comprising the following steps:
[0075] Before executing this method, a predictive medicine compression calculator is pre-built. The predictive medicine compression calculator can be built in the following ways:
[0076] The original data is collected, and the original data includes an original input vector and an original output vector, and the original input vector and the original output vector have a corresponding relationship.
[0077] The original data includes the original input vector. In the drug production process, the raw materials are almost all produced by the combination of active pharmaceutical molecules (API, the same below) + excipients + drug pressing equipment. Therefore, the original input vector can contain three types of information. The first type is for active pharmaceutical molecules, the second type is for excipient molecules, and the third type is for drug pressing equipment. That is, the sample input vector can include the property parameters of the active pharmaceutical molecules to be pressed, the property parameters of the excipient molecules, and the parameters related to the drug pressing equipment.
[0078] Table 1 shows the information table of the original input vector - active pharmaceutical molecule. Table 1 may contain information such as descriptors, fingerprints, API types, powder particle shapes, powder particle deformation characteristics, mechanical modulus, brittleness, hardness and other related information of active pharmaceutical molecules.
[0079]
[0080] Table 1 Original input vector - information table of active drug molecules
[0081] Table 2 shows an information table of the original input vector-excipients. Table 2 may include information such as the descriptor, fingerprint, volume ratio (API: excipient) and other related information of the excipients.
[0082] Excipient Descriptors Excipient Fingerprint Volume ratio (API: excipients) Mannitol 2936778132 1:9
[0083] Table 2 Original input vector - information table of auxiliary materials
[0084] It is understandable that the molecular descriptors and fingerprints may have other representation forms besides the above-mentioned representation forms, which are not limited here.
[0085] Table 3 shows the information table of the original input vector - medicine pressing equipment. Table 3 may contain the equipment name, mold height, mold circumference, punch shape, punch diameter, number of revolutions, temperature, relative humidity and other related information.
[0086] Device Name Mould height Punch shape Punch diameter Number of revolutions temperature Stylcam 22.22 Round 10 2000 25℃
[0087] Table 3 Original input vector - information table of medicine pressing equipment
[0088] The information in Table 1, Table 2 and Table 3 together constitute the original input vector, that is, the active drug molecules, excipients and compression equipment are equivalent to compression parameters. The data in Table 1, Table 2 and Table 3 can be collected through previous experimental records and filled in Table 1, Table 2 and Table 3 for sorting. Among them, the molecular descriptors and fingerprints can be calculated by using the Chem.Desciptors tool of the open source software rdkit.
[0089] At the same time, the raw data includes the raw output vector and the performance of the target tablet corresponding to the raw output vector. Table 4 shows the information table of the raw output vector-target tablet, and the information that Table 4 may contain includes target tablet hardness, target tablet macro-brittleness, target tablet disintegration time, target tablet Hausner ratio, target tablet surface area (cm2), target tablet mass (mg), target tablet thickness (mm), target tablet density (mg / cm2), target tablet tensile strength (N / m2=MPa) and other related information.
[0090]
[0091] Table 4 Original output vector - information table of target tablets
[0092] The original input vectors and the original output vectors have a corresponding relationship, that is, a group of original input vectors corresponds to a group of original output vectors. The original output vectors are also collected through previous experimental records and filled in Table 4 for sorting.
[0093] The raw data was input into a deep convolutional neural network to construct a predictive pressure medication calculator.
[0094] After collecting the original data and arranging it in a table, the original data is input into the deep convolutional neural network CNN. Since the original data includes the original input vector and the original output vector, and the original input vector has a corresponding relationship with the original output vector, the deep convolutional neural network CNN can construct a predictive drug pressure calculator after training and learning. The predictive drug pressure calculator is actually a deep convolutional neural network model. When a set of original input vectors is input, the predictive drug pressure calculator can output a set of original output vectors corresponding to the current original input vectors.
[0095] In order to make the prediction ability of the predictive pressure medicine calculator more accurate, the original data is divided into training original data and test original data according to the preset division method. For example, 80% to 90% of the original data can be divided into training original data. 10% to 20% of the original data is divided into test original data. The training original data is input into the deep convolutional neural network CNN to construct the initial predictive pressure medicine calculator. At this time, the initial predictive pressure medicine calculator already has the prediction function, that is, input a set of original input vectors and output a set of original output vectors corresponding to the current original input vectors. The test original data is input into the predictive pressure medicine calculator for verification, so as to construct a predictive pressure medicine calculator with excellent prediction function.
[0096] It should be noted that the K-fold cross-validation method can be used to divide the original data into training original data and test original data (where K is greater than or equal to 5). The specific principles of the K-fold cross-validation method are as follows: 1. Divide the entire original data set S into k non-overlapping subsets. Assuming that the number of training samples in S is m, then each subset has m / k training samples, and the corresponding subset is called {s1, s2, ..., sk}. 2. Each time, take out one of the divided subsets as the test original data set, and the other k-1 as the training original data set. 3. Input the k-1 training original data sets into the deep convolutional neural network CNN to construct an initial prediction drug pressure calculator, take out a test original data set to verify the initial prediction drug pressure calculator, and perform this k times to obtain a prediction drug pressure calculator.
[0097] S21. Obtain a sample input vector for the active pharmaceutical molecule to be compressed.
[0098] The description of step S21 may refer to step S11, which will not be repeated here.
[0099] S22, obtaining a preset sample target output vector for the active drug molecule to be compressed.
[0100] In addition to constructing a prediction pressure calculator, an optimizer needs to be constructed. The optimizer and the prediction pressure calculator perform iterative optimization calculations on the sample input vector. The optimizer can be constructed using a simulated annealing algorithm, a particle swarm algorithm, an evolutionary algorithm, etc. This embodiment uses a simulated annealing algorithm to construct an optimizer.
[0101] Simulated Annealing (SA) is a random optimization algorithm based on Monte-Carlo iterative solution strategy. Its starting point is based on the similarity between the annealing process of solid materials in physics and general combinatorial optimization problems. Starting from a relatively high initial temperature, the simulated annealing algorithm combines the probability jump characteristics to randomly search for the global optimal solution of the objective function in the solution space as the temperature parameter continues to decrease, that is, it can probabilistically jump out of the local optimal solution and eventually tend to the global optimal solution. The simulated annealing algorithm is an optimization algorithm of a serial structure that effectively avoids falling into the local minimum and eventually tends to the global optimal solution by giving the search process a time-varying probability jump that eventually tends to zero.
[0102] S23, setting a termination temperature and multiple rounds of iterations, each round of iterations having an initial temperature.
[0103] S24, looping and executing the current round of iterations. If the initial temperature of the current round of iterations is greater than or equal to the termination temperature and the number of iterations of the iterations overflows, looping and executing the next round of iterations.
[0104] Iteration body: Use the optimizer to randomly adjust the sample input vector, and receive the randomly adjusted sample input vector as the current sample input vector according to the preset rules. If the difference between the sample prediction output vector corresponding to the current sample input vector and the preset sample target output vector calculated by the prediction drug compression calculator is less than the first preset threshold, the current sample input vector is used as the target drug compression parameter of the active molecule of the drug to be compressed, and the optimization iterative calculation is terminated.
[0105] It should be noted that the sample input vector includes a fixed input vector and an adjustable input vector. The fixed input vector corresponds to the active drug molecule, which is fixed. The adjustable input vector corresponds to the excipient and drug pressing equipment parameters, which are adjustable. When optimizing the sample input vector, the optimizer adjusts the adjustable input vector and combines the adjusted adjustable input vector with the fixed input vector to form the current sample input vector.
[0106] In order to better understand the principle of the technical solution of this embodiment, the process of solving the sample target input vector (i.e. obtaining the target drug pressure parameter) by the optimizer constructed by the simulation algorithm and the predictive drug pressure calculator constructed based on the deep convolutional neural network CNN is described in detail below.
[0107] See also Figure 3 , Figure 3 Shown is a flowchart of the optimization iterative calculation.
[0108] S31: Input sample input vector V i , define the objective function E(x), the prediction pressure calculator is the objective function E(x), by inputting the current sample into the vector V i Input into the objective function E(x) to get the current sample input vector V i The corresponding prediction sample output vector E(V i ).
[0109] S32: Initialize the optimizer and set the preset sample target output vector E(V t ), termination temperature T f (For example, the end temperature T f The end temperature is 10℃, T f The value can be flexibly set according to actual conditions and is not specifically limited), iteration body, iteration number threshold k (for example, iteration number threshold k can be a positive integer greater than or equal to 1000), attenuation coefficient α (attenuation coefficient α is a number between 0 and 1, for example, attenuation coefficient α=0.98), a first preset threshold G (the first preset threshold G is not specifically limited) and a second preset threshold P (for example, the second preset threshold P=0).
[0110] There are multiple rounds of iterations, and each round of iterations is configured with an initial temperature T0. When the initial temperature T0 of the iteration body of the round is equal to the initial temperature T0 of the iteration body of the previous round*attenuation coefficient α, for example, when the initial temperature T0 of the iteration body of the previous round is 1000° C., the initial temperature T0 of the iteration body of the round is equal to 1000*0.98=980° C. The initial value i of the current iteration number of each round of iterations is 0.
[0111] Set the preset sample target output vector E(V t ), termination temperature T f =10℃, the iteration threshold k=1000 times, the attenuation coefficient α=0.98, and the initial temperature T0 of the first round of iterations=1000℃.
[0112] S33: performing iterative calculation;
[0113] S34: Determine whether the initial temperature T0 of the iteration body is greater than the termination temperature T f ;
[0114] If the initial temperature T0 of the iterative body is greater than the final temperature T f (i.e. T0>T f ), execute step S35;
[0115] If the initial temperature T0 of the iteration body is less than or equal to the termination temperature T f (i.e. T0<=T f ), the algorithm ends, and the output is that the sample target input vector (i.e., the target pressure parameter) cannot be obtained, and the algorithm ends.
[0116] S35: Determine whether the current iteration number i is less than the iteration number threshold k;
[0117] If the current iteration number i is less than the iteration number threshold k (i.e. i<k), the current sample is input into the vector V i Input it into the prediction pressure calculator to obtain the current sample prediction output vector E(V i ), calculate the current sample prediction output vector E(V i ) and the sample target output vector E(V t ) of the difference △E;
[0118] If the current iteration number i is greater than or equal to the iteration number threshold k (ie, i>=k), the next round of iteration is entered.
[0119] S36: Determine whether the absolute value of the difference △E is less than a first preset threshold G;
[0120] If the absolute value of the difference △E is less than the first preset threshold G (ie, △E<G), the algorithm ends and the current sample is input into the vector Vi As a sample target input vector V t ;
[0121] If the absolute value of the difference △E is greater than or equal to the first preset threshold G (ie, △E>=G), the current sample input vector V i Random adjustment, use the prediction pressure calculator to calculate the sample input vector V before and after random adjustment i The corresponding sample prediction output vector E(V i ) is the difference between dE=E(V i 调整后 )-E(V i 调整前 ), execute step S37.
[0122] S37: Determine whether the difference dE is less than a second preset threshold value P;
[0123] If the difference dE is less than the second preset threshold P (ie, dE<P), the randomly adjusted sample is input into the vector V i 调整后 As the current sample input vector V i , and increase the current iteration number i by one (i.e., i=i+1), and return to execute step S33;
[0124] If the difference dE is greater than or equal to the second preset threshold value P (ie, dE>=P), the perturbed sample input vector data V is accepted with the Metropolis criterion probability i 调整后 As the current sample input vector V i And increase the current iteration number i by one (ie, i=i+1), and return to execute step S33.
[0125] It should be noted that ending the algorithm means ending the optimization iterative calculation process. Random adjustment means changing the current sample input vector, randomly generating a random number within a predetermined range (the predetermined range is, for example, a number between 0 and 1, and the predetermined range can be flexibly set according to actual conditions and is not specifically limited), adding the current sample input vector to the random number to obtain the randomly adjusted sample input vector (i.e., E(V i 调整后 )=E(V i 调整前 )+random number).
[0126] It should also be noted that Metropolis criterion probability = exp(-dE / T0), where the Metropolis criterion probability is the probability of receiving the perturbed sample input vector V with exp(-dE / T0) i 微扰后 As the current sample input vector Vi , maintain the sample input vector V before random adjustment with probability (1-exp(-dE / T0)) i As the current sample input vector V i (i.e. maintain the current sample input vector V i unchanged), input the current sample into vector V i As the target pressure parameter.
[0127] S25. Output target drug compression parameters.
[0128] For step S25, reference may be made to the relevant description in step S14, which will not be repeated here.
[0129] Through the above method, the optimization iteration is performed by combining the optimizer and the predictive pressure medicine calculator, eliminating the need for manual repeated tuning of pressure medicine parameters (i.e., manual repeated tuning of the current sample input vector), thereby improving the efficiency of pressure medicine performance tuning.
[0130] In addition, the excipients and drug pressing equipment can be tuned in parallel at the same time (parallel tuning means continuously tuning the current sample input vector through the simulated annealing algorithm to find the global optimal solution), which greatly improves the throughput.
[0131] Furthermore, the possible tuning parameter space is expanded. Manual trial-and-error tuning relies on human experience and can only try a very small number of parameter spaces obtained through experience and trial and error. Using a global optimization solution based on a simulated annealing algorithm, it is possible to explore parameter spaces that are difficult for experimenters to reach based on experience, and to find better spaces that have been missed due to the limitations of the experimenters' experience (i.e., the global optimal solution cannot be obtained due to falling into the local optimal solution).
[0132] Corresponding to the aforementioned application function realization method embodiment, the present application also provides an improved processing device for drug compression parameters and corresponding embodiments.
[0133] Figure 4 What is shown is a schematic structural diagram of an improved processing device 40 for drug compression parameters in an embodiment of the present application. The device includes: a first acquisition module 410, a second acquisition module 420, an optimization module 430 and an output module 440.
[0134] The first acquisition module 410 is used to acquire a sample input vector for the active pharmaceutical molecule to be compressed.
[0135] The second acquisition module 420 is used to acquire a preset sample target output vector for the active pharmaceutical molecule to be compressed.
[0136] The optimization module 430 is used to use the constructed predictive drug compression calculator and optimizer to perform iterative optimization calculations on the sample input vector until the predictive drug compression calculator calculates that the difference between the sample predicted output vector corresponding to the current sample input vector and the preset sample target output vector is less than a first preset threshold value, and uses the current sample input vector as the target drug compression parameter of the active drug molecule to be compressed, and ends the iterative optimization calculation.
[0137] The output module 440 is used to output the target drug compression parameter.
[0138] The device of this embodiment obtains the sample input vector for the active drug molecule to be compressed by the first acquisition module 410, obtains the preset sample target output vector for the active drug molecule to be compressed by the second acquisition module 420, and the optimization module 430 combines the optimizer with the constructed prediction compression calculator to optimize the sample input vector iteratively until the prediction compression calculator calculates that the difference between the sample prediction output vector corresponding to the current sample input vector and the sample target output vector is less than the threshold value, and uses the current sample input vector as the target compression parameter of the active drug molecule to be compressed, ends the optimization iterative calculation, and outputs the target compression parameter by the output module 440. Since the improved compression parameter can be obtained without repeated adjustment by artificial experimental trial and error, the tuning efficiency can be improved.
[0139] Figure 5 The schematic diagram of the structure of the improved processing device 40 for drug compression parameters in another embodiment of the present application is shown, and the device includes: a first acquisition module 410, a second acquisition module 420, an optimization module 430 and an output module 440. Further, the optimization module 430 includes an initialization unit 431 and an iteration unit 432.
[0140] The first acquisition module 410 and the second acquisition module 420, the optimization module 430 and the output module 440 can be referred to in Figure 4 The description in will not be repeated here.
[0141] In addition, the sample input vector includes a fixed input vector and an adjustable input vector. The optimization module 430 performs iterative optimization calculation on the sample input vector, including: adjusting the adjustable input vector, and combining the adjusted adjustable input vector and the fixed input vector to form the current sample input vector.
[0142] The initialization unit 431 is used to set a termination temperature and multiple rounds of iterations, each round of iterations being provided with an initial temperature.
[0143] The iteration unit 432 is used to execute the current round of iterations in a loop. If the initial temperature of the current round of iterations is greater than or equal to the termination temperature and the number of iterations of the iterations overflows, the next round of iterations is executed in a loop.
[0144] Iteration body: Use the optimizer to randomly adjust the sample input vector, receive the randomly adjusted sample input vector as the current sample input vector according to the preset rules, and if the difference between the sample prediction output vector corresponding to the current sample input vector and the preset sample target output vector calculated by the prediction compression calculator is less than the first preset threshold, use the current sample input vector as the target compression parameter of the active molecule of the drug to be compressed, and end the optimization iteration calculation. The difference value can be an absolute difference or a ratio, etc., which is not limited here.
[0145] The initial temperature of the iteration body in the current round = the initial temperature of the iteration body in the previous round * the attenuation coefficient, where the attenuation coefficient ranges from 0 to 1.
[0146] When the iteration unit 432 uses the optimizer to randomly adjust the sample input vector: a random number is randomly generated, and the current sample input vector is added to the random number to obtain the randomly adjusted sample input vector.
[0147] When the iteration unit 432 receives the randomly adjusted sample input vector as the current sample input vector according to the preset rule: the difference between the sample prediction output vectors corresponding to the sample input vectors before and after the random adjustment is calculated by using the prediction pressure calculator;
[0148] If the difference is less than a second preset threshold, the randomly adjusted sample input vector is used as the current sample input vector;
[0149] If the difference is greater than or equal to the second preset threshold, the randomly adjusted sample input vector is used as the current sample input vector according to the Metropolis criterion probability.
[0150] In addition, the predictive pressure calculator is constructed using a supervised learning method. The original data is divided into training original data and test original data according to the preset partitioning method; the training original data is input into the deep convolutional network to construct the initial predictive pressure calculator; the initial predictive pressure calculator is used to verify the test original data to construct the predictive pressure calculator.
[0151] The optimizer can be constructed using simulated annealing algorithm, particle swarm algorithm, evolutionary algorithm, etc. Regarding the device in the above embodiment, the specific way in which each module and unit performs operations has been described in detail in the method embodiment corresponding to the device, and will not be elaborated here.
[0152] See also Figure 6 , the electronic device 600 includes a processor 610 and a memory 620 .
[0153] The processor 610 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0154] The memory 620 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage. Among them, ROM can store static data or instructions required by the processor 610 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, an optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 620 may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. The memory 620 stores executable codes, and when the executable codes are processed by the processor 610 , the processor 610 can execute part or all of the methods described above.
[0155] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0156] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0157] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for improving the processing of drug compression parameters, characterized in that: include: Obtaining a sample input vector for a pharmaceutically active molecule to be compressed; Obtaining a preset sample target output vector for the active molecule of the drug to be compressed; Inputting the sample input vector into a predicted drug pressure calculator to obtain a sample predicted output vector corresponding to the sample input vector; wherein the predicted drug pressure calculator is constructed based on a deep convolutional neural network; Determine whether a difference between a sample prediction output vector corresponding to the sample input vector and the preset sample target output vector is less than a first preset threshold; If it is less than the first preset threshold, the sample input vector is used as the target drug compression parameter of the active drug molecule to be compressed; If it is greater than or equal to the first preset threshold, the optimizer is used to perform iterative optimization calculation on the sample input vector until the predicted drug compression calculator calculates that the difference between the sample predicted output vector corresponding to the current sample input vector and the preset sample target output vector is less than the first preset threshold, and the current sample input vector is used as the target drug compression parameter of the active molecule of the drug to be compressed, and the optimization iterative calculation is terminated; The target drug compression parameter is output.
2. The method according to claim 1, characterized in that The sample input vector includes a fixed input vector and an adjustable input vector. When optimizing and iterating the sample input vector, the adjustable input vector is adjusted, and the adjusted adjustable input vector and the fixed input vector are combined to form the current sample input vector.
3. The method according to claim 1, characterized in that The optimizing iterative calculation of the sample input vector by using the optimizer, until the predicted drug compression calculator calculates that the difference between the sample predicted output vector corresponding to the current sample input vector and the preset sample target output vector is less than the first preset threshold, and the current sample input vector is used as the target drug compression parameter of the active drug molecule to be compressed, and the optimizing iterative calculation is terminated, including: Setting a termination temperature and multiple rounds of iterations, each of which has an initial temperature; Execute the iteration body of the current round in a loop, and if the initial temperature of the iteration body of the current round is greater than or equal to the termination temperature and the number of iterations of the iteration body overflows, execute the iteration body of the next round in a loop; The iterative body: utilizes the optimizer to randomly adjust the sample input vector, receives the randomly adjusted sample input vector as the current sample input vector according to the preset rule, and if the difference between the sample predicted output vector corresponding to the current sample input vector and the preset sample target output vector calculated by the predicted drug compression calculator is less than the first preset threshold, uses the current sample input vector as the target drug compression parameter of the active molecule of the drug to be compressed, and ends the optimization iterative calculation.
4. The method according to claim 3, characterized in that The initial temperature of the iteration body in the current round = the initial temperature of the iteration body in the previous round * attenuation coefficient, where the attenuation coefficient ranges from 0 to 1.
5. The method according to claim 3, characterized in that: The randomly adjusting the sample input vector by using the optimizer includes: The optimizer is used to randomly generate a random number, and the current sample input vector is added to the random number to obtain the randomly adjusted sample input vector.
6. The method according to claim 5, characterized in that The step of receiving the randomly adjusted sample input vector as the current sample input vector according to a preset rule includes: Calculating the difference between the sample prediction output vectors corresponding to the sample input vectors before and after the random adjustment using the prediction pressure calculator; If the difference is less than a second preset threshold, taking the randomly adjusted sample input vector as the current sample input vector; If the difference is greater than or equal to the second preset threshold, the randomly adjusted sample input vector is used as the current sample input vector according to the Metropolis criterion probability.
7. The method according to any one of claims 1 to 6, characterized in that: The construction of the predicted pressure medicine calculator includes: Collecting original data, the original data includes an original input vector and an original output vector, and the original input vector and the original output vector have a corresponding relationship; The raw data is input into a deep convolutional neural network to construct a predictive drug compression calculator.
8. The method according to claim 7, characterized in that The method of inputting the raw data into a deep convolutional neural network to construct a predictive pressure medicine calculator includes: Dividing the original data into training original data and testing original data according to a preset division method; Inputting the raw training data into the deep convolutional network to construct an initial prediction pressure medicine calculator; The initial predicted drug pressure calculator is used to verify the test original data and construct the predicted drug pressure calculator.
9. An improved processing device for drug compression parameters, characterized in that: include: A first acquisition module is used to acquire a sample input vector for the active molecule of the drug to be compressed; A second acquisition module is used to acquire a preset sample target output vector for the active molecule of the drug to be compressed; An optimization module is used to input the sample input vector into a prediction drug compression calculator to obtain a sample prediction output vector corresponding to the sample input vector; wherein the prediction drug compression calculator is constructed based on a deep convolutional neural network; determine whether the difference between the sample prediction output vector corresponding to the sample input vector and the preset sample target output vector is less than a first preset threshold; if it is less than the first preset threshold, use the sample input vector as the target drug compression parameter of the active drug molecule to be compressed; if it is greater than or equal to the first preset threshold, use the optimizer to perform iterative optimization calculation on the sample input vector until the prediction drug compression calculator calculates that the difference between the sample prediction output vector corresponding to the current sample input vector and the preset sample target output vector is less than the first preset threshold, use the current sample input vector as the target drug compression parameter of the active drug molecule to be compressed, and end the iterative optimization calculation; An output module is used to output the target drug compression parameter.
10. The device according to claim 9, characterized in that The sample input vector includes a fixed input vector and an adjustable input vector. The optimization module performs iterative optimization calculation on the sample input vector, including: adjusting the adjustable input vector, and combining the adjusted adjustable input vector and the fixed input vector to form the current sample input vector.
11. The device according to claim 9, characterized in that: The optimization module includes: An initialization unit, used to set a termination temperature and multiple rounds of iterations, each of which has an initial temperature; An iteration unit, configured to execute the iteration body of the current round in a loop, and if the initial temperature of the iteration body of the current round is greater than or equal to the termination temperature and the number of iterations of the iteration body overflows, execute the iteration body of the next round in a loop; The iterative body: utilizes the optimizer to randomly adjust the sample input vector, receives the randomly adjusted sample input vector as the current sample input vector according to the preset rule, and if the difference between the sample predicted output vector corresponding to the current sample input vector and the preset sample target output vector calculated by the predicted drug compression calculator is less than the first preset threshold, uses the current sample input vector as the target drug compression parameter of the active molecule of the drug to be compressed, and ends the optimization iterative calculation.
12. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 8.
13. A computer-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 8.
