Artificial intelligence-based pseudo-ginseng producing area identification method, storage medium and device

Through the dimensionality reduction and similarity calculation method of Panax notoginseng near-infrared spectrum data set based on artificial intelligence, the problem of insufficient accuracy in the origin identification of Panax notoginseng medicinal materials is solved, and the green, non-destructive and intelligent origin identification of Panax notoginseng medicinal materials is realized, which is suitable for Origin identification and quality control of traditional Chinese medicinal materials.

CN118762231APending Publication Date: 2024-10-11CHONGQING CITY MANAGEMENT COLLEGE
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411069597.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The existing technology has insufficient accuracy in identifying the origin of Panax notoginseng medicinal materials. Especially when the medicinal materials are processed into pieces or powders, the identification ability of the trait identification method is limited, and the accuracy of image recognition is not high. It is subject to uneven illumination, shadows, Reflection and other factors have a greater impact, making it difficult to directly apply it to the identification of origin and quality control of Chinese medicinal materials.

Method used

An artificial intelligence-based method is used to obtain the Panax notoginseng near-infrared spectrum data set, perform dimensionality reduction and then divide the training set and the test set, calculate the sample similarity, and count the contribution of the categories of the K samples with the highest similarity to predict Origin classification.

Benefits of technology

It realizes green, non-destructive and intelligent origin identification of Panax notoginseng medicinal materials, takes into account the linear and non-linear relationships between samples, improves the accuracy and reliability of identification, and is suitable for identification of origin and quality control of Chinese medicinal materials.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762231A_ABST
    Figure CN118762231A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of artificial intelligence identification, and particularly relates to a pseudo-ginseng producing area identification method based on artificial intelligence, a storage medium and a pseudo-ginseng producing area identification device. Constructing a pseudo-ginseng near infrared spectrum data set; carrying out dimension reduction processing on data in the pseudo-ginseng near infrared spectrum data set; dividing the data set after dimension reduction into a training set and a test set; calculating the similarity between the samples in the test set and the samples in the training set; counting the contribution degree of the category where the K samples with the highest similarity are located; taking the category with the highest contribution degree in the K samples as a prediction category; on the basis of equipment in the prior art, only the pseudo-ginseng near infrared spectrum data sets of different producing areas need to be constructed, then green, lossless and intelligent producing area identification is carried out on the pseudo-ginseng traditional Chinese medicinal material through software, and hardware cost does not need to be increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of artificial intelligence identification, and specifically relates to a method, storage medium and device for identifying the origin of Panax notoginseng based on artificial intelligence. Background Art

[0002] Panax notoginseng is the dried root of a perennial herbaceous plant of the genus Panax in the Araliaceae family. In recent years, it has received widespread attention in the medical field because it is non-toxic and has no side effects. Panax notoginseng has a cultivation history of more than 600 years in China. Panax notoginseng produced in Wenshan, China is considered to be "invaluable" and is expensive. However, due to the serious continuous cropping obstacles in the original production area of ​​Wenshan, Wenshan Panax notoginseng is under-planted and its price is much higher than that of other production areas. Using other Panax notoginseng as a substitute for Wenshan Panax notoginseng has become a very common problem in the herbal medicine market, and once Panax notoginseng leaves its place of origin, it is basically labeled as Wenshan Panax notoginseng. Therefore, it is necessary to identify the origin of Panax notoginseng.

