Traditional Chinese medicine constitution identification method based on tongue picture characteristics

By combining tongue surface and sublingual image information, fusing expert consensus and text features, and using deep learning and artificial neural network models to identify TCM constitutions, the problem of missing sublingual features and unfused expert consensus in the existing technology is solved, and the problem is achieved. More efficient and accurate identification of TCM constitution.

CN118570539APending Publication Date: 2024-08-30BEIJING UNIV OF CHINESE MEDICINE
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410706522.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing TCM constitution identification methods lack sublingual feature modules and do not integrate tongue image features that are agreed upon by experts, resulting in insufficient tongue image recognition accuracy and efficiency, and it is difficult to achieve better classification results by relying solely on tongue surface image information.

Method used

The traditional Chinese medicine constitution identification method based on tongue image features is used to collect tongue surface and sublingual image information, combine with deep learning model and artificial neural network, integrate tongue image features and text features agreed by experts, use Swin TransformerTiny model for image processing, and The tongue image and text features are understood through the CLIP model, and finally binary classification is performed through the linear layer.

Benefits of technology

It improves the accuracy and reliability of tongue image feature extraction, enhances the accuracy and robustness of the physical fitness identification model, and provides a more comprehensive and personalized health management solution. It is especially effective in resource-constrained environments and improves physical fitness. Reliability and accuracy of identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570539A
    Figure CN118570539A
Patent Text Reader

Abstract

The invention discloses a tongue picture feature-based traditional Chinese medicine constitution identification method, and relates to the technical field of image identification, and the key points of the technical scheme are that the identification method comprises the step of constructing a traditional Chinese medicine constitution identification model of an expert consensus tongue picture feature, and comprises the following steps: collecting tongue picture image information, the tongue picture image information comprises lingual surface image information and sublingual image information; performing expert consensus tongue picture feature extraction through a deep learning model according to the tongue picture image information in the step S1; and after the tongue picture features and the text features are fused, performing constitution identification on the tongue picture features by using an artificial neural network model, and constructing a traditional Chinese medicine constitution identification model of the tongue picture features consensus by experts. According to the method, the tongue picture features and the text features which are consensus by experts are comprehensively utilized, and deep learning and an artificial neural network model are adopted, so that the accuracy and the efficiency in traditional Chinese medicine constitution identification can be improved, and a customized health management scheme can be better provided for individuals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image recognition technology, and more specifically, to a method for identifying TCM constitution based on tongue image characteristics. Background Art

[0002] With the increase in the number of people suffering from sub-health and chronic diseases, the focus has shifted from treatment to prevention, and the threshold has been moved forward. At present, TCM constitution identification is mainly based on the TCM Constitution Scale and expert judgment, and is mainly carried out through medical interviews. With the continuous emergence of emerging technologies, such as big data, artificial intelligence, the Internet of Things, virtual reality, and augmented reality, the research on constitution identification methods also needs to keep up with the development trend of the information society, and continue to improve and innovate, moving towards objectivity, standardization, convenience, and intelligence, so as to better meet the needs of the times.

[0003] Tongue diagnosis is an important part of TCM visual diagnosis and an important embodiment of TCM's principle of inferring the inside from the outside. The tongue is closely related to the five internal organs. Once the qi and blood of the internal organs change, the tongue image will also change. The tongue quality is related to the strength of qi and blood. The prosperity and decline of the tongue coating is a reflection of the surplus and deficiency of body fluids and the rise and fall of evil qi. Constitution also reflects the prosperity and decline of qi, blood, essence and body fluids and the structure and function of the internal organs and meridians to a certain extent. The industry standard "Classification and Determination of TCM Constitution" also proposes that different TCM constitutions have different tongue characteristics, such as phlegm-damp constitution with fat tongue and greasy coating, damp-heat constitution with red tongue and yellow greasy coating, blood stasis constitution with dark tongue with petechiae, or flaky petechiae, and varicose veins under the tongue. These physical characteristics show that tongue image plays a guiding role in the identification of TCM constitution and is an important reference part of TCM physical diagnosis.

