A Chinese medicine tongue image recognition system and method based on image recognition technology

Through deep learning computer vision technology and semantic segmentation technology, tongue body features are extracted and cross-domain fusion recognition is performed, which solves the accuracy and standardization problems of traditional tongue image recognition, improves the accuracy and reliability of tongue diagnosis, and provides junior doctors with Diagnostic aids are provided.

CN118570570BActive Publication Date: 2024-10-11HANGZHOU LIUZHI TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411060180.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-11
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

Traditional Chinese medicine tongue identification relies on the clinical experience of doctors. Junior doctors and non-professionals may have inaccurate judgments on tongue shape distinction and lesion location, and there is a lack of standardized and objective identification methods.

Method used

Computer vision technology based on deep learning is used to classify and identify the image to be recognized, and the tongue body part is extracted through semantic segmentation technology, and multi-level feature mining of deep semantic information and shallow texture detail information is performed, based on the deep features and shallow features of the tongue body Cross-domain fusion information is used for tongue shape type recognition.

Benefits of technology

It achieves standardization and precision of tongue image identification, improves the accuracy and reliability of tongue diagnosis, and provides an auxiliary diagnostic tool for junior doctors and non-professionals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570570B_ABST
    Figure CN118570570B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and specifically discloses a Chinese medicine tongue image recognition system and method based on image recognition technology, which uses computer vision technology based on deep learning to classify and identify the image to be identified, and after confirming that the image to be identified is a tongue image, the tongue body part in the image is extracted through semantic segmentation technology, and then the extracted tongue body image is subjected to multi-level feature mining of deep semantic information and shallow texture detail information, and tongue shape type recognition is performed based on cross-domain fusion information of deep features and shallow features of the tongue. In this way, the standardization and precision of tongue image recognition can be achieved, the accuracy and reliability of tongue diagnosis can be improved, and an effective auxiliary diagnosis tool can be provided for junior doctors and non-professionals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and more specifically, to a Chinese medicine tongue image recognition system and method based on image recognition technology. Background Art

[0002] Tongue diagnosis is a method of Chinese medicine that observes the tongue to understand the physiological and pathological changes of the human body, and to judge the health status and diagnose diseases. Tongue diagnosis is one of the most distinctive diagnostic methods in traditional Chinese medicine. After thousands of years of practice and development, it has become a systematic and complete diagnostic method. The ancients called tongue diagnosis "tongue mirror" and likened the tongue image to a mirror of human health, which always shows the health and disease status of the human body.

[0003] Traditional tongue image recognition mainly relies on the clinical experience of TCM experts. However, experienced physicians can perform effective visual assessments, but most junior doctors, young doctors, and assistant doctors may lack sufficient skills in the subjective judgment of tongue diagnosis, and their judgments on tongue shape distinction and lesion location may not fully meet the comprehensive standards of tongue diagnosis. Therefore, in recent years, with the development of image processing technology, new possibilities have been provided for the standardization, objectivity, and precision of TCM tongue image recognition. Therefore, a TCM tongue image recognition system and method based on image recognition technology is expected. Summary of the invention

[0004] In order to solve the above technical problems, the present application is proposed. The embodiment of the present application provides a Chinese medicine tongue image recognition system and method based on image recognition technology, which uses computer vision technology based on deep learning to classify and identify the image to be identified. After confirming that the image to be identified is a tongue image, the tongue part in the image is extracted through semantic segmentation technology, and then the extracted tongue image is subjected to multi-level feature mining of deep semantic information and shallow texture detail information, and tongue shape type recognition is performed based on cross-domain fusion information of deep features and shallow features of the tongue. In this way, the standardization and precision of tongue image recognition can be achieved, the accuracy and reliability of tongue diagnosis can be improved, and an effective auxiliary diagnostic tool can be provided for junior doctors and non-professionals.

[0005] Accordingly, according to one aspect of the present application, a traditional Chinese medicine tongue image recognition system based on image recognition technology is provided, which includes: an image acquisition module for acquiring an image to be identified; a tongue image recognition module for inputting the identified image into a tongue image classifier model to obtain a first classification result, wherein the first classification result is used to indicate whether the image to be identified is a tongue image; a tongue image semantic segmentation module for performing semantic segmentation on the image to be identified to obtain a tongue image in response to the first classification result that the image to be identified is a tongue image; a tongue feature extraction module for extracting tongue features from the tongue image; and a tongue image analysis module for inputting the tongue features into a tongue image analysis result generator based on a classifier to obtain a tongue image analysis result, wherein the tongue image analysis result is a tongue shape type label.