[0003] Traditional methods for identifying Panax notoginseng are mainly character identification and microscopic identification. Character identification is to identify the authenticity, quality and origin of medicinal materials by observing the shape, size, color, texture, smell, surface and fracture characteristics, and the main identification characteristics in water test and fire test. It is the simplest, fastest and easiest identification method. However, this character identification method is only suitable for the identification of complete medicinal materials. When the medicinal materials are processed into pieces or powders, the necessary character characteristics are lost, and the identification ability of the character identification method is limited. Microscopic identification is to use microscopic technology to analyze and identify the tissue structure, cell morphology and inclusions of traditional Chinese medicine. It is suitable for the identification of complete medicinal materials, broken or powdered medicinal materials, and Chinese patent medicines whose appearance is difficult to identify. Microscopic identification is especially suitable for the identification of powdered medicinal materials. Compared with physical and chemical identification and molecular identification, microscopic identification requires simple instruments, uses less reagents, and has a fast identification speed, but it also has some shortcomings. The microscopic characteristics of medicinal materials of the same genus are similar, making it difficult to identify them. For example, the application number 201910168812.X, "A method for identifying authentic and fake mixed Chinese medicinal materials based on artificial intelligence", discloses that photographing authentic and fake Chinese medicinal material particles obtains a data set, and then the multi-dimensional features of the image data set are input into the SVM model for training, and finally the classification of authentic Chinese medicinal materials and fake Chinese medicinal materials is realized; the patent application number 202111593705.5, "A method for identifying authentic Chinese medicinal materials with hyperspectral images of adaptive random block convolution kernel networks", discloses that hyperspectral images of Chinese medicinal materials are collected to construct a data set, and then the optimal clustering framework is used to obtain the optimal band subset of the data set and select the best feature band, and then principal component analysis is used to reduce the dimension of the data set, and finally an adaptive random convolution kernel network is used to realize the classification of Chinese medicinal materials. Patent application number 202111034530.4, “A method for identifying medicinal materials and decoction pieces based on image annotation deep learning algorithm model”, discloses obtaining pictures of medicinal materials or decoction pieces to be identified and extracting features from the pictures, and then using the feature data to identify the type of medicine or decoction piece to be identified through a recurrent neural network model. Patent application number 202010360338.3, “A method for constructing a classification model for the provenance of Herba Anopheles based on NIR spectroscopy and its application”, discloses collecting near-infrared spectral data of Herba Anopheles samples, then preprocessing the infrared spectral data, and finally applying the SVM model to classify the provenance of Herba Anopheles.

[0004] In the above-mentioned prior art, since the morphology, color, texture and other characteristics of Chinese medicinal materials are affected by many factors and have large variability, the quality of the image and the shooting conditions will affect the accuracy of image recognition. For example, factors such as uneven lighting, shadows, and reflections will make it difficult to extract the features of the image, thereby affecting the identification results; the data preprocessing methods and machine learning models used in the above patents are mature methods and models, and the recognition accuracy given by the scheme is not high, which shows that the existing mature methods and models are difficult to directly apply to the identification of the origin and quality control of Chinese medicinal materials. Summary of the invention

[0005] In order to solve the problems existing in the above-mentioned prior art, the present invention proposes a method for identifying the origin of Panax notoginseng based on artificial intelligence, which includes: obtaining a Panax notoginseng sample to be identified; constructing a Panax notoginseng near-infrared spectrum data set; performing dimensionality reduction processing on the data in the Panax notoginseng near-infrared spectrum data set; dividing the data set after dimensionality reduction into a training set and a test set; calculating the similarity between the samples in the test set and the samples in the training set; counting the contribution of the categories to which the K samples with the highest similarity belong; and taking the category with the highest contribution among the K samples as the predicted classification.

[0006] To achieve the above objectives, the present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, any of the above-mentioned artificial intelligence-based methods for identifying the origin of Panax notoginseng is implemented.

[0007] To achieve the above-mentioned purpose, the present invention also provides an artificial intelligence-based Panax notoginseng origin identification device, comprising a processor and a memory; the memory is used to store computer programs; the processor is connected to the memory, and is used to execute the computer programs stored in the memory, so that the artificial intelligence-based Panax notoginseng origin identification device can execute any of the above-mentioned artificial intelligence-based Panax notoginseng origin identification methods.

[0008] Beneficial effects of the present invention:

