A traditional Chinese medicine authenticity identification and detection method based on high performance liquid chromatography
By constructing a time-absorbance matrix and an orthogonal projection matrix to remove constant background peaks, three-dimensional feature vectors of trace active ingredients in traditional Chinese medicine are extracted. A dual-threshold decision model is used to determine the authenticity of traditional Chinese medicine, solving the problems of masking of trace active ingredients and interference from counterfeit products in traditional methods, and achieving efficient identification of the authenticity of traditional Chinese medicine.
Patent Information
- Application Number
- CN202611534480.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-30
- Publication Date
- 2026-11-20
AI Technical Summary
Traditional high-performance liquid chromatography (HPLC) methods are difficult to effectively detect trace active ingredients in traditional Chinese medicine compound formulas or complex extracts, and are easily affected by interference peaks from counterfeit products, leading to false negatives or false positives.
By acquiring raw spectral data from high-performance liquid chromatography at multiple characteristic wavelengths, a time-absorbance matrix was constructed to identify and remove constant background peaks, extract three-dimensional feature vectors of trace active ingredients, and use a dual-threshold dynamic decision model for classification and label determination.
It enables sensitive capture of trace active ingredients in traditional Chinese medicine and specific identification of counterfeit products, solving the problems of false negatives and false positives, and improving the scientificity and accuracy of identifying genuine and counterfeit traditional Chinese medicine.
Smart Images