[0006] In the above-mentioned Chinese medicine tongue image recognition system based on image recognition technology, the tongue feature extraction module includes: a tongue image semantic feature extraction unit, which is used to extract semantic features of the tongue image to obtain a tongue semantic feature map; a feature selection and enhancement unit, which is used to perform feature selection and enhancement on the tongue semantic feature map to obtain an enhanced tongue semantic feature map; an image HOG feature extraction unit, which is used to extract the HOG features of the tongue image to obtain a sparse tongue HOG feature vector; a dimensional linear transformation unit, which is used to perform linear transformation on the sparse tongue HOG feature vector to obtain a linearly transformed sparse tongue HOG feature vector, wherein the length of the linearly transformed sparse tongue HOG feature vector is equal to the number of channels of the enhanced tongue semantic feature map; a cross-domain interactive fusion unit, which is used to perform cross-domain interactive fusion on the linearly transformed sparse tongue HOG feature vector and the enhanced tongue semantic feature map to obtain a tongue deep-shallow cross-domain interactive fusion feature map as the tongue feature.

[0007] In the above-mentioned TCM tongue image recognition system based on image recognition technology, the tongue image semantic feature extraction unit is used to: input the tongue image into a tongue semantic feature extractor based on a hole convolutional neural network model to obtain the tongue semantic feature map.

[0008] In the above-mentioned TCM tongue image recognition system based on image recognition technology, the feature selection and enhancement unit is used to: input the tongue semantic feature map into the feature attention selection and enhancement module based on the compression-suppression structure to obtain the enhanced tongue semantic feature map.

[0009] In the above-mentioned Chinese medicine tongue image recognition system based on image recognition technology, the feature selection and enhancement unit includes: an information compression subunit, which is used to calculate the global mean of each feature matrix of the tongue body semantic feature map along the channel dimension to obtain a tongue body semantic compressed information representation feature vector; a compressed information inter-association encoding subunit, which is used to perform one-dimensional convolution encoding on the tongue body semantic compressed information representation feature vector to obtain a tongue body semantic compressed information inter-association representation feature vector; a multi-scale joint subunit, which is used to cascade the tongue body semantic compressed information representation feature vector and the tongue body semantic compressed information inter-association representation feature vector to obtain a tongue body semantic feature compressed information multi-scale joint subunit. scale representation vector; a compression information associated feature extraction subunit, used to input the tongue semantic feature compression information multi-scale representation vector into a compression information feature extraction module including a multi-layer perceptron and a SiLU activation function to obtain a tongue semantic feature compression information multi-scale associated feature vector; a normalization subunit, used to use a Sigmoid function to normalize the tongue semantic feature compression information multi-scale associated feature vector to obtain a tongue semantic feature weight vector; an attention application subunit, used to perform feature amplification and suppression operations on the tongue semantic feature map based on the tongue semantic feature weight vector to obtain the enhanced tongue semantic feature map.

[0010] In the above-mentioned TCM tongue image recognition system based on image recognition technology, the attention application subunit is used to: calculate the Kronecker product of the tongue semantic feature weight vector and each feature matrix of the tongue semantic feature map along the channel dimension to obtain the enhanced tongue semantic feature map.

[0011] In the above-mentioned traditional Chinese medicine tongue image recognition system based on image recognition technology, the image HOG feature extraction unit includes: a directional gradient histogram calculation subunit, which is used to calculate the directional gradient histogram of the tongue image to obtain the tongue HOG feature vector; a principal component analysis subunit, which is used to use the principal component analysis method to perform feature sparseness on the tongue HOG feature vector to obtain the sparse tongue HOG feature vector.

[0012] In the above-mentioned TCM tongue image recognition system based on image recognition technology, the cross-domain interactive fusion unit is used to: input the linearly transformed sparse tongue HOG feature vector and the enhanced tongue semantic feature map into the MetaNet-based tongue feature deep-shallow cross-domain interactive module to obtain the tongue deep-shallow cross-domain interactive fusion feature map.

[0013] In the above-mentioned Chinese medicine tongue image recognition system based on image recognition technology, the cross-domain interactive fusion unit includes: a first point convolution encoding subunit, used to pass the linear transformation sparse tongue HOG feature vector through a point convolution layer to obtain a first convolution feature vector; a first correction subunit, used to pass the first convolution feature vector through a corrected linear unit based on a ReLU function to obtain a first corrected convolution feature vector; a second point convolution encoding subunit, used to pass the first corrected convolution feature vector through a point convolution layer to obtain a second convolution feature vector; a second correction subunit, used to pass the second convolution feature vector through a corrected linear unit based on a Sigmoid function to obtain a second corrected convolution feature vector; a cross-domain fusion subunit, used to fuse the second corrected convolution feature vector with the enhanced tongue semantic feature map to obtain the tongue deep-shallow cross-domain interactive fusion feature map.

[0014] According to another aspect of the present application, a method for identifying tongue images in Traditional Chinese Medicine based on image recognition technology is provided, which includes: acquiring an image to be identified; inputting the identified image into a tongue image classifier model to obtain a first classification result, wherein the first classification result is used to indicate whether the image to be identified is a tongue image; in response to the first classification result being that the image to be identified is a tongue image, performing semantic segmentation on the image to be identified to obtain a tongue body image; extracting tongue body features from the tongue body image; and inputting the tongue body features into a tongue image analysis result generator based on a classifier to obtain a tongue image analysis result, wherein the tongue image analysis result is a tongue shape type label.