[0009] Based on the existing technology and equipment, the present invention only needs to construct a near-infrared spectral data set of Panax notoginseng from different origins, and then realize green, non-destructive and intelligent origin identification of Panax notoginseng Chinese medicinal materials through software without increasing hardware costs; the present invention takes into account both the linear relationship and the nonlinear relationship between samples; the stronger the comprehensive correlation between samples, the larger the calculated similarity value, which indicates that the possibility that the two samples are of the same category is greater; the present invention uses the sum of sample similarities as the contribution of the category, which fully considers the problem of non-uniform distribution of samples. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is the overall flow chart of the present invention;

[0011] Figure 2 A flowchart of the present invention for performing dimensionality reduction processing on data in a Panax notoginseng near-infrared spectrum data set;

[0012] Figure 3 The figure is a flow chart of sample similarity calculation of the present invention. DETAILED DESCRIPTION

[0013] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0014] A method for identifying the origin of Panax notoginseng based on artificial intelligence, such as Figure 1 As shown, the method includes: obtaining a Panax notoginseng sample to be identified; constructing a Panax notoginseng near-infrared spectrum data set; performing dimensionality reduction processing on the data in the Panax notoginseng near-infrared spectrum data set; dividing the reduced dimensionality data set into a training set and a test set; calculating the similarity between the samples in the test set and the samples in the training set; calculating the contribution of the categories to which the K samples with the highest similarity belong; and taking the category with the highest contribution among the K samples as the predicted classification.

[0015] In this embodiment, constructing a Panax notoginseng near-infrared spectral data set includes: collecting Panax notoginseng Chinese medicinal material samples from different origins; cleaning, drying and grinding the Panax notoginseng samples; taking 2 grams of sample powder and using a Fourier transform near-infrared spectrometer to collect near-infrared spectral data of the Panax notoginseng powder; storing all near-infrared spectral data and storing each sample by row; marking the origin of each sample to obtain a Panax notoginseng near-infrared spectral data set.

[0016] Specifically, multiple batches of Panax notoginseng Chinese medicinal material samples from different origins were collected and processed. First, after washing the soil on the surface of the Panax notoginseng samples, the samples were dried to constant weight at a constant temperature of 50°C using a Longyue LDO-9000 air drying oven, crushed using a grinder, and the medicinal powder was screened through an 80-mesh sieve to ensure uniform particle size. About 2 grams of powder was taken from each sample and placed in a glass weighing bottle to ensure that the surface of the powder was flat. Then, a Bruker Matrix-F Fourier transform near-infrared spectrometer was used to collect near-infrared spectral data. The parameters were set as follows: the resolution was 1.0cm -1 The scanning number was 64 times, air was used as reference, the scanning mode was diffuse reflectance spectroscopy, and the spectral range was 4000-10000cm -1 . Each Panax notoginseng powder sample was subjected to 3 spectral acquisitions, and the average spectrum was taken as the near-infrared spectrum of the sample. All spectra were measured in reflection mode and recorded as the logarithm of the reciprocal reflectance. Finally, the near-infrared spectrum data of each Panax notoginseng sample were stored row by row, and the origin of each sample was labeled to construct a Panax notoginseng near-infrared spectrum raw data set X with origin labels.

[0017] In this embodiment, since the dimension of each sample of the original dataset X of Panax notoginseng near-infrared spectrum reaches 6000 dimensions, if the original dataset X is directly used for the training and testing of the next model, it will inevitably consume more computing resources and time. Therefore, it is necessary to perform dimensionality reduction processing on the original dataset X of Panax notoginseng near-infrared spectrum to obtain a new dataset X after dimensionality reduction. p .like Figure 2 As shown, the dimensionality reduction processing of the data includes: calculating the mean of each feature in the Panax notoginseng near-infrared spectroscopy data set, and subtracting the mean of the corresponding feature from all samples to obtain a centralized data matrix; calculating the covariance matrix based on the centralized data matrix; performing eigenvalue decomposition on the covariance matrix to obtain eigenvalues ​​and eigenvectors; arranging the eigenvectors in descending order according to the size of the eigenvalues, and selecting the first P eigenvectors as the new feature space; projecting the new feature space to obtain a projection matrix; multiplying the projection matrix by the centralized data matrix to obtain a dimensionality-reduced data matrix.

