7-avca efficient preparation process based on impurity tracking throughout the whole process
By selecting multiple impurity tracking nodes in the 7-AVCA production process, and sampling and calculating the impurity transfer matrix in real time, the problem of inaccurate impurity control in traditional processes is solved, achieving accurate impurity tracking and improved production efficiency.
Patent Information
- Application Number
- CN202611316357.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-24
AI Technical Summary
Traditional 7-AVCA preparation processes cannot accurately track impurity generation and control impurity content, resulting in low production efficiency.
In the 7-AVCA production process, multiple impurity tracking nodes are selected. Impurity state parameter data is obtained through real-time sampling, and the impurity transfer matrix and reaction competition coefficient are calculated to determine the source of impurity peaks and adjust the abnormal source reaction process in real time, thereby achieving accurate tracking and control of impurities.
It significantly improved the success rate and controllability of impurity traceability in the 7-AVCA production process, reduced the impurity content of the finished product, and improved production efficiency and purity.
Smart Images

Figure CN123161682A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of impurity tracking technology, and in particular to a high-efficiency preparation process for 7-AVCA based on full impurity tracking. Background Technology
[0002] 7-AVCA (full name 7-amino-3-vinyl-3-cephalocyclo-4-carboxylic acid) is the core universal nucleus of semi-synthetic cephalosporin antibiotics. Its 7-amino group can be modified to introduce different side chains, synthesizing dozens of clinically commonly used cephalosporin active pharmaceutical ingredients such as cefaclor, cefuroxime axetil, ceftazidime, and ceftriaxone, covering a wide range of scenarios including anti-infective therapy, perioperative prevention, and community infection management. Therefore, the industry has placed higher demands on the purity, impurity content, and production efficiency of 7-AVCA.
[0003] The traditional method is to reduce the impurity content of 7-AVCA by controlling the purity of the raw materials, and to improve the real-time conversion rate of 7-AVCA by reducing the impurity content. However, the traditional 7-AVCA reaction process involves many steps, and it is impossible to accurately track the generation of impurities and accurately control the impurity content by simply controlling the purity of the raw materials. Summary of the Invention
[0004] To address the aforementioned technical problems, this invention provides a highly efficient preparation process for 7-AVCA based on end-to-end impurity tracking. The technical solution of this invention is as follows: A highly efficient preparation process for 7-AVCA based on impurity tracking throughout the entire process includes: S1, Select multiple impurity tracking nodes in the 7-AVCA production process, and obtain the impurity status parameter data of each impurity tracking node at the current sampling time during the continuous execution of the 7-AVCA production process. S2, calculate the content observation vector of each impurity tracking node at the current sampling time based on the impurity state parameter data of each impurity tracking node at the current sampling time, and generate the impurity transfer matrix of each impurity tracking node at the current sampling time based on the content observation vector of each impurity tracking node at the current sampling time; S3, based on the impurity transfer matrix of each impurity tracking node at the current sampling time, calculate the competition coefficient between the main reaction and the side reaction in each reaction step at the current sampling time in the 7-AVCA production process, and calculate the real-time conversion rate of each reaction step at the current sampling time based on the competition coefficient between the main reaction and the side reaction in each reaction step. S4. Based on the impurity transfer matrix of each impurity tracking node at the current sampling time and the real-time conversion rate of each reaction process at the current sampling time, determine the abnormal source reaction process of the impurity peak at the current sampling time, and determine the source impurity tracking node at the current sampling time based on the abnormal source reaction process. S5. Based on the impurity transfer matrix of the source impurity tracking node at the current sampling time and the abnormal source reaction process, generate the control coefficient of the abnormal source reaction process at the current sampling time, and adjust the abnormal source reaction process at the current sampling time according to the control coefficient of the abnormal source reaction process at the current sampling time. S6 continues to execute S1-S5 until the preset production target of 7-AVCA is achieved.
[0005] Preferably, S1 includes: S11 breaks down the 7-AVCA production process into a chain of processes consisting of multiple reaction steps; S12, Based on the process characteristics and product characteristics of each reaction step, select multiple impurity tracking nodes, wherein at least one impurity tracking node is selected for each reaction step; S13. Based on the process characteristics of the reaction process in which each impurity tracking node is located, collect the impurity state parameter data of each impurity tracking node at the current sampling time.
[0006] Preferably, S2 includes: S21, obtain the liquid chromatography data of the impurity state parameter data of each impurity tracking node at the current sampling time, and determine the estimated content of each impurity at each impurity tracking node at the current sampling time based on the liquid chromatography. S22, the content observation vector of each impurity tracking node at the current sampling time is composed of the estimated content of all types of impurities at each impurity tracking node at the current sampling time; S23, concatenate the content observation vector of each impurity tracking node at the current sampling time with the other impurity state parameter data in its impurity state parameter data except for liquid chromatography, to obtain the impurity state vector of each impurity tracking node at the current sampling time. S24. Obtain the old impurity state vector of each impurity tracking node at the previous sampling time. Generate the impurity transition matrix of each impurity tracking node at the current sampling time based on the old impurity state vector of each impurity tracking node at the previous sampling time and the impurity state vector of each impurity tracking node at the current sampling time.
[0007] Preferably, S21 includes: S211, Obtain the liquid chromatography data of the impurity state parameter data of each impurity tracking node at the current sampling time, divide the time axis of the liquid chromatography into multiple small windows to obtain multiple time windows, wherein the time axis is the time period from the start sampling time to the current sampling time for each impurity tracking node; S212, obtain the peak range of the signal peak value of each time window of each impurity tracking node, and take the peak range of the signal peak value greater than the preset peak value threshold as the valid peak; S213, calculate the peak area of each valid peak based on each valid peak of each impurity tracking node, and obtain multiple peak areas for each impurity tracking node; S214, compare the peak areas of multiple impurities at each impurity tracking node with the preset peak areas of multiple preset impurities in the preset impurity standard spectrum library to obtain the multiple impurities at each impurity tracking node at the current sampling time; S215, based on the peak area of each impurity at each impurity tracking node at the current sampling time and the preset correction coefficient of each impurity, calculate the estimated content of each impurity at each impurity tracking node at the current sampling time.
[0008] Preferably, S24 includes: S241, obtain the old impurity state vector of each impurity tracking node at the previous sampling time, and determine the old estimated content of each impurity at each impurity tracking node at the previous sampling time based on the old impurity state vector of each impurity tracking node at the previous sampling time. S242, calculate the ratio of the estimated content of each impurity in the impurity state vector of each impurity tracking node at the current sampling time to the old estimated content of each impurity tracking node at the previous sampling time, and use it as the variation coefficient of each impurity at each impurity tracking node at the current sampling time. S243 assigns time weighting coefficients to each impurity tracking node at the previous sampling time and each impurity tracking node at the current sampling time; S244, Based on the variation coefficient of each impurity at each impurity tracking node at the current sampling time, and the time weight coefficients of each impurity tracking node at the previous sampling time and each impurity tracking node at the current sampling time, calculate the transfer coefficient of each impurity at each impurity tracking node at the current sampling time. S245 is the impurity transfer matrix of each impurity tracking node at the current sampling time, which is composed of the transfer coefficients of each impurity at each impurity tracking node at the current sampling time.
[0009] Preferably, S3 includes: S31, based on the impurity transfer matrix of each impurity tracking node at the current sampling time, obtain the side reaction rate factor and main reaction rate factor of each reaction step in the 7-AVCA production process at the current sampling time; S32, calculate the ratio of the side reaction rate factor to the main reaction rate factor in each reaction step to obtain the competition coefficient between the main reaction and the side reaction in each reaction step at the current sampling time; S33, based on the content observation vector of the last impurity tracking node in the previous reaction step at the current sampling time, determine the reactant inlet content of each reaction step at the current sampling time, and based on the content observation vector of the last impurity tracking node in each reaction step at the current sampling time, determine the reactant outlet content of each reaction step at the current sampling time. S34. Calculate the real-time conversion rate of each reaction step at the current sampling time based on the reactant influent content, reactant effluent content, and the competition coefficient between the main reaction and the side reaction for each reaction step at the current sampling time.
[0010] Preferably, S31 includes: S311, obtain all impurity tracking nodes corresponding to each reaction step in the 7-AVCA production process at the current sampling time, and concatenate the impurity transfer matrices of all impurity tracking nodes corresponding to each reaction step at the current sampling time according to the node order to obtain the impurity process matrix of each reaction step at the current sampling time. S312, calculate the sum of the off-diagonal elements of the impurity process matrix for each reaction process at the current sampling time, and obtain the side reaction rate factor for each reaction process at the current sampling time; S313, calculate the difference between 1 and each diagonal element of the impurity process matrix of each reaction process at the current sampling time, obtain the attenuation deviation of each diagonal element of the impurity process matrix of each reaction process, and calculate the sum of the attenuation deviations of all diagonal elements of the impurity process matrix of each reaction process to obtain the main reaction rate factor of each reaction process at the current sampling time.
[0011] Preferably, S4 includes: S41, obtain the impurity process matrix of each reaction process at the current sampling time based on the impurity transfer matrix of each impurity tracking node at the current sampling time; S42, obtain the row vectors of various impurities directly related to the reactants in the impurity process matrix of each reaction process at the current sampling time, and calculate the impurity generation intensity of each reaction process at the current sampling time based on the row vectors of various impurities; S43, if the real-time conversion rate of any reaction process in the current sampling time and the previous multiple consecutive sampling times is continuously less than the preset conversion rate threshold and the real-time conversion rate of the previous reaction process of the aforementioned reaction process is greater than or equal to the preset conversion rate threshold, then it is determined that the aforementioned reaction process is abnormal at the current sampling time, and the aforementioned reaction process is regarded as an abnormal reaction process. S44. If the impurity generation intensity of the abnormal reaction process at the current sampling time is greater than the preset impurity intensity threshold and is larger than the previous reaction process, and the real-time conversion rate of the abnormal reaction process at the current sampling time and the previous consecutive sampling times continues to decrease, then it is determined that the source impurity tracking node of the impurity peak exists in the abnormal reaction process, and the abnormal reaction process is regarded as the abnormal source reaction process. The single-node impurity generation intensity of each impurity tracking node in the abnormal source reaction process is calculated, and the impurity tracking node with the highest single-node impurity generation intensity in the abnormal source reaction process is regarded as the source impurity tracking node of the impurity peak at the current sampling time. S45, if the impurity generation intensity of the abnormal reaction process at the current sampling time is less than or equal to the preset impurity intensity threshold, and the real-time conversion rate of the abnormal reaction process at multiple consecutive sampling times before the current sampling time continues to decrease, then it is determined that the source impurity tracking node of the impurity peak exists in the reaction process preceding the abnormal reaction process, and the reaction process preceding the abnormal reaction process is taken as the abnormal source reaction process, and the impurity tracking node with the highest single-node impurity generation intensity of the abnormal source reaction process is taken as the source impurity tracking node of the impurity peak at the current sampling time.
[0012] Preferably, S5 includes: S51, calculate the single-node impurity generation intensity of the source impurity tracking node based on the impurity transfer matrix of the source impurity tracking node at the current sampling time, and calculate the difference between the single-node impurity generation intensity of the source impurity tracking node and the impurity generation intensity threshold as the impurity intensity error term. S52, calculate the difference between the real-time conversion rate of the abnormal source reaction process at the current sampling time and the historical normal real-time conversion rate of the abnormal source reaction process as the conversion rate error term; S53, constructs the control coefficient equation from the impurity intensity error term, conversion rate error term and preset PID function, and calculates the control coefficient corresponding to the abnormal source reaction process at the current sampling time based on the control coefficient equation; S54, adjust the abnormal source reaction process at the current sampling time according to the control coefficient of the abnormal source reaction process at the current sampling time.
[0013] All of the above optional technical solutions can be combined arbitrarily, and the present invention will not provide a detailed description of the structure after each combination.
[0014] By means of the above solution, the beneficial effects of the present invention are as follows: This invention breaks down the 7-AVCA production process into reaction steps with multiple impurity tracking nodes. By analyzing the impurity state parameter data of each impurity tracking node at the current sampling moment, the real-time conversion rate of each reaction step in the 7-AVCA production process is determined. This identifies the source impurity tracking node from which the impurity peak originates at the current sampling moment. Finally, real-time control of the source impurity tracking node enables real-time and accurate tracking of impurities in the reaction process. Therefore, this invention significantly improves the success rate and controllability of impurity traceability in the 7-AVCA production process, reduces the impurity content of the finished 7-AVCA, increases the purity of the finished 7-AVCA, and thus improves the production efficiency of 7-AVCA.
[0015] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, the preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings. Attached Figure Description
[0016] Figure 1 This is a schematic diagram of a high-efficiency preparation process for 7-AVCA based on impurity tracking throughout the entire process, provided by the present invention. Detailed Implementation
[0017] The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples. The following examples are for illustrative purposes only and are not intended to limit the scope of the invention.
[0018] like Figure 1 As shown, an embodiment of the present invention provides a high-efficiency preparation process for 7-AVCA based on impurity tracking throughout the entire process, comprising: S1. Select multiple impurity tracking nodes in the 7-AVCA production process, and obtain the impurity state parameter data of each impurity tracking node at the current sampling time during the continuous execution of the 7-AVCA production process.
[0019] Specifically, in this embodiment of the invention, an impurity tracking node refers to a specific detection point in the 7-AVCA production process used for sampling and data acquisition. Impurity state parameter data includes liquid chromatography, pH value, and temperature, etc. In this embodiment, the 7-AVCA production process is a continuously executed process. Continuous execution of the 7-AVCA production process means that each reaction step continues over time, rather than the next 7-AVCA production process starting only after the previous one is completed. Therefore, impurity state parameter data for each impurity tracking node at each sampling moment can be obtained. The time interval between two adjacent sampling moments is 1-5 seconds.
[0020] In one specific embodiment, S1 includes: S11 breaks down the 7-AVCA production process into a chain of processes consisting of multiple reaction steps.
[0021] Specifically, the production process of 7-AVCA includes the following reaction steps: feed reaction, Wittig reaction, phenol hydrolysis reaction, and enzymatic hydrolysis reaction.
[0022] S12, based on the process characteristics and product characteristics of each reaction step, select multiple impurity tracking nodes, wherein at least one impurity tracking node is selected for each reaction step.
[0023] Specifically, the process characteristics of each reaction step include: the required concentration of added reagents for each reaction step, the input raw materials for each reaction step, and the required pH value for each reaction step. The product characteristics of each reaction step include: the state (solid / liquid) and composition of the product for each reaction step. For the feed reaction step, the impurity tracking node is set at the raw material detection location. For the Wittig reaction step, the impurity tracking node is set at the Wittig reaction intermediate detection location and the post-Wittig product monitoring location. For the phenololysis reaction step, the impurity tracking node is set at the product monitoring location after the phenololysis reaction ends. For the enzymatic hydrolysis reaction step, the impurity tracking node is set at the product monitoring location after the enzymatic hydrolysis reaction ends.
[0024] S13. Based on the process characteristics of the reaction process in which each impurity tracking node is located, collect the impurity state parameter data of each impurity tracking node at the current sampling time.
[0025] Specifically, if the required pH value of the reaction process in the process characteristics of a certain impurity tracking node is too low, then acid-resistant equipment is needed to collect the impurity state parameter data, such as equipment made of polytetrafluoroethylene.
[0026] S2, calculate the content observation vector of each impurity tracking node at the current sampling time based on the impurity state parameter data of each impurity tracking node at the current sampling time, and generate the impurity transfer matrix of each impurity tracking node at the current sampling time based on the content observation vector of each impurity tracking node at the current sampling time.
[0027] Specifically, the content observation vector for each impurity tracking node includes the estimated content of various impurities and the state parameter data of other impurities besides liquid chromatography. The type of impurity depends on the reaction step in which each impurity tracking node is located, and the type of impurity corresponding to each reaction step is shown in Table 1, which illustrates the correspondence between reaction steps and impurity types.
[0028]
[0029] In one specific embodiment, S2 includes: S21, obtain the liquid chromatography data of the impurity state parameter data of each impurity tracking node at the current sampling time, and determine the estimated content of each impurity at each impurity tracking node at the current sampling time based on the liquid chromatography.
[0030] In one specific embodiment, S21 includes: S211, obtain the liquid chromatography data of the impurity state parameter data of each impurity tracking node at the current sampling time, divide the time axis of the liquid chromatography into multiple small windows to obtain multiple time windows, wherein the time axis is the time period from the start sampling time to the current sampling time for each impurity tracking node.
[0031] Specifically, in this embodiment of the invention, the time range of each time window is 5 minutes.
[0032] S212, obtain the peak range of the signal peak value of each time window of each impurity tracking node, and take the peak range where the signal peak value is greater than the preset peak value threshold as the valid peak.
[0033] Specifically, when obtaining the peak range of the signal peaks within a certain time window, the highest point of the signal peaks in that time window is first taken as the peak point. Starting from the peak point, the signal is scanned to the left until the signal strength drops to the average strength of the time window, which is taken as the left peak point. Starting from the peak point, the signal is scanned to the right until the signal strength drops to the average strength of the time window, which is taken as the right peak point. The left and right peak points constitute the peak range of the signal peaks within that time window.
[0034] S213, calculate the peak area of each valid peak based on each valid peak of each impurity tracking node, and obtain multiple peak areas for each impurity tracking node.
[0035] Specifically, when calculating the peak area of a certain effective peak, it is obtained by calculating the area of the closed region enclosed by the effective peak and the time axis.
[0036] S214, compare the peak areas of multiple impurities at each impurity tracking node with the preset peak areas of multiple preset impurities in the preset impurity standard spectrum library to obtain the multiple impurities at each impurity tracking node at the current sampling time.
[0037] Specifically, the preset impurity standard library is a relational database storing the correspondence between various preset impurities and their corresponding preset peak areas. When comparing the peak area of a certain impurity tracking node with the preset peak area of a certain preset impurity in the preset impurity standard library, modern chromatography software automatically compares the peak area with the preset peak area of that preset impurity and outputs whether there is a match. If the output of the modern chromatography software shows that the peak area matches the preset peak area of that preset impurity, then it is determined that the impurity exists at that impurity tracking node.
[0038] S215, based on the peak area of each impurity at each impurity tracking node at the current sampling time and the preset correction coefficient of each impurity, calculate the estimated content of each impurity at each impurity tracking node at the current sampling time.
[0039] Specifically, when calculating the estimated content of a certain impurity at a certain impurity tracking node, the estimated content of that impurity at that tracking node is obtained by multiplying the peak area corresponding to that impurity by the preset correction coefficient for that impurity. The preset correction coefficient is a predetermined empirical value.
[0040] S22, the content observation vector of each impurity tracking node at the current sampling time is composed of the estimated content of all types of impurities at each impurity tracking node at the current sampling time.
[0041] S23, concatenate the content observation vector of each impurity tracking node at the current sampling time with the other impurity state parameter data in its impurity state parameter data except for liquid chromatography, to obtain the impurity state vector of each impurity tracking node at the current sampling time.
[0042] S24. Obtain the old impurity state vector of each impurity tracking node at the previous sampling time. Generate the impurity transition matrix of each impurity tracking node at the current sampling time based on the old impurity state vector of each impurity tracking node at the previous sampling time and the impurity state vector of each impurity tracking node at the current sampling time.
[0043] In one specific embodiment, S24 includes: S241, obtain the old impurity state vector of each impurity tracking node at the previous sampling time, and determine the old estimated content of each impurity at each impurity tracking node at the previous sampling time based on the old impurity state vector of each impurity tracking node at the previous sampling time.
[0044] Specifically, the principle for obtaining the old impurity state vector of each impurity tracking node at the previous sampling time is the same as that in S21 to S23, and will not be repeated here. Subsequently, the old estimated content of each impurity for each impurity at each impurity tracking node is directly extracted from the old impurity state vector of each impurity tracking node at the previous sampling time.
[0045] S242, calculate the ratio of the estimated content of each impurity in the impurity state vector of each impurity tracking node at the current sampling time to the old estimated content of each impurity tracking node at the previous sampling time, and use it as the variation coefficient of each impurity at each impurity tracking node at the current sampling time.
[0046] It should be noted that if a certain impurity tracking node did not exist at the previous sampling time (in the case of a change in the reaction process), then the variation coefficient of all impurities at that impurity tracking node at the current sampling time is set to 0. If a certain impurity at a certain impurity tracking node at the current sampling time is not present in the impurities at that impurity tracking node at the previous sampling time, then the variation coefficient of that impurity at that impurity tracking node at the current sampling time is set to 0.
[0047] S243 assigns time weight coefficients to each impurity tracking node at the previous sampling time and each impurity tracking node at the current sampling time.
[0048] Specifically, when assigning a time weight coefficient 'a' to a certain impurity tracking node at the current sampling time, the calculation formula is as follows: ;in, This represents the time interval between two adjacent sampling times. This indicates the average reaction time of the reaction process to which the impurity tracking node is located (in this embodiment of the invention, the time weighting coefficient of each impurity tracking node at the current sampling time is the same). Further, the time weighting coefficient of each impurity tracking node at the previous sampling time is 1-a.
[0049] S244, based on the variation coefficient of each impurity at each impurity tracking node at the current sampling time, and the time weight coefficients of each impurity tracking node at the previous sampling time and each impurity tracking node at the current sampling time, calculate the transfer coefficient of each impurity at each impurity tracking node at the current sampling time.
[0050] Specifically, when calculating the transfer coefficient of a certain impurity at a certain impurity tracking node at the current sampling time, it is obtained by summing the variation coefficient of that impurity at the current sampling time, the time weight coefficient of the impurity tracking node at the current sampling time, and the time weight coefficient of the impurity tracking node at the previous sampling time.
[0051] S245 is the impurity transfer matrix of each impurity tracking node at the current sampling time, which is composed of the transfer coefficients of each impurity at each impurity tracking node at the current sampling time.
[0052] Specifically, the impurity transfer matrix for each impurity tracking node is a matrix with one column and multiple rows.
[0053] S3. Based on the impurity transfer matrix of each impurity tracking node at the current sampling time, calculate the competition coefficient between the main reaction and the side reaction in each reaction step at the current sampling time in the 7-AVCA production process, and calculate the real-time conversion rate of each reaction step at the current sampling time based on the competition coefficient between the main reaction and the side reaction in each reaction step.
[0054] Specifically, in actual production, the real-time conversion rate of each reaction step cannot be directly calculated. Therefore, in this embodiment of the invention, the real-time conversion rate of each reaction step is indirectly calculated by calculating the competition coefficient between the main reaction and the side reaction in each reaction step.
[0055] In one specific embodiment, S3 includes: S31, based on the impurity transfer matrix of each impurity tracking node at the current sampling time, obtain the side reaction rate factor and main reaction rate factor of each reaction step in the 7-AVCA production process at the current sampling time.
[0056] Specifically, the main reaction rate factor reflects the formation rate of the target product (the product to be produced in each reaction step) in each reaction step. The side reaction rate factor reflects the formation rate of various other impurities in each reaction step. Furthermore, the sum of the main reaction rate factor and the side reaction rate factor is 1.
[0057] In one specific embodiment, S31 includes: S311, obtain all impurity tracking nodes corresponding to each reaction step in the 7-AVCA production process at the current sampling time, and concatenate the impurity transfer matrices of all impurity tracking nodes corresponding to each reaction step at the current sampling time according to the node order to obtain the impurity process matrix of each reaction step at the current sampling time.
[0058] Specifically, each column in the impurity process matrix represents an impurity tracking node. If two impurity tracking nodes have different impurity types in a certain reaction process, the value of the inconsistent impurity type in the impurity transfer matrix is set to 0.
[0059] S312, calculate the sum of the off-diagonal elements of the impurity process matrix for each reaction process at the current sampling time, and obtain the side reaction rate factor for each reaction process at the current sampling time.
[0060] S313, calculate the difference between 1 and each diagonal element of the impurity process matrix of each reaction process at the current sampling time, obtain the attenuation deviation of each diagonal element of the impurity process matrix of each reaction process, and calculate the sum of the attenuation deviations of all diagonal elements of the impurity process matrix of each reaction process to obtain the main reaction rate factor of each reaction process at the current sampling time.
[0061] S32, calculate the ratio of the side reaction rate factor to the main reaction rate factor in each reaction step to obtain the competition coefficient between the main reaction and the side reaction in each reaction step at the current sampling time.
[0062] S33, based on the content observation vector of the last impurity tracking node in the previous reaction step at the current sampling time, determine the reactant influent content of each reaction step at the current sampling time, and based on the content observation vector of the last impurity tracking node in each reaction step at the current sampling time, determine the reactant effluent content of each reaction step at the current sampling time.
[0063] Specifically, taking the Wittig reaction process as an example, the impurity tracking node at the product monitoring location after the Wittig reaction is taken as the final impurity tracking node of the reaction process.
[0064] When calculating the reactant influent and effluent contents of a reaction process at the current sampling time, the estimated content of each impurity is obtained based on the content observation vector of the last impurity tracking node in the previous reaction process at the current sampling time. The sum of the estimated contents of all impurities is then calculated to obtain the total impurity content of the previous reaction process. Subtracting the total impurity content of the previous reaction process from 1 yields the reactant influent content of the current reaction process at the current sampling time. Similarly, the total impurity content of the current reaction process is calculated based on the content observation vector of the last impurity tracking node in the previous reaction process at the current sampling time. Subtracting the total impurity content of the current reaction process from 1 yields the reactant effluent content of the current reaction process at the current sampling time.
[0065] S34. Calculate the real-time conversion rate of each reaction step at the current sampling time based on the reactant influent content, reactant effluent content, and the competition coefficient between the main reaction and the side reaction for each reaction step at the current sampling time.
[0066] Specifically, the formula for calculating the real-time conversion rate R of a certain reaction process at the current sampling moment is: ;in, This indicates the reactant content of this reaction process at the current sampling time. represents the reactant content of this reaction process at the current sampling time, and p represents the competition coefficient between the main reaction and the side reaction of this reaction process at the current sampling time.
[0067] S4. Based on the impurity transfer matrix of each impurity tracking node at the current sampling time and the real-time conversion rate of each reaction process at the current sampling time, determine the abnormal source reaction process of the impurity peak at the current sampling time, and determine the source impurity tracking node at the current sampling time based on the abnormal source reaction process.
[0068] In one specific embodiment, S4 includes: S41, obtain the impurity process matrix of each reaction process at the current sampling time based on the impurity transfer matrix of each impurity tracking node at the current sampling time.
[0069] Specifically, the principle of this step is the same as that of S311, and will not be repeated here.
[0070] S42, obtain the row vectors corresponding to various impurities directly related to the reactants in the impurity process matrix of each reaction process at the current sampling time, and calculate the impurity generation intensity of each reaction process at the current sampling time based on the row vectors corresponding to various impurities.
[0071] Specifically, when calculating the impurity generation intensity of a certain reaction process at the current sampling time, the single impurity transfer intensity of each impurity is obtained by calculating the sum of all elements in the row vectors corresponding to multiple impurities in the reaction process at the current sampling time. The impurity generation intensity of the reaction process is obtained by weighted summing of the preset transfer weight of each impurity and the single impurity transfer intensity of each impurity.
[0072] S43, if the real-time conversion rate of any reaction process in the current sampling time and the previous consecutive sampling times is continuously less than the preset conversion rate threshold and the real-time conversion rate of the previous reaction process of the aforementioned reaction process is greater than or equal to the preset conversion rate threshold, then it is determined that the aforementioned reaction process in the current sampling time is abnormal, and the aforementioned reaction process is regarded as an abnormal reaction process.
[0073] Specifically, the preset conversion rate threshold is a pre-set threshold used to represent the conversion rate of the reaction process. Multiple consecutive sampling times are typically two sampling times.
[0074] S44. If the impurity generation intensity of the abnormal reaction process at the current sampling time is greater than the preset impurity intensity threshold and increases relative to the previous reaction process, and the real-time conversion rate of the abnormal reaction process at the current sampling time and multiple consecutive sampling times before that continuously decreases, then it is determined that the source impurity tracking node of the impurity peak exists in the abnormal reaction process, and the abnormal reaction process is taken as the abnormal source reaction process. The single-node impurity generation intensity of each impurity tracking node in the abnormal source reaction process is calculated, and the impurity tracking node with the highest single-node impurity generation intensity in the abnormal source reaction process is taken as the source impurity tracking node of the impurity peak at the current sampling time.
[0075] Specifically, when calculating the single-node impurity generation intensity of a certain impurity tracking node in a certain abnormal source reaction process, the transfer coefficient of each impurity in the impurity transfer matrix of the impurity tracking node in the abnormal source reaction process is obtained. Then, the transfer coefficient of each impurity and the preset transfer weight of each impurity are weighted and summed to obtain the single-node impurity generation intensity of the impurity tracking node in the abnormal source reaction process.
[0076] S45, if the impurity generation intensity of the abnormal reaction process at the current sampling time is less than or equal to the preset impurity intensity threshold, and the real-time conversion rate of the abnormal reaction process at multiple consecutive sampling times before the current sampling time continues to decrease, then it is determined that the source impurity tracking node of the impurity peak exists in the reaction process preceding the abnormal reaction process, and the reaction process preceding the abnormal reaction process is taken as the abnormal source reaction process, and the impurity tracking node with the highest single-node impurity generation intensity of the abnormal source reaction process is taken as the source impurity tracking node of the impurity peak at the current sampling time.
[0077] S5. Based on the impurity transfer matrix of the source impurity tracking node at the current sampling time and the abnormal source reaction process, generate the control coefficient of the abnormal source reaction process at the current sampling time, and adjust the abnormal source reaction process at the current sampling time according to the control coefficient of the abnormal source reaction process at the current sampling time.
[0078] Specifically, the control factors include: pH control value, temperature control value, and reaction reagent concentration control value, etc.
[0079] In one specific embodiment, S5 includes: S51, calculate the single-node impurity generation intensity of the source impurity tracking node based on the impurity transfer matrix of the source impurity tracking node at the current sampling time, and calculate the difference between the single-node impurity generation intensity of the source impurity tracking node and the impurity generation intensity threshold as the impurity intensity error term.
[0080] S52, calculate the difference between the real-time conversion rate of the abnormal source reaction process at the current sampling time and the historical normal real-time conversion rate of the abnormal source reaction process as the conversion rate error term.
[0081] S53 constructs a control coefficient equation based on the impurity intensity error term, conversion rate error term, and a preset PID function, and calculates the control coefficient corresponding to the abnormal source reaction process at the current sampling time based on the control coefficient equation.
[0082] Specifically, the equation for the control coefficients can be expressed as: Where Kp, Ki, and Kd are the proportional gain coefficient, integral gain coefficient, and derivative gain coefficient in the preset PID function, respectively (all of which have been pre-trained). This represents the control coefficient (in vector form) corresponding to the reaction process of the abnormal source at the current sampling time. Indicates the total error. This represents the preset weighting coefficient for the impurity intensity error term. This represents the preset weighting coefficient for the conversion rate error term. The impurity strength error term is represented. This represents the conversion rate error term, and t represents the time parameter.
[0083] S54, adjust the abnormal source reaction process at the current sampling time according to the control coefficient of the abnormal source reaction process at the current sampling time.
[0084] Specifically, assuming the control coefficient for the reaction process originating from the anomaly at the current sampling time is [1, 10, -5], this means the pH control value for the reaction process originating from the anomaly at the current sampling time is 1, the temperature control value is 10, and the reagent concentration control value is -5. If the pH value for the reaction process originating from the anomaly at the current sampling time is 5, the temperature is 20℃, and the reagent concentration is 30%, then the temperature for the reaction process originating from the anomaly at the current sampling time should be adjusted to 10 + 20 = 30℃, the pH value should be adjusted to 1 + 5 = 6, and the reagent concentration should be adjusted to 30 - 5 = 25%.
[0085] S6 continues to execute S1-S5 until the preset production target of 7-AVCA is achieved.
[0086] Specifically, because the reaction process in the actual 7-AVCA production process may change (modify, add, or delete), the impurity tracking node needs to be reselected each time the 7-AVCA reaction process is continuously executed. In this embodiment of the invention, the preset production target for 7-AVCA is generally to achieve a target value for the total output of 7-AVCA.
[0087] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A highly efficient preparation process for 7-AVCA based on impurity tracking throughout the entire process, characterized in that, include: S1, Select multiple impurity tracking nodes in the 7-AVCA production process, and obtain the impurity status parameter data of each impurity tracking node at the current sampling time during the continuous execution of the 7-AVCA production process. S2, calculate the content observation vector of each impurity tracking node at the current sampling time based on the impurity state parameter data of each impurity tracking node at the current sampling time, and generate the impurity transfer matrix of each impurity tracking node at the current sampling time based on the content observation vector of each impurity tracking node at the current sampling time; S3, based on the impurity transfer matrix of each impurity tracking node at the current sampling time, calculate the competition coefficient between the main reaction and the side reaction in each reaction step at the current sampling time in the 7-AVCA production process, and calculate the real-time conversion rate of each reaction step at the current sampling time based on the competition coefficient between the main reaction and the side reaction in each reaction step. S4. Based on the impurity transfer matrix of each impurity tracking node at the current sampling time and the real-time conversion rate of each reaction process at the current sampling time, determine the abnormal source reaction process of the impurity peak at the current sampling time, and determine the source impurity tracking node at the current sampling time based on the abnormal source reaction process. S5. Based on the impurity transfer matrix of the source impurity tracking node at the current sampling time and the abnormal source reaction process, generate the control coefficient of the abnormal source reaction process at the current sampling time, and adjust the abnormal source reaction process at the current sampling time according to the control coefficient of the abnormal source reaction process at the current sampling time. S6 continues to execute S1-S5 until the preset production target of 7-AVCA is achieved.
2. The efficient preparation process of 7-AVCA based on impurity tracking throughout the entire process according to claim 1, characterized in that, S1 includes: S11 breaks down the 7-AVCA production process into a chain of processes consisting of multiple reaction steps; S12, Based on the process characteristics and product characteristics of each reaction step, select multiple impurity tracking nodes, wherein at least one impurity tracking node is selected for each reaction step; S13. Based on the process characteristics of the reaction process in which each impurity tracking node is located, collect the impurity state parameter data of each impurity tracking node at the current sampling time.
3. The efficient preparation process of 7-AVCA based on impurity tracking throughout the entire process according to claim 1, characterized in that, S2 includes: S21, obtain the liquid chromatography data of the impurity state parameter data of each impurity tracking node at the current sampling time, and determine the estimated content of each impurity at each impurity tracking node at the current sampling time based on the liquid chromatography. S22, the content observation vector of each impurity tracking node at the current sampling time is composed of the estimated content of all types of impurities at each impurity tracking node at the current sampling time; S23, concatenate the content observation vector of each impurity tracking node at the current sampling time with the other impurity state parameter data in its impurity state parameter data except for liquid chromatography, to obtain the impurity state vector of each impurity tracking node at the current sampling time. S24. Obtain the old impurity state vector of each impurity tracking node at the previous sampling time. Generate the impurity transition matrix of each impurity tracking node at the current sampling time based on the old impurity state vector of each impurity tracking node at the previous sampling time and the impurity state vector of each impurity tracking node at the current sampling time.
4. The efficient preparation process of 7-AVCA based on impurity tracking throughout the entire process according to claim 3, characterized in that, S21 includes: S211, Obtain the liquid chromatography data of the impurity state parameter data of each impurity tracking node at the current sampling time, divide the time axis of the liquid chromatography into multiple small windows to obtain multiple time windows, wherein the time axis is the time period from the start sampling time to the current sampling time for each impurity tracking node; S212, obtain the peak range of the signal peak value of each time window of each impurity tracking node, and take the peak range of the signal peak value greater than the preset peak value threshold as the valid peak; S213, calculate the peak area of each valid peak based on each valid peak of each impurity tracking node, and obtain multiple peak areas for each impurity tracking node; S214, compare the peak areas of multiple impurities at each impurity tracking node with the preset peak areas of multiple preset impurities in the preset impurity standard spectrum library to obtain the multiple impurities at each impurity tracking node at the current sampling time; S215, based on the peak area of each impurity at each impurity tracking node at the current sampling time and the preset correction coefficient of each impurity, calculate the estimated content of each impurity at each impurity tracking node at the current sampling time.
5. The efficient preparation process of 7-AVCA based on impurity tracking throughout the entire process according to claim 3, characterized in that, S24 includes: S241, obtain the old impurity state vector of each impurity tracking node at the previous sampling time, and determine the old estimated content of each impurity at each impurity tracking node at the previous sampling time based on the old impurity state vector of each impurity tracking node at the previous sampling time. S242, calculate the ratio of the estimated content of each impurity in the impurity state vector of each impurity tracking node at the current sampling time to the old estimated content of each impurity tracking node at the previous sampling time, and use it as the variation coefficient of each impurity at each impurity tracking node at the current sampling time. S243 assigns time weighting coefficients to each impurity tracking node at the previous sampling time and each impurity tracking node at the current sampling time; S244, Based on the variation coefficient of each impurity at each impurity tracking node at the current sampling time, and the time weight coefficients of each impurity tracking node at the previous sampling time and each impurity tracking node at the current sampling time, calculate the transfer coefficient of each impurity at each impurity tracking node at the current sampling time. S245 is the impurity transfer matrix of each impurity tracking node at the current sampling time, which is composed of the transfer coefficients of each impurity at each impurity tracking node at the current sampling time.
6. The efficient preparation process of 7-AVCA based on impurity tracking throughout the entire process according to claim 1, characterized in that, S3 includes: S31, based on the impurity transfer matrix of each impurity tracking node at the current sampling time, obtain the side reaction rate factor and main reaction rate factor of each reaction step in the 7-AVCA production process at the current sampling time; S32, calculate the ratio of the side reaction rate factor to the main reaction rate factor in each reaction step to obtain the competition coefficient between the main reaction and the side reaction in each reaction step at the current sampling time; S33, based on the content observation vector of the last impurity tracking node in the previous reaction step at the current sampling time, determine the reactant inlet content of each reaction step at the current sampling time, and based on the content observation vector of the last impurity tracking node in each reaction step at the current sampling time, determine the reactant outlet content of each reaction step at the current sampling time. S34. Calculate the real-time conversion rate of each reaction step at the current sampling time based on the reactant influent content, reactant effluent content, and the competition coefficient between the main reaction and the side reaction for each reaction step at the current sampling time.
7. The efficient preparation process of 7-AVCA based on impurity tracking throughout the process according to claim 6, characterized in that, S31 includes: S311, obtain all impurity tracking nodes corresponding to each reaction step in the 7-AVCA production process at the current sampling time, and concatenate the impurity transfer matrices of all impurity tracking nodes corresponding to each reaction step at the current sampling time according to the node order to obtain the impurity process matrix of each reaction step at the current sampling time. S312, calculate the sum of the off-diagonal elements of the impurity process matrix for each reaction process at the current sampling time, and obtain the side reaction rate factor for each reaction process at the current sampling time; S313, calculate the difference between 1 and each diagonal element of the impurity process matrix of each reaction process at the current sampling time, obtain the attenuation deviation of each diagonal element of the impurity process matrix of each reaction process, and calculate the sum of the attenuation deviations of all diagonal elements of the impurity process matrix of each reaction process to obtain the main reaction rate factor of each reaction process at the current sampling time.
8. The efficient preparation process of 7-AVCA based on impurity tracking throughout the process according to claim 1, characterized in that, S4 includes: S41, obtain the impurity process matrix of each reaction process at the current sampling time based on the impurity transfer matrix of each impurity tracking node at the current sampling time; S42, obtain the row vectors of various impurities directly related to the reactants in the impurity process matrix of each reaction process at the current sampling time, and calculate the impurity generation intensity of each reaction process at the current sampling time based on the row vectors of various impurities; S43, if the real-time conversion rate of any reaction process in the current sampling time and the previous multiple consecutive sampling times is continuously less than the preset conversion rate threshold and the real-time conversion rate of the previous reaction process of the aforementioned reaction process is greater than or equal to the preset conversion rate threshold, then it is determined that the aforementioned reaction process is abnormal at the current sampling time, and the aforementioned reaction process is regarded as an abnormal reaction process. S44. If the impurity generation intensity of the abnormal reaction process at the current sampling time is greater than the preset impurity intensity threshold and is larger than the previous reaction process, and the real-time conversion rate of the abnormal reaction process at the current sampling time and the previous consecutive sampling times continues to decrease, then it is determined that the source impurity tracking node of the impurity peak exists in the abnormal reaction process, and the abnormal reaction process is regarded as the abnormal source reaction process. The single-node impurity generation intensity of each impurity tracking node in the abnormal source reaction process is calculated, and the impurity tracking node with the highest single-node impurity generation intensity in the abnormal source reaction process is regarded as the source impurity tracking node of the impurity peak at the current sampling time. S45, if the impurity generation intensity of the abnormal reaction process at the current sampling time is less than or equal to the preset impurity intensity threshold, and the real-time conversion rate of the abnormal reaction process at multiple consecutive sampling times before the current sampling time continues to decrease, then it is determined that the source impurity tracking node of the impurity peak exists in the reaction process preceding the abnormal reaction process, and the reaction process preceding the abnormal reaction process is taken as the abnormal source reaction process, and the impurity tracking node with the highest single-node impurity generation intensity of the abnormal source reaction process is taken as the source impurity tracking node of the impurity peak at the current sampling time.
9. The efficient preparation process of 7-AVCA based on impurity tracking throughout the process according to claim 1, characterized in that, S5 includes: S51, calculate the single-node impurity generation intensity of the source impurity tracking node based on the impurity transfer matrix of the source impurity tracking node at the current sampling time, and calculate the difference between the single-node impurity generation intensity of the source impurity tracking node and the impurity generation intensity threshold as the impurity intensity error term. S52, calculate the difference between the real-time conversion rate of the abnormal source reaction process at the current sampling time and the historical normal real-time conversion rate of the abnormal source reaction process as the conversion rate error term; S53, constructs the control coefficient equation from the impurity intensity error term, conversion rate error term and preset PID function, and calculates the control coefficient corresponding to the abnormal source reaction process at the current sampling time based on the control coefficient equation; S54, adjust the abnormal source reaction process at the current sampling time according to the control coefficient of the abnormal source reaction process at the current sampling time.