[0015] Compared with the prior art, the TCM tongue image recognition system and method based on image recognition technology provided by the present application uses computer vision technology based on deep learning to classify and identify the image to be identified. After confirming that the image to be identified is a tongue image, the tongue body part in the image is extracted through semantic segmentation technology, and then the extracted tongue body image is subjected to multi-level feature mining of deep semantic information and shallow texture detail information, and tongue shape type recognition is performed based on cross-domain fusion information of deep and shallow features of the tongue. In this way, the standardization and precision of tongue image recognition can be achieved, the accuracy and reliability of tongue diagnosis can be improved, and an effective auxiliary diagnostic tool can be provided for junior doctors and non-professionals. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0017] Figure 1It is a block diagram of the tongue feature extraction module in the traditional Chinese medicine tongue image recognition system based on image recognition technology according to an embodiment of the present application.

[0018] Figure 2 Schematic diagram of the architecture of the tongue feature extraction module in the TCM tongue image recognition system based on image recognition technology according to an embodiment of the present application.

[0019] Figure 3 It is a block diagram of a feature selection and enhancement unit in a TCM tongue image recognition system based on image recognition technology according to an embodiment of the present application.

[0020] Figure 4 It is a block diagram of an image HOG feature extraction unit in a traditional Chinese medicine tongue image recognition system based on image recognition technology according to an embodiment of the present application.

[0021] Figure 5 It is a block diagram of a cross-domain interactive fusion unit in a traditional Chinese medicine tongue image recognition system based on image recognition technology according to an embodiment of the present application.

[0022] Figure 6 Flow chart of a method for identifying tongue images in Traditional Chinese Medicine based on image recognition technology according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] Below, the embodiments of the present application will be described in more detail in conjunction with the accompanying drawings, and the above and other purposes, features and advantages of the present application will become more apparent. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the example embodiments described herein.

[0024] As mentioned in the above background technology, traditional tongue image recognition mainly relies on the clinical experience of Chinese medicine experts. For most junior doctors, young doctors and assistant doctors, they may lack sufficient skills in the subjective judgment of tongue diagnosis, and their judgments on tongue shape distinction and lesion location may not fully meet the comprehensive standards of tongue diagnosis. Based on this, the present application proposes a Chinese medicine tongue image recognition system based on image recognition technology, which includes: an image acquisition module for acquiring an image to be identified; a tongue image recognition module for inputting the identified image into a tongue image classifier model to obtain a first classification result, and the first classification result is used to indicate whether the image to be identified is a tongue image; a tongue image semantic segmentation module for responding to the first classification result that the image to be identified is a tongue image, and semantically segmenting the image to be identified to obtain a tongue image; a tongue feature extraction module for extracting tongue features from the tongue image; a tongue image analysis module for inputting the tongue features into a tongue image analysis result generator based on a classifier to obtain a tongue image analysis result, and the tongue image analysis result is a tongue shape type label.

[0025] It should be understood that image recognition technology provides an objective and standard tongue image recognition method, which can effectively solve the problem of inaccurate tongue image recognition caused by the uneven ability of doctors. In the technical solution of the present application, first, the acquired image is classified and recognized by image classification technology to determine whether there is a tongue in the image. Then, when it is recognized that the image contains the tongue, the image is processed by semantic segmentation technology, the tongue part is accurately segmented from the image, and the non-tongue part pixels are filled with background color, so as to reduce the interference of background information on the extraction of tongue features and reduce the computational complexity.

[0026] Subsequently, in the technical solution of the present application, computer vision technology based on deep learning is used to perform multi-level feature mining of deep semantic information and shallow texture detail information on the segmented tongue image, and tongue shape type recognition is performed based on the cross-domain fusion information of the deep and shallow features of the tongue, so as to achieve standardization and precision of tongue image recognition.

[0027] Figure 1 It is a block diagram of the tongue feature extraction module in the traditional Chinese medicine tongue image recognition system based on image recognition technology according to an embodiment of the present application. Figure 2 FIG. 1 is a schematic diagram of the architecture of the tongue feature extraction module in the TCM tongue image recognition system based on image recognition technology according to an embodiment of the present application. Figure 1 and Figure 2 As shown, according to the embodiment of the present application, the tongue feature extraction module 100 of the TCM tongue image recognition system based on image recognition technology includes: a tongue image semantic feature extraction unit 110, which is used to perform semantic feature extraction on the tongue image to obtain a tongue semantic feature map; a feature selection and enhancement unit 120, which is used to perform feature selection and enhancement on the tongue semantic feature map to obtain an enhanced tongue semantic feature map; an image HOG feature extraction unit 130, which is used to extract the HOG features of the tongue image to obtain a sparse tongue HOG feature vector; a dimensional linear transformation unit 140, which is used to perform linear transformation on the sparse tongue HOG feature vector to obtain a linearly transformed sparse tongue HOG feature vector, wherein the length of the linearly transformed sparse tongue HOG feature vector is equal to the number of channels of the enhanced tongue semantic feature map; a cross-domain interactive fusion unit 150, which is used to perform cross-domain interactive fusion on the linearly transformed sparse tongue HOG feature vector and the enhanced tongue semantic feature map to obtain a tongue deep-shallow cross-domain interactive fusion feature map as the tongue feature.

