Diabetes traditional Chinese medicine hand diagnosis data processing method, system and equipment based on deep learning and medium
Through deep learning technology, combined with hand image segmentation, pathological pattern features and color feature extraction, the objective diagnosis of diabetes in traditional Chinese medicine hand diagnosis is achieved, which solves the problem of existing methods relying on experience, improves the efficiency and accuracy of diagnosis, and provides a new basis for traditional Chinese medicine. Intelligent development provides support.
Patent Information
- Application Number
- CN202411032002.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-11
AI Technical Summary
The existing traditional Chinese medicine hand diagnosis method for diabetes relies on the doctor's experience and lacks objectification and digital description, resulting in low diagnostic efficiency and inconvenience for promotion.
A multi-model integration strategy based on deep learning is used to construct a hand image segmentation model, pathological pattern feature extraction model and color feature extraction model. Through image segmentation, feature extraction and feature fusion, objective diagnosis of diabetes in traditional Chinese medicine hand diagnosis is achieved.
It improves the objectivity and accuracy of hand diagnosis of traditional Chinese medicine for diabetes, provides technical support for intelligent auxiliary diagnosis of diabetes, relieves patients' pain, and promotes the intelligent development of traditional Chinese medicine.
Smart Images

Figure CN118762383A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of TCM-assisted diagnosis, and in particular to a method, system, device and medium for processing TCM hand diagnosis data of diabetes based on deep learning. Background Art
[0002] Currently, the diagnosis of diabetes mainly relies on invasive testing methods, such as random blood sugar, venous blood sugar, glycosylated hemoglobin, etc. These methods usually require the extraction of blood samples from patients, which not only brings physical discomfort and potential harm to patients, but also this clinical diagnosis method may further aggravate the shortage of medical resources.
[0003] It should be noted that the diabetes diagnosis method based on TCM hand diagnosis can well overcome the shortcomings of the above diagnostic methods. It is non-invasive, painless, low-cost, convenient and fast, which greatly reduces the pain of patients and improves the efficiency of diagnosis. Hand diagnosis has a long history and rich content. In the "Inner Canon of Medicine", there are a lot of records of the connection between hands and feet and internal organs, reflecting the diseases of internal organs. As one of the most important organs of the human body, the hand contains many nerves, veins, and acupoints; the health of human body functions and internal organs will be reflected to a certain extent through the palm lines and color changes, which is the core idea of TCM hand diagnosis theory. Due to the influence of long-term high blood sugar, diabetic patients will have pathological pattern characteristics and color characteristics in specific areas of the palm. TCM physicians can diagnose diabetes based on the TCM hand diagnosis diabetes theory. Therefore, the objective diagnosis method based on the TCM hand diagnosis theory of diabetes is of great significance to promote the progress of modern medical diagnostic technology.
[0004] However, current TCM hand diagnosis of diabetes mostly relies on the doctor's experience, and its subjective judgment varies from person to person, lacking objective and digital description. Due to the lack of corresponding hand image segmentation, feature extraction and classification methods, the existing TCM hand diagnosis image processing of diabetes has the problems of insufficient objectivity and inconvenience for promotion.
[0005] In order to solve the above problems, people have been seeking an ideal technical solution. Summary of the invention
[0006] Based on this, it is necessary to provide a deep learning-based TCM hand diagnosis data processing method, system, equipment and medium for the above-mentioned technical problems, and adopt a multi-model integration strategy to effectively combine different models, which can assist in the TCM hand diagnosis of diabetes, avoid the traditional TCM hand diagnosis's reliance on subjective experience, and improve the objectivity of TCM hand diagnosis, which is of great significance to the intelligent development of TCM.
[0007] In order to achieve the above-mentioned object, the first aspect of the present invention provides a method for processing diabetes TCM hand diagnosis data based on deep learning, which comprises: pre-building a hand image segmentation model, a pathological pattern feature extraction model and a color feature extraction model; acquiring a hand image to be tested; based on a pre-configured palm segmentation mask map, using the hand image segmentation model to perform region segmentation on the hand image to be tested, and obtaining a pathological pattern feature region and a color feature region; The pathological pattern feature extraction model is used to extract features from the pathological pattern feature area to obtain a first hand feature vector, a second hand feature vector and a third hand feature vector; wherein the pathological pattern feature area includes a first palm area, a second palm area and a third palm area, the first palm area is located below the little finger of the hand, the second palm area is located below the ring finger of the hand, and the third palm area is located below the first palm area; Performing feature extraction on the color feature region through the color feature extraction model to obtain a fourth hand feature vector; wherein the color feature region includes fingertip regions of five fingers; Perform feature fusion on the first hand feature vector, the second hand feature vector, the third hand feature vector and the fourth hand feature vector to obtain a fused feature vector.
[0008] In order to achieve the above-mentioned object, the second aspect of the present invention provides a diabetes TCM hand diagnosis data processing system based on deep learning, which includes a preprocessing module, a hand image segmentation module, a pathological pattern feature extraction module, a color feature extraction module and a pattern and color dual-mode fusion module, wherein: The preprocessing module is used to pre-build a hand image segmentation model, a pathological pattern feature extraction model and a color feature extraction model; and is also used to obtain a hand image to be tested; The hand image segmentation module is used to perform region segmentation on the hand image to be tested based on a pre-configured palm segmentation mask image and using the hand image segmentation model to obtain a pathological pattern feature region and a color feature region; The pathological pattern feature extraction module is used to extract features from the pathological pattern feature area using the pathological pattern feature extraction model to obtain a first hand feature vector, a second hand feature vector and a third hand feature vector; wherein the pathological pattern feature area includes a first palm area, a second palm area and a third palm area, the first palm area is located below the little finger of the hand, the second palm area is located below the ring finger of the hand, and the third palm area is located below the first palm area; The color feature extraction module is used to extract features from the color feature area through the color feature extraction model to obtain a fourth hand feature vector; wherein the color feature area includes fingertip areas of five fingers; The pattern and color dual-mode fusion model is used to perform feature fusion on the first hand feature vector, the second hand feature vector, the third hand feature vector and the fourth hand feature vector to obtain a fused feature vector.
[0009] In order to achieve the above-mentioned purpose, the third aspect of the present invention provides a diabetes Chinese medicine hand diagnosis data processing device based on deep learning, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store computer programs; the processor is used to implement the diabetes Chinese medicine hand diagnosis data processing method based on deep learning as mentioned above when executing the program stored in the memory.
[0010] In order to achieve the above-mentioned purpose, the fourth aspect of the present invention provides a readable storage medium, characterized in that: instructions are stored thereon, which, when executed by one or more processors, enable the processors to execute the above-mentioned method for processing diabetes Chinese medicine hand diagnosis data based on deep learning.
[0011] The beneficial effects of the present invention are: 1) The present invention pre-constructs a hand image segmentation model, a pathological pattern feature extraction model, a color feature extraction model, etc., and uses the hand image segmentation model to perform regional segmentation on the hand image to be tested, thereby achieving accurate segmentation of the target area for diabetic hand diagnosis, which can lay a solid foundation for subsequent feature extraction and improve the accuracy and efficiency of subsequent feature extraction; The present invention also uses a pathological pattern feature extraction model to extract features from a pathological pattern feature region, and uses a color feature extraction model to extract features from a color feature region, thereby objectively and accurately extracting pathological pattern feature vectors and color feature vectors, thereby improving the objectivity of diabetes TCM hand diagnosis image processing and facilitating subsequent promotion and application; The present invention also uses the dual-mode fusion method of pattern and color to fuse the extracted pathological pattern features and color features. The fused vector data contains the key information required for intelligent auxiliary diagnosis of diabetes, thereby achieving accurate diagnosis of diabetes and providing strong technical support for intelligent diagnosis of diabetes. 2) The present invention also classifies the fused feature vector based on a pre-constructed SVM classification model, providing a reference for subsequent TCM hand diagnosis of diabetes and assisting doctors in diagnosing diabetes. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is a schematic diagram of the process of the diabetes TCM hand diagnosis data processing method based on deep learning of the present invention. Figure 1 ; Figure 2 This is a schematic diagram of the process of the diabetes TCM hand diagnosis data processing method based on deep learning of the present invention. Figure 2; Figure 3 This is a schematic diagram of the TCM hand diagnosis standard for diabetes mellitus of the present invention; Figure 4 is a schematic diagram of a palm segmentation mask of the present invention; Figure 5 This is a palm feature area segmentation effect diagram of the present invention; Figure 6 is a network structure diagram of the hand image segmentation model of the present invention (Mask-RCNN); Figure 7 is a network structure diagram of the pathological pattern feature extraction model of the present invention; FIG8 (a) is a network structure diagram of a convolutional block attention module (CBAM) of the present invention; FIG8( b ) is a diagram of the channel attention network structure in the CBAM attention mechanism of the present invention; FIG8 (c) is a diagram of the spatial attention network structure in the CBAM attention mechanism of the present invention; Fig. 9 is a schematic diagram of palm segmentation result evaluation of the present invention; Fig.10 This is a schematic diagram of the evaluation and comparison of feature extraction using the pathological pattern feature extraction model (VGNC) of the present invention; (VGG16-BatchNorm-Convolutional Block Attention Module, referred to as VGNC) Fig.11 1. It is a schematic diagram comparing the effect evaluation of different algorithms of the present invention on color feature extraction; Fig.12 is a schematic diagram for comparing auxiliary diagnosis results of the present invention; Fig.13 This is a diagram evaluating the effects of different algorithms of the present invention on diabetes diagnosis after feature fusion. DETAILED DESCRIPTION
[0013] The technical solution of the present invention is further described in detail below through specific implementation methods.
[0014] For ease of understanding, the interactive parties and / or terms and / or custom words involved in the present invention are first described in conjunction with the technical solution of the present invention: Hand image segmentation model: A pre-configured segmentation model that uses the improved Mask-RCNN (MaskRegion-based Convolutional Neural Network) algorithm. The network structure is shown in the attached figure. Figure 6As shown in the figure, in order to achieve better pathological pattern feature extraction, a 3*3 convolution layer is added before the softmax of Mask-RCNN, which greatly improves the algorithm's effect on pathological pattern fine feature extraction. The hand image segmentation model segments each hand image to be tested into eight feature regions. The division of the eight feature regions is based on Wang Chenxia's Diagnosis Standards for Diabetes Hand Diagnosis by Traditional Chinese Medicine. (Wang Chenxia's Diagnosis Standards for Diabetes Hand Diagnosis by Traditional Chinese Medicine have four standards, which correspond to eight regions on the hand, such as Figure 3 As shown, the eight areas are: Standard 1: 1 or 2-3 horizontal lines at the Qian position of the hypothenar eminence; Standard 2: There are messy vertical lines at the Kun position; Standard 3: There are vertical lines under the ring finger; Standard 4: Cherry-like color appears at the tips of all ten fingers. Pathological pattern feature extraction model (VGNC): refers to the pre-configured pathological pattern feature extraction model, which specifically includes the VGG16_BN network structure and the convolutional block attention module CBAM. Its network structure is as shown in the attached Figure 7 As shown in Figure 8(a), the specific network structure of CBAM is shown in Figure 8(b), and the spatial attention network structure of CBAM attention mechanism is shown in Figure 8(c). The CBAM attention mechanism is added to the last convolutional layer of VGG16_BN to improve the feature extraction effect. The convolutional block attention module CBAM combines the channel attention mechanism with the spatial attention mechanism, first performs channel attention processing on the input feature layer, performs global average pooling and global maximum pooling on the channel attention, performs full connection layer processing on the result, then adds the result to take sigmoid, and then multiplies it by the original input feature layer; while the spatial attention mechanism takes the maximum value and average value on the channel of each feature point of its feature layer, then stacks the results, adjusts the number of channels by using convolution with a channel number of 1, and then takes sigmoid and multiplies it by the original input feature layer; It should be noted that the first palm area, the second palm area and the third palm area are respectively sent to the pathological pattern feature extraction model for feature extraction, and the tensor score output of the third fully connected layer is taken to obtain feature vectors of the form [A1, A2], [A3, A4], [A5, A6] as the pathological pattern feature extraction results.
[0015] Color feature extraction model: A pre-configured color feature extraction model first converts the color feature into the HSV color space, then calculates the mean of each HSV component, and inputs it into the random forest algorithm to obtain the prediction score [P] as the color feature extraction result.
[0016] Hand image to be tested: hand image data collected in a closed environment.
[0017] Example 1 As attached Figure 1 As shown, this embodiment provides a specific implementation method of a method for processing diabetes TCM hand diagnosis data based on deep learning, and the method includes: Pre-build the hand image segmentation model, pathological pattern feature extraction model and color feature extraction model; Acquire the hand image to be tested; Based on the pre-configured palm segmentation mask image, the hand image segmentation model is used to perform region segmentation on the hand image to be tested, so as to obtain a pathological pattern feature region and a color feature region; The pathological pattern feature extraction model is used to extract features from the pathological pattern feature area to obtain a first hand feature vector, a second hand feature vector and a third hand feature vector; wherein the pathological pattern feature area includes a first palm area, a second palm area and a third palm area, the first palm area is located below the little finger of the hand, the second palm area is located below the ring finger of the hand, and the third palm area is located below the first palm area; Performing feature extraction on the color feature region through the color feature extraction model to obtain a fourth hand feature vector; wherein the color feature region includes fingertip regions of five fingers; Perform feature fusion on the first hand feature vector, the second hand feature vector, the third hand feature vector and the fourth hand feature vector to obtain a fused feature vector.
[0018] It should be noted that the fusion feature vector includes the first hand feature vector, the second hand feature vector, the third hand feature vector and the fourth hand feature vector. Among them, the first hand feature vector refers to the texture feature vector corresponding to the first palm area, specifically the probability of having horizontal lines at the Qian position of the hypothenar; the second hand feature vector refers to the texture feature vector corresponding to the second palm area, specifically the probability of having messy vertical lines at the Kun position; the third hand feature vector refers to the texture feature vector corresponding to the third palm area, specifically the probability of having vertical lines under the ring finger; the fourth hand feature vector refers to the color feature vector, specifically the probability of cherry-like color appearing at the fingertips of the five fingers; the larger these feature vectors are, the more obvious the features of the corresponding areas are.
[0019] It should also be noted that the present invention effectively combines several different models, namely the hand image segmentation model, the pathological pattern feature extraction model and the color feature extraction model, to obtain a fused feature vector containing the key information required for intelligent auxiliary diagnosis of diabetes, thereby improving the objectivity of image processing of diabetes hand diagnosis in traditional Chinese medicine, facilitating subsequent promotion and application, and is of great significance to the intelligent development of traditional Chinese medicine.
[0020] It should also be noted that in order to achieve accurate diagnosis of diabetes, the present invention cleverly combines pathological pattern features with color features, and proposes a feature fusion method required for intelligent diagnosis of diabetes, namely, "pattern and color dual-mode fusion method". The fused vector data provides strong technical support for the intelligent diagnosis of diabetes.
[0021] In some embodiments, the hand image segmentation model adopts an improved Mask-RCNN algorithm, and the color feature extraction model adopts a random forest algorithm. The specific steps of the random forest algorithm are prior art and are not repeated here.
[0022] In some embodiments, the pathological pattern feature extraction model includes a VGG16_BN network structure and a convolutional block attention module, and the convolutional block attention module is located after the last convolution module of the VGG16_BN network structure.
[0023] Example 2 Based on Example 1, this example provides another specific implementation method of a method for processing diabetes TCM hand diagnosis data based on deep learning, as shown in the attached Figure 2 As shown; In some embodiments, as shown in the attached Figure 2 As shown, before extracting features from the color feature area using the color feature extraction model, it also includes: Perform HSV (Hue, Saturation, Value) color conversion on the color feature area, and use the mean of each HSV component obtained as the input of the color feature extraction model.
[0024] It should be noted that the color feature area is converted from the RGB color space to the HSV before color feature extraction; RGB to HSV is a conventional color space conversion method, which involves the transformation of color geometry and three-dimensional space, and the specific method will not be repeated here.
[0025] It should also be noted that the fingertips of diabetic patients are redder than the palms and appear cherry red, but there is no quantitative description of it. The traditional method is to judge based on the experience of the physician, and different physicians obtain different results, which varies greatly in the results of diabetic hand diagnosis. This embodiment segments the color feature area (i.e., the fingertips), first converts it from RGB to HSV color space, and then calculates its HSV mean, compares and classifies it with the HSV of normal people to calculate its score probability, and makes an objective and digital description based on standard four. Compared with the traditional experience judgment method, it is more scientific, objective and convincing.
[0026] In some embodiments, the method for processing diabetes TCM hand diagnosis data based on deep learning further includes: classifying the fused feature vector based on a pre-built SVM classification model to obtain a classification processing result.
[0027] Among them, the fused feature vector includes the first hand feature vector (the texture feature vector corresponding to the first palm area), the second hand feature vector (the texture feature vector corresponding to the second palm area), the third hand feature vector (the texture feature vector corresponding to the third palm area) and the fourth hand feature vector (color feature vector), and the classification processing result refers to the accuracy of diabetes diagnosis.
[0028] It should be noted that the SVM classification model uses a support vector machine (SVM) to classify the fused feature vector, and the specific steps are not repeated here.
[0029] In some embodiments, before performing region segmentation on the hand image to be tested using the hand image segmentation model, the method further includes: Use the pre-built SSD target detection model to detect whether the target hand image area exists in the original hand image; If it exists, the original hand image is processed with background removal and Gaussian noise reduction to be used as the hand image to be tested.
[0030] Among them, the SSD target detection model adopts the SSD (full name Single Shot MultiBox Detector) target detection algorithm, and the specific steps are not repeated here.
[0031] It should be noted that the traditional detection method is divided into three steps: region selection, feature extraction, and classifier target determination, but it has the disadvantages of large amount of calculation, slow detection speed, and a large amount of manual annotation. This embodiment uses SSD as the detection network, which can not only meet the requirements of accuracy and real-time performance at the same time, but also can retain the image information to the greatest extent.
[0032] In a specific implementation, before the hand diagnosis data is processed, the hand image segmentation model, the pathological pattern feature extraction model and the color feature extraction model are first trained, and the training steps include: S1, collect hand image data of diabetic patients and normal people in a closed environment to create a hand image dataset; divide the dataset into training set and test set in a ratio of 9:1; S2, the present invention uses the hand image segmentation model Mask-RCNN for segmentation training, and the mask image of the hand image test is as follows Figure 4 As shown, the region is segmented according to the mask, and the effect of hand-elephant segmentation is as follows Figure 5 As shown; According to Wang Chenxia's TCM hand diagnosis criteria for diabetes (such as Figure 3 As shown in the figure), make a palm segmentation mask diagram (as shown in the figure) Figure 4 The diagnostic theory has four criteria, namely: Standard 1: There are 1 or 2-3 horizontal lines on the hypothenar eminence; Standard 2: There are messy vertical lines in the Kun position; Criterion 3: There is a vertical line below the ring finger; Standard 4: Cherry-like color appears on the tips of all ten fingers; Therefore, the areas that need to be segmented in the hand image data of this application include two categories: pathological pattern feature areas and color feature areas. There are three pathological pattern feature areas, which correspond to the TCM hand diagnosis standards for diabetes ( Figure 3 ) There are five color feature areas, namely the fingertips of the five fingers; S3, the three pathological pattern feature regions obtained after segmentation are sent to the pathological pattern feature extraction model (VGNC) for feature extraction, and the tensor score output of the third fully connected layer is taken to obtain the first hand feature vector [A1, A2], the second hand feature vector [A3, A4], and the third hand feature vector [A5, A6] respectively; S4, converting the five color feature regions obtained after segmentation into HSV color space, calculating the mean of each HSV component, and then inputting it into the color feature extraction model to obtain the fourth hand feature vector [P]; S5, performing texture and color dual-mode fusion on the first hand feature vector [A1, A2], the second hand feature vector [A3, A4], the third hand feature vector [A5, A6] and the fourth hand feature vector [P] to form a new feature vector [A1, A2, A3, A4, A5, A6, P] as a fused feature vector; S6, inputting the fused feature vector into the SVM classification model to obtain the classification processing result as a reference for auxiliary diagnosis.
[0033] It should be noted that the present invention adopts a multi-model integration strategy, which efficiently combines multiple models (Mask-Rcnn, VGNC, random forest, SVM) based on their functional characteristics. The hand image segmentation model Mask-Rcnn realizes accurate segmentation of the hand image area, the pathological pattern feature extraction model (VGNC) realizes accurate extraction of palm pattern feature vectors, the random forest algorithm realizes accurate extraction of fingertip color features, and the SVM classification model performs diagnosis and discrimination on the fused feature vectors. This embodiment also uses a serial feature fusion solution to extract feature information of key areas and fuse the feature information into feature vectors, which can improve the richness and diversity of data, improve robustness, reduce information loss, enhance characterization capabilities, and thus improve the accuracy of auxiliary diagnosis of diabetes.
[0034] Example 3 With the development of artificial intelligence, according to the diabetes hand diagnosis diagnosis standard proposed by the Chenxia Palm Medical Research Institute in Kunming, Yunnan, through the collection of hand image data of diabetic patients and algorithm analysis training, on the basis of the above embodiment, this embodiment provides a specific implementation method of a diabetes TCM hand diagnosis data processing system based on deep learning; The diabetes TCM hand diagnosis data processing system based on deep learning includes a preprocessing module, a hand image segmentation module, a pathological pattern feature extraction module, a color feature extraction module and a pattern and color dual-mode fusion module, wherein: The preprocessing module is used to pre-build a hand image segmentation model, a pathological pattern feature extraction model and a color feature extraction model; and is also used to obtain a hand image to be tested; The hand image segmentation module performs region segmentation on the hand image to be tested based on the pre-configured palm segmentation mask image and the hand image segmentation model to obtain pathological pattern feature regions and color feature regions; The pathological pattern feature extraction module is used to extract features from the pathological pattern feature area using the pathological pattern feature extraction model to obtain a first hand feature vector, a second hand feature vector and a third hand feature vector; wherein the pathological pattern feature area includes a first palm area, a second palm area and a third palm area, the first palm area is located below the little finger of the hand, the second palm area is located below the ring finger of the hand, and the third palm area is located below the first palm area; The color feature extraction module is used to extract features from the color feature area through the color feature extraction model to obtain a fourth hand feature vector; wherein the color feature area includes fingertip areas of five fingers; The pattern and color dual-mode fusion module is used to perform feature fusion on the first hand feature vector, the second hand feature vector, the third hand feature vector and the fourth hand feature vector to obtain a fused feature vector; wherein the fused feature vector includes the first hand feature vector, the second hand feature vector, the third hand feature vector and the fourth hand feature vector.
[0035] It should be noted that in order to integrate the characteristics of both hand lines and color of diabetic patients, the pattern and color dual-mode fusion module performs "pattern and color dual-mode fusion" on the pathological pattern features and the color feature vector scores to form a new feature vector [A1, A2, A3, A4, A5, A6, P], which further improves the accuracy of diabetic hand feature diagnosis.
[0036] In some embodiments, the deep learning-based diabetes TCM hand diagnosis data processing system also includes a classification processing module, which is used to classify the fused feature vector based on a pre-built SVM classification model to obtain a classification processing result.
[0037] In some embodiments, the hand image segmentation model uses an improved Mask-RCNN algorithm, and the color feature extraction model uses a random forest algorithm; The pathological pattern feature extraction model includes a VGG16_BN network structure and a convolutional block attention module, and the convolutional block attention module is located after the last convolution module of the VGG16_BN network structure.
[0038] In a specific implementation, the palm segmentation result is evaluated using IoU (Intersection over Union, which measures the degree of overlap between the area predicted by the model and the actual area); The schematic diagram of palm segmentation result evaluation is as follows Fig. 9 As shown, it shows that when IoU=0.5:0.95, Bbox ( Figure 4 The accuracy of Bbox and Mask (red mask) reached 83.7% and 82.7% respectively when IoU=0.5. The accuracy of Bbox and Mask reached 98.9% and 98.4% respectively. In the stricter case of IoU=0.75, the accuracy of Bbox and Mask could reach 93.6% and 94.1%, which has a better segmentation effect.
[0039] In another specific implementation, after CBAM is introduced into the VGG16_BN network structure, a pathological pattern feature extraction model (VGNC) is obtained; the pathological pattern feature extraction model (VGNC) is used to extract features of the pathological pattern feature area to obtain a first hand feature vector, a second hand feature vector, and a third hand feature vector; the feature extraction accuracy rates corresponding to the first hand feature vector, the second hand feature vector, and the third hand feature vector reach 88.4%, 89.3%, and 89.1%, respectively, as shown in the attached figure. Fig.10 As shown; As attached Fig.10 As shown, the feature extraction accuracy of the first hand feature vector, the second hand feature vector and the third hand feature vector extracted by the pathological pattern feature extraction model (VGNC) are higher than those of traditional feature extraction algorithms such as VGG16_BN and MobileNetv2. It can be seen that the pathological pattern feature extraction model adopted in this embodiment performs better in pathological pattern feature extraction, has the advantages of higher network accuracy, and can meet the needs of pathological pattern feature extraction tasks in hand diagnosis-assisted diagnosis of diabetes.
[0040] In another specific implementation, the logreg algorithm, random forest algorithm (RandomForest), KNN (k-Nearest Neighbor) algorithm, etc. are used to extract features from the color feature area, and the color feature extraction effect is evaluated by accuracy (Accuracy), precision (Precision), recall (Recall) and F1 score (the harmonic mean of precision and recall), and the expressions are: Among them, K represents the number of categories, TP (True Positive) represents the true positive examples in the confusion matrix, specifically, the color feature extraction model correctly predicts the positive category samples as the positive category; TN (True Negative) represents the true negative examples in the confusion matrix, specifically, the color feature extraction model correctly predicts the negative category samples as the negative category; FP (False Positive) represents the false positive examples in the confusion matrix, specifically, the color feature extraction model incorrectly predicts the negative category samples as the positive category, also known as "false positive"; FN (False Negative) represents the false negative examples in the confusion matrix, specifically, the color feature extraction model incorrectly predicts the positive category samples as the negative category, also known as "false negative"; It should be noted that the random forest algorithm has a good evaluation effect on the HSV data training of the color feature area, with an accuracy of 87.6%, a precision of 86.2%, and a recall of 89.9%. Fig.11 shown.
[0041] In another specific embodiment, the pathological pattern features, color features and pattern and color dual-mode fusion features are classified and processed using an SVM classifier, and the color feature extraction effect is evaluated by accuracy, precision, recall and F1 score; As attached Fig.12 As shown in the figure, the feature fusion vector obtained by the SVM classifier pattern and color dual-mode fusion method was used to process the diabetes TCM hand diagnosis data, achieving an accuracy rate of 92.1%, which was 7.9% and 6.7% higher than the pathological pattern features and color features before fusion, respectively, and had a good auxiliary diagnosis effect.
[0042] In another specific implementation, the pattern and color dual-mode fusion features are classified using random forest algorithm, logreg algorithm, GBM algorithm, SVM classifier, etc., and the classification effect is evaluated by accuracy, precision, recall and F1 score; As attached Fig.13 As shown in the figure, the evaluation effect of using SVM classifier to classify the dual-mode fusion features of pattern and color is good, with an accuracy of 92.1%, a precision of 91.2%, and a recall rate of 93.9%, which has a good auxiliary diagnosis effect.
[0043] Example 4 Based on the above embodiments, this embodiment provides a specific implementation method of a diabetes TCM hand diagnosis data processing device based on deep learning; The deep learning-based diabetes TCM hand diagnosis data processing device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the diabetes TCM hand diagnosis data processing method based on deep learning as in Example 1 or 2 when executing the program stored in the memory.
[0044] Based on the above embodiments, this embodiment also provides a readable storage medium, a readable storage medium, characterized in that: instructions are stored thereon, and when executed by one or more processors, the processor executes the diabetes Chinese medicine hand diagnosis data processing method based on deep learning as in Example 1 or 2.
[0045] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0046] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0047] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for processing diabetes TCM hand diagnosis data based on deep learning, characterized in that: include: Pre-build the hand image segmentation model, pathological pattern feature extraction model and color feature extraction model; Acquire the hand image to be tested; Based on the pre-configured palm segmentation mask image, the hand image segmentation model is used to perform region segmentation on the hand image to be tested, so as to obtain a pathological pattern feature region and a color feature region; The pathological pattern feature extraction model is used to extract features from the pathological pattern feature area to obtain a first hand feature vector, a second hand feature vector and a third hand feature vector; wherein the pathological pattern feature area includes a first palm area, a second palm area and a third palm area, the first palm area is located below the little finger of the hand, the second palm area is located below the ring finger of the hand, and the third palm area is located below the first palm area; Performing feature extraction on the color feature region through the color feature extraction model to obtain a fourth hand feature vector; wherein the color feature region includes fingertip regions of five fingers; Perform feature fusion on the first hand feature vector, the second hand feature vector, the third hand feature vector and the fourth hand feature vector to obtain a fused feature vector.
2. The method for processing diabetes TCM hand diagnosis data based on deep learning according to claim 1 is characterized in that: The hand image segmentation model adopts the improved Mask-RCNN algorithm, and the color feature extraction model adopts the random forest algorithm.
3. The method for processing diabetes TCM hand diagnosis data based on deep learning according to claim 1 is characterized in that: The pathological pattern feature extraction model includes a VGG16_BN network structure and a convolutional block attention module, and the convolutional block attention module is located after the last convolution module of the VGG16_BN network structure.
4. The method for processing diabetes TCM hand diagnosis data based on deep learning according to any one of claims 1 to 3, characterized in that: Also includes: The fused feature vector is classified based on a pre-built SVM classification model to obtain a classification result.
5. The method for processing diabetes TCM hand diagnosis data based on deep learning according to claim 4 is characterized in that: Before performing region segmentation on the hand image to be tested by using the hand image segmentation model, the method further includes: Use the pre-built SSD target detection model to detect whether the target hand image area exists in the original hand image; If it exists, the original hand image is processed with background removal and Gaussian noise reduction to be used as the hand image to be tested.
6. A diabetes TCM hand diagnosis data processing system based on deep learning, characterized by: It includes a preprocessing module, a hand image segmentation module, a pathological pattern feature extraction module, a color feature extraction module and a pattern and color dual-mode fusion module, among which: The preprocessing module is used to pre-build a hand image segmentation model, a pathological pattern feature extraction model and a color feature extraction model; and is also used to obtain a hand image to be tested; The hand image segmentation module is used to perform region segmentation on the hand image to be tested based on a pre-configured palm segmentation mask image and using the hand image segmentation model to obtain a pathological pattern feature region and a color feature region; The pathological pattern feature extraction module is used to extract features from the pathological pattern feature area using the pathological pattern feature extraction model to obtain a first hand feature vector, a second hand feature vector and a third hand feature vector; wherein the pathological pattern feature area includes a first palm area, a second palm area and a third palm area, the first palm area is located below the little finger of the hand, the second palm area is located below the ring finger of the hand, and the third palm area is located below the first palm area; The color feature extraction module is used to extract features from the color feature area through the color feature extraction model to obtain a fourth hand feature vector; wherein the color feature area includes fingertip areas of five fingers; The pattern and color dual-mode fusion module is used to perform feature fusion on the first hand feature vector, the second hand feature vector, the third hand feature vector and the fourth hand feature vector to obtain a fused feature vector.
7. The diabetes TCM hand diagnosis data processing system based on deep learning according to claim 6 is characterized by: It also includes a classification processing module, which is used to classify the fused feature vector based on a pre-built SVM classification model to obtain a classification processing result.
8. The diabetes TCM hand diagnosis data processing system based on deep learning according to claim 6 is characterized by: The hand image segmentation model adopts the improved Mask-RCNN algorithm, and the color feature extraction model adopts the random forest algorithm; The pathological pattern feature extraction model includes a VGG16_BN network structure and a convolutional block attention module, and the convolutional block attention module is located after the last convolution module of the VGG16_BN network structure.
9. A diabetes TCM hand diagnosis data processing device based on deep learning, characterized by: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; The processor is used to implement the method for processing diabetes traditional Chinese medicine hand diagnosis data based on deep learning as described in any one of claims 1 to 5 when executing the program stored in the memory.
10. A readable storage medium, characterized in that: Instructions are stored thereon, which, when executed by one or more processors, enable the processors to execute the method for processing diabetes traditional Chinese medicine hand diagnosis data based on deep learning as described in any one of claims 1 to 5.