[0004] In order to solve the above problems, a Chinese patent (patent publication number: CN114358195A) discloses a method for identifying complex constitutions in traditional Chinese medicine based on an improved VGG16 network, including: step one: collecting human tongue images, classifying human tongue images based on 9 traditional Chinese medicine constitutions, and establishing a tongue image data set; step two: expanding the sample size of the tongue image data set; step three: performing image preprocessing and sample division on the tongue image data set to obtain a training data set and a test data set; step four: constructing a feature extraction network model, using a truncated VGG16 network as a low-dimensional feature extractor, and using a multi-layer optimized Inception network structure as a high-dimensional feature extractor; step five: setting the relevant functions of the feature extraction network model; step six: using multiple optimization methods to optimize the feature extraction network model; step seven: locating and extracting image features; step eight: classifying image features, setting loss functions and gradient descent methods.

[0005] The above scheme improves the accuracy and efficiency of tongue image recognition and better completes the task of TCM constitution identification; however, the TCM complex constitution identification method still has some defects: First, the collection of tongue image feature images is limited in the degree of presentation of constitution characteristics. For example, due to the shooting angle of the instrument or the degree of cooperation of the tester, the image does not present the feature information sufficiently, and only the tongue surface image information is learned, lacking a module for sublingual features; second, the above scheme is based on tongue surface images and does not integrate the tongue image features of expert consensus. It is still difficult to classify the constitution based solely on the information provided by the tongue surface images. Revealing the tongue image characteristics also needs to be combined with other dimensional indicators to achieve better classification results. Summary of the invention

[0006] The purpose of the present invention is to provide a method for identifying TCM constitution based on tongue image characteristics, so as to solve the problems in the prior art such as the lack of a module for sublingual characteristics and the lack of integration of tongue image characteristics with expert consensus.

[0007] The above technical objectives of the present invention are achieved through the following technical solutions: a method for identifying TCM constitution based on tongue image characteristics, the identification method comprising: constructing a TCM constitution identification model based on expert consensus tongue image characteristics, which comprises the following steps:

[0008] S1: collecting tongue image information, wherein the tongue image information includes tongue surface image information and sublingual image information;

[0009] S2: Extracting tongue image features based on expert consensus using a deep learning model based on the tongue image information in step S1;

[0010] S3: After the tongue image features are fused with the text features, the tongue image features are used to identify the constitution using an artificial neural network model, and a TCM constitution identification model based on expert consensus tongue image features is constructed.

[0011] The present invention is further configured as follows: the specific method of the constitution identification is: after converting the expert consensus into a sentence, the visual and language model is used to extract the text features, which are then fused with the tongue image features extracted by the deep learning network model and then binary classified through a linear layer.

[0012] The present invention is further configured as follows: the specific method of the constitution identification is: converting the mild constitution and special constitution scores of the expert consensus into two-dimensional features, and then classifying them after fusing them with the features of the image through a linear layer.

[0013] The present invention is further configured as follows: the deep learning model in step S2 adopts a Swin TransformerTiny model based on a Transformer architecture, and the Swin TransformerTiny model performs efficient image processing tasks in a resource-constrained environment.

[0014] The present invention is further configured as follows: the artificial neural network model in step S3 adopts a plurality of multi-layer perceptrons MLP, including an input layer, a hidden layer and an output layer, the hidden layer performs nonlinear mapping on the input layer, and the output layer performs multi-category logistic regression on the hidden layer to achieve linear classification.

[0015] The present invention is further configured as follows: the vision and language model is a CLIP model developed based on OpenAI, and the CLIP model simultaneously understands the tongue image information and the text features and can establish a connection between the two.

[0016] The present invention is further configured as follows: the identification method further includes an original tongue image marking step and an image preprocessing step performed after the tongue image information acquisition step.

[0017] The present invention is further configured as follows: the image preprocessing step specifically includes scaling the tongue image to 224×224 pixels, and scaling the original tongue image to 512×512 pixels using a scaling function.