[0018] The specific steps for data dimensionality reduction include:

[0019] Step 1: Center the data; that is, calculate the mean of each feature (each dimension represents a feature) of the original data set X of Panax notoginseng near-infrared spectrum, and subtract the mean of the corresponding feature from all samples to obtain the centralized data matrix X c .

[0020]

[0021] Where N represents the number of samples in matrix X, M represents the number of features (dimensions) of each sample in matrix X, Represents the mean of each feature of matrix X, x ij represents the spectral data value of the jth feature of the i-th sample of matrix X, x i ' j represents the spectral data value of the jth feature of the ith sample after centering, X c Represents the centered data matrix.

[0022] Step 2: Calculate the covariance matrix; that is, the centralized data matrix X c After transposing, multiply it by itself and divide it by the number of samples N to get the covariance matrix C.

[0023]

[0024] Step 3: Perform eigendecomposition on the covariance matrix C, that is, perform eigenvalue decomposition on the covariance matrix C to obtain the eigenvalue λ i and the corresponding eigenvector υ i .

[0025] Cvi =λ i v i

[0026] Step 4: Select the principal component; that is, arrange the eigenvectors in descending order of eigenvalue, and select the first P eigenvectors as the new feature space, where P is the dimension after dimensionality reduction (the default value of parameter P is 5, which can be adjusted according to actual conditions, and is usually less than 10).

[0027] Step 5: Data projection: The centralized data matrix X c The projection matrix V formed by the selected eigenvector p Multiply them to get the reduced-dimensional data matrix X p .

[0028] X p =X c V p

[0029] Among them, V p Including the first P eigenvectors υ i The projection matrix.

[0030] For the reduced dimension dataset X p Split the dataset into training and test sets. p The basic principle of splitting is to randomly shuffle the samples in the entire data set to ensure that the training set and test set after splitting are random and representative sample subsets. Dataset X p 80% of the total number of p_train , and the remaining 20% ​​is used as the test set X p_test .

[0031] In this embodiment, if Figure 3 As shown, calculating the similarity between samples in the test set and samples in the training set includes: calculating the similarity between the i-th sample to be identified in the test set and the j-th sample in the training set to obtain the similarity value of the two samples; combining the similarity values ​​calculated for all samples to obtain a similarity array; and sorting the similarity values ​​in the similarity array from large to small to obtain a new similarity array.

[0032] Specifically include:

[0033] Step 1: Calculate similarity: p_test The i-th sample to be identified x i_test With training set X p_train The jth sample x j_train Perform similarity calculation to obtain the similarity value s of the two samples ij .

[0034] The similarity calculation formula in the first embodiment is:

[0035]

[0036] Among them, x i_test,p Denotes the test set X p_test The value of the pth feature of the i-th sample to be identified, x j_train,p Represents the training set X p_train The value of the pth feature of the jth sample, P represents the number of features of the sample (the dimension of the original dataset of Panax notoginseng near-infrared spectrum after dimensionality reduction), N test Denotes the test set X p_test The number of samples, N train Represents the training set X p_train The number of samples.

[0037] The similarity calculation formula in the second embodiment is:

[0038]

[0039] Among them, xp i,p Represents the dataset X p The value of the pth feature of the i-th sample, x i_test,p Denotes the test set X p_test The value of the pth feature of the i-th sample to be identified, x j_train,p Represents the training set X p_train The value of the pth feature of the jth sample, μ p Represents the dataset X p The mean of the pth feature, σ p Represents the dataset X p The standard deviation of the pth feature, P represents the number of features of the sample (the dimension of the original dataset of Panax notoginseng near-infrared spectrum after dimensionality reduction), N test Denotes the test set X p_test The number of samples, N train Represents the training set X p_train The number of samples.

[0040] In the third embodiment, the similarity calculation formula is:

[0041]

[0042] s ij =(1-α)·s r +α·s c

