A method for evaluating quality of compound fenbendazole tablets based on convolutional neural network
By combining HPLC, PCA, and CNN techniques, a quality assessment method based on convolutional neural networks was constructed. This method solves the problems of insufficient detection sensitivity and poor reproducibility of traditional HPLC methods, and enables efficient and accurate identification and quantification of trace impurities in compound drugs, making it suitable for rapid and accurate detection of complex samples.
Patent Information
- Application Number
- CN202511413663.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-29
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2045-09-29
AI Technical Summary
Traditional HPLC methods lack sufficient sensitivity for detecting trace impurities in compound drugs, and their reliance on manual analysis leads to poor reproducibility, failing to meet the requirements for rapid and accurate quality control. Single PCA or CNN models also have limited ability to model nonlinear relationships.
Combining the high-resolution separation capability of HPLC, the dimensionality reduction efficiency of PCA, and the deep feature learning capability of CNN, a quality assessment method based on convolutional neural networks is constructed. Through a dynamic computational allocator and four heterogeneous task branches, intelligent identification and content quantification of trace impurities are achieved.
It achieves an accurate identification rate of ≥95% for trace impurities in compound drugs, with a content quantification RSD ≤2%, improving detection efficiency and result reproducibility. It also has self-optimization capabilities and strong generalization ability to adapt to complex samples.
Smart Images