[0018] By adopting the above technical solution, the present invention comprehensively utilizes the tongue image information and text information of expert consensus, fully taps the multi-source data of TCM constitution identification, obtains intuitive and objective tongue image features through tongue image collection, and provides richer individual health information by combining text information, such as personal health records and symptom descriptions. This comprehensive utilization of multi-source information makes the constitution identification model more comprehensive and accurate;

[0019] The present invention uses a deep learning model to process tongue image information, which can automatically extract features, including not only basic features such as color and shape of the tongue surface image, but also more detailed features such as vascular distribution and wetness of the sublingual image. This feature extraction method improves the accuracy and reliability of feature extraction;

[0020] The present invention integrates text features with tongue image features, which can provide more dimensional information support, thereby enhancing the accuracy and robustness of the constitution identification model. By combining text information such as personal health records and symptom descriptions, the model can better understand the constitution characteristics and improve the ability to accurately identify individuals.

[0021] The present invention uses an artificial neural network model to identify the fused features, which can better learn and identify the association rules between complex features, thereby achieving accurate physical identification; the neural network model has strong learning and pattern recognition capabilities, can process large-scale data, and extract regular information hidden behind the data, so that the physical identification model has more generalization ability and accuracy;

[0022] The present invention uses innovative methodology, such as converting expert consensus into a sentence, using vision and language models to extract text features and then integrating them with tongue image features extracted by a deep learning network model, and performing binary classification through a linear layer, thereby further improving the performance and accuracy of the constitution identification model. This not only fully considers the diversity and complexity of the data, but also makes the constitution identification model more operational and practical.

[0023] In summary, the present invention has the following beneficial effects:

[0024] 1. The present invention can improve the accuracy and efficiency in TCM constitution identification by comprehensively utilizing the tongue image features and text features of expert consensus, as well as adopting deep learning and artificial neural network models, so as to better provide customized health management solutions for individuals; the present invention adopts the Swin TransformerTiny model for efficient image processing, so that the solution can also be effectively applied in resource-constrained environments, which is particularly important for some areas with scarce medical resources;

[0025] 2. The present invention combines the vision and language model, namely the CLIP model, which can more comprehensively understand the tongue image information and text features and establish the connection between them, thereby providing a deeper level of constitution identification analysis, which helps doctors better understand the patient's physical condition; the present invention introduces the original tongue image annotation step and the image preprocessing step, which helps to improve the data quality and enhance the training effect of the model, thereby improving the credibility of constitution identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a technical roadmap for constructing a TCM constitution identification model based on expert consensus tongue image characteristics in an embodiment of the present invention;

[0027] Figure 2 is a schematic diagram of an image acquisition device in an embodiment of the present invention;

[0028] Figure 3 Schematic diagram of grouping and sample size in an embodiment of the present invention;

[0029] Figure 4 Schematic diagram of cropping tongue surface and sublingual images in an embodiment of the present invention;

[0030] Figure 5 1. is a schematic diagram comparing the accuracy of the sublingual data with and without the sublingual data in the embodiment of the present invention;

[0031] Figure 6 : is a schematic diagram comparing the AUC with and without sublingual data in the embodiments of the present invention;

[0032] Figure 71 is a ROC curve diagram of damp-heat constitution and blood stasis constitution containing sublingual data in an embodiment of the present invention; wherein the left figure is a ROC curve diagram of damp-heat constitution containing sublingual data, and the right figure is a ROC curve diagram of blood stasis constitution containing sublingual data;

[0033] Figure 8 It is the ROC curve diagram of damp-heat quality and blood stasis quality of tongue surface data only in the embodiment of the present invention; wherein, the left figure is the ROC curve diagram of damp-heat quality of tongue surface data only, and the right figure is the ROC curve diagram of blood stasis quality of tongue surface data only. DETAILED DESCRIPTION