[0028] In the tongue feature extraction module 100 of the above-mentioned TCM tongue image recognition system based on image recognition technology, the tongue image semantic feature extraction unit 110 is used to extract semantic features from the tongue image to obtain a tongue semantic feature map. In a specific example of the present application, the encoding method for extracting semantic features from the tongue image is to input the tongue image into a tongue semantic feature extractor based on a hole convolutional neural network model to obtain the tongue semantic feature map. That is, the tongue image is processed using a hole convolutional neural network model with efficient feature extraction capabilities in the field of image processing, which gradually extracts the deep semantic information of the tongue image by stacking multiple hole convolution layers, and captures the global structure and shape information of the tongue. Among them, the hole convolution (also called dilated convolution) indirectly increases the receptive field of the convolution layer by inserting zero values ​​between the elements of the standard convolution kernel without adding additional parameters and calculations, which helps to capture a wider range of contextual information in the tongue image and fully understand the overall morphology and color distribution of the tongue.

[0029] In the tongue feature extraction module 100 of the above-mentioned TCM tongue image recognition system based on image recognition technology, the feature selection and enhancement unit 120 is used to perform feature selection and enhancement on the tongue semantic feature map to obtain an enhanced tongue semantic feature map. In a specific example of the present application, the processing method for performing feature selection and enhancement on the tongue semantic feature map is to input the tongue semantic feature map into a feature attention selection and enhancement module based on a compression-inhibition structure to obtain the enhanced tongue semantic feature map. It should be understood that, considering that as the convolutional network deepens, the tiny features in the tongue image may be masked by deep semantic information, resulting in the loss of effective detail information. Therefore, in order to further improve the feature expression ability of the tongue semantic feature map, in the technical solution of the present application, a feature attention selection and enhancement module based on a compression-inhibition structure is introduced to perform feature selection and enhancement on the tongue semantic feature map. Specifically, the feature attention selection and enhancement module generates feature attention weights by compressing information on the tongue semantic feature map and mining the multi-level feature associations between the compressed information. The generated attention weights are then used to adaptively weight the original feature map to highlight the subtle details of the tongue image, thereby achieving information focusing and enhancement on the tongue semantic feature map and improving the accuracy and robustness of feature expression.

[0030] Figure 3 FIG. 1 is a block diagram of a feature selection and enhancement unit in a TCM tongue image recognition system based on image recognition technology according to an embodiment of the present application. Figure 3As shown, the feature selection and enhancement unit 120 includes: an information compression subunit 121, which is used to calculate the global mean of each feature matrix along the channel dimension of the tongue body semantic feature map to obtain a tongue body semantic compression information representation feature vector; a compression information correlation encoding subunit 122, which is used to perform one-dimensional convolution encoding on the tongue body semantic compression information representation feature vector to obtain a tongue body semantic compression information correlation representation feature vector; a multi-scale joint subunit 123, which is used to cascade the tongue body semantic compression information representation feature vector and the tongue body semantic compression information correlation representation feature vector to obtain a tongue body semantic feature compression information multi-scale representation vector; The compression information associated feature extraction subunit 124 is used to input the tongue semantic feature compression information multi-scale representation vector into a compression information feature extraction module including a multi-layer perceptron and a SiLU activation function to obtain the tongue semantic feature compression information multi-scale associated feature vector; the normalization subunit 125 is used to use a Sigmoid function to normalize the tongue semantic feature compression information multi-scale associated feature vector to obtain a tongue semantic feature weight vector; the attention application subunit 126 is used to perform feature amplification and suppression operations on the tongue semantic feature map based on the tongue semantic feature weight vector to obtain the enhanced tongue semantic feature map.

[0031] More specifically, the attention applying subunit 126 is used to calculate the Kronecker product of the tongue body semantic feature weight vector and each feature matrix of the tongue body semantic feature map along the channel dimension to obtain the enhanced tongue body semantic feature map.

[0032] That is, the feature selection and enhancement unit 120 is used to: perform attention selection on the tongue body semantic feature map according to the following feature enhancement formula to obtain the enhanced tongue body semantic feature map, wherein the feature enhancement formula is: ;in, The tongue semantic feature map The coordinates in the channel are The characteristic value of and are the height and width of the tongue semantic feature map, respectively, is the first feature vector representing the tongue body semantic compression information eigenvalues, is the feature vector representing the tongue body semantic compression information, represents one-dimensional convolutional coding, Indicates cascade, is the multi-scale representation vector of the compressed information of the tongue semantic feature, represents a multi-layer perceptron, represents the sigmoid function, is the tongue semantic feature map, Represents the Kronecker product of the calculation vector and each feature matrix along the channel dimension of the feature map. It is the enhanced tongue semantic feature map.