Figure CN123136012A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of traditional Chinese medicine component analysis technology, and in particular relates to a method for identifying and detecting the authenticity of traditional Chinese medicine based on high performance liquid chromatography. Background Technology
[0002] With the development of quality control technology for traditional Chinese medicine, high-performance liquid chromatography fingerprinting technology has emerged, which can comprehensively reflect the types and relative content distribution of chemical components in traditional Chinese medicine. This technology can then be used for the identification of authenticity, evaluation of origin, and batch consistency analysis of traditional Chinese medicine.
[0003] In traditional techniques, high-performance liquid chromatography (HPLC) fingerprint chromatogram similarity evaluation is usually adopted under a single wavelength. The cosine of the angle between the sample chromatogram and the reference chromatogram or the correlation coefficient is calculated to determine whether the sample is qualified. Alternatively, a few known active ingredients are selected as indicator ingredients, and a comprehensive judgment is made by combining content determination with thin-layer chromatography identification.
[0004] However, the aforementioned high-performance liquid chromatography (HPLC) fingerprint similarity evaluation method has limitations when processing traditional Chinese medicine (TCM) compound formulas or complex extracts. Some trace active ingredients that play a crucial synergistic role in efficacy have extremely low concentrations, and their chromatographic peaks are often masked or submerged by the large main peaks of constant inactive ingredients with concentrations several orders of magnitude higher. This results in ineffective detection and a risk of "false negatives" in TCM quality assessment. In adulterated samples, the chemical components in the counterfeit product may produce chromatographic peaks with retention times and UV spectra similar to the target components of the genuine product, causing "false positives." That is, adulterated samples that should be deemed unqualified are mistakenly judged as qualified due to incorrect identification of interfering peaks. Increasing sensitivity to detect masked trace active ingredients will simultaneously amplify the detection rate of interfering peaks in counterfeit products; conversely, setting a high detection threshold to reduce false positives may completely lose detectable information about trace active ingredients. Summary of the Invention
[0005] Therefore, it is necessary to provide a high-performance liquid chromatography (HPLC)-based method for identifying genuine and counterfeit traditional Chinese medicine (TCM) that can simultaneously achieve sensitive capture of trace active ingredients and specific identification of counterfeit TCM.
[0006] Firstly, this application provides a method for identifying and detecting the authenticity of traditional Chinese medicine based on high-performance liquid chromatography, including:
[0007] The raw spectral data of the Chinese herbal medicine sample under test at multiple characteristic wavelengths were obtained, and the raw spectral data of the HPLC were converted into a time-absorbance matrix to obtain a multi-wavelength spectral data matrix.
[0008] Chromatographic peaks whose cumulative peak area ratio exceeds the area ratio threshold identified from the multi-wavelength spectral data matrix are identified as constant background peaks. Based on the multi-wavelength spectral data matrix, the retention time and spectral feature vector of each constant background peak are extracted to obtain the constant background peak feature matrix. Among them, the cumulative peak area ratio is the proportion of the cumulative peak area of each chromatographic peak to the total peak area of all chromatographic peaks.
[0009] An orthogonal projection matrix orthogonal to the constant background spectral feature space is constructed based on the constant background peak feature matrix. The contribution of constant background peaks in the multi-wavelength spectral data matrix is removed by the orthogonal projection matrix to obtain the chromatographic signal matrix of trace active ingredients.
[0010] The peak shape asymmetry factor, spectral third derivative eigenvector, and relative retention time drift factor of each chromatographic peak were extracted from the chromatographic signal matrix of trace active ingredients to obtain the three-dimensional eigenvector of each chromatographic peak. The difference between each three-dimensional eigenvector and the eigenvector of the reference was nonlinearly amplified to obtain the characteristic difference degree of each chromatographic peak.
[0011] The energy ratio of each chromatographic peak in the trace active ingredient chromatographic signal matrix relative to the corresponding constant background peak is calculated, and the feature difference degree and energy ratio are input into the dual-threshold dynamic decision model to obtain the classification label of each chromatographic peak. The dual-threshold dynamic decision model includes a low warning threshold and a high confidence threshold for the energy ratio, and a discrimination threshold for the feature difference degree. The classification labels include real target peaks and ghost peaks.
[0012] A comprehensive judgment result for the Chinese herbal medicine sample to be tested is generated based on the classification labels of each chromatographic peak; the comprehensive judgment result is one of the following: genuine product qualified, counterfeit product unqualified, or test invalid.
[0013] Secondly, this application also provides a device for identifying and detecting the authenticity of traditional Chinese medicine based on high-performance liquid chromatography, comprising:
[0014] The data processing module is used to acquire the raw high-performance liquid chromatography (HPLC) spectral data of the Chinese herbal medicine sample under test at multiple characteristic wavelengths, and convert the raw HPLC spectral data into a time-absorbance matrix to obtain a multi-wavelength spectral data matrix.
[0015] The constant background peak identification module is used to identify chromatographic peaks from the multi-wavelength spectral data matrix whose cumulative peak area ratio exceeds the area ratio threshold as constant background peaks. Based on the multi-wavelength spectral data matrix, the module extracts the retention time and spectral feature vector of each constant background peak to obtain the constant background peak feature matrix. The cumulative peak area ratio is the proportion of the cumulative peak area of each chromatographic peak to the total peak area of all chromatographic peaks.
[0016] The orthogonal projection separation module is used to construct an orthogonal projection matrix orthogonal to the constant background spectral feature space based on the constant background peak feature matrix, and remove the contribution of constant background peaks in the multi-wavelength spectral data matrix through the orthogonal projection matrix to obtain the chromatographic signal matrix of trace active ingredients;
[0017] The feature amplification module is used to extract the peak shape asymmetry factor, the spectral third derivative feature vector, and the relative retention time drift factor of each chromatographic peak from the chromatographic signal matrix of trace active ingredients, to obtain the three-dimensional feature vector of each chromatographic peak, and to perform nonlinear amplification processing on the difference between each three-dimensional feature vector and the reference feature vector to obtain the feature difference degree of each chromatographic peak.
[0018] The dual-threshold decision classification module is used to calculate the energy ratio of each chromatographic peak in the trace active ingredient chromatographic signal matrix relative to the corresponding constant background peak, and input the feature difference degree and energy ratio into the dual-threshold dynamic decision model to obtain the classification label of each chromatographic peak; wherein, the dual-threshold dynamic decision model includes a low warning threshold and a high confidence threshold for energy ratio, and a discrimination threshold for feature difference degree; the classification labels include true target peaks and ghost peaks;
[0019] The comprehensive judgment module is used to generate a comprehensive judgment result for the Chinese medicine sample to be tested based on the classification labels of each chromatographic peak; the comprehensive judgment result is one of the following: genuine product qualified, counterfeit product unqualified, and test invalid.
[0020] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement any of the steps of the above-mentioned method for identifying and detecting the authenticity of traditional Chinese medicine based on high-performance liquid chromatography.
[0021] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any of the above-mentioned methods for identifying and detecting the authenticity of traditional Chinese medicine based on high-performance liquid chromatography.
[0022] The aforementioned method for identifying and detecting the authenticity of traditional Chinese medicine (TCM) based on high-performance liquid chromatography (HPLC) acquires the raw HPLC spectral data of the TCM sample at multiple characteristic wavelengths and converts it into a time-absorbance matrix, thus completely preserving the chromatographic response information of the sample across the entire wavelength range. From the time-absorbance matrix, chromatographic peaks with a cumulative peak area exceeding a threshold are identified as constant background peaks, and their retention time and spectral feature vectors are extracted, accurately locating the feature space of high-abundance components causing signal masking. An orthogonal projection matrix orthogonal to the constant background spectral feature space is constructed, and the contribution of constant background peaks in the time-absorbance matrix is removed, directly eliminating the physical masking effect of constant background peaks, allowing the chromatographic signals of previously submerged trace active ingredients to become visible. The peak shape asymmetry factor of each chromatographic peak is extracted from the trace active ingredient chromatographic signal matrix. The chromatographic peaks, spectral third-order derivative eigenvectors, and relative retention time drift factors are combined to form a three-dimensional eigenvector. The differences between each three-dimensional eigenvector and the reference eigenvector are nonlinearly amplified to magnify the subtle differences between the real active ingredient and the interference peaks of counterfeit products in terms of peak shape, higher-order spectral features, and retention time drift to a distinguishable level. This avoids misjudgment when the energy ratio is too low and reliably classifies based on the degree of feature difference when the energy ratio is sufficient, obtaining clear labels for the real target peak or ghost peak. Finally, based on the classification labels of each chromatographic peak, a comprehensive judgment result is generated indicating that the genuine product is qualified, the counterfeit product is unqualified, or the detection is invalid. Thus, in the same detection process, the false negative problem caused by the masking of trace active ingredients by constant background peaks and the false positive problem caused by interference peaks of counterfeit products are solved simultaneously, achieving highly robust identification of genuine and counterfeit products in complex traditional Chinese medicine systems. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a flowchart illustrating the method for identifying and detecting the authenticity of traditional Chinese medicine based on high-performance liquid chromatography (HPLC) of the present invention.
[0025] Figure 2 This is a structural diagram of the traditional Chinese medicine authenticity identification and detection device based on high performance liquid chromatography of the present invention. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0027] In one embodiment, such as Figure 1 As shown, a method for identifying the authenticity of traditional Chinese medicine (TCM) based on high-performance liquid chromatography (HPLC) is provided. This embodiment illustrates the application of this method to a TCM authenticity identification and detection terminal. It is understood that this method can also be applied to a TCM authenticity identification and detection server, and can also be applied to a TCM authenticity identification and detection system that includes both a TCM authenticity identification and detection terminal and a TCM authenticity identification and detection server, and can be implemented through the interaction between the TCM authenticity identification and detection terminal and the TCM authenticity identification and detection server.
[0028] Optionally, for the Chinese herbal medicine (TCM) sample to be tested, accurately weigh an appropriate amount of the sample and place it in a stoppered conical flask. Add the extraction solvent determined in the pre-experiment optimization, and perform reflux extraction in a water bath or ultrasonic extraction for a set time. After extraction, replenish the weight loss, filter, and collect the filtrate to obtain the test solution of the TCM sample. The extraction solvent can be a methanol-water solution or an ethanol solution with a certain volume fraction. For the reference material of the TCM sample to be tested, take the genuine reference herb or standard extract and prepare the reference solution using the same treatment method as the test sample. Simultaneously, if the type of counterfeit is known, such as a counterfeit product adulterated with a specific herb, a reference solution of that counterfeit type can be prepared as a negative control as needed.
[0029] In this embodiment, the method includes the following steps:
[0030] S101. Obtain the raw spectral data of the Chinese herbal medicine sample under multiple characteristic wavelengths by high performance liquid chromatography, and convert the raw spectral data of high performance liquid chromatography into the form of time-absorbance matrix to obtain a multi-wavelength spectral data matrix.
[0031] In a schematic representation, the traditional Chinese medicine (TCM) authenticity identification and detection terminal can be connected to a high-performance liquid chromatography (HPLC) device equipped with a diode array detector. The HPLC device acquires raw HPLC spectral data of the TCM sample at multiple characteristic wavelengths. Optionally, the wavelength acquisition range of the diode array detector equipped with the HPLC instrument can be set from 200 nm to 400 nm, covering the ultraviolet characteristic absorption bands of various active ingredients in TCM. During acquisition, equal wavelength intervals can be maintained, with the wavelength interval set from 1 nm to 5 nm, and the sampling frequency set from 5 Hz to 100 Hz to ensure the continuity and integrity of the chromatographic signal. Preferably, the HPLC instrument can use a reversed-phase C18 column for separation, and the mobile phase system can use acetonitrile-water as a binary gradient elution system.
[0032] Furthermore, the traditional Chinese medicine authenticity identification and testing terminal can organize the collected raw high-performance liquid chromatography (HPLC) spectral data according to two dimensions: sampling time point and wavelength channel, forming a two-dimensional data table. Each row of the two-dimensional data table corresponds to a sampling time point, and each column corresponds to a characteristic wavelength channel. Each element in the two-dimensional data table is the absorbance value at that sampling time point under that characteristic wavelength channel. This two-dimensional data table is in the form of a time-absorbance matrix, denoted as a multi-wavelength spectral data matrix. In the formula, This represents the total number of data collection points for chromatographic detection. The number of characteristic wavelength channels represents the number of independent spectral acquisition wavelengths selected for detection.
[0033] For example, when the sampling frequency is 5 Hz and the analysis time is 60 minutes, the total number of time acquisition points for chromatographic detection is approximately 18,000.
[0034] S102. Each chromatographic peak whose cumulative peak area ratio exceeds the area ratio threshold is identified from the multi-wavelength spectral data matrix as a constant background peak. Based on the multi-wavelength spectral data matrix, the retention time and spectral feature vector of each constant background peak are extracted to obtain the constant background peak feature matrix. Among them, the cumulative peak area ratio is the proportion of the cumulative peak area of each chromatographic peak to the total peak area of all chromatographic peaks.
[0035] Furthermore, the TCM authenticity identification and detection terminal can perform baseline correction and noise smoothing preprocessing on the multi-wavelength spectral data matrix. It can then perform full-domain chromatographic peak identification on the preprocessed multi-wavelength spectral data matrix. Specifically, the terminal can locate chromatographic peaks using a first-derivative or second-derivative zero-crossing algorithm. Specifically, it can identify all chromatographic peaks with a signal-to-noise ratio (SNR) greater than a preset SNR threshold, which can be 3. For each identified chromatographic peak, the terminal can calculate its peak area, i.e., the integral value of that peak on the retention time axis, and sum them to obtain the total peak area. Furthermore, the terminal can sort all identified chromatographic peaks from largest to smallest peak area, and after calculating the proportion of each peak area to the total peak area, it can continuously accumulate the proportion of each peak's peak area to obtain the cumulative peak area percentage. Optionally, the TCM authenticity identification and testing terminal can set an area percentage threshold. This threshold can be set based on the signal distribution characteristics of the TCM chromatogram to accurately screen for high-abundance components that dominate the absolute signal in high-performance liquid chromatography (HPLC). The area percentage threshold can be set from 70% to 90%. When the cumulative peak area percentage exceeds the threshold, the terminal can mark each chromatographic peak participating in the continuous accumulation as a constant background peak. For each constant background peak, the terminal can extract its retention time (i.e., the elution time corresponding to the highest point of the constant background peak) and the spectral feature vector extracted from the multi-wavelength spectral data matrix at that retention time point. The spectral feature vector is a multi-dimensional vector, with its dimension equal to the number of characteristic wavelengths. Each component represents the absorbance value of the constant background peak at the corresponding wavelength. The terminal can arrange the spectral feature vectors of all constant background peaks column-wise to form a constant background peak feature matrix.
[0036] S103. Construct an orthogonal projection matrix that is orthogonal to the constant background spectral feature space based on the constant background peak feature matrix, and remove the contribution of constant background peaks in the multi-wavelength spectral data matrix through the orthogonal projection matrix to obtain the chromatographic signal matrix of trace active ingredients.
[0037] Specifically, the traditional Chinese medicine (TCM) authenticity identification and testing terminal can rely on the constructed constant background peak feature matrix to perform feature space modeling operations, constructing an orthogonal projection matrix that is completely orthogonal to the constant background spectral feature space. The construction of the orthogonal projection matrix can be achieved through various linear algebraic operations such as matrix decomposition and spatial orthogonal transformation. The core operational logic of the orthogonal projection matrix is to strip away the spectral space basis of constant background components and construct an independent orthogonal signal subspace. The orthogonal projection matrix possesses complete linear transformation properties, enabling signal decoupling processing of multi-wavelength spectral data matrices. It can completely remove all signal contributions belonging to constant background peaks in the multi-wavelength spectral data matrix at the mathematical space level. The TCM authenticity identification and testing terminal can perform global signal transformation processing on the complete multi-wavelength spectral data matrix using the orthogonal projection matrix, eliminating signal masking interference caused by high-abundance constant components, retaining the effective signals of low-abundance trace components masked by the main peak, and finally reconstructing a pure trace active ingredient chromatographic signal matrix. Orthogonal projection matrix processing can completely separate background interference from target trace signals in the signal space dimension. It can be adapted to the signal processing scenarios of all complex chromatographic systems of traditional Chinese medicine. It can effectively solve the problem that trace active ingredient signals are masked by constant background peaks in routine detection. Moreover, the entire process is based on the original spectral data and does not require secondary enrichment preprocessing of the sample, thus ensuring the originality and integrity of the signal.
[0038] S104. Extract the peak shape asymmetry factor, spectral third derivative eigenvector, and relative retention time drift factor of each chromatographic peak from the trace active ingredient chromatographic signal matrix to obtain the three-dimensional eigenvector of each chromatographic peak. Then, perform nonlinear amplification processing on the difference between each three-dimensional eigenvector and the reference eigenvector to obtain the characteristic difference degree of each chromatographic peak.
[0039] Optionally, the TCM authenticity identification and testing terminal can perform secondary identification of the full-domain chromatographic peaks in the chromatographic signal matrix of trace active ingredients, thereby identifying all chromatographic peaks representing effective trace amounts, and extracting three feature parameters for each chromatographic peak to form a three-dimensional feature vector. Among them, the peak shape asymmetry factor is the ratio of the width of the left half of the chromatographic peak to the width of the right half of the peak. The peak shape asymmetry factor is a dimensionless feature parameter. Under ideal conditions, the chromatographic peak of a single component of genuine products follows a Gaussian symmetric distribution law, and the calculated value of the peak shape asymmetry factor approaches 1 infinitely. However, ghost peaks, co-elution interference peaks, and trace doping distortion peaks of counterfeit products will destroy the peak shape symmetry structure due to signal superposition, causing the peak shape asymmetry factor value to deviate significantly from the standard value range. The spectral third derivative eigenvector is obtained by performing a third derivative operation on the UV spectral vector acquired at the chromatographic peak apex. This eigenvector characterizes the dynamic change in the rate of curvature change of the UV spectral curve, thus amplifying the differences in subtle spectral fluctuations among components with different chemical structures. This solves the problem of identifying highly overlapping spectral curves of structurally similar isomers and counterfeit components. The relative retention time drift factor reflects the degree of relative shift in retention time caused by matrix effects or differences in component structure. It can be used to completely eliminate interference from absolute retention time fluctuations caused by column temperature, mobile phase flow rate, and instrument system deviations, retaining only the essential differences in the chromatographic retention behavior of the sample components themselves.
[0040] Furthermore, the reference feature vector is the ideal feature vector corresponding to the reference, which is the measured feature of the target component in a known genuine medicinal material or standard reference extract. The terminal for identifying and detecting the authenticity of traditional Chinese medicine can calculate the difference vector between the three-dimensional feature vector of the chromatographic peak to be tested and the ideal feature vector. This difference can be amplified using a nonlinear amplification function, which can be a hyperbolic tangent function or a sigmoid function. The characteristic of a nonlinear amplification function is that it amplifies approximately linearly when the difference is small, but enters a saturation region after the difference exceeds a certain scale parameter, thus amplifying small differences without excessively amplifying noise. The scalar value obtained after amplification is the characteristic difference degree of the chromatographic peak. The larger the characteristic difference degree value, the farther the analyte peak deviates from the reference feature vector.
[0041] S105. Calculate the energy ratio of each chromatographic peak in the trace active ingredient chromatographic signal matrix relative to the corresponding constant background peak, and input the feature difference degree and energy ratio into the dual-threshold dynamic decision model to obtain the classification label of each chromatographic peak; wherein, the dual-threshold dynamic decision model includes a low warning threshold and a high confidence threshold for the energy ratio, and a discrimination threshold for the feature difference degree; the classification labels include real target peaks and ghost peaks.
[0042] Specifically, for the chromatographic peak to be evaluated, the traditional Chinese medicine authenticity identification and detection terminal can take its integrated peak area. Meanwhile, in the local region near the retention time of this chromatographic peak, the traditional Chinese medicine authenticity identification and detection terminal can extract the background integral area of constant background peaks. The background integral area can be obtained by integrating the baseline of this local region. The formula for calculating the energy ratio is: The energy ratio, which is between 0 and 1, can accurately characterize the relative contribution of trace target signals to local background signals, and intuitively reflect the effective intensity and signal-to-noise ratio of the signal. The smaller the energy ratio, the weaker the chromatographic peak is relative to the background and the more likely it is to be masked. The larger the energy ratio, the more significant the peak is.
[0043] Optionally, the dual-threshold dynamic decision model can include three threshold parameters, namely, a low warning threshold for the adaptive energy ratio. and high confidence threshold And the threshold for discriminating the difference in adaptation features. Among them, low warning threshold This is used to distinguish whether a signal is too weak to be reliable, and can be set between 0.05 and 0.15; high confidence threshold. The threshold used to determine whether the signal strength is sufficient for a high-confidence judgment can be set between 0.3 and 0.5; The threshold used to determine whether the characteristic difference exceeds an acceptable range can be determined through the statistical distribution of a large number of genuine samples, such as taking 2 to 3 times the standard deviation of the mean characteristic difference of genuine samples. The terminal for identifying genuine and counterfeit traditional Chinese medicine can detect the characteristic difference... and energy ratio The data is input into a dual-threshold dynamic decision-making model. Relying on the model's built-in hierarchical decision logic, each trace chromatographic peak is assessed for its attributes, ultimately outputting a corresponding classification label. The classification label can include two categories: genuine target peaks and phantom peaks. Phantom peaks refer to chromatographic peaks produced in high-performance liquid chromatography (HPLC) by chemical components not present in the adulterated sample. These peaks are highly similar to the target active ingredient peaks in retention time windows, UV absorption wavelengths, and even some peak shape indicators, thus interfering with the identification results. The classification label can accurately distinguish between the chromatographic peaks of the genuine active ingredient and the interfering phantom peaks of the adulterated sample. Through the dual-parameter joint judgment mode of the dual-threshold dynamic decision-making model, it avoids the false positive and false negative errors caused by single-parameter judgment, significantly improving the stability and accuracy of chromatographic peak classification and identification.
[0044] S106. Generate a comprehensive judgment result for the Chinese medicine sample to be tested based on the classification labels of each chromatographic peak; the comprehensive judgment result is one of the following: genuine product qualified, counterfeit product unqualified, or test invalid.
[0045] For example, a traditional Chinese medicine (TCM) authenticity identification and testing terminal can generate a comprehensive judgment result for the TCM sample to be tested based on the classification labels of each chromatographic peak within the retention time window corresponding to all target active ingredients. The target active ingredient refers to a chemical component with identification significance that should be detected according to pharmacopoeia standards or enterprise internal control standards. Each target active ingredient can correspond to a predetermined retention time window, the width of which can be 2 to 3 times the half-peak width of the reference peak of the target active ingredient. The TCM authenticity identification and testing terminal can traverse the retention time window of each target active ingredient, checking whether there is a chromatographic peak and its classification label within the retention time window. Optionally, if all chromatographic peaks within the retention time are marked as genuine target peaks and no phantom peaks are detected, the comprehensive judgment result can be considered as genuine and qualified. If a chromatographic peak marked as a phantom peak exists within any retention time window, the comprehensive judgment result can be considered as counterfeit and unqualified. If the signal intensity of the chromatographic peaks within all retention time windows is extremely low and cannot be reliably determined, the comprehensive judgment result can be considered as invalid detection. Invalid detection is used to indicate the need to re-optimize sample pretreatment or chromatographic conditions and then re-detect. Optionally, the TCM authenticity identification and testing terminal can output a test report, which may include sample information, testing conditions, determination results of each target active ingredient, and comprehensive conclusions.
[0046] In the aforementioned method for identifying and detecting the authenticity of traditional Chinese medicine based on high-performance liquid chromatography (HPLC), raw HPLC spectral data of the sample under multiple characteristic wavelengths are collected and converted into a multi-wavelength spectral data matrix. Constant background peaks with a cumulative peak area ratio meeting the standard are screened out, and their corresponding feature information is extracted to construct a constant background peak feature matrix. Based on this constant background peak feature matrix, an orthogonal projection matrix is constructed, and orthogonal projection operations are used to eliminate the contribution of constant background signals in the multi-wavelength spectral data matrix, resulting in a trace active ingredient chromatographic signal matrix free from background signal masking. Multi-dimensional core features of the chromatographic peaks are extracted from the trace active ingredient chromatographic signal matrix and integrated into a three-dimensional feature vector. The feature differences between the tested chromatographic peaks and the genuine reference material are amplified through nonlinear amplification. The system quantifies the characteristic difference degree and simultaneously calculates the energy ratio of each chromatographic peak relative to the constant background signal. It then inputs dual-dimensional core parameters into a dual-threshold dynamic decision model integrating multi-layer discrimination thresholds to classify and label the true target peaks and ghost peaks. Finally, it combines the classification labels of all chromatographic peaks to comprehensively determine the authenticity of the tested traditional Chinese medicine sample. This effectively solves the contradiction in traditional high-performance liquid chromatography identification of traditional Chinese medicine where trace active ingredient signals are easily masked and interference peaks from counterfeit products easily lead to misjudgments. It overcomes the technical limitations of traditional detection modes, which focus on heavy component concentration and subtle microscopic features. It can simultaneously achieve accurate extraction of weak effective signals and effective identification of interference signals from counterfeit products, balancing the risks of false negatives and false positives in the detection process and significantly improving the scientific accuracy and precision of traditional Chinese medicine authenticity identification.
[0047] In one embodiment, an orthogonal projection matrix orthogonal to the constant background spectral feature space is constructed based on the constant background peak feature matrix, and the contribution of constant background peaks in the multi-wavelength spectral data matrix is removed by the orthogonal projection matrix to obtain the trace active ingredient chromatographic signal matrix, including:
[0048] S21. Perform singular value decomposition on the constant background peak feature matrix to obtain the column space matrix spanned by the spectral feature vectors, and construct the orthogonal projection matrix based on the column space matrix.
[0049] Optionally, the expression for the orthogonal projection matrix is:
[0050] ;
[0051] In the formula, For column space matrices, It is the identity matrix. It is an orthogonal projection matrix.
[0052] Schematic illustration: Since the column vectors of the constant background peak feature matrix represent the spectral characteristics of each constant background peak, the traditional Chinese medicine authenticity identification and testing terminal can use singular value decomposition (SVD) to remove zero-value features and noise pseudo-features from the constant background peak feature matrix, extracting all effective spectral feature vectors with true spectral physical meaning. These effective spectral feature vectors then span the complete column space matrix corresponding to the constant background spectrum. Specifically, the traditional Chinese medicine authenticity identification and testing terminal can use singular value decomposition to extract the column space matrix of the constant background peak feature matrix. Decomposed into In the form of, The number of characteristic wavelengths, The number of constant background peaks. This is for An orthogonal matrix whose column vectors are left singular vectors, used to span... The column space; for A diagonal matrix, where the diagonal elements are singular values, and the elements are arranged in descending order of singular values; for An orthogonal matrix whose column vectors are right singular vectors.
[0053] Furthermore, the traditional Chinese medicine authenticity identification and testing terminal extracts the left singular vector from the singular value decomposition results. The column is used to obtain a column vector. The rank of the eigenvalue matrix of constant background peaks can be equal to the number of constant background peaks. Column vectors form a column space matrix Column space matrix The dimension is Each column of this matrix is a set of orthogonal basis vectors in the constant background spectral feature space. Based on the column space matrix... The terminal for identifying and testing the authenticity of traditional Chinese medicine can construct an orthogonal projection matrix. The orthogonal projection matrix satisfies and That is, it possesses idempotency and symmetry. This is used to achieve a linear mapping from the original spectral space to the background orthogonal subspace, and its expression is: In the formula, yes The identity matrix, Diagonal elements are 1, and off-diagonal elements are 0. A reference coordinate system is used to anchor linear transformations to ensure the stability of spatial transformations; It is a column space matrix The transpose of the matrix, with dimension , Spectral substrate features used to fully represent all constant background peaks; yes The square array, due to The column vectors of the matrix are linearly independent, and the matrix is invertible. It is its inverse matrix. This is used to eliminate the linear coupling correlation between feature vectors, so as to ensure the uniqueness and accuracy of the orthogonal projection operation results; It is a nematic space matrix The projection matrix on the column space.
[0054] S22. Multiply the orthogonal projection matrix by the multi-wavelength spectral data matrix to obtain the residual matrix.
[0055] For example, left multiplication is represented as ,in, This is the residual matrix, which also has dimensions of 1. , This is a multi-wavelength spectral data matrix. For each time acquisition point in the multi-wavelength spectral data matrix, the spectral vector at that time acquisition point is projected onto the orthogonal complement space of the constant background spectral feature space, thereby subtracting its component in the constant background feature subspace from the original multi-wavelength spectral vector. Specifically, the multi-wavelength spectral data matrix can be decomposed into two parts: one part lies within the constant background feature subspace, composed of a linear combination of the spectra of each constant background peak; the other part lies within the orthogonal complement space of this constant background feature subspace, including the spectral contributions of trace active ingredients and noise. Orthogonal projection matrix Its function is to utilize the perpendicularity of orthogonal space to project all signal components in the multi-wavelength spectral data matrix that coincide with the constant background spectral feature space to zero, completely stripping away the spectral response signals corresponding to high-abundance constant background components, leaving only the residual signals that cannot be characterized by the background space, i.e., the residual matrix. The signals mainly originate from trace active ingredients and residual noise that cannot be explained by constant background peaks. Because the spectral contribution of constant background peaks is removed, the chromatographic signals of trace components that were originally masked by the large main peak are revealed.
[0056] S23. Perform orthogonal inverse projection reconstruction on the residual matrix and retain the signal components extracted in the orthogonal direction to obtain the chromatographic signal matrix of trace active ingredients.
[0057] Furthermore, since the signal in the residual matrix is distributed across all directions in the orthogonal complement space, many of which may primarily contain noise, the signal-to-noise ratio is low when used directly. To extract meaningful trace active ingredient signals, the traditional Chinese medicine authenticity identification and detection terminal can perform orthogonal inverse projection reconstruction processing on the residual matrix using least squares fitting reconstruction algorithms, QR decomposition, etc. For example, the residual matrix... Singular value decomposition (SVD) is performed to obtain the left singular vector, singular values, and right singular vector. The directions of the left singular vectors corresponding to the k largest singular values are retained. The selection of k can be based on the cumulative contribution rate or a noise level threshold; for example, left singular vector directions where the sum of singular values accounts for more than 95% of the total sum of singular values are retained. The retained left singular vector directions represent the subspace in the residual matrix where the signal energy is most concentrated, corresponding to the main spectral characteristics of the trace active ingredients. Optionally, the traditional Chinese medicine authenticity identification and detection terminal can project the residual matrix onto these retained left singular vector directions; that is, the expression for calculating the projected signal matrix can be... ,in, yes The left singular vector matrix is obtained. An inverse transformation is performed on this projected signal matrix to reconstruct the chromatographic signal matrix of the trace active ingredient, with dimensions of... ,in, To retain the number of characteristic wave directions, This represents the number of time-based acquisition points. Each row of the trace active ingredient chromatographic signal matrix corresponds to a reconstructed chromatographic channel. The baseline of this channel has been corrected, interference from constant background peaks has been eliminated, and the chromatographic peaks of trace active ingredients are clearly visible.
[0058] In one embodiment, the peak shape asymmetry factor, the spectral third derivative eigenvector, and the relative retention time drift factor of each chromatographic peak are extracted from the trace active ingredient chromatographic signal matrix to obtain the three-dimensional feature vector of each chromatographic peak. The difference between each three-dimensional feature vector and the reference feature vector is then nonlinearly amplified to obtain the characteristic difference degree of each chromatographic peak, including:
[0059] S31. Calculate the ratio of the left half peak width to the right half peak width of each chromatographic peak to obtain the peak shape asymmetry factor of each chromatographic peak.
[0060] Specifically, the traditional Chinese medicine (TCM) authenticity identification and detection terminal can use a baseline calibration algorithm to lock the baseline start and end coordinates and peak extreme coordinates of a chromatographic peak, and calculate the left and right half-peak width parameters of the chromatographic peak respectively. The left half-peak width refers to the time difference between the retention time corresponding to the starting position of the baseline and the retention time at the peak, while the right half-peak width refers to the retention time difference between the retention time at the peak and the retention time corresponding to the ending position of the baseline. For example, the TCM authenticity identification and detection terminal can determine the start and end points of the chromatographic peak to obtain the baseline start and end coordinates. The start point can be the position where the signal intensity continuously rises from the baseline and exceeds three times the noise threshold, and the end point can be the position where the signal intensity falls back to the same noise threshold after decreasing. The TCM authenticity identification and detection terminal can draw a horizontal line parallel to the baseline at half the height of the peak extreme coordinate. This horizontal line intersects the left and right contours of the chromatographic peak to obtain two intersection points. The time distance between the left intersection point and the peak extreme coordinate is the left half-peak width. The time distance between the intersection point on the right and the extreme coordinates of the peak is defined as the width of the right half of the peak. Peak shape asymmetry factor This is the ratio of the width of the left half peak to the width of the right half peak, expressed as: For an ideal, perfectly symmetrical Gaussian peak, the widths of the left and right halves are equal, and the peak angle factor (FAF) equals 1. When a peak exhibits a leading tail, the width of the left peak is greater than that of the right peak, and the FAF is greater than 1; when a peak exhibits a trailing tail, the width of the left peak is less than that of the right peak, and the FAF is less than 1.
[0061] S32. Calculate the third derivative of the UV spectral vector of each chromatographic peak and normalize the third derivative to obtain the spectral third derivative eigenvector.
[0062] Optionally, the ultraviolet (UV) spectral vector can be an ordered absorbance value array corresponding to the entire detection band from 200 nm to 400 nm. All absorbance values within the ordered absorbance value array are dimensionless optical parameters, following the Lambert-Beer law optical response standard. The UV spectral vector can be extracted from the trace active ingredient chromatographic signal matrix. The value of this UV spectral vector is taken at the time index corresponding to the highest point of the chromatographic peak, and its dimension is equal to the number of characteristic wavelengths. Each component of the UV spectral vector represents the absorbance value of the chromatographic peak at that characteristic wavelength. For example, the UV spectral vector is... Its independent variable is the characteristic wavelength. The dependent variable is absorbance. The third derivative of the ultraviolet spectral vector It reflects the rate of curvature change of the absorbance curve with wavelength, and can amplify subtle features such as shoulder peaks and inflection points in the spectral curve.
[0063] Optionally, the traditional Chinese medicine (TCM) authenticity identification and detection terminal can calculate the third derivative using either the five-point cubic smoothing method or the Savitzky-Golay convolution method. For example, the terminal can use the Savitzky-Golay convolution method to suppress noise amplification through local polynomial fitting. Specifically, the terminal can select a window width of 7 to 15 wavelength points and a polynomial order, and obtain the convolution coefficients of the corresponding first, second, and third derivatives from the Savitzky-Golay coefficient table. For each internal point in the ultraviolet spectral vector, the third derivative value of that internal point is obtained by dot product of its neighborhood data and the pre-calculated convolution coefficients. Subsequently, the traditional Chinese medicine authenticity identification and testing terminal can perform vector normalization processing on it to obtain the spectral third derivative eigenvector SDF. The normalization method can be... ,in, for The Euclidean norm is the square root of the sum of the squares of the components. Normalization aims to eliminate spectral amplitude variations caused by differences in chromatographic peak concentrations, ensuring that the same component at different concentrations has the same spectral third derivative eigenvector, thereby improving the consistency of identification.
[0064] S33. Calculate the dimensionless drift of the retention time of each chromatographic peak relative to the retention time of the characteristic peak of the reference, and obtain the relative retention time drift factor.
[0065] Optionally, the expression for the relative retention time drift factor is:
[0066] ;
[0067] In the formula, The relative retention time drift factor, Retention time of the chromatographic peak. Retention time of the characteristic peak of the reference object. The half-peak width of the characteristic peak of the reference object;
[0068] For example, retention time and half-width at half-maximum (HWHM) can be measured in minutes, and the relative retention time drift factor is dimensionless. When the retention time of the analyte peak shifts relative to the reference peak, the HWHM of the reference peak is used as a normalized scale to measure the relative magnitude of the shift, i.e., the relative retention time drift factor. If the shift is less than one HWHM, it can be considered within an acceptable range; if the shift exceeds two HWHMs, it is very likely that the peak corresponds to a different chemical component. The reference peak is usually the chromatographic peak of the target active ingredient in genuine medicinal materials or standard extracts, and its retention time... and half-peak width It can be obtained by averaging multiple repeated injections. The closer the relative retention time drift factor is to 0, the higher the consistency of the retention characteristics of the chromatographic peak with the characteristic peak of the authentic reference. The larger the value of the drift factor, the more significant the difference in component properties.
[0069] S34. Based on the peak shape asymmetry factor, the spectral third derivative eigenvector, and the relative retention time drift factor, a three-dimensional eigenvector is constructed.
[0070] Furthermore, the terminal for identifying and detecting the authenticity of traditional Chinese medicine can combine the peak asymmetry factor (FAF), the spectral third derivative eigenvector (SDF), and the relative retention time drift factor (RRTF) into a three-dimensional feature vector. ,in, The dimension of the SDF is the number of feature wavelengths. When constructing this three-dimensional feature vector, the traditional Chinese medicine authenticity identification and detection terminal can perform dimensional alignment and numerical range normalization on each component. Normalization can be achieved by Z-score standardization, which involves subtracting the statistical mean from each feature component and then dividing by the standard deviation, so that the numerical ranges of each component are roughly equivalent. The mean and standard deviation used for normalization can be obtained from the statistics of a large number of genuine samples.
[0071] S35. Based on the reference object feature vector, the three-dimensional feature vector is amplified by a nonlinear amplification function to obtain the amplified feature vector, and the feature distance between the amplified feature vector and the reference object feature vector is calculated to obtain the feature difference degree.
[0072] Alternatively, the expression for the nonlinear amplification function is:
[0073] ;
[0074] In the formula, To amplify the feature vector, It is a three-dimensional feature vector. For the reference object feature vector, It is the hyperbolic tangent function. For scale parameters, This is the amplification gain factor.
[0075] Specifically, the terminal for identifying and detecting the authenticity of traditional Chinese medicine can calculate the difference vector. And the magnitude of the difference vector That is, the square root of the sum of the squares of the components. It is the unit direction vector of the difference vector, which preserves the directional information of the difference; hyperbolic tangent function. The input is The output range is between -1 and 1. It possesses the inherent functional characteristics of linear amplification of small differences and saturation suppression of large differences, enabling precise amplification of subtle microscopic differences while avoiding excessive noise amplification. That is, when the input is small... It exhibits linear amplification; when the input is large... Approaching 1 indicates saturation; scale parameter Control the boundary point between the linear region and the saturation region. The value of can be determined based on the statistical distribution of the difference vector, and can be set between 0.1 and 0.5, so that the vast majority of genuine samples... Falling Within, while counterfeit samples Significantly greater than Amplification gain factor It can be a constant greater than 1, used to boost the amplified signal to a comparable numerical range, thus controllably improving the resolution for recognizing minute differences. It can be set to 10 or 100. This value is calculated by the traditional Chinese medicine authenticity identification and detection terminal. That is, to amplify the feature vector, its direction is... The same applies, but the modulus undergoes nonlinear transformation and gain amplification. Furthermore, the traditional Chinese medicine authenticity identification and detection terminal can calculate the characteristic distance between this amplified feature vector and the reference object's feature vector. .because This is already the result of nonlinear amplification and gain processing of the difference, therefore The value can sensitively reflect subtle differences between the characteristics of the chromatographic peak being measured and those of the reference. This characteristic distance... This is the characteristic difference degree. The larger the value, the greater the difference between the peak to be tested and the genuine reference, and the more likely it is to be a ghost peak; the smaller the value, the closer it is to the true target peak.
[0076] In one embodiment, the energy ratio of each chromatographic peak in the trace active ingredient chromatographic signal matrix relative to the corresponding constant background peak is calculated, and the characteristic difference and energy ratio are input into a dual-threshold dynamic decision model to obtain the classification label of each chromatographic peak, including:
[0077] S41. Calculate the integrated peak area of each chromatographic peak, and calculate the energy ratio based on the integrated peak area and the local background integrated area of the corresponding constant background peak. The local background integrated area is the integrated peak area of the constant background peak within the local retention time window of the chromatographic peak in the constant background peak. The local retention time window is a time window with a preset time width centered on the retention time of the chromatographic peak.
[0078] As an illustration, a terminal for identifying and detecting the authenticity of traditional Chinese medicine can obtain the integrated peak area by numerically integrating the signal intensity of the chromatographic peak along the retention time axis using the trapezoidal method or the Simpson method. Specifically, for the chromatographic peak starting point To the finish line For each sampling point between two adjacent sampling points, the traditional Chinese medicine authenticity identification and detection terminal can multiply the average signal intensity between two adjacent sampling points by the time interval and then sum them up to obtain the integral peak area. Furthermore, the terminal for identifying and detecting the authenticity of traditional Chinese medicine can use the retention time of chromatographic peaks. Centered on, with a preset time width Construct a local retention time window Time width It can be three times the half-peak width of the chromatographic peak. The terminal for identifying and detecting the authenticity of traditional Chinese medicine can integrate the chromatographic signal of the constant background peak within this local retention time window to obtain the peak area contributed by the constant background peak in this local region. The local background integral area reflects the signal floor generated by the constant background peak near the target peak. When the energy ratio When the value is close to 0, it indicates that the chromatographic peak to be measured is extremely weak relative to the background and is very likely to be masked; when... When the value is close to 1, it indicates that the signal intensity of the peak is much higher than the local background, and the detection reliability is high.
[0079] S42. Temporarily label chromatographic peaks with energy ratios less than the low warning threshold as weak signals.
[0080] Optionally, the low alert threshold can be calibrated based on the lowest effective signal-to-noise ratio of trace active ingredients in traditional Chinese medicine, corresponding to the weak signal range where the signal-to-noise ratio of the diode array detector is below 3dB. Spectral characteristic parameters within this weak signal range are easily affected by baseline noise and environmental micro-interferences, and the measurement data lacks stable discriminative value. For example, for herbs with simple ingredients, the low alert threshold can be set to 0.10; for compound preparations with complex ingredients, the low alert threshold can be set to 0.05 to reduce the risk of false negatives. If the peak area is less than a few percent of the local background integral area, the signal is extremely weak. Even if the characteristic difference d-value is low, the measurement may be unreliable due to insufficient signal-to-noise ratio, rather than the peak truly matching the characteristics of the target peak. Therefore, the traditional Chinese medicine authenticity identification and detection terminal can temporarily label these chromatographic peaks as weak signals, indicating that the signal intensity of the chromatographic peak is insufficient for reliable authenticity determination.
[0081] S43. Identify chromatographic peaks with an energy ratio greater than or equal to the low warning threshold and an energy ratio less than or equal to the high confidence threshold as the first target chromatographic peak. If the characteristic difference of the first target chromatographic peak is greater than the discrimination threshold, mark the temporary classification label of the first target chromatographic peak as a potential ghost peak. If the characteristic difference of the first target chromatographic peak is less than or equal to the discrimination threshold, mark the classification label of the first target chromatographic peak as a true target peak.
[0082] Optional, when At that time, if This indicates that the chromatographic peak deviates significantly from the reference sample in multiple dimensions, including peak shape, third-order spectral derivative characteristics, and relative retention time drift factor. It is highly likely that this is an interfering peak introduced by a counterfeit product. Therefore, the traditional Chinese medicine authenticity identification and testing terminal can temporarily label this chromatographic peak as a potential ghost peak. This indicates that the characteristics of the chromatographic peak are highly consistent with the reference material, and the traditional Chinese medicine authenticity identification and detection terminal can directly mark the final classification label of the chromatographic peak as the true target peak.
[0083] S44. Identify chromatographic peaks with an energy ratio greater than the high confidence threshold as second target chromatographic peaks. If the characteristic difference of the second target chromatographic peak is less than the discrimination threshold, mark the classification label of the second target chromatographic peak as a true target peak. If the characteristic difference of the second target chromatographic peak is greater than or equal to the discrimination threshold, mark the temporary classification label of the second target chromatographic peak as a potential ghost peak.
[0084] Optional, when hour, This indicates that the chromatographic peak is not only significant in intensity, but its peak shape, spectral third derivative characteristics, and relative retention time drift factor also highly match those of the reference material. Therefore, the traditional Chinese medicine authenticity identification and testing terminal can label it as the true target peak. If... This indicates that although the signal intensity is very high, its multidimensional characteristics are significantly different from those of the reference. The chromatographic peak is very likely to originate from interfering components in counterfeit products. The traditional Chinese medicine authenticity identification and detection terminal can mark it as a potential ghost peak with a temporary classification label.
[0085] S45. Mark the chromatographic peaks with temporary classification labels as detecting weak signals or potential ghost peaks, calculate the matching score between the three-dimensional feature vector and the ghost peak features in the pre-constructed ghost peak feature fingerprint database, and based on the matching score, correct or confirm the temporary classification label of the chromatographic peak to obtain the final classification label of the chromatographic peak.
[0086] Optionally, for chromatographic peaks temporarily categorized as having weak signals or potential ghost peaks, the TCM authenticity identification and testing terminal can further utilize a pre-constructed ghost peak feature fingerprint database for auxiliary determination. The ghost peak feature fingerprint database is a reference database pre-established using a large number of known counterfeit and adulterated samples. Each record contains multiple characteristic parameters of typical interfering peaks in a known counterfeit type, including retention time window, normalized UV absorption spectral vector, spectral third derivative feature vector, peak shape asymmetry factor, and energy ratio range. The TCM authenticity identification and testing terminal can calculate the matching score between the three-dimensional feature vector of the chromatographic peak to be judged and each ghost peak feature record in the ghost peak feature fingerprint database. The matching score can be calculated using weighted Euclidean distance, Mahalanobis distance, or cosine similarity, etc. The lower the matching score, the more similar the chromatographic peak is to a known ghost peak feature in the ghost peak feature fingerprint database. When the matching score is below a preset matching threshold, the TCM authenticity identification and testing terminal can determine that the chromatographic peak matches a known counterfeit type in the database. The terminal for identifying and detecting the authenticity of traditional Chinese medicine can systematically correct or confirm the effectiveness of the temporary classification labels generated in the early stage based on the relative relationship between the matching score and the preset matching threshold. It abandons the one-sidedness of judging by a single threshold and completes a second accurate verification by combining the prior data of the ghost peak feature fingerprint database. Finally, it outputs a unique and accurate final classification label for each chromatographic peak to be tested, ensuring that the judgment results of all doubtful chromatographic peaks are supported by data from the ghost peak feature fingerprint database, and significantly reducing the misjudgment rate of authenticity identification.
[0087] In one embodiment, the classification label also includes the detection of weak signal events.
[0088] For chromatographic peaks temporarily labeled as detecting weak signals or potential ghost peaks, the matching score between the three-dimensional feature vector and ghost peak features in a pre-constructed ghost peak feature fingerprint database is calculated. Based on the matching score, the temporary classification label of the chromatographic peak is corrected or confirmed to obtain the final classification label of the chromatographic peak, including:
[0089] S51. Calculate the three-dimensional feature vector of each chromatographic peak and the matching score of each ghost peak feature in the ghost peak feature fingerprint database.
[0090] Optionally, the expression for the match score is:
[0091] ;
[0092] In the formula, To match scores, The retention time drift factor is the deviation between the 3D feature vector and the ghost peak feature. and These are the ultraviolet absorption spectral vectors corresponding to the three-dimensional feature vector and the ghost peak feature, respectively. and These are the spectral third derivative eigenvectors of the three-dimensional eigenvectors and the ghost peak features, respectively. and These are the peak shape asymmetry factors for the three-dimensional feature vector and the ghost peak feature, respectively. , , and This is the weighting factor.
[0093] For example, The retention time drift factor (RRTF) deviation between the chromatographic peak to be matched and the ghost peak characteristics is the absolute value of the difference between the two, dimensionless. Used to characterize the degree of difference in chromatographic retention kinetics; The Euclidean distance between the UV absorption spectral vector of the chromatographic peak to be matched and the characteristics of the ghost peak is between 0 and 2, and is used to characterize the difference amplitude of the overall UV absorption profile. The Euclidean distance between the eigenvectors of the third derivative of the spectrum is used to capture subtle differences in the micro-curvature of the spectrum. This is the absolute value of the difference in peak shape asymmetry factors, dimensionless, used to characterize the deformation differences in the two-dimensional profile of chromatographic peaks. Weighting factor. , , and The value of can be set according to the contribution of each feature to ghost peak identification. For example, it can be set to . , , , This results in a slightly higher weighting for retention time drift compared to other features. The traditional Chinese medicine authenticity identification and testing terminal calculates a matching score for each record in the ghost peak feature fingerprint database, takes the minimum score among all scores as the final matching score for that chromatographic peak, and records the counterfeit type corresponding to that minimum score in the ghost peak feature fingerprint database. The smaller the matching score, the more similar the chromatographic peak to be judged is to a known ghost peak feature in the database.
[0094] S52. If the matching score is less than the matching threshold, it is determined that the chromatographic peak marked with the temporary classification label is a ghost peak that has been detected as a weak signal or a potential ghost peak in the ghost peak feature fingerprint database, and the classification label of the chromatographic peak that has been detected as a ghost peak is marked as a ghost peak; wherein, being detected as a ghost peak is used to characterize the peak feature that the chromatographic peak matches the known counterfeit type recorded in the ghost peak feature fingerprint database.
[0095] Optional, matching threshold The setting can be based on the statistical distribution of matching scores of a large number of known counterfeit samples and the false positive rate requirement of genuine samples, and the value can range from 0.5 to 1.5. If... If the chromatographic peak is found to be a ghost peak in the ghost peak feature fingerprint database, it means that the characteristics of the chromatographic peak are highly consistent with the peak characteristics corresponding to a known counterfeit type stored in the ghost peak feature fingerprint database. At this point, regardless of whether the temporary classification label of the chromatographic peak was originally a weak signal or a potential ghost peak, the TCM authenticity identification and testing terminal will mark its final classification label as a ghost peak. Hitting a ghost peak means that the retention shift characteristics, ultraviolet spectral characteristics, higher-order microscopic spectral characteristics, and peak shape geometric characteristics of the chromatographic peak to be tested all fall within the feature range corresponding to known counterfeit adulteration, which can eliminate the influence of accidental factors such as instrument error and matrix interference, confirming that the chromatographic peak is an interference signal generated by counterfeit adulteration. The TCM authenticity identification and testing terminal can simultaneously record the type of counterfeit product hit for reference in the test report output. For chromatographic peaks with a temporary classification label of weak signal, due to their extremely low signal intensity, the measurement of feature difference is inherently unreliable. However, by matching with the ghost peak feature fingerprint database, it is still possible to find its similarity to known ghost peaks even with a weak signal, thus avoiding missed detection. For chromatographic peaks temporarily categorized as potential ghost peaks, matching with the ghost peak feature fingerprint database provides additional confirmatory evidence, improving the accuracy of ghost peak identification.
[0096] S53. If the matching score is greater than or equal to the matching threshold, it is determined that the chromatographic peak marked as a potential ghost peak in the temporary classification label does not match the ghost peak in the ghost peak feature fingerprint database, and the classification label of the chromatographic peak that does not match the ghost peak is corrected to the true target peak; the three-dimensional feature vector corresponding to the chromatographic peak that does not match the ghost peak is used as a new candidate record in the unknown feature temporary buffer library; the unknown feature temporary buffer library is used to update the new candidate record that is confirmed as a new type of ghost peak to the ghost peak feature fingerprint database.
[0097] Optional, if If the peak is not similar to any known ghost peak record in the ghost peak feature fingerprint database, then the TCM authenticity identification and detection terminal performs branching processing based on the temporary classification label of the peak. Specifically, for peaks with the temporary classification label of potential ghost peak, it is determined that they do not match any ghost peaks in the ghost peak feature fingerprint database. Since the peak has a large feature difference when the energy ratio is sufficient but does not match any known counterfeit features, it is reasonable to infer that the feature deviation of the peak being initially identified as a potential ghost peak may originate from abnormal variations of the real target component or novel interference peaks not yet included in the database. Alternatively, the feature deviation of the peak being initially identified as a potential ghost peak may not originate from the counterfeit adulteration patterns included in the existing database, but rather from non-adulteration systematic errors such as slight fluctuations in the sample matrix, slight drifts in chromatographic parameters, and instrument baseline noise. The peak is essentially the real signal corresponding to trace amounts of active ingredients in the genuine product. Considering the high energy ratio and sufficient signal intensity of the peak, identifying it as the real target peak is statistically safer and will not introduce the risk of systematic false positives. Therefore, the TCM authenticity identification and testing terminal can correct the final classification label of the chromatographic peak to the true target peak. Simultaneously, to continuously enrich the coverage of the ghost peak feature fingerprint database, the terminal stores the three-dimensional feature vector of the chromatographic peak as a new candidate record in a separately constructed unknown feature temporary buffer. The unknown feature temporary buffer has the same structure as the ghost peak feature fingerprint database, but the records stored therein have not yet been verified. Candidate records in this unknown feature temporary buffer can be subsequently confirmed as novel ghost peaks through offline high-resolution mass spectrometry or other verification methods before being officially updated to the ghost peak feature fingerprint database; if confirmed as a variant of the true target peak, it can be left unupdated or used to update the reference feature database. Through this design, the ghost peak feature fingerprint database of the TCM authenticity identification and testing terminal can continuously improve itself as the number of tested samples increases, enhancing its ability to identify newly emerging adulteration types.
[0098] S54. If the matching score is greater than or equal to the matching threshold, the temporary classification label is marked as the classification label of the chromatographic peak that detects a weak signal, and the weak signal event is marked.
[0099] Optional, for Furthermore, the temporary classification label for the chromatographic peak indicating a weak signal means that the traditional Chinese medicine authenticity identification and testing terminal cannot classify it as a genuine target peak or a phantom peak while ensuring a low false positive rate. Therefore, the final classification label for this chromatographic peak is marked as a weak signal event. A weak signal event is a reserved intermediate classification state, indicating the existence of an extremely weak chromatographic response within that retention time window, but due to the excessively low signal-to-noise ratio, a definitive judgment of authenticity cannot be made.
[0100] In one embodiment, a comprehensive judgment result for the Chinese herbal medicine sample to be tested is generated based on the classification labels of each chromatographic peak, including:
[0101] S61. Based on the retention time window corresponding to each target active ingredient in the Chinese medicine sample to be tested, construct the target active ingredient determination window corresponding to each target active ingredient.
[0102] Indicatively, each target active ingredient has a characteristic retention time under chromatographic conditions, which can be calibrated using an injected reference solution. The traditional Chinese medicine authenticity identification and detection terminal can set a retention time window for each target active ingredient based on a pre-stored retention time database. The center of this retention time window is the reference retention time for that ingredient. The window width can be taken as a reference to the retention time. to Or, using the half-peak width of the reference peak. Take as the benchmark Doubled The peak width is 250 sec. The terminal for identifying and detecting the authenticity of traditional Chinese medicine can process multiple target active ingredients simultaneously, constructing a list of target active ingredient determination windows. Each target active ingredient determination window has a start time and an end time, as well as the corresponding target active ingredient name.
[0103] S62. If, within each target active ingredient determination window, the classification labels of each chromatographic peak corresponding to the tested traditional Chinese medicine sample are all true target peaks, then the overall determination result will be set as genuine and qualified.
[0104] Optionally, the TCM authenticity identification and testing terminal can traverse all target active ingredient determination windows, screening the classification labels of all chromatographic peaks within each target active ingredient determination window to complete the full-domain label verification. Only when all target active ingredient determination windows detect valid chromatographic peaks, and the final classification labels of all detected chromatographic peaks are uniformly consistent with the true target peaks, does it mean that the multidimensional peak shape characteristics, microscopic spectral characteristics, and chromatographic retention characteristics of all target active ingredients in the tested TCM sample are completely matched with the genuine product standard. Simultaneously, the energy ratio, characteristic difference, and database matching score of all active ingredient signals are within the confidence interval of the genuine product standard, with no counterfeit interference characteristics, no weak signal abnormalities, and no missing component characteristics. The chemical composition characteristics of the tested TCM sample are highly consistent with the genuine product's composition characteristics, and no abnormalities such as adulteration, mixing, or component variation are observed. Based on this, the TCM authenticity identification and testing terminal can generate a comprehensive judgment result confirming the product's authenticity.
[0105] S63. If a chromatographic peak with the classification label "ghost peak" exists in any target active ingredient determination window, the overall determination result will be set as unqualified counterfeit product.
[0106] Optionally, if any target active ingredient determination window detects a chromatographic peak with the final classification label "ghost peak," the tested traditional Chinese medicine sample can be determined to have a counterfeit adulteration problem. The appearance of a ghost peak indicates that the chromatographic signal in the corresponding active ingredient elution range originates from the characteristic response of a known counterfeit adulterant, and is not an effective signal of the genuine target active ingredient. Even if all other target active ingredient determination windows show genuine target peaks, the presence of counterfeit characteristic signals at local key target points confirms that the sample does not meet the component standards of genuine traditional Chinese medicine and has quality problems such as deliberate adulteration, substitution of inferior products, and component replacement. This completely fails to meet the identification standards for genuine traditional Chinese medicine. The traditional Chinese medicine authenticity identification and detection terminal can directly generate a comprehensive judgment result indicating that the product is unqualified due to counterfeiting. This judgment logic can accurately cover hidden counterfeiting scenarios such as local trace adulteration and targeted component replacement.
[0107] S64. If the classification label of the chromatographic peaks in each target active ingredient determination window is a weak signal event, then the overall determination result will be set to invalid detection.
[0108] Optionally, if the final classification label of the chromatographic peaks detected within each target active ingredient determination window is a weak signal event, it means that the signal-to-noise ratio of the chromatographic signals corresponding to all active ingredients cannot meet the requirements for accurate qualitative discrimination. The core reasons for the inability to distinguish weak signals in this state could be due to extremely low content of the active ingredient in the sample, insufficient pretreatment extraction efficiency leading to weak signals, or instrument baseline fluctuations and environmental interference causing invalid weak signals. There is no valid quantitative data to support the determination of authenticity, and no basis for judging whether it is a genuine or counterfeit product. All detection results have extremely high uncertainty. The traditional Chinese medicine authenticity identification and detection terminal can generate a comprehensive judgment result of invalid detection based on this. Invalid detection only indicates that the detection data is invalid in this instance; it does not define the authenticity attribute of the sample. The sample pretreatment process and chromatographic detection parameters need to be optimized again before retesting.
[0109] S65. If any chromatographic peak with a classification label is not detected within any target active ingredient determination window, the overall determination result will be set as unqualified counterfeit product.
[0110] Optionally, if no chromatographic peak with a classification label is found within any target active ingredient determination window, it means that the target active ingredient corresponding to that window has no identifiable signal response in the trace active ingredient chromatographic signal matrix. There is no effective trace component signal, no weak signal interference, and no ghost peak interference from counterfeit products. This directly proves that the tested Chinese medicine sample lacks the core active ingredient and is a component-deficient unqualified sample. It does not meet the basic component composition requirements of genuine Chinese medicine, excluding the possibility of instrument detection error and signal interference. It is a definite sample quality abnormality. The Chinese medicine authenticity identification and testing terminal can directly generate a comprehensive judgment result of counterfeit products based on this, which can effectively identify counterfeit samples without target components, such as component substitution, complete adulteration, and inferior imitation.
[0111] In one embodiment, the method further includes:
[0112] S71. If the chromatographic signal matrix of trace active ingredients does not have a chromatographic response signal that meets the quantitative standard, the overall judgment result will be set as unqualified counterfeit product.
[0113] Illustratively, a quantifiable standard can be defined as a chromatographic peak with a signal-to-noise ratio (SNR) greater than or equal to 3, good peak shape symmetry (i.e., a peak shape asymmetry factor (FAF) between 0.8 and 1.2), and a peak area greater than the minimum peak area threshold corresponding to the instrument's limit of quantitation. For example, the SNR quantification formula is as follows: In the formula, The signal-to-noise ratio of the chromatographic signal is measured in decibels. The average absorbance of the effective signal of the chromatographic peak to be measured is dimensionless. The average noise absorbance of the chromatographic baseline region is dimensionless.
[0114] If, within the entire time range of the chromatographic signal matrix, no chromatographic peak meeting the above-mentioned quantitative criteria is identified (i.e., no chromatographic response with a signal-to-noise ratio of 3 or higher, an acceptable peak shape, and an area exceeding the limit of quantification), the TCM authenticity identification and testing terminal can determine that the trace active ingredient chromatographic signal matrix has no chromatographic response signal meeting the quantitative criteria. This phenomenon directly proves that the TCM sample to be tested does not possess the core trace active ingredient system corresponding to genuine TCM, and does not have the chromatographic response basis of effective pharmacodynamic components. Excluding the influence of accidental factors such as instrument detection errors and sample pretreatment deviations, this is a definite quality problem of missing components, complete adulteration, or inferior imitation of the sample itself. Based on this, the TCM authenticity identification and testing terminal can output a comprehensive judgment result that the product is unqualified.
[0115] S72. If a chromatographic peak with the classification label of a true target peak exists in part of the target active ingredient determination window, and the classification label of the chromatographic peak in the remaining target active ingredient determination window is a weak signal event, then the overall determination result will be set as unqualified counterfeit product.
[0116] Specifically, let there be a total Several target active ingredient determination windows, including The final classification label for the chromatographic peaks within the target active ingredient determination window is the true target peak; the remaining peaks are classified as such. The final classification label for chromatographic peaks within the target active ingredient determination window is a weak signal event. Counterfeiters may add a small amount of genuine extract or some active ingredient monomers to the counterfeit matrix, causing certain characteristic peaks in the adulterated sample to exhibit the characteristics of the genuine target peaks, while other unadded components, due to their extremely low natural content or artificial dilution, will only produce weak detection signals. From a quality control perspective, a qualified drug should achieve quantifiable levels of all specified target active ingredients, not just partially qualified ones. Therefore, as long as at least one genuine target peak and at least one weak signal event are present, even if no phantom peaks are detected, the traditional Chinese medicine authenticity identification and testing terminal can determine that it is a counterfeit and unqualified product.
[0117] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0118] Based on the same inventive concept, this application also provides a high-performance liquid chromatography (HPLC)-based device for identifying and detecting the authenticity of traditional Chinese medicine (TCM) based on HPLC, used to implement the aforementioned method for identifying and detecting the authenticity of TCM based on HPLC. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more embodiments of the HPLC-based device for identifying and detecting the authenticity of TCM provided below can be found in the limitations of the HPLC-based method for identifying and detecting the authenticity of TCM described above, and will not be repeated here.
[0119] In one exemplary embodiment, such as Figure 2 As shown, a device 200 for identifying and detecting the authenticity of traditional Chinese medicine based on high-performance liquid chromatography is provided, comprising:
[0120] Data processing module 201 can be used to acquire raw high-performance liquid chromatography (HPLC) spectral data of the Chinese herbal medicine sample under multiple characteristic wavelengths, and convert the raw HPLC spectral data into a time-absorbance matrix to obtain a multi-wavelength spectral data matrix.
[0121] The constant background peak identification module 202 can be used to identify each chromatographic peak whose cumulative peak area ratio exceeds the area ratio threshold from the multi-wavelength spectral data matrix as constant background peaks, and extract the retention time and spectral feature vector of each constant background peak based on the multi-wavelength spectral data matrix to obtain the constant background peak feature matrix; wherein, the cumulative peak area ratio is the proportion of the cumulative peak area of each chromatographic peak to the total peak area of all chromatographic peaks.
[0122] The orthogonal projection separation module 203 can be used to construct an orthogonal projection matrix orthogonal to the constant background spectral feature space based on the constant background peak feature matrix, and remove the contribution of constant background peaks in the multi-wavelength spectral data matrix through the orthogonal projection matrix to obtain the chromatographic signal matrix of trace active ingredients;
[0123] The feature amplification module 204 can be used to extract the peak shape asymmetry factor, the spectral third derivative feature vector, and the relative retention time drift factor of each chromatographic peak from the chromatographic signal matrix of trace active ingredients, to obtain the three-dimensional feature vector of each chromatographic peak, and to perform nonlinear amplification processing on the difference between each three-dimensional feature vector and the reference feature vector to obtain the feature difference degree of each chromatographic peak.
[0124] The dual-threshold decision classification module 205 can be used to calculate the energy ratio of each chromatographic peak in the trace active ingredient chromatographic signal matrix relative to the corresponding constant background peak, and input the feature difference degree and energy ratio into the dual-threshold dynamic decision model to obtain the classification label of each chromatographic peak; wherein, the dual-threshold dynamic decision model includes a low warning threshold and a high confidence threshold for the energy ratio, and a discrimination threshold for the feature difference degree; the classification labels include true target peaks and ghost peaks;
[0125] The comprehensive judgment module 206 can be used to generate a comprehensive judgment result for the Chinese medicine sample to be tested based on the classification labels of each chromatographic peak; the comprehensive judgment result is one of the following: genuine product qualified, counterfeit product unqualified, and test invalid.
[0126] In one embodiment, the orthogonal projection separation module 203 can also be used for:
[0127] Singular value decomposition is performed on the constant background peak feature matrix to obtain the column space matrix spanned by the spectral feature vectors, and an orthogonal projection matrix is constructed based on the column space matrix.
[0128] Multiply the orthogonal projection matrix by the multi-wavelength spectral data matrix to obtain the residual matrix;
[0129] The residual matrix is reconstructed by orthogonal inverse projection, and the signal components extracted in the orthogonal directions are retained to obtain the chromatographic signal matrix of trace active ingredients.
[0130] In one embodiment, the feature amplification module 204 can also be used for:
[0131] Calculate the ratio of the left half peak width to the right half peak width of each chromatographic peak to obtain the peak shape asymmetry factor of each chromatographic peak.
[0132] Calculate the third derivative of the UV spectral vector of each chromatographic peak and normalize the third derivative to obtain the spectral third derivative eigenvector;
[0133] Calculate the dimensionless drift of the retention time of each chromatographic peak relative to the retention time of the characteristic peak of the reference, and obtain the relative retention time drift factor;
[0134] Based on the peak shape asymmetry factor, the spectral third derivative eigenvector, and the relative retention time drift factor, a three-dimensional eigenvector is constructed.
[0135] Based on the reference object feature vector, the three-dimensional feature vector is amplified by a nonlinear amplification function to obtain the amplified feature vector. The feature distance between the amplified feature vector and the reference object feature vector is then calculated to obtain the feature difference degree.
[0136] In one embodiment, the dual-threshold decision classification module 205 can also be used for:
[0137] Calculate the integrated peak area of each chromatographic peak, and calculate the energy ratio based on the integrated peak area and the local background integrated area of the corresponding constant background peak; the local background integrated area is the integrated peak area of the constant background peak within the local retention time window of the corresponding constant background peak; the local retention time window is a time window with a preset time width centered on the retention time of the chromatographic peak.
[0138] Temporary classification labels are used to mark chromatographic peaks with energy ratios below the low warning threshold as weak signals.
[0139] For chromatographic peaks with an energy ratio greater than or equal to the low warning threshold and an energy ratio less than or equal to the high confidence threshold, if the characteristic difference is greater than the discrimination threshold, the temporary classification label of the chromatographic peak is marked as a potential ghost peak; if the characteristic difference is less than or equal to the discrimination threshold, the classification label of the chromatographic peak is marked as a true target peak.
[0140] For chromatographic peaks with an energy ratio greater than the high confidence threshold, if the characteristic difference is less than the discrimination threshold, the chromatographic peak is labeled as a true target peak; if the characteristic difference is greater than or equal to the discrimination threshold, the chromatographic peak is labeled as a potential ghost peak.
[0141] For chromatographic peaks temporarily labeled as detecting weak signals or potential ghost peaks, the matching score between the three-dimensional feature vector and the ghost peak features in the pre-constructed ghost peak feature fingerprint database is calculated. Based on the matching score, the temporary classification label of the chromatographic peak is corrected or confirmed to obtain the final classification label of the chromatographic peak.
[0142] In one embodiment, the traditional Chinese medicine authenticity identification and detection device 200 based on high performance liquid chromatography can also be used for:
[0143] The three-dimensional feature vectors of each chromatographic peak and the matching scores of each ghost peak feature in the ghost peak feature fingerprint database are calculated.
[0144] If the matching score is less than the matching threshold, it is determined that the chromatographic peak marked with the temporary classification label as a weak signal or potential ghost peak has hit a ghost peak in the ghost peak feature fingerprint database, and the corresponding chromatographic peak classification label is marked as a ghost peak; where, hitting a ghost peak is used to characterize the chromatographic peak matching the peak feature corresponding to the known counterfeit type recorded in the ghost peak feature fingerprint database;
[0145] If the matching score is greater than or equal to the matching threshold, it is determined that the chromatographic peak marked as a potential ghost peak in the temporary classification label does not match the ghost peak feature fingerprint database, and the classification label of the corresponding chromatographic peak is corrected to the true target peak; the three-dimensional feature vector corresponding to the chromatographic peak that does not match the ghost peak is used as a new candidate record in the unknown feature temporary buffer library; the unknown feature temporary buffer library is used to update the new candidate records confirmed as new ghost peaks to the ghost peak feature fingerprint database;
[0146] If the matching score is greater than or equal to the matching threshold, the temporary classification label is marked as the classification label of the chromatographic peak that detected the weak signal, and the weak signal event is marked.
[0147] In one embodiment, the comprehensive determination module 206 can also be used for:
[0148] Based on the retention time window corresponding to each target active ingredient in the Chinese medicine sample to be tested, a target active ingredient determination window corresponding to each target active ingredient is constructed.
[0149] If the classification labels of each chromatographic peak corresponding to the Chinese herbal medicine sample to be tested are all true target peaks within the determination window of each target active ingredient, then the overall determination result is that the product is genuine and qualified.
[0150] If, within any target active ingredient determination window, there is a chromatographic peak with the classification label "ghost peak," then the overall determination result is that the product is counterfeit and unqualified.
[0151] If the classification label of the chromatographic peaks in each target active ingredient determination window is a weak signal event, then the overall determination result is that the detection is invalid.
[0152] If no chromatographic peak with a classification label is detected within any target active ingredient determination window, the overall determination result is that the product is counterfeit and unqualified.
[0153] In one embodiment, the comprehensive determination module 206 can also be used for:
[0154] If the chromatographic signal matrix of trace active ingredients does not have a chromatographic response signal that meets the quantitative standard, the overall judgment result is that the product is counterfeit and unqualified.
[0155] If some of the chromatographic peaks in the target active ingredient determination window are classified as true target peaks, and the remaining chromatographic peaks in the target active ingredient determination window are classified as weak signal events, then the overall determination result is that the product is counterfeit and unqualified.
[0156] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps in the above method embodiments.
[0157] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0158] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The components described as separate parts may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0159] The above-described embodiments are merely illustrative of several implementation methods of the embodiments of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the embodiments of this application, and these modifications and improvements all fall within the protection scope of the embodiments of this application.
Claims
1. A method for identifying and detecting the authenticity of traditional Chinese medicine based on high-performance liquid chromatography, characterized in that, The method includes: The raw spectral data of the Chinese herbal medicine sample to be tested at multiple characteristic wavelengths are obtained by high performance liquid chromatography (HPLC) and the raw HPLC spectral data are converted into time-absorbance matrix form to obtain a multi-wavelength spectral data matrix. Each chromatographic peak whose cumulative peak area ratio exceeds the area ratio threshold identified from the multi-wavelength spectral data matrix is taken as a constant background peak. Based on the multi-wavelength spectral data matrix, the retention time and spectral feature vector of each constant background peak are extracted to obtain a constant background peak feature matrix. The cumulative peak area ratio is the proportion of the cumulative peak area of each chromatographic peak to the total peak area of all chromatographic peaks. Based on the constant background peak feature matrix, an orthogonal projection matrix orthogonal to the constant background spectral feature space is constructed, and the contribution of constant background peaks in the multi-wavelength spectral data matrix is removed by the orthogonal projection matrix to obtain the chromatographic signal matrix of trace active ingredients. The peak shape asymmetry factor, spectral third derivative eigenvector, and relative retention time drift factor of each chromatographic peak are extracted from the chromatographic signal matrix of the trace active ingredient to obtain the three-dimensional feature vector of each chromatographic peak. The difference between each three-dimensional feature vector and the reference feature vector is nonlinearly amplified to obtain the feature difference degree of each chromatographic peak. The energy ratio of each chromatographic peak in the trace active ingredient chromatographic signal matrix relative to the corresponding constant background peak is calculated, and the feature difference degree and the energy ratio are input into a dual-threshold dynamic decision model to obtain the classification label of each chromatographic peak; wherein, the dual-threshold dynamic decision model includes a low warning threshold and a high confidence threshold for the energy ratio, and a discrimination threshold for the feature difference degree; the classification label includes true target peaks and ghost peaks; A comprehensive judgment result for the Chinese herbal medicine sample to be tested is generated based on the classification labels of each chromatographic peak; wherein the comprehensive judgment result is one of the following: genuine product qualified, counterfeit product unqualified, and test invalid.
2. The method according to claim 1, characterized in that, The process of constructing an orthogonal projection matrix orthogonal to the constant background spectral feature space based on the constant background peak feature matrix, and removing the contribution of constant background peaks from the multi-wavelength spectral data matrix using the orthogonal projection matrix to obtain a trace active ingredient chromatographic signal matrix includes: Singular value decomposition is performed on the constant background peak feature matrix to obtain the column space matrix spanned by the spectral feature vectors, and the orthogonal projection matrix is constructed based on the column space matrix. Multiply the orthogonal projection matrix on the left by the multi-wavelength spectral data matrix to obtain the residual matrix; The residual matrix is reconstructed by orthogonal inverse projection, and the signal components extracted in the orthogonal direction are retained to obtain the chromatographic signal matrix of the trace active ingredient; The expression for the orthogonal projection matrix is: ; In the formula, Let be the column space matrix. It is the identity matrix. Let be the orthogonal projection matrix.
3. The method according to claim 1, characterized in that, The process involves extracting the peak shape asymmetry factor, spectral third derivative eigenvector, and relative retention time drift factor of each chromatographic peak from the chromatographic signal matrix of the trace active ingredient, obtaining the three-dimensional feature vector of each chromatographic peak, and performing nonlinear amplification processing on the difference between each three-dimensional feature vector and the reference feature vector to obtain the characteristic difference degree of each chromatographic peak, including: Calculate the ratio of the left half peak width to the right half peak width of each chromatographic peak to obtain the peak shape asymmetry factor of each chromatographic peak; Calculate the third derivative of the ultraviolet spectral vector of each chromatographic peak and normalize the third derivative to obtain the spectral third derivative eigenvector; Calculate the dimensionless drift of the retention time of each chromatographic peak relative to the retention time of the characteristic peak of the reference, and obtain the relative retention time drift factor; The three-dimensional feature vector is constructed based on the peak shape asymmetry factor, the spectral third derivative eigenvector, and the relative retention time drift factor. Based on the reference object feature vector, the three-dimensional feature vector is amplified by a nonlinear amplification function to obtain an amplified feature vector, and the feature distance between the amplified feature vector and the reference object feature vector is calculated to obtain the feature difference degree. The expression for the relative retention time drift factor is as follows: ; In the formula, The relative retention time drift factor, Retention time of the chromatographic peak. Retention time of the characteristic peak of the reference object. The half-peak width of the characteristic peak of the reference object; The expression for the nonlinear amplification function is as follows: ; In the formula, To amplify the feature vector, It is a three-dimensional feature vector. For the reference object feature vector, It is the hyperbolic tangent function. For scale parameters, This is the amplification gain factor.
4. The method according to claim 1, characterized in that, The calculation of the energy ratio of each chromatographic peak in the trace active ingredient chromatographic signal matrix relative to the corresponding constant background peak, and the input of the feature difference degree and the energy ratio into a dual-threshold dynamic decision model, yields the classification label of each chromatographic peak, including: Calculate the integrated peak area of each chromatographic peak, and calculate the energy ratio based on the integrated peak area and the local background integrated area of the constant background peak corresponding to the chromatographic peak; the local background integrated area is the integrated peak area of the constant background peak within the local retention time window corresponding to the chromatographic peak in the constant background peak; the local retention time window is a time window with a preset time width centered on the retention time of the chromatographic peak. The chromatographic peaks with energy ratios less than the low warning threshold are temporarily labeled as weak signals. The chromatographic peaks whose energy ratio is greater than or equal to the low warning threshold and whose energy ratio is less than or equal to the high confidence threshold are identified as first target chromatographic peaks. If the characteristic difference degree of the first target chromatographic peak is greater than the discrimination threshold, the temporary classification label of the first target chromatographic peak is marked as a potential ghost peak. If the characteristic difference degree of the first target chromatographic peak is less than or equal to the discrimination threshold, the classification label of the first target chromatographic peak is marked as the real target peak. The chromatographic peak with an energy ratio greater than the high confidence threshold is identified as the second target chromatographic peak. If the characteristic difference of the second target chromatographic peak is less than the discrimination threshold, the classification label of the second target chromatographic peak is marked as the true target peak. If the characteristic difference of the second target chromatographic peak is greater than or equal to the discrimination threshold, the temporary classification label of the second target chromatographic peak is marked as the potential ghost peak. The chromatographic peak whose temporary classification label is marked as the weak detection signal or the potential ghost peak is calculated. The matching score between the three-dimensional feature vector and the ghost peak features in the pre-constructed ghost peak feature fingerprint database is calculated. Based on the matching score, the temporary classification label of the chromatographic peak is corrected or confirmed to obtain the final classification label of the chromatographic peak.
5. The method according to claim 4, characterized in that: The classification labels also include the detection of weak signal events; The process involves assigning temporary classification labels to chromatographic peaks that are identified as weak signals or potential ghost peaks, calculating the matching score between the three-dimensional feature vector and ghost peak features in a pre-constructed ghost peak feature fingerprint database, and revising or confirming the temporary classification labels of the chromatographic peaks based on the matching scores to obtain the final classification labels of the chromatographic peaks, including: The three-dimensional feature vector of each chromatographic peak and the matching score of each ghost peak feature in the ghost peak feature fingerprint database are calculated. If the matching score is less than the matching threshold, it is determined that the temporary classification label is marked as the chromatographic peak of the weak detection signal or the potential ghost peak hits the ghost peak feature fingerprint database, and the classification label of the chromatographic peak that hits the ghost peak is marked as the ghost peak; wherein, the hit ghost peak is used to characterize the peak feature of the chromatographic peak that matches the known counterfeit type recorded in the ghost peak feature fingerprint database; If the matching score is greater than or equal to the matching threshold, it is determined that the chromatographic peak whose temporary classification label is marked as the potential ghost peak has not been matched with a ghost peak in the ghost peak feature fingerprint database, and the classification label of the chromatographic peak that has not been matched with a ghost peak is corrected to the true target peak; the three-dimensional feature vector corresponding to the chromatographic peak that has not been matched with a ghost peak is used as a new candidate record in the unknown feature temporary buffer library; the unknown feature temporary buffer library is used to update the new candidate record that has been confirmed as a new type of ghost peak to the ghost peak feature fingerprint database; If the matching score is greater than or equal to the matching threshold, then the temporary classification label is marked as the classification label of the chromatographic peak of the weak detection signal as the weak detection signal event; The expression for the matching score is: ; In the formula, To match scores, The retention time drift factor is the deviation between the 3D feature vector and the ghost peak feature. and These are the ultraviolet absorption spectral vectors corresponding to the three-dimensional feature vector and the ghost peak feature, respectively. and These are the spectral third derivative eigenvectors of the three-dimensional eigenvectors and the ghost peak features, respectively. and These are the peak shape asymmetry factors for the three-dimensional feature vector and the ghost peak feature, respectively. , , and This is the weighting factor.
6. The method according to claim 5, characterized in that, The comprehensive judgment result of the Chinese herbal medicine sample to be tested, generated based on the classification labels of each chromatographic peak, includes: Based on the retention time window corresponding to each target active ingredient in the Chinese medicine sample to be tested, a target active ingredient determination window corresponding to each target active ingredient is constructed. If, within each of the target active ingredient determination windows, the classification label of each of the chromatographic peaks corresponding to the Chinese herbal medicine sample to be tested is the true target peak, then the comprehensive determination result is set as the genuine product is qualified. If, within any of the target active ingredient determination windows, there exists a chromatographic peak with the classification label "ghost peak", then the overall determination result is set to "counterfeit product is unqualified". If, within each of the target active ingredient determination windows, the classification label of the chromatographic peak is the weak signal event, then the overall determination result is set to invalid detection. If any of the chromatographic peaks with the classification label is not detected within any of the target active ingredient determination windows, the overall determination result is set as the counterfeit product being unqualified.
7. The method according to claim 6, characterized in that, The method further includes: If the chromatographic signal matrix of the trace active ingredient does not have a chromatographic response signal that meets the quantitative standard, then the comprehensive judgment result is set as the counterfeit product being unqualified. If a chromatographic peak with the classification label of the true target peak exists in a portion of the target active ingredient determination window, and the classification label of the chromatographic peak in the remaining target active ingredient determination window is the weak detection signal event, then the comprehensive determination result is set as the counterfeit product being unqualified.
8. A device for identifying and detecting the authenticity of traditional Chinese medicine based on high-performance liquid chromatography, characterized in that, The device includes: The data processing module is used to acquire the raw high-performance liquid chromatography (HPLC) spectral data of the Chinese herbal medicine sample under test at multiple characteristic wavelengths, and convert the raw HPLC spectral data into a time-absorbance matrix to obtain a multi-wavelength spectral data matrix. The constant background peak identification module is used to identify each chromatographic peak whose cumulative peak area ratio exceeds the area ratio threshold from the multi-wavelength spectral data matrix as constant background peaks, and to extract the retention time and spectral feature vector of each constant background peak based on the multi-wavelength spectral data matrix to obtain a constant background peak feature matrix; wherein, the cumulative peak area ratio is the proportion of the cumulative peak area of each chromatographic peak to the total peak area of all chromatographic peaks. The orthogonal projection separation module is used to construct an orthogonal projection matrix orthogonal to the constant background spectral feature space based on the constant background peak feature matrix, and to remove the contribution of constant background peaks in the multi-wavelength spectral data matrix through the orthogonal projection matrix to obtain the chromatographic signal matrix of trace active ingredients; The feature amplification module is used to extract the peak shape asymmetry factor, the spectral third derivative feature vector, and the relative retention time drift factor of each chromatographic peak from the chromatographic signal matrix of the trace active ingredient, to obtain the three-dimensional feature vector of each chromatographic peak, and to perform nonlinear amplification processing on the difference between each three-dimensional feature vector and the reference feature vector to obtain the feature difference degree of each chromatographic peak. A dual-threshold decision classification module is used to calculate the energy ratio of each chromatographic peak in the trace active ingredient chromatographic signal matrix relative to the corresponding constant background peak, and input the feature difference degree and the energy ratio into a dual-threshold dynamic decision model to obtain a classification label for each chromatographic peak; wherein, the dual-threshold dynamic decision model includes a low warning threshold and a high confidence threshold for the energy ratio, and a discrimination threshold for the feature difference degree; the classification labels include true target peaks and ghost peaks; The comprehensive judgment module is used to generate a comprehensive judgment result for the Chinese herbal medicine sample to be tested based on the classification labels of each chromatographic peak; wherein the comprehensive judgment result is one of the following: genuine product qualified, counterfeit product unqualified, and detection invalid.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 7.