[0034] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0035] Embodiment: A method for identifying TCM constitution based on tongue image characteristics, comprising: constructing a TCM constitution identification model based on expert consensus tongue image characteristics, as shown in the attached Figure 1 As shown, it includes the following steps:

[0036] S1: collecting tongue image information, wherein the tongue image information includes tongue surface image information and sublingual image information;

[0037] Dataset preparation: The research team independently developed image acquisition equipment in the early stage, such as Figure 2 As shown in the figure, it can be used to obtain the tongue surface and sublingual images of the tester; the device uses a 20-megapixel high-definition camera and a 3000K warm white LED lamp, and uses a fixed light source to form a closed environment to eliminate the influence of external light; 759 valid clinical samples were collected, and the number of samples in each group is as follows Figure 3 As shown;

[0038] Tongue image preprocessing: Each sample includes a tongue image. The tongue cropping image is shown in Figure 4 As shown in the left figure, in order to adapt to the Swin Transformer, the image is resized. It is generally customary to scale the image to 224×224 pixels, but considering that the tongue and facial features have more details, high resolution is conducive to more physical model training, so the opencv scaling function resize() is used to scale the original image to 512×512 pixels;

[0039] Sublingual image preprocessing: Crop the image according to the pixel value, set the red pixel threshold, determine the position of the sublingual image in the whole image, and crop it. After obtaining the sublingual cropped image, resize it to 512×512 pixels. See the sublingual cropped image for details. Figure 4 As shown in the picture on the right;

[0040] S2: Extracting tongue image features based on expert consensus using a deep learning model based on the tongue image information in step S1;

[0041] Tongue feature extraction:

[0042] Input: For each sample, the preprocessed image of the tongue surface is input. Each pixel block of each image extracts three channel values ​​through the RGB color space, namely red value (R), green value (G) and blue value (B). The value range is 0 to 255. Each image has 3 channels. The input image has 3 channels and a size of 512×512 pixels. The cropped image of the tongue surface is shown in Figure 4 As shown in the left picture.

[0043] Training process: Train the deep learning model according to the table parameter settings.

[0044] Output: The result is binary classification, and the output of the fully connected layer is set to 2. Positive represents the biased constitution, and negative represents the non-biased constitution (balanced constitution);

[0045] Sublingual feature extraction:

[0046] Input: For each sample, input the preprocessed sublingual image. Each image is cropped according to the pixel value. The red pixel threshold is set to determine the position of the sublingual image in the entire image. After cropping, the sublingual cropped image is obtained and resized to 512×512 pixels. The sublingual cropped image is shown in Figure 4 As shown in the picture on the right;

[0047] Training process: Train the deep learning model according to the table parameter settings.

[0048] Output: The result is binary classification, and the output of the fully connected layer is set to 2;

[0049] Expert consensus tongue image feature extraction: All 759 data were used, including sublingual images and tongue surface images. For expert consensus, the original scores were normalized and multiplied by 10, and then the log value was taken and standardized to [0,1]. In this way, the expert consensus scores of mild constitution and special constitution were converted into two-dimensional features. The expert consensus constitution identification tongue image feature entry table is shown in Table 1. After the feature fusion of the linear layer with the image, classification was performed. The number of data sets divided by each model is shown in Table 2.

[0050] Table 1. Number of data sets divided into different models

[0051]

[0052] Table 2 Expert consensus list of tongue features for constitution identification

[0053]

[0054]

[0055] The above deep learning model uses the Swin TransformerTiny model based on the Transformer architecture. The Swin TransformerTiny model performs efficient image processing tasks in a resource-constrained environment. Compared with the original Swin Transformer, Swin Transformer Tiny has made some simplifications and streamlining in the model structure to reduce the number of model parameters and computational complexity while maintaining performance as much as possible.