[0043] 1≤i≤N test ,1≤j≤N train

[0044] Among them, xi_test,p Denotes the test set X p_test The value of the pth feature of the i-th sample to be identified, x j_train,p Represents the training set X p_train The value of the pth feature of the jth sample, s r Denotes the test set X p_test The i-th sample to be identified x i_test With training set X p_train The jth sample x j_train The distance similarity, s c Denotes the test set X p_test The i-th sample to be identified x i_test With training set X p_train The jth sample x j_train , α represents the mixing factor, the parameter range is [0,1]. The smaller the value of the mixing factor α, the greater the weight of the distance similarity. The larger the value of the mixing factor α, the greater the weight of the angle similarity. P represents the number of features of the sample (the dimension of the original data set of Panax notoginseng near-infrared spectrum after dimensionality reduction), N test Denotes the test set X p_test The number of samples, N train Represents the training set X p_train The number of samples.

[0045] Calculate the test set X p_test The i-th sample to be identified x i_test With training set X p_train The similarity of each sample, get a similarity array s i .

[0046] Step 2: Sorting the similarity array: sort the similarity array s i Sort the values ​​from large to small to get a new array d i .

[0047] d i =descence_sort(s i )

[0048] Statistical contribution of the category of the K samples with the highest similarity, that is, statistical test set X p_test The i-th sample to be identified x i_test With training set X p_train The contribution of the category of the K samples with the highest similarity (the default value of parameter K is 5, and the parameter can be adjusted according to the actual scenario). For example, among the K samples, 2 samples are of category A and 3 samples are of category B. Then, the similarities of the 2 samples of category A are added as the contribution of category A, and the similarities of the 3 samples of category B are added as the contribution of category B.

[0049] weighted_votes[labels[t]]+=d i [k]

[0050] Among them, d i [k] represents the similarity array d sorted in descending order of values i The similarity of the kth sample, labels[t] represents the label of sample category t, and weighted_votes[labels[t]] represents the sum of the similarities of sample category t in K samples.

[0051] In this embodiment, taking the category with the highest contribution among the K samples as the predicted category includes: returning the category with the highest contribution as the test set X according to the contribution array weighted_votes of the categories where the K samples are located. p_test The i-th sample to be identified x i_test Calculate the predicted classification result and the actual category y of the sample test Prediction accuracy: The final prediction classification result is obtained based on the prediction accuracy; its expression is:

[0052]

[0053] Among them, count represents the count of the predicted classification results and the actual category of the sample, N test Denotes the test set X p_test The accuracy represents the prediction accuracy of the artificial intelligence model.

[0054] In terms of the identification of the origin of Chinese medicinal materials, this technical solution can accurately determine the origin of Panax notoginseng. The traditional method of identifying the origin of Panax notoginseng is subjective and uncertain, resulting in low reliability of the identification results. This technical solution uses artificial intelligence algorithms to quickly and accurately identify the origin of Panax notoginseng based on the characteristic data of Panax notoginseng.

[0055] In terms of quality control of traditional Chinese medicine production, this technical solution can assist traditional Chinese medicine companies in accurately judging the quality of the purchased Panax notoginseng medicinal materials. Companies can better control the quality of raw materials and ensure that the produced medicines meet the prescribed quality standards.

[0056] In terms of drug safety supervision, this technical solution can be used as an auxiliary means to help regulatory authorities inspect and supervise Panax notoginseng drugs circulating in the market. This technical solution can also be used to monitor and analyze the traditional Chinese medicine market, timely understand the market supply and product quality status, and thus formulate more effective regulatory measures and policies.