[0033] In the tongue feature extraction module 100 of the TCM tongue image recognition system based on image recognition technology, the image HOG feature extraction unit 130 is used to extract the HOG features of the tongue image to obtain a sparse tongue HOG feature vector. Figure 4 FIG. 1 is a block diagram of an image HOG feature extraction unit in a TCM tongue image recognition system based on image recognition technology according to an embodiment of the present application. Figure 4 As shown, the image HOG feature extraction unit 130 includes: a directional gradient histogram calculation subunit 131, used to calculate the directional gradient histogram of the tongue image to obtain the tongue HOG feature vector; a principal component analysis subunit 132, used to use the principal component analysis method to perform feature sparseness on the tongue HOG feature vector to obtain the sparse tongue HOG feature vector.

[0034] Specifically, the directional gradient histogram calculation subunit 131 is used to calculate the directional gradient histogram of the tongue image to obtain the tongue HOG feature vector. That is, in order to obtain the shallow texture detail information of the tongue, in the technical solution of the present application, the directional gradient histogram of the tongue image is further calculated to extract the texture, edge and local detail information of the tongue. Those of ordinary skill in the art should know that the directional gradient histogram is a classic feature description method, which can well capture the corners and texture information in the image by calculating the gradient direction and intensity of the local area of ​​the image. Here, by calculating the HOG features of the tongue image and statistically forming the tongue HOG feature vector, the detailed features of the tongue shape, color and texture of the tongue coating can be effectively obtained, which helps to identify minor abnormalities of the tongue and provide strong support for the subsequent tongue shape type recognition.

[0035] Specifically, the principal component analysis subunit 132 is used to use the principal component analysis method to perform feature sparseness on the tongue HOG feature vector to obtain the sparse tongue HOG feature vector. It should be understood that, considering that the tongue HOG feature vector usually has a higher dimension, it will increase the computational complexity of subsequent classification tasks and may cause catastrophic forgetting of feature dimensions. Therefore, in the technical solution of the present application, the tongue HOG feature vector is further reduced in dimension by the principal component analysis method to remove redundant information in the feature vector and retain its main feature information, thereby reducing the computational complexity, improving the sparsity and independence of the features, and helping to improve the efficiency and accuracy of tongue shape type recognition.

[0036] In the tongue feature extraction module 100 of the TCM tongue image recognition system based on image recognition technology, the dimensional linear transformation unit 140 is used to perform a linear transformation on the sparse tongue HOG feature vector to obtain a linearly transformed sparse tongue HOG feature vector, wherein the length of the linearly transformed sparse tongue HOG feature vector is equal to the number of channels of the enhanced tongue semantic feature map. It should be understood that the enhanced tongue semantic feature map and the sparse tongue HOG feature vector respectively represent the deep semantic information and shallow texture detail information of the tongue. In order to make full use of the complementary information of multi-level features, it is necessary to further perform interactive feature fusion on the enhanced tongue semantic feature map and the sparse tongue HOG feature vector. However, due to the inconsistency of the feature dimensions of the two, in order to achieve interactive fusion of cross-domain features, in the technical solution of the present application, the sparse tongue HOG feature vector is further adjusted to align with the feature space dimension of the enhanced tongue semantic feature map through linear transformation, so that the length of the sparse tongue HOG feature vector after linear transformation is equal to the number of channels of the enhanced tongue semantic feature map, so as to ensure that the two features have good matching and comparability when fused.

[0037] In the tongue feature extraction module 100 of the above-mentioned TCM tongue image recognition system based on image recognition technology, the cross-domain interactive fusion unit 150 is used to perform cross-domain interactive fusion on the linearly transformed sparse tongue HOG feature vector and the enhanced tongue semantic feature map to obtain a tongue deep-shallow cross-domain interactive fusion feature map as the tongue feature. In a specific example of the present application, the cross-domain interactive fusion of the linearly transformed sparse tongue HOG feature vector and the enhanced tongue semantic feature map is performed by inputting the linearly transformed sparse tongue HOG feature vector and the enhanced tongue semantic feature map into a MetaNet-based tongue feature deep-shallow cross-domain interactive module to obtain the tongue deep-shallow cross-domain interactive fusion feature map. That is, in order to achieve the effective fusion of the deep semantic information and shallow texture detail information of the tongue image, in the technical solution of the present application, a cross-domain interactive mechanism based on MetaNet is used to process the linearly transformed sparse tongue HOG feature vector and the enhanced tongue semantic feature map. Among them, the MetaNet model can effectively handle the problem of feature fusion between different domains by learning shared knowledge between different tasks. Here, the enhanced tongue semantic feature map is used as a deep domain feature, and the linearly transformed sparse tongue HOG feature vector is used as a shallow domain feature. Through the MetaNet model, the two are deeply interactively learned, which can capture the complementarity and correlation between features of different domains, and realize the cross-domain fusion of semantic features and texture detail features to form a deep-shallow cross-domain interactive fusion feature map of the tongue. Through this cross-domain interactive fusion method, the complementarity of deep semantic information and shallow texture detail information can be fully utilized to improve the expression ability and recognition effect of features.