[0056] The main features of Swin TransformerTiny include: Simplified attention mechanism: Swin Transformer Tiny adopts a simplified attention mechanism to reduce computational complexity; Reduced number of channels and resolution: Swin Transformer Tiny usually reduces the number of channels of each attention head or reduces the resolution of the input image; this can be achieved by using smaller convolution kernels or reducing the number of image blocks; Reduction in depth and width: Swin Transformer Tiny reduces the number of layers of the model and the number of channels per layer to further reduce the number of parameters and computational complexity; Lightweight model structure design: In addition to the above simplification strategies, Swin Transformer Tiny may also adopt some other lightweight model design techniques, such as depthwise separable convolution, channel attention mechanism, etc., to further reduce the complexity of the model while maintaining performance;

[0057] S3: After the tongue image features are fused with the text features, the tongue image features are used to identify the constitution using an artificial neural network model, and a TCM constitution identification model based on expert consensus tongue image features is constructed;

[0058] The present invention uses a deep learning model for training, changes the output of the last layer of the deep learning model to the corresponding output number, estimates 4 feature values ​​from the tongue surface image and the sublingual image respectively, then the output number is 4, and the output layer function is softmax; identifies several features from the image, and then uses the predicted values ​​of these features to identify the constitution; uses concat() to fuse the tongue surface and sublingual features, and the present invention uses an artificial neural network model to complete the model construction from features to constitution;

[0059] The above-mentioned artificial neural network model of the present invention preferably adopts 3 multi-layer perceptrons MLP and uses ReLU as the activation function. The multi-layer perceptron MLP includes an input layer, a hidden layer and an output layer. The hidden layer performs nonlinear mapping on the input layer, and the output layer performs multi-category logistic regression on the hidden layer to realize linear classification.

[0060] Effect evaluation:

[0061] The present invention adopts the peaceful constitution, phlegm-damp constitution, damp-heat constitution and blood stasis constitution containing sublingual data to conduct comparative experiments on the classification of three constitutions containing sublingual data bias; the performance of the three Swin Transformer Tiny diagnostic models containing sublingual data biased constitutions using only tongue surface data in the test set is shown in Table 3 below; the performance of the three Swin Transformer Tiny diagnostic models containing sublingual data biased constitutions after adding sublingual data in the test set is shown in Table 4 below;

[0062] Table 3 Evaluation of the image-to-physique Swin Transformer Tiny diagnostic model using only tongue surface data

[0063]

[0064]

[0065] Table 4 Effect evaluation of image-to-physique Swin Transformer Tiny diagnostic model after adding sublingual data

[0066] Accuracy Recall Precision Specificity AUC Phlegm-damp constitution 0.706 0.625 0.820 0.768 0.692 Moisture and heat 0.815 0.732 0.882 0.846 0.804 Blood Stasis 0.836 0.740 0.892 0.834 0.826

[0067] In order to intuitively reflect the performance improvement before and after adding the sublingual image, a bar graph is drawn to compare the Accuracy and AUC indicators before and after adding it, as shown in the attached figure. Figure 5-6 shown.

[0068] As can be seen from the figure, the performance of the three biased constitutions with sublingual data has been significantly improved after combining the sublingual data features compared with the corresponding three classification models in Table 3.35. Among them, the classification of phlegm-damp constitution has the largest improvement, with the accuracy rate increasing from 56.6% to 70.6%, and the AUC index has also been greatly improved. The improvement of damp-heat constitution and blood stasis constitution is smaller. It can be seen that adding sublingual data can effectively improve the accuracy of the classification model, especially for the situation where the original classification accuracy is low.

[0069] Clinical practicality verification:

[0070] The following are ROC curves of the SwinTransformer Tiny diagnostic model with sublingual data bias and performance > 0.7 (see attached) Figure 7 The ROC curve of the SwinTransformerTiny diagnostic model with sublingual data bias using only tongue surface data (as shown in the attached figure) Figure 8 The ROC curves are all above and to the left of the pure chance line, which has certain clinical practicality.