[0057] The existing scheme calculates the distance between two samples (Euclidean distance, Manhattan distance) and takes the reciprocal of their distance as the similarity of the two samples. Both Euclidean distance and Manhattan distance are very sensitive to outliers and cannot capture the correlation between samples, which will directly affect the classification accuracy of the model. The first scheme: This scheme focuses on the correlation between samples. When the correlation between samples is stronger, the calculated similarity value is larger, which indicates that the possibility that the two samples are of the same category is greater. The second scheme: In addition to considering the distance between two samples, this scheme also maps their distance with the sigmoid function, indirectly converting the distance between the two samples into the similarity between the two samples, making the similarity measurement between the two samples more accurate. When the correlation between samples is stronger, the calculated similarity value is larger, which indicates that the possibility that the two samples are of the same category is greater. The third scheme: The present invention pioneered the introduction of two indicators, distance and direction, and uses distance similarity and angle similarity to characterize the similarity between two samples. The present invention considers both the linear relationship between samples and the nonlinear relationship between samples. The stronger the comprehensive correlation between samples, the larger the calculated similarity value, which indicates that the possibility that the two samples belong to the same category is greater.

[0058] In the existing technical solution, after calculating the distance between two samples, the distance array is sorted from small to large (the smaller the distance, the greater the possibility that the two samples are of the same class), and then the first K samples of the distance array are taken for counting statistics. For example, in K = 5 samples, category A appears 2 times and category B appears 3 times, then the predicted category of the sample to be identified is B. The existing solution only considers the number of times the category appears, ignoring the influence of the weight on the prediction result. This solution uses the sum of sample similarities as the contribution of the category, which fully considers the problem of non-uniform distribution of samples. For example, in K = 5 samples, category A appears 2 times, with similarities of 0.8 and 0.3 respectively, and category B appears 3 times, with similarities of 0.5, 0.3, and 0.2 respectively. Then the contribution of category A is 1.1, and the contribution of category B is 1.0. Although category B appears more times than category A, the predicted category of the sample to be identified is A in the end because the similarity between the sample to be identified and category A is greater. To take an extreme example, in a binary classification problem, if there are only 5 samples of category A in the training set and the rest of the samples are of category B, when K≥11, the number of occurrences of category A must be ≤5, and the number of occurrences of category B must be ≥6, that is, the number of occurrences of category B is always greater than the number of occurrences of category A. If the existing solution is used, no matter whether the actual category of the sample to be identified is A or B, the model's predicted category will only be B.

[0059] In one embodiment of the present invention, the present invention also includes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-mentioned artificial intelligence-based methods for identifying the origin of Panax notoginseng.

[0060] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

[0061] A device for identifying the origin of Panax notoginseng based on artificial intelligence comprises a processor and a memory; the memory is used to store computer programs; the processor is connected to the memory and is used to execute the computer programs stored in the memory, so that the device for identifying the origin of Panax notoginseng based on artificial intelligence can execute any of the above-mentioned methods for identifying the origin of Panax notoginseng based on artificial intelligence.

[0062] Specifically, the memory includes: ROM, RAM, magnetic disk, USB flash drive, memory card or optical disk, etc., which can store program codes.

[0063] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0064] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for identifying the origin of Panax notoginseng based on artificial intelligence, characterized in that: include: Obtaining a Panax notoginseng sample to be identified; Construct a Panax notoginseng near-infrared spectroscopy dataset; Perform dimensionality reduction on the data in the Panax notoginseng near-infrared spectroscopy dataset; Divide the reduced-dimensional dataset into training and test sets; Calculate the similarity between samples in the test set and samples in the training set; The contribution of the categories of the K samples with the highest similarity is calculated; the category with the highest contribution among the K samples is taken as the predicted category.

2. The method for identifying the origin of Panax notoginseng based on artificial intelligence according to claim 1, characterized in that: Constructing the Panax notoginseng near-infrared spectroscopy dataset includes: collecting Panax notoginseng Chinese medicinal material samples from different origins; cleaning, drying and grinding the Panax notoginseng samples; taking 2 grams of sample powder and using a Fourier transform near-infrared spectrometer to collect near-infrared spectral data of the Panax notoginseng powder; storing all near-infrared spectral data and storing each sample by row; marking the origin of each sample to obtain the Panax notoginseng near-infrared spectroscopy dataset.