[0038] Figure 5 FIG. 1 is a block diagram of a cross-domain interactive fusion unit in a TCM tongue image recognition system based on image recognition technology according to an embodiment of the present application. Figure 5 As shown, the cross-domain interactive fusion unit 150 includes: a first point convolution encoding subunit 151, used to pass the linear transformation sparse tongue HOG feature vector through a point convolution layer to obtain a first convolution feature vector; a first correction subunit 152, used to pass the first convolution feature vector through a corrected linear unit based on a ReLU function to obtain a first corrected convolution feature vector; a second point convolution encoding subunit 153, used to pass the first corrected convolution feature vector through a point convolution layer to obtain a second convolution feature vector; a second correction subunit 154, used to pass the second convolution feature vector through a corrected linear unit based on a Sigmoid function to obtain a second corrected convolution feature vector; a cross-domain fusion subunit 155, used to fuse the second corrected convolution feature vector with the enhanced tongue semantic feature map to obtain the tongue deep-shallow cross-domain interactive fusion feature map.

[0039] In the above-mentioned TCM tongue image recognition system based on image recognition technology, the tongue image analysis module is used to input the tongue body features into the tongue image analysis result generator based on the classifier to obtain the tongue image analysis result, and the tongue image analysis result is the tongue shape type label. Among them, the tongue shape classifier learns the feature representation and decision rules of different tongue shape types by end-to-end training on a large amount of labeled tongue image data, so that it can accurately predict the corresponding tongue shape type label according to the tongue body deep-shallow cross-domain interactive fusion feature map, and realize accurate classification and analysis of tongue images.

[0040] In particular, in the above scheme, the linearly transformed sparse tongue HOG feature vector and the enhanced tongue semantic feature map respectively express the sparse linearly transformed tongue image features of the tongue image and the image semantic features based on feature attention selective weighted enhancement. In this way, after the linearly transformed sparse tongue HOG feature vector and the enhanced tongue semantic feature map are input into the MetaNet-based tongue feature deep-shallow cross-domain interaction module, the obtained tongue deep-shallow cross-domain interaction fusion feature map will have feature aggregation class representation imbalance due to the difference in image semantic feature distribution constraints in the feature matrix dimension and HOG feature distribution constraints in the channel dimension, and after feature regression representation aggregation is performed through clustering operation, the probability density distribution convergence logic of in-class features and out-of-class features will be inconsistent.

[0041] Therefore, in a preferred embodiment of the present application, after the tongue deep-shallow cross-domain interactive fusion feature map is clustered based on the distance between eigenvalues, the in-class features and out-of-class features are further optimized, which specifically includes the following steps: determining the number of eigenvalues ​​in the clustering set obtained by the tongue deep-shallow cross-domain interactive fusion feature map through the clustering operation, that is, the number of in-class features, and subtracting the number of in-class features from the total number of eigenvalues ​​of the tongue deep-shallow cross-domain interactive fusion feature map to obtain the number of out-of-class features; dividing the total number of eigenvalues ​​by the number of in-class features and the number of out-of-class features respectively to obtain the class importance value and the out-of-class proportion value, and calculating the inverse of the class importance value to obtain the class constraint value; calculate the power function of each eigenvalue of the tongue deep-shallow cross-domain interaction fusion feature map with the class importance value as the exponent, and add it to the exponential value with the natural function as the base and the class constraint value as the exponent, and then multiply it by the out-of-class proportion value to obtain the tongue deep-shallow cross-domain interaction fusion modulation feature map; perform point multiplication on the tongue deep-shallow cross-domain interaction fusion feature map and the class importance value to obtain the tongue deep-shallow cross-domain interaction fusion ontology feature map; calculate the weighted sum of the tongue deep-shallow cross-domain interaction fusion modulation feature map and the tongue deep-shallow cross-domain interaction fusion ontology feature map with the weight hyperparameter to obtain the optimized tongue deep-shallow cross-domain interaction fusion feature map.

[0042] That is, the tongue body deep-shallow cross-domain interactive fusion feature map is optimized based on the feature distribution of the in-class features and the out-of-class features using the following optimization formula to obtain the optimized tongue body deep-shallow cross-domain interactive fusion feature map, wherein the optimization formula is: ;in, represents the tongue deep-shallow cross-domain interactive fusion feature map, represents the total number of eigenvalues ​​of the tongue deep-shallow cross-domain interactive fusion feature map, represents the number of features within a class, represents the number of out-of-class features, represents the out-of-class proportion value, represents the class importance value, Represents the class constraint value, represents the weight hyperparameter, represents the power function value of calculating each feature value of the tongue body deep-shallow cross-domain interactive fusion feature map with the class importance value as an exponent, represents dot product, Represents the optimized tongue deep-shallow cross-domain interactive fusion feature map.