Figure CN121306594B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of veterinary drug processing technology, specifically to a method for quality evaluation of compound fenbendazole tablets based on convolutional neural networks. Background Technology
[0002] Currently, the quality control of compound drugs mainly relies on high-performance liquid chromatography (HPLC) for component separation and quantification. However, traditional HPLC methods lack sufficient sensitivity for detecting trace impurities in complex matrices and require qualitative analysis using standards, making it difficult to handle interference from unknown impurities or co-elutants. Furthermore, manual interpretation of chromatograms is time-consuming and easily influenced by subjective experience, resulting in poor reproducibility and failing to meet the modern pharmaceutical industry's demand for rapid and accurate detection.
[0003] While Principal Component Analysis (PCA) can extract key features from chromatographic data through dimensionality reduction, it is only applicable to linearly separable problems and has limited ability to model nonlinear relationships (such as the interaction between impurities and principal components). Convolutional Neural Networks (CNNs), as a representative deep learning technique, can automatically learn deep features of data, but when used alone, they are susceptible to noise interference, leading to insufficient model generalization. Therefore, combining the high-resolution separation capability of HPLC, the dimensionality reduction efficiency of PCA, and the nonlinear fitting advantages of CNNs has become a key path to overcome the bottlenecks of traditional methods. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides a quality evaluation method for compound fenbendazole tablets based on convolutional neural networks. This method integrates the high-precision separation of HPLC, the efficient dimensionality reduction of PCA, and the deep feature learning capabilities of CNNs, achieving intelligent identification (accuracy ≥95%) and quantification (RSD ≤2%) of trace impurities in compound drugs, significantly improving detection efficiency and result reproducibility. It overcomes the technical bottlenecks of traditional HPLC methods, which rely on manual chromatogram analysis leading to long processing times and high subjectivity, as well as the limitations of single PCA or CNN models in modeling nonlinear relationships in complex matrices. This method meets the regulatory requirements of the pharmaceutical industry for rapid and accurate quality control.
[0005] To achieve the above objectives, the present invention provides the following technical solution: 1. A method for quality evaluation of compound fenbendazole tablets based on convolutional neural networks, comprising, characterized by, the following steps: S1. Dissolve the compound fenbendazole tablet powder to remove insoluble particles, and collect the filtrate as the sample to be tested. S2. The chromatogram dataset is obtained by performing high performance liquid chromatography on the sample to be tested. S3. Principal component analysis is used to process the chromatogram data to obtain the dimension-reduced feature vectors. S4. Construct a convolutional neural network model and use the dimensionality-reduced feature vectors as the input layer of the convolutional neural network. S5. Local feature capture is performed on the feature vector through convolutional layers to generate multi-channel feature maps, and the feature maps are downsampled through pooling layers to retain key features; S6. The pooled features are mapped to a high-dimensional space using a fully connected layer. Nonlinearity is introduced through the activation function to learn the complex relationship between the principal component content and chromatographic features, and output classification and regression tasks. S7. Divide the dataset into a training set, a validation set, and a test set in a ratio of 7:2:1, and construct loss functions for classification and regression tasks. S8. Perform cross-validation on the training set to evaluate the stability of the model, and set up hyperparameter tuning and early stopping mechanism; S9. The classification task outputs the impurity category, the regression task outputs the target component content, and generates a visualization report, including chromatogram overlay comparison, PCA dimensionality reduction scatter plot, and CNN prediction result heatmap.
[0006] Compared with the prior art, the technical solution of this application has the following beneficial effects: 1. This invention presents a quality evaluation method for compound fenbendazole tablets based on convolutional neural networks. It abandons fixed thresholds and dynamically binds secondary judgment thresholds to the labeled drug content and process fluctuation range. This inherent linear relationship endows the model with "product awareness," and its judgment criteria are scientific and self-optimizing. Therefore, it achieves results exceeding the expectations of traditional fixed-parameter models in terms of detection accuracy for complex situations such as abnormal content and process deviations.
[0007] 2. This method for quality evaluation of compound fenbendazole tablets based on convolutional neural networks, through a dynamic computational allocator (DCA) and four heterogeneous task branches, pioneers a computational paradigm of "rapid processing of high-quality data and in-depth analysis of difficult data." This not only significantly improves analysis efficiency, but more importantly, it ensures that limited computing power is precisely allocated to the most critical cases, resulting in a multiplier effect on the overall system's analytical performance (the decision value obtained per unit of computing resources) that exceeds that of simple acceleration.
[0008] 3. This invention deeply integrates chromatographic quality assessment based on physical meaning (primary judgment) with data-driven confidence assessment (secondary judgment), forming a self-purifying and self-optimizing closed-loop system. This design isolates noise at the source, strengthens nonlinear learning during the process, and ultimately outputs results with reliability assessment. Its generalization ability for complex and variable real-world samples far exceeds the expectations of simple superposition of single models, demonstrating significant industrial application value. Attached Figure Description
[0009] Figure 1 This is a schematic diagram of the overall process of the present invention; Figure 2 This is a diagram illustrating a single judgment process of the present invention; Figure 3 This is a diagram illustrating the secondary judgment process of the present invention. Detailed Implementation
[0010] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0011] Please see Figure 1-3 In this embodiment, 1. A method for quality evaluation of compound fenbendazole tablets based on convolutional neural networks, characterized by the following steps: S1. Sample pretreatment; Accurately weigh an appropriate amount of compound fenbendazole tablet powder (equivalent to 100 mg of fenbendazole) and place it in a stoppered conical flask. Add an appropriate amount of organic solvent (e.g., methanol:acetonitrile = 50:50, v / v), sonicate (300 W, 40 kHz) for 30 minutes, cool to room temperature, and then dilute to volume with the same solvent. Filter through a 0.22 μm microporous membrane, discard the initial filtrate, and use the subsequent filtrate as the HPLC sample. Simultaneously obtain batches of stable fenbendazole raw materials with extremely high purity (e.g., >99.5%), and prepare "ideal samples" in the laboratory to simulate tablet matrix (without interfering excipients) to construct a standard sample set.
[0012] S2: HPLC chromatographic data acquisition; Example of chromatographic conditions: Chromatographic column: C18 column (250 mm × 4.6 mm, 5 μm); Mobile phase: Phase A (0.1% formic acid aqueous solution), Phase B (acetonitrile); Gradient elution: 0-10 min, Phase B increases from 30% to 70%; 10-15 min, Phase B remains at 70%; 15-20 min, Phase B increases from 70% to 90%. Flow rate: 1.0 mL / min; Column temperature: 30℃; Detection wavelength: 220 nm (near the maximum absorption wavelength of fenbendazole); Injection volume: 10 μL.
[0013] Data output involves acquiring the chromatogram of each sample and discretizing it into a high-dimensional data point set. Each chromatogram can be represented as a vector. , where p is the number of time points, and xj is the absorbance value at the j-th time point. All samples constitute the original dataset. .
[0014] S3. Based on the drug properties, the chromatogram is used to perform a quality assessment using PCA. For each chromatogram Xi, calculate three key quality characteristics; Average signal-to-noise ratio (SNR): ; in It is the average response value of the main peak region. It is the standard deviation of the baseline noise region.
[0015] Calculate the purity of the main peak: ; Where AFi is the asymmetric factor. It is half the height of the peak. Statistics derived from high-quality standard samples, These are empirical parameters.
[0016] Calculate the degree of impurity interference: ; in This is the preset time period for impurity elution. This represents the average response of the blank baseline at that time point.
[0017] Construct a comprehensive quality scoring function: ; in As weight, and , This is the scale parameter.
[0018] Establish a judgment criterion and path allocation: Calculate the quality score threshold: ; in The mean and standard deviation of the Q values for the standard sample set.
[0019] Construct the judgment formula: ; Where A is a high-quality sample chromatogram, and B is a low-quality sample chromatogram that may contain noise or complex interactions.
[0020] Standard principal component analysis (PCA) was used to reduce the dimensionality of R, resulting in the dimensionality-reduced eigenvectors. ; Kernel principal component analysis (KPCA) was used to perform nonlinear dimensionality reduction on R. Using radial basis function kernels ; By solving the eigenvalue problem of the kernel matrix, nonlinear eigenvectors are obtained. ; Construct a confidence-aware two-branch CNN model; Input the feature vector from the previous step For path A samples, da is the number of principal components retained by PCA. dB is the number of principal components retained by KPCA; S4. Embed a dynamic computation allocator within the intermediate layers of the CNN model to process the feature vectors. Make preliminary predictions; S4.1 Input feature vector zi, perform preliminary feature learning on it to obtain shared feature map Fs; The first few layers are a shared feature extractor, consisting of several convolutional and pooling layers (e.g., two convolutional layers followed by ReLU and max pooling). These layers perform preliminary feature learning on all samples and output a shared feature map F.
[0021] S4.2 After the shared feature extractor, a lightweight regression prediction head is connected. This prediction head consists of a global average pooling layer and a fully connected layer. Its task is to quickly provide a preliminary prediction of the principal component content. ; Among them, the content of the main component is the core indicator for measuring drug quality. The greater the deviation of the content from the nominal value, the more likely it is that the process is unstable or degradation has occurred. The more complex the chemical environment behind the chromatogram, the more computational resources are required for the analysis. Setting the dynamic threshold: Set a dynamic threshold range based on the nominal content y. ; ; ; Where yn is the content of the main ingredient as indicated on the drug label. It is the standard deviation of the main component content of qualified standard products, representing the fluctuation range of normal processes; It is a scaling factor used to define the tolerance of the normal range.
[0022] S5. Based on the relationship between the preliminary predicted value and the dynamic threshold, the sample is assigned to at least four computing paths k with different computing capabilities. ; In the case where the main component content is normal and the chromatogram quality is high, calculation path A1 connects a fully connected layer to process the data. The computation path A2 has abnormal principal component content (too low or too high) but high chromatogram quality. It uses a feedforward layer with 128 neurons, followed by ReLU, then a Dropout layer (dropout rate 0.3), and finally a fully connected output layer.
[0023] The computation path B1 uses the SELU activation function instead of ReLU and employs Alpha Dropout to achieve robust self-normalization properties.
[0024] The computational path B2 uses two consecutive feedforward layers (128 neurons in the first layer and 64 neurons in the second layer), both using ReLU activation and Dropout (dropout rate 0.4), and finally connects to the output layer.
[0025] S6. Gradient cutoff technique is used to train the model. During training, the four task branches are activated alternately, and weighted sampling is used to ensure that each branch is fully trained. S7. Output a visualization report, including the predicted principal component content, the impurity distribution probability vector, and the path identifier.
[0026] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0027] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for quality evaluation of compound fenbendazole tablets based on convolutional neural networks, comprising, characterized in that, Includes the following steps: S1. Collect random-quality and high-quality compound fenbendazole tablet powders, and analyze them using HPLC to obtain a general sample set. and standard sample set ; S2, Collect a standard sample set The chromatogram of each sample is discretized to obtain a high-dimensional data point set. Each chromatogram is represented as a vector, resulting in a chromatogram dataset. ; S3, Calculate the chromatogram dataset The three key quality characteristics were analyzed, and a comprehensive quality scoring function was constructed based on the calculation results. and quality score threshold Construct the judgment condition R; The three key quality characteristics mentioned include average signal-to-noise ratio (SNR), main peak purity, and impurity interference. The judgment formula R is constructed as follows: ; Where A is a high-quality sample chromatogram, and B is a low-quality sample chromatogram that may contain noise or complex interactions; S4. Based on the judgment result of R, analyze the chromatogram dataset. Principal component dimensionality reduction is performed to obtain the feature vector. ; The principal component analysis in S4 includes standard principal component analysis and kernel principal component analysis; If R is determined to be A, then standard principal component analysis (PCA) is used to reduce the dimensionality of R, resulting in the dimensionality-reduced eigenvectors. ; If R is determined to be B, then kernel principal component analysis (KPCA) is used to perform nonlinear dimensionality reduction on R. Using radial basis function kernels By solving the eigenvalue problem of the kernel matrix, nonlinear eigenvectors are obtained. ; S5. Construct a CNN model and embed a dynamic computation allocator within the intermediate layers of the model to process the feature vectors. Preliminary forecasts were conducted to obtain predicted values. And based on the standard sample set To construct dynamic threshold intervals Path determination is performed on the preliminary forecast values; S6. Based on the dynamic threshold determination result, assign the sample to at least four computing paths k with different computing capabilities; The formula for determining the calculation path K in S6 is as follows: ; The calculation path If the main component content is normal and the chromatogram quality is high, connect a fully connected layer to process the data; Calculation path For cases where the main component content is abnormal but the chromatogram quality is high, a feedforward layer is used, followed by a ReLU and Dropout layer, and finally connected to the output fully connected layer. Calculation path Therefore, the SELU activation function is used to replace the path. ReLU in the model, and Alpha Dropout is used; Calculation path The method employs two consecutive feedforward layers, both using ReLU activation and Dropout, and finally connects them to the output layer. S7. Gradient cutoff technique is used to train the model. During training, the four task branches are activated alternately, and weighted sampling is used to ensure that each branch is fully trained. S8. Output a visualization report, including the predicted principal component content, the impurity distribution probability vector, and the path identifier.
2. A method for quality evaluation of compound fenbendazole tablets based on convolutional neural networks as described in claim 1, comprising, characterized in that, The formulas for calculating the average signal-to-noise ratio (SNR), main peak purity, and impurity interference in S3 are as follows: Average signal-to-noise ratio : ; in It is the average response value of the main peak region. It is the standard deviation of the baseline noise region; Calculate the purity of the main peak: ; in It is an asymmetric factor. It is half the height of the peak. Statistics derived from high-quality standard samples, These are empirical parameters; Calculate the degree of impurity interference: ; in This is the preset time period for impurity elution. This represents the average response of the blank baseline at that time point.
3. A method for quality evaluation of compound fenbendazole tablets based on convolutional neural networks as described in claim 1, comprising, characterized in that, The comprehensive quality scoring function in S3 The formula is as follows: ; in As weight, and , For scale parameters; Calculate the quality score threshold The formula is as follows: ; in The mean and standard deviation of the Q values for the standard sample set.
4. A method for quality evaluation of compound fenbendazole tablets based on convolutional neural networks as described in claim 1, comprising, characterized in that, The S5 process further includes the following sub-steps: S5.1 Input Feature Vector Preliminary feature learning is performed to obtain shared feature maps. ; S5.2, Shared Feature Map Regression prediction was performed to obtain preliminary predicted values of principal component content. : ; S5.3, Based on standard sample set The nominal content y is used to set the dynamic threshold range. : ; ; in It refers to the content of the main ingredient as indicated on the drug label. It is the standard deviation of the main component content of qualified standard products, representing the fluctuation range of normal processes; It is a scaling factor used to define the tolerance of the normal range.
Citation Information
Patent Citations
LIBS multi-component quantitative inversion method based on deep learning convolutional neural network
CN110705372A
Comprehensive evaluation method and system based on Huoxiang Zhengqi soft capsule finished product
CN120334169A