3. The method for identifying the origin of Panax notoginseng based on artificial intelligence according to claim 1, characterized in that: The dimensionality reduction processing of the data includes: calculating the mean of each feature in the Panax notoginseng near-infrared spectroscopy data set, and subtracting the mean of the corresponding feature from all samples to obtain a centralized data matrix; calculating the covariance matrix based on the centralized data matrix; performing eigenvalue decomposition on the covariance matrix to obtain eigenvalues ​​and eigenvectors; arranging the eigenvectors in descending order according to the size of the eigenvalues, and selecting the first P eigenvectors as the new feature space; projecting the new feature space to obtain a projection matrix; multiplying the projection matrix by the centralized data matrix to obtain a dimensionality-reduced data matrix.

4. The method for identifying the origin of Panax notoginseng based on artificial intelligence according to claim 1, characterized in that: Calculating the similarity between samples in the test set and samples in the training set includes: calculating the similarity between the i-th sample to be identified in the test set and the j-th sample in the training set to obtain the similarity value of the two samples; combining the similarity values ​​calculated for all samples to obtain a similarity array; and sorting the similarity values ​​in the similarity array from large to small to obtain a new similarity array.

5. The method for identifying the origin of Panax notoginseng based on artificial intelligence according to claim 4, characterized in that: The similarity between the i-th sample to be identified in the test set and the j-th sample in the training set is calculated as: s ij =(1-α)·s r +a·s c 1≤i≤N test ,1≤j≤N train Among them, x i_test,p Denotes the test set X p_test The value of the pth feature of the i-th sample to be identified, x j_train,p Represents the training set X p_train The value of the pth feature of the jth sample, s r Denotes the test set X p_test The i-th sample to be identified x i_test With training set X p_train The jth sample x j_train The distance similarity, s c Denotes the test set X p_test The i-th sample to be identified x i_test With training set X p_train The jth sample x j_train , α represents the mixing factor, P represents the number of features of the sample, N test Denotes the test set X p_test The number of samples, N train Represents the training set X p_train The number of samples.

6. The method for identifying the origin of Panax notoginseng based on artificial intelligence according to claim 1, characterized in that: The contribution of the category of the K samples with the highest statistical similarity is: weighted_votes[labels[t]]+=d i [k] Among them, d i [k] represents the similarity array d sorted in descending order of values i The similarity of the kth sample, labels[t] represents the label of sample category t, and weighted_votes[labels[t]] represents the sum of the similarities of sample category t in K samples.

7. The method for identifying the origin of Panax notoginseng based on artificial intelligence according to claim 1, characterized in that: The category with the highest contribution among the K samples is used as the predicted category, including: the contribution array weighted_votes of the categories of the K samples obtained by statistics, and the category with the highest contribution is returned as the test set X p_test The i-th sample to be identified x i_test Calculate the predicted classification result and the actual category y of the sample test Prediction accuracy: The final prediction classification result is obtained based on the prediction accuracy; its expression is: Among them, count represents the count of the predicted classification results and the actual category of the sample, N test Denotes the test set X p_test The accuracy represents the prediction accuracy of the artificial intelligence model.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to provide a method for identifying the origin of Panax notoginseng based on artificial intelligence as described in any one of claims 1 to 7.

9. An artificial intelligence-based device for identifying the origin of Panax notoginseng, characterized in that: It comprises a processor and a memory; the memory is used to store a computer program; the processor is connected to the memory and is used to execute the computer program stored in the memory, so that the artificial intelligence-based Panax notoginseng origin identification device executes the artificial intelligence-based Panax notoginseng origin identification method described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • artificial intelligence-based true and false mixed traditional Chinese medicinal material identification method

    CN109919224A

  • Construction method and application of clinacanthus nutans seed source land classification model based on NIR spectrum

    CN111595802A

  • A medicinal material or decoction piece identification method based on an image annotation deep learning algorithm model

    CN113537255A

  • Hyperspectral traditional Chinese medicinal material identification method based on adaptive random block convolution kernel network

    CN113989525A