[0071] The present invention uses 759 images of tongue surface and sublingual collaterals, and tongue features based on expert consensus. A group of sublingual images are added, sublingual features are added, and tongue features are extracted by SwinTransformer Tiny. After fusion with text features, the MLP model is used to construct three constitution binary classification diagnosis models based on tongue features. The accuracy rates are: 70.6% for phlegm-damp constitution, 81.5% for damp-heat constitution, and 83.6% for blood stasis constitution.

[0072] The other group eliminated the sublingual images and excluded the sublingual features. Swin TransformerTiny was used to extract tongue surface features from 759 tongue images. After fusing with text features, the MLP model was used to construct three constitution binary classification diagnosis models based on tongue image features. The accuracy rates were: 58.2% for phlegm-damp constitution, 76.2% for damp-heat constitution, and 78.6% for blood stasis constitution.

[0073] The performance of the three special constitution classification models that added sublingual data was improved after combining the sublingual data features compared to the three biased constitution models that eliminated the sublingual data and excluded the sublingual features. Among them, the phlegm-damp constitution classification was improved the most, with the accuracy increased from 58.2% to 70.6%, and the AUC index was also greatly improved. The improvements in damp-heat constitution and blood stasis constitution were smaller. It can be seen that adding sublingual data can effectively improve the accuracy of the classification model. Therefore, the combination of tongue features based on expert consensus in the present invention makes a certain contribution to constitution identification. At the same time, it is verified that adding modal information will improve the accuracy.

[0074] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.

Claims

1. The TCM constitution identification method based on tongue features is characterized by: The identification method comprises: constructing a TCM constitution identification model based on expert consensus tongue image characteristics, which comprises the following steps: S1: collecting tongue image information, wherein the tongue image information includes tongue surface image information and sublingual image information; S2: Extracting tongue image features based on expert consensus using a deep learning model based on the tongue image information in step S1; S3: After the tongue image features are fused with the text features, the tongue image features are used to identify the constitution using an artificial neural network model, and a TCM constitution identification model based on expert consensus tongue image features is constructed.

2. The method for identifying TCM constitution based on tongue features according to claim 1, characterized in that: The specific method of constitution identification is: after converting the expert consensus into a sentence, the visual and language model is used to extract the text features, which are then fused with the tongue image features extracted by the deep learning network model and then binary classified through a linear layer.

3. The method for identifying TCM constitution based on tongue features according to claim 1, characterized in that: The specific method of the constitution identification is: converting the expert consensus's mild constitution and special constitution scores into two-dimensional features, and then classifying them after fusing them with the features of the image through a linear layer.

4. The method for identifying TCM constitution based on tongue features according to claim 1, characterized in that: The deep learning model in step S2 adopts the Swin Transformer Tiny model based on the Transformer architecture, and the Swin Transformer Tiny model performs efficient image processing tasks in a resource-constrained environment.

5. The method for identifying TCM constitution based on tongue features according to claim 1, characterized in that: The artificial neural network model in step S3 uses several multi-layer perceptrons MLP, including an input layer, a hidden layer and an output layer. The hidden layer performs nonlinear mapping on the input layer, and the output layer performs multi-class logistic regression on the hidden layer to achieve linear classification.

6. The method for identifying TCM constitution based on tongue features according to claim 2, characterized in that: The vision and language model is a CLIP model developed based on OpenAI. The CLIP model simultaneously understands the tongue image information and the text features and can establish a connection between the two.

7. The method for identifying TCM constitution based on tongue features according to claim 1, characterized in that: The identification method further includes an original tongue image marking step and an image preprocessing step which are performed after the step of collecting tongue image information.

8. The method for identifying TCM constitution based on tongue features according to claim 7, characterized in that: The image preprocessing step specifically involves scaling the tongue image to 224×224 pixels, and scaling the original tongue image to 512×512 pixels using a scaling function.

Citation Information

Cited By

  • AI physique diagnosis software analysis system

    CN119480075A

  • Feature dynamic embedding-based traditional Chinese medicine constitution iterative identification method, system and terminal

    CN119811682A

  • Traditional Chinese medicine constitution identification method and device, storage medium and server

    CN120148856A