[0043] Here, in the technical solution of the present application, while performing a clustering operation on the tongue deep-shallow cross-domain interaction fusion feature map, the clustering importance measurement of the feature value of the tongue deep-shallow cross-domain interaction fusion feature map is combined with the class constraint measurement of the clustering operation to further perform responsive modulation with the out-of-class proportional factor, and based on the clustering scaling of the feature ontology representation of the tongue deep-shallow cross-domain interaction fusion feature map, the clustering operation is used to establish the simplicity and effectiveness of feature purification of the feature set of the tongue deep-shallow cross-domain interaction fusion feature map as a whole, and the inconsistency of the probability density distribution class regression convergence logic caused by the clustering operation is suppressed, so as to improve the class regression iteration effect of the feature set input of the tongue deep-shallow cross-domain interaction fusion feature map based on the classifier of the tongue image analysis result generator, that is, to improve the speed of classification training and the accuracy of the obtained classification results.

[0044] In summary, according to the embodiment of the present application, the TCM tongue image recognition system based on image recognition technology is explained, which uses computer vision technology based on deep learning to classify and identify the image to be identified. After confirming that the image to be identified is a tongue image, the tongue part in the image is extracted through semantic segmentation technology, and then the extracted tongue image is subjected to multi-level feature mining of deep semantic information and shallow texture detail information, and the tongue shape type is identified based on the cross-domain fusion information of the deep and shallow features of the tongue. In this way, the standardization and precision of tongue image recognition can be achieved, the accuracy and reliability of tongue diagnosis can be improved, and an effective auxiliary diagnostic tool can be provided for junior doctors and non-professionals.

[0045] Figure 6 FIG. 1 is a flow chart of a method for identifying tongue images in traditional Chinese medicine based on image recognition technology according to an embodiment of the present application. Figure 6 As shown, according to the embodiment of the present application, the method for identifying tongue images in Traditional Chinese Medicine based on image recognition technology includes the following steps: S1, obtaining an image to be identified; S2, inputting the identified image into a tongue image classifier model to obtain a first classification result, wherein the first classification result is used to indicate whether the image to be identified is a tongue image; S3, in response to the first classification result that the image to be identified is a tongue image, performing semantic segmentation on the image to be identified to obtain a tongue image; S4, extracting tongue features from the tongue image; S5, inputting the tongue features into a tongue image analysis result generator based on a classifier to obtain a tongue image analysis result, wherein the tongue image analysis result is a tongue shape type label.

[0046] Here, those skilled in the art can understand that the specific operations of each step in the above-mentioned TCM tongue image recognition method based on image recognition technology have been referred to above. Figures 1 to 5 The invention has been introduced in detail in the description of the TCM tongue image recognition system based on image recognition technology, and therefore, its repeated description will be omitted.

[0047] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details of the above embodiments are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.

[0048] In the above embodiments, the description of each embodiment has its own emphasis. For the parts that are not described or recorded in detail in a certain embodiment, please refer to the relevant description of other embodiments. In the several embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the system embodiment described above is only schematic. For example, the unit division is only a logical function division, and there may be other division methods in actual implementation. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical sub-unit, that is, it may be located in one place, or it may be distributed on multiple network sub-units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0049] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference to a figure in a claim should not be considered as limiting the claim to which it relates.

[0050] In addition, it is obvious that the word "comprising" does not exclude other sub-units or steps, and the singular does not exclude the plural. Multiple sub-units stated in the system claim can also be implemented by one sub-unit through software or hardware.

[0051] Finally, it should be noted that the above description has been given for the purpose of illustration and description. In addition, the above embodiments are only used to illustrate the technical solution of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A Chinese medicine tongue image recognition system based on image recognition technology, characterized in that: include: An image acquisition module, used for acquiring an image to be identified; A tongue image recognition module, used for inputting the recognition image into a tongue image classifier model to obtain a first classification result, wherein the first classification result is used to indicate whether the image to be recognized is a tongue image; a tongue image semantic segmentation module, used for performing semantic segmentation on the image to be recognized to obtain a tongue image in response to the first classification result indicating that the image to be recognized is a tongue image; a tongue feature extraction module, used for extracting tongue features from the tongue image; a tongue image analysis module, used for inputting the tongue features into a tongue image analysis result generator based on a classifier to obtain a tongue image analysis result, wherein the tongue image analysis result is a tongue shape type label; Wherein, the tongue feature extraction module includes: a tongue image semantic feature extraction unit, which is used to extract semantic features of the tongue image to obtain a tongue semantic feature map; a feature selection and enhancement unit, which is used to perform feature selection and enhancement on the tongue semantic feature map to obtain an enhanced tongue semantic feature map; an image HOG feature extraction unit, which is used to extract the HOG features of the tongue image to obtain a sparse tongue HOG feature vector; a dimensional linear transformation unit, which is used to perform linear transformation on the sparse tongue HOG feature vector to obtain a linearly transformed sparse tongue HOG feature vector, wherein the length of the linearly transformed sparse tongue HOG feature vector is equal to the number of channels of the enhanced tongue semantic feature map; a cross-domain interactive fusion unit, which is used to perform cross-domain interactive fusion on the linearly transformed sparse tongue HOG feature vector and the enhanced tongue semantic feature map to obtain a tongue deep-shallow cross-domain interactive fusion feature map as the tongue feature; The tongue image semantic feature extraction unit is used to: input the tongue image into a tongue semantic feature extractor based on a hole convolutional neural network model to obtain the tongue semantic feature map; The feature selection and enhancement unit is used to: input the tongue body semantic feature map into a feature attention selection and enhancement module based on a compression-inhibition structure to obtain the enhanced tongue body semantic feature map; The feature selection and enhancement unit includes: an information compression subunit, which is used to calculate the global mean of each feature matrix along the channel dimension of the tongue body semantic feature map to obtain a tongue body semantic compressed information representation feature vector; a compressed information inter-association encoding subunit, which is used to perform one-dimensional convolution encoding on the tongue body semantic compressed information representation feature vector to obtain a tongue body semantic compressed information inter-association representation feature vector; a multi-scale joint subunit, which is used to cascade the tongue body semantic compressed information representation feature vector and the tongue body semantic compressed information inter-association representation feature vector to obtain a tongue body semantic feature compressed information multi-scale representation vector; a compression subunit. An information association feature extraction subunit is used to input the tongue semantic feature compression information multi-scale representation vector into a compression information feature extraction module including a multi-layer perceptron and a SiLU activation function to obtain a tongue semantic feature compression information multi-scale association feature vector; a normalization subunit is used to use a Sigmoid function to perform a normalization operation on the tongue semantic feature compression information multi-scale association feature vector to obtain a tongue semantic feature weight vector; an attention application subunit is used to perform feature amplification and suppression operations on the tongue semantic feature map based on the tongue semantic feature weight vector to obtain the enhanced tongue semantic feature map.

2. The TCM tongue image recognition system based on image recognition technology according to claim 1, characterized in that: The attention applying subunit is used to calculate the Kronecker product of the tongue body semantic feature weight vector and each feature matrix of the tongue body semantic feature map along the channel dimension to obtain the enhanced tongue body semantic feature map.

3. The TCM tongue image recognition system based on image recognition technology according to claim 2 is characterized in that: The image HOG feature extraction unit includes: a directional gradient histogram calculation subunit, which is used to calculate the directional gradient histogram of the tongue image to obtain the tongue HOG feature vector; and a principal component analysis subunit, which is used to use the principal component analysis method to perform feature sparseness on the tongue HOG feature vector to obtain the sparse tongue HOG feature vector.

4. The TCM tongue image recognition system based on image recognition technology according to claim 3 is characterized in that: The cross-domain interactive fusion unit is used to: input the linearly transformed sparse tongue HOG feature vector and the enhanced tongue semantic feature map into the MetaNet-based tongue feature deep-shallow cross-domain interactive module to obtain the tongue deep-shallow cross-domain interactive fusion feature map.

5. The TCM tongue image recognition system based on image recognition technology according to claim 4 is characterized in that: The cross-domain interactive fusion unit includes: a first point convolution encoding subunit, used to pass the linear transformation sparse tongue HOG feature vector through a point convolution layer to obtain a first convolution feature vector; a first correction subunit, used to pass the first convolution feature vector through a corrected linear unit based on a ReLU function to obtain a first corrected convolution feature vector; a second point convolution encoding subunit, used to pass the first corrected convolution feature vector through a point convolution layer to obtain a second convolution feature vector; a second correction subunit, used to pass the second convolution feature vector through a corrected linear unit based on a Sigmoid function to obtain a second corrected convolution feature vector; a cross-domain fusion subunit, used to fuse the second corrected convolution feature vector with the enhanced tongue semantic feature map to obtain the tongue deep-shallow cross-domain interactive fusion feature map.

6. A method for identifying tongue images in traditional Chinese medicine based on image recognition technology, using the system for identifying tongue images in traditional Chinese medicine based on image recognition technology according to claim 1, characterized in that: include: Obtain an image to be recognized; Inputting the recognition image into a tongue image classifier model to obtain a first classification result, wherein the first classification result is used to indicate whether the image to be recognized is a tongue image; In response to the first classification result that the image to be identified is a tongue image, semantically segmenting the image to be identified to obtain a tongue image; and extracting tongue features from the tongue image; The tongue body feature is input into a classifier-based tongue image analysis result generator to obtain a tongue image analysis result, where the tongue image analysis result is a tongue shape type label.

Citation Information

Patent Citations

  • Two-stage tongue picture recognition method based on deep learning

    CN113808075A

  • Tongue diagnosis image processing method and device based on key point detection and medium

    CN115661142A

  • Tongue picture recognition system and method based on depth separable convolution

    CN116543429A

  • Tongue picture semantic segmentation method and device, equipment and medium

    CN117576405A

  • Tongue picture end-to-end identification method based on multi-task network

    CN117765566A