A method for constructing a health status prediction model based on tongue image characteristics

By extracting tongue image features and building analysis and prediction models, the problem of poor tongue image analysis in traditional methods is solved, and more accurate health status assessment and automated monitoring are achieved.

CN118629660BActive Publication Date: 2024-10-22BOZHOU SMART HEALTH TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411120046.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-10-22
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

The traditional method of manually extracting tongue features is complex and the analysis results are not ideal. The data accuracy and model generalization capabilities are insufficient, making it difficult to achieve early warning of patient health risks and automated intelligent health status monitoring.

Method used

Collect tongue images, extract tongue feature information through image processing technology, build a feature extraction network model of tongue color brightness, tongue coating chroma, tongue shape area and tongue coating grayscale, and evaluate tongue color bright and dark, yellow and white tongue coating, tongue shape fat and thin and The thickness of tongue coating, combined with the matching probability of physical type, builds a dynamic monitoring and health prediction model to achieve health status assessment and early warning.

Benefits of technology

It improves the accuracy and generalization ability of model analysis, and realizes health monitoring and auxiliary diagnosis based on tongue characteristics, timely early warning and automated intelligent health status monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629660B_ABST
    Figure CN118629660B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for constructing a health status prediction model based on tongue image features. The method collects tongue images and extracts tongue image feature information, then constructs a tongue image analysis model to extract features from four angles: tongue color brightness, tongue coating chromaticity, tongue shape area and tongue coating grayscale, thereby successively evaluating the tongue color brightness, tongue coating yellowness, tongue shape fatness and thinness, and tongue coating thickness, and then constructs a constitution classification model to comprehensively analyze the matching probability between the tongue image and the constitution type, thereby improving the accuracy and generalization ability of the model analysis, and constructs a dynamic monitoring model to comprehensively evaluate the patient's health level, thereby realizing health monitoring and auxiliary diagnosis based on tongue image features, and then predicting the patient's health risk by constructing a health prediction model, thereby realizing early warning of health risks and automated intelligent health status monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of health monitoring, and in particular to a method for constructing a health status prediction model based on tongue image characteristics. Background Art

[0002] The four unique diagnostic methods of traditional Chinese medicine are inspection, auscultation, questioning and palpation, collectively known as the "four examinations". Tongue diagnosis is an important part of inspection and is also an effective diagnostic and treatment method for doctors to understand the changes in the patient's body through tongue images.

[0003] However, the traditional manual feature extraction method has certain complexity, and the analysis effect of only using shallow features such as color and texture of the tongue is not ideal. The data analysis accuracy and model generalization ability are insufficient. In addition, the tongue image is in a dynamic state and will change with time, living habits and external environment. Therefore, it is difficult to provide early warning of patients' health risks and it is impossible to achieve automated intelligent health status monitoring.

[0004] In view of the above technical defects, a solution is now proposed. Summary of the invention

[0005] The purpose of the present invention is to solve the technical defects of the traditional manual feature extraction method, that is, the analysis effect is not ideal, the data accuracy and model generalization ability are insufficient, and it is difficult to provide early warning of the patient's health risks. By collecting tongue images and extracting tongue feature information, the lightness and darkness of the tongue color, the yellowness and whiteness of the tongue coating, the fatness and thinness of the tongue shape, and the thickness of the tongue coating are evaluated in turn, and the matching probability between the tongue image and the constitution type is comprehensively analyzed to improve the accuracy and generalization ability of the model analysis, and a dynamic monitoring model is constructed to comprehensively evaluate the patient's health level, realize health monitoring and auxiliary diagnosis based on tongue image characteristics, and then predict the patient's health risk situation by constructing a health prediction model, so as to realize early warning of health risks and automatic intelligent monitoring of health status.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] A method for constructing a health status prediction model based on tongue image characteristics comprises the following steps:

[0008] S1, collecting tongue images and extracting tongue feature information: photographing the patient's tongue image by an image acquisition device, and extracting tongue feature information by image processing technology, wherein the tongue feature information includes tongue color brightness, tongue coating color, tongue shape area and tongue coating grayscale;

[0009] S2, constructing a tongue image analysis model to analyze and process tongue image feature information: by preliminarily analyzing tongue image feature information, constructing feature extraction network models for tongue color brightness, tongue coating color, tongue shape area and tongue coating grayscale, so as to evaluate the brightness of the tongue color, the yellowness of the tongue coating, the fatness of the tongue shape and the thickness of the tongue coating;

[0010] S3, constructing a constitution classification model to classify the tongue image by constitution: establishing an evaluation function G(x) of the constitution type Pi, obtaining the evaluation value GiP of the tongue image under the constitution type Pi classification, and determining the matching probability between the tongue image and the constitution type Pi through the matching coefficient PVi between the tongue image and the constitution type Pi;

[0011] S4, construct a dynamic monitoring model to comprehensively evaluate the patient's health: set the tongue image acquisition cycle Tc to periodically collect the patient's tongue image, obtain the patient's actual physical type and its corresponding matching probability and establish a change curve, thereby obtaining the patient's current comprehensive health level and generating a corresponding risk warning signal;

[0012] S5, construct a health prediction model to predict the patient's health risk: set the risk prediction period Tf, analyze the periodic change curve of the patient's comprehensive health level, thereby predicting the patient's health risk level and generating corresponding early warning prompt signals.

[0013] Furthermore, the specific process of constructing the tongue image analysis model is as follows:

[0014] A1, by establishing a tongue color brightness feature extraction network model to preliminarily analyze the tongue color brightness, obtain the tongue color brightness evaluation coefficient J1 corresponding to the tongue image, and thus evaluate the brightness of the tongue color;

[0015] A2, by establishing a tongue coating chromaticity feature extraction network model to preliminarily analyze the tongue coating chromaticity, obtain the tongue coating yellowness and whiteness evaluation coefficient J1 corresponding to the tongue image, and thus evaluate the degree of yellowness and whiteness of the tongue coating;

[0016] A3, by establishing a tongue shape area feature extraction network model to preliminarily analyze the tongue shape area, obtain the tongue shape fatness and thinness evaluation coefficient J1 corresponding to the tongue image, and thus evaluate the fatness and thinness of the tongue shape;

[0017] A4, by establishing a tongue coating grayscale feature extraction network model to preliminarily analyze the tongue coating grayscale, obtain the tongue coating thickness evaluation coefficient J1 corresponding to the tongue image, and thus evaluate the thickness of the tongue coating.

[0018] Furthermore, the specific process of establishing the tongue color brightness feature extraction network model is as follows:

[0019] A1-1, preliminary analysis of tongue color brightness by establishing a tongue color brightness feature extraction network model;

[0020] A1-2, divide the tongue image into n0 feature regions, mark any feature region as Ze, extract n1 pixels of the feature region Ze, and mark any pixel as D;

[0021] A1-3, collect the brightness value of pixel D and mark it as tongue color brightness LDd, and obtain the brightness coefficient XLze of feature area Ze by combining the brightness values ​​of n1 pixels;

[0022] A1-4, and then measure and obtain the brightness coefficients of n0 feature areas, and comprehensively obtain the tongue color brightness evaluation coefficient J1 corresponding to the tongue image.

[0023] Furthermore, the specific process of establishing the tongue coating chromaticity feature extraction network model is as follows:

[0024] A2-1, preliminary analysis of tongue coating chromaticity by establishing a tongue coating chromaticity feature extraction network model;

[0025] A2-2, divide the tongue image into n0 feature regions, mark any feature region as Ze, extract n1 pixels of the feature region Ze, and mark any pixel as D;

[0026] A2-3, classify and mark the tongue coating color, set m0 tongue coating color types, mark the tongue coating color of pixel D as Dc, collect the chromaticity value of pixel D and mark it as tongue coating chromaticity CDd, and obtain the chromaticity coefficient XCze of the feature area Ze by combining the chromaticity values ​​of n1 pixels;

[0027] A2-4, and then calculate and obtain the chromaticity coefficients of n0 feature areas, and comprehensively obtain the tongue coating yellowness and whiteness evaluation coefficient J2 corresponding to the tongue image.

[0028] Furthermore, the specific process of establishing the tongue-shaped area feature extraction network model is as follows:

[0029] A3-1, preliminary analysis of the tongue area by establishing a tongue area feature extraction network model;

[0030] A3-2, substitute the tongue image into the two-dimensional coordinate system, extract n2 edge points of the tongue image, and obtain the area U of the tongue image by fitting through the n2 edge points and their coordinates;

[0031] A3-3, and then calculate the tongue shape fatness assessment coefficient J3 corresponding to the tongue image.

[0032] Furthermore, the specific process of establishing the tongue coating grayscale feature extraction network model is as follows:

[0033] A4-1, preliminary analysis of the tongue coating grayscale by establishing a tongue coating grayscale feature extraction network model,

[0034] A4-2, divide the tongue image into n0 feature regions, mark any feature region as Ze, extract n1 pixels of the feature region Ze, and mark any pixel as D;

[0035] A4-3, collect the gray value of pixel D and mark it as tongue coating gray HDd, and obtain the gray coefficient XHze of feature area Ze by combining the gray values ​​of n1 pixels;

[0036] A4-4, and then calculate and obtain the grayscale coefficients of n0 feature areas, and comprehensively obtain the tongue coating thickness evaluation coefficient J4 corresponding to the tongue image.

[0037] Furthermore, the specific process of constructing the constitution classification model is as follows:

[0038] B1, obtain the tongue image comprehensive evaluation function G(x) by combining the tongue color brightness evaluation coefficient J1, the tongue coating yellowness evaluation coefficient J2, the tongue shape fatness evaluation coefficient J3 and the tongue coating thickness evaluation coefficient J4;

[0039] B2, divide the constitution types into N0 types, mark any constitution type as Pi, mark the tongue color brightness evaluation coefficient, tongue coating yellowness evaluation coefficient, tongue shape fatness evaluation coefficient and tongue coating thickness evaluation coefficient corresponding to constitution type Pi as Ji1, Ji2, Ji3, Ji4 respectively, and obtain the tongue image comprehensive evaluation function Gi (x) of constitution type Pi;

[0040] B3, the tongue color brightness evaluation coefficient J1, the tongue coating yellowness evaluation coefficient J2, the tongue shape fatness evaluation coefficient J3 and the tongue coating thickness evaluation coefficient J4 of the tongue image are integrated and substituted into the tongue image comprehensive evaluation function Gi(x) of the constitution type Pi to obtain the evaluation value GiP of the tongue image under the classification of the constitution type Pi;

[0041] B4, setting a standard interval QJi[Qi1, Qi2] of the evaluation value GiP of the tongue image under the classification of the physical type Pi, and comparing the evaluation value GiP with the standard interval QJi;

[0042] B4-1, if the evaluation value GiP of the tongue image under the classification of the physical type Pi is not within the standard interval QJi, it is determined that there is no matching probability between the tongue image and the physical type Pi;

[0043] B4-2, if the evaluation value GiP of the physique type Pi is within the standard interval QJi, the matching coefficient PVi between the tongue image and the physique type Pi is obtained to determine the matching probability between the tongue image and the physique type Pi;

[0044] B4-3, then obtaining the tongue image and the evaluation values ​​of N0 kinds of physique types in sequence, and comparing them with the preset standard intervals of the physique types, to obtain N1 kinds of physique types that have a probability of matching the tongue image;

[0045] B4-4, then obtain the matching coefficients between the tongue image and N1 kinds of physical types with matching probabilities, and sort the matching coefficients in descending order, output the physical types in the top w% of the order and their corresponding matching probabilities for the attending physician to use as a reference for auxiliary diagnosis, so as to determine the patient's actual physical type and realize physical classification of the tongue image.

[0046] Furthermore, the specific process of building a dynamic monitoring model is as follows:

[0047] C1, set the tongue image acquisition period Tc to periodically acquire the patient's tongue image, obtain the patient's actual physical type and mark it as Psj, and mark the matching coefficient between the patient's actual physical type Psj and the patient's tongue image as PVsj;

[0048] C2, construct the change curve S1 between the matching coefficient PVsj and the tongue image collection period Tc, extract N2 points of the change curve S1, mark any point and its coordinates as m (Xm, Ym), calculate the variance through the ordinates of the N2 points, and obtain the fluctuation coefficient σm of the change curve S1;

[0049] C3, mark the ordinate of the end point of the change curve S1 as Ym0, and then obtain the patient's comprehensive health index JK;

[0050] C4, set the evaluation interval of the comprehensive health index JK, and generate corresponding risk warning signals through interval comparison.

[0051] Furthermore, the specific process of building a health prediction model is as follows:

[0052] D1, construct the change curve S2 between the patient's comprehensive health index JK and the tongue image collection period Tc;

[0053] D2, extract N3 points of the change curve S2, mark any point and its coordinates as r1 (Xr1, Yr1), mark the adjacent point of point r1 as r2 (Xr2, Yr2), and obtain the slope value Kr1 of point r1;

[0054] D3, by measuring the slope values ​​of N3 points and finding the average value, the increase rate Ks of the change curve S2 is obtained, and by measuring the standard deviation of the slope values ​​of N3 points, the increase rate floating coefficient σr of the change curve S2 is obtained;

[0055] D4, then obtain the patient's health risk index FX by combining the increase rate Ks of the change curve S2, the increase rate floating coefficient σr and the risk prediction period Tf;

[0056] D5, set the evaluation interval of the health risk index FX, and generate corresponding early warning signals through interval comparison.

[0057] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0058] The present invention collects tongue images and extracts tongue feature information, and then constructs a tongue image analysis model to extract features from four angles: tongue color brightness, tongue coating chromaticity, tongue shape area, and tongue coating grayscale, thereby successively evaluating the tongue color brightness, tongue coating yellowness, tongue shape fatness, and tongue coating thickness, and then constructs a constitution classification model to comprehensively analyze the matching probability between tongue images and constitution types, thereby improving the accuracy and generalization ability of model analysis, and constructs a dynamic monitoring model to comprehensively evaluate the health status of patients, thereby realizing health monitoring and auxiliary diagnosis based on tongue image features, and then predicting the health risk of patients by constructing a health prediction model, thereby realizing early warning of health risks and automated intelligent health status monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 The overall process diagram of the present invention is shown;

[0060] Figure 2 A schematic diagram of the processing flow of the tongue image analysis model of the present invention is shown. DETAILED DESCRIPTION

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

[0062] Embodiment 1:

[0063] like Figure 1-Figure 2 As shown, a method for constructing a health status prediction model based on tongue image characteristics includes the following steps:

[0064] S1, collecting tongue images and extracting tongue feature information: photographing the patient's tongue image by an image acquisition device, and extracting tongue feature information by image processing technology, wherein the tongue feature information includes tongue color brightness, tongue coating color, tongue shape area and tongue coating grayscale;

[0065] Among them, the image processing technology uses the existing ImageNet dataset to pre-train the F-Net model, so as to recognize the pre-processed tongue image and obtain the tongue image feature information after classification;

[0066] S1-1, the preprocessing process is to remove the black background around the tongue image and adjust the size of the tongue image to 224×224;

[0067] S1-2, the pre-training process is an improved convolutional neural network F-Net model, the specific process is as follows:

[0068] S1-201, obtaining a tongue image data set, performing data enhancement processing on the data set to obtain a tongue image training data set, and dividing the tongue image training data set into two parts, namely, data set 1 and data set 2;

[0069] S1-202, obtain 5 ImageNet-based pre-trained ResNet50 models (Net1~Net5), and use dataset 1 to train the four models Net1~Net4 to obtain four improved ResNet50 feature extraction layer models;

[0070] S1-203, use data set 2 to train the F-Net model to obtain an improved convolutional neural network F-Net model;

[0071] Among them, Dataset 1 is the tongue image feature information, and the four models Net1~Net4 are the feature extraction network models of tongue color brightness, tongue coating color, tongue shape area and tongue coating grayscale respectively; Dataset 2 is N0 kinds of constitution types;

[0072] S2, constructing a tongue image analysis model to analyze and process tongue image feature information: by preliminarily analyzing tongue image feature information, constructing feature extraction network models for tongue color brightness, tongue coating color, tongue shape area and tongue coating grayscale, so as to evaluate the brightness of the tongue color, the yellowness of the tongue coating, the fatness of the tongue shape and the thickness of the tongue coating;

[0073] The specific process of constructing the tongue image analysis model is as follows:

[0074] A1, by establishing a tongue color brightness feature extraction network model to preliminarily analyze the tongue color brightness, obtain the tongue color brightness evaluation coefficient J1 corresponding to the tongue image, and thus evaluate the brightness of the tongue color;

[0075] A1-1, preliminary analysis of tongue color brightness by establishing a tongue color brightness feature extraction network model;

[0076] A1-2, divide the tongue image into n0 feature regions, mark any feature region as Ze, extract n1 pixels of the feature region Ze, and mark any pixel as D;

[0077] A1-3, collect the brightness value of pixel D and mark it as tongue color brightness LDd, and obtain the brightness coefficient XLze of feature area Ze by combining the brightness values ​​of n1 pixels: ;

[0078] When the tongue color brightness LDd of pixel D is higher, the regional brightness level of the feature region Ze that evaluates the comprehensive representation of n1 pixels is higher;

[0079] A1-4, and then measure and obtain the brightness coefficients of n0 feature areas, and comprehensively obtain the tongue color brightness evaluation coefficient J1 corresponding to the tongue image: ;

[0080] in, is the weight coefficient of the brightness coefficient XLze of the feature area Ze, and is greater than 0; by respectively presetting corresponding weight coefficients for the brightness coefficients of n0 feature regions, the overall brightness level of the tongue image is comprehensively evaluated; when the brightness coefficient XLze of the feature region Ze is higher, the tongue color brightness evaluation coefficient J1 corresponding to the tongue image is higher, indicating that the overall brightness of the tongue image is higher, and the tongue color brightness is evaluated to be brighter; conversely, the tongue color brightness evaluation coefficient J1 corresponding to the tongue image is lower, indicating that the overall brightness of the tongue image is lower, and the tongue color brightness is evaluated to be darker;

[0081] A2, by establishing a tongue coating chromaticity feature extraction network model to preliminarily analyze the tongue coating chromaticity, obtain the tongue coating yellowness and whiteness evaluation coefficient J1 corresponding to the tongue image, and thus evaluate the degree of yellowness and whiteness of the tongue coating;

[0082] A2-1, preliminary analysis of tongue coating chromaticity by establishing a tongue coating chromaticity feature extraction network model;

[0083] A2-2, divide the tongue image into n0 feature regions, mark any feature region as Ze, extract n1 pixels of the feature region Ze, and mark any pixel as D;

[0084] A2-3, classify and mark the tongue coating color, set m0 tongue coating color types, mark the tongue coating color of pixel D as Dc, collect the chromaticity value of pixel D and mark it as tongue coating chromaticity CDd, and obtain the chromaticity coefficient XCze of the feature area Ze by combining the chromaticity values ​​of n1 pixels: ;

[0085] When the tongue color brightness LDd of pixel D is higher, the characteristic region Ze comprehensively represented by the n1 pixels is evaluated to be tongue coating color Dc, and the higher the degree of hue and the darker the color of tongue coating color Dc;

[0086] A2-4, and then calculate and obtain the chromaticity coefficients of n0 feature areas, and comprehensively obtain the tongue coating yellowness and whiteness evaluation coefficient J2 corresponding to the tongue image: ;

[0087] in, is the weight coefficient of the chromaticity coefficient XCze of the feature area Ze, and greater than 0; by presetting corresponding weight coefficients for the chromaticity coefficients of n0 feature areas, the overall chromaticity level of the tongue image is comprehensively evaluated. When the chromaticity coefficient XCze of the feature area Ze is higher, the tongue coating yellow-white evaluation coefficient J2 corresponding to the tongue image is higher. For example, when the tongue coating color Dc is yellow, the higher the tongue coating yellow-white evaluation coefficient J2 is, the yellow-white degree of the tongue coating of the tongue image is yellow, and the higher the degree of hue depth and the darker the color; conversely, the lower the tongue coating yellow-white evaluation coefficient J2 is, the yellow-white degree of the tongue coating of the tongue image is yellow, and the lower the degree of hue depth and the lighter the color; when the tongue coating color Dc is white, the evaluation of the hue depth is similar to the above operation; tongue coating color recognition is performed through RGB computer vision recognition technology and ImageNet visual object recognition software research database for image processing;

[0088] A3, by establishing a tongue shape area feature extraction network model to preliminarily analyze the tongue shape area, obtain the tongue shape fatness and thinness evaluation coefficient J1 corresponding to the tongue image, and thus evaluate the fatness and thinness of the tongue shape;

[0089] A3-1, preliminary analysis of the tongue area by establishing a tongue area feature extraction network model;

[0090] A3-2, substitute the tongue image into the two-dimensional coordinate system, extract n2 edge points of the tongue image, and obtain the area U of the tongue image by fitting through the n2 edge points and their coordinates;

[0091] A3-3, and then calculate the tongue shape fatness and thinness evaluation coefficient J3 corresponding to the tongue image: ;

[0092] Wherein, γ is the conversion coefficient of the area U of the tongue image, and γ is greater than 0. The conversion coefficient γ refers to a constant value for converting the area U of the tongue image into the tongue shape fatness evaluation coefficient J3, and the conversion coefficient γ is obtained by preset; when the area U of the tongue image is larger, the tongue shape fatness evaluation coefficient J3 corresponding to the tongue image is higher, indicating that the tongue shape fatness is fatter and the tongue body is fatter; conversely, the lower the tongue shape fatness evaluation coefficient J3 corresponding to the tongue image is, indicating that the tongue shape fatness is thinner and the tongue body is thinner;

[0093] A4, by establishing a tongue coating grayscale feature extraction network model to preliminarily analyze the tongue coating grayscale, obtain the tongue coating thickness evaluation coefficient J1 corresponding to the tongue image, and thus evaluate the thickness of the tongue coating;

[0094] A4-1, preliminary analysis of the tongue coating grayscale by establishing a tongue coating grayscale feature extraction network model,

[0095] A4-2, divide the tongue image into n0 feature regions, mark any feature region as Ze, extract n1 pixels of the feature region Ze, and mark any pixel as D;

[0096] A4-3, collect the gray value of pixel D and mark it as tongue coating gray HDd, and obtain the gray coefficient XHze of feature area Ze by combining the gray values ​​of n1 pixels: ;

[0097] When the tongue coating grayscale HDd of pixel D is higher, the regional grayscale level of the characteristic region Ze comprehensively represented by the evaluation n1 pixels is higher;

[0098] A4-4, and then measure and obtain the grayscale coefficients of n0 feature areas, and comprehensively obtain the tongue coating thickness evaluation coefficient J4 corresponding to the tongue image: ;

[0099] in, is the weight coefficient of the grayscale coefficient XHze of the feature area Ze, and is greater than 0; by respectively presetting corresponding weight coefficients for the grayscale coefficients of n0 feature regions, the overall grayscale level of the tongue image is comprehensively evaluated; when the grayscale coefficient XHze of the feature region Ze is higher, the tongue coating thickness evaluation coefficient J4 corresponding to the tongue image is higher, indicating that the overall grayscale of the tongue image is higher, and thus the tongue coating thickness is evaluated to be relatively thick; conversely, the tongue coating thickness evaluation coefficient J4 corresponding to the tongue image is lower, indicating that the overall grayscale of the tongue image is lower, and thus the tongue coating thickness is evaluated to be relatively thin;

[0100] S3, construct a constitution classification model to classify the tongue image by constitution: divide the constitution types into N0 types, mark any constitution type as Pi, establish an evaluation function G(x) of the constitution type Pi, obtain the evaluation value GiP of the tongue image under the constitution type Pi classification, and determine the matching probability of the tongue image and the constitution type Pi by obtaining the matching coefficient PVi between the tongue image and the constitution type Pi, so as to provide a reference for the attending physician to assist in diagnosis, thereby determining the actual constitution type of the patient and realizing the constitution classification of the tongue image;

[0101] The specific process of constructing the constitution classification model is as follows:

[0102] B1, through the combination of tongue color brightness evaluation coefficient J1, tongue coating yellowness evaluation coefficient J2, tongue shape fatness evaluation coefficient J3 and tongue coating thickness evaluation coefficient J4, obtain the tongue image comprehensive evaluation function G (x):

[0103]

[0104] Among them, μ1, μ2, μ3 and μ4 are the weight factor coefficients of the tongue color lightness evaluation coefficient J1, the tongue coating yellowness evaluation coefficient J2, the tongue shape fatness evaluation coefficient J3 and the tongue coating thickness evaluation coefficient J4, and μ1, μ2, μ3 and μ4 are all greater than 0;

[0105] B2, divide the constitution types into N0 types, mark any constitution type as Pi, preset the tongue color brightness evaluation coefficient, tongue coating yellowness evaluation coefficient, tongue shape fatness evaluation coefficient and tongue coating thickness evaluation coefficient corresponding to constitution type Pi and mark them as Ji1, Ji2, Ji3, Ji4 respectively, so as to obtain the tongue image comprehensive evaluation function Gi (x) of constitution type Pi:

[0106] ;

[0107] in, , , and are the weighting factor coefficients of the tongue color brightness evaluation coefficient Ji1, the tongue coating yellowness evaluation coefficient Ji2, the tongue shape fatness evaluation coefficient Ji3, and the tongue coating thickness evaluation coefficient Ji4 of the constitution type Pi, and , , and All are greater than 0;

[0108] According to the tongue symptoms corresponding to the physical sign type Pi, the corresponding weight factor coefficients are assigned to the degree of lightness and darkness of the tongue color J1, the degree of yellow and white tongue coating J2, the degree of fatness and thinness of the tongue shape J3, and the degree of thickness of the tongue coating J4;

[0109] Among them, in traditional Chinese medicine theory, different constitutions correspond to different tongue characteristics, and doctors also use these characteristics to make judgments during tongue diagnosis. For example, according to the traditional Chinese medicine constitution theory founded by the national medical master Wang Qi, the constitution is divided into nine types: peaceful constitution, qi deficiency constitution, yang deficiency constitution, yin deficiency constitution, phlegm-damp constitution, damp-heat constitution, blood stasis constitution, qi stagnation constitution, and special constitution. The corresponding tongue symptoms are described as follows:

[0110] Table 1 Description of nine body types and tongue symptoms

[0111] Serial number Physical Type Tongue symptoms 1 Peaceful Pale red tongue with thin white fur 2 Qi deficiency The tongue is reddish, enlarged, and has teeth marks on the edges. 3 Qi stagnation constitution The tongue is pale red and dark, with a thin white and dry coating 4 Blood Stasis Lips are pale purple, tongue has spots and flaky ecchymoses 5 Yin deficiency constitution Red tongue, little fluid, little coating 6 Yang deficiency constitution Red tongue, little fluid, little coating 7 Moisture and heat Red tongue with greasy yellow coating 8 Phlegm-damp constitution Enlarged tongue with greasy white coating 9 Special qualities Various forms, with deep and large cracks

[0112] Wherein, based on the above-mentioned tongue symptoms, a tongue sample image of the corresponding constitution type is obtained, and the tongue sample image is substituted into the tongue image analysis model to obtain the tongue color brightness evaluation coefficient Ji1, the tongue coating yellowness evaluation coefficient Ji2, the tongue shape fatness evaluation coefficient Ji3 and the tongue coating thickness evaluation coefficient Ji4 of the constitution type Pi, thereby obtaining the tongue image comprehensive evaluation function Gi (x) of the constitution type Pi, and using it as an example comparison value of the tongue image constitution type Pi;

[0113] B3, integrate the tongue color brightness evaluation coefficient J1, tongue coating yellowness evaluation coefficient J2, tongue shape fatness evaluation coefficient J3 and tongue coating thickness evaluation coefficient J4 of the tongue image and substitute them into the tongue image comprehensive evaluation function Gi(x) of the constitution type Pi to obtain the evaluation value GiP of the tongue image under the classification of the constitution type Pi:

[0114] ;

[0115] B4, through the tongue image comprehensive evaluation function Gi (x) of the constitution type Pi, set the standard interval QJi [Qi1, Qi2] of the evaluation value GiP of the tongue image under the classification of the constitution type Pi, where, , compare the evaluation value GiP with the standard interval QJi;

[0116] B4-1, if the evaluation value GiP of the tongue image under the classification of the physical type Pi is not within the standard interval QJi, it is determined that there is no matching probability between the tongue image and the physical type Pi;

[0117] B4-2, on the contrary, if the evaluation value GiP of the physique type Pi is within the standard interval QJi, it is determined that there is a matching probability between the tongue image and the physique type Pi, and then a matching probability analysis is performed. The specific process is as follows:

[0118] B4-201, obtain the matching coefficient PVi between the tongue image and the body type Pi:

[0119] ;

[0120] B4-202, when the evaluation value GiP of the physique type Pi is at the middle value Gi(x) of the standard interval QJi, the matching coefficient PVi between the tongue image and the physique type Pi is 1, and it is determined that the tongue image and the physique type Pi are completely matched, indicating that the highest matching probability is 100%;

[0121] B4-203, when the deviation between the evaluation value GiP of the physique type Pi and the middle value Gi(x) of the standard interval QJi is larger, the matching coefficient PVi between the tongue image and the physique type Pi is smaller, indicating that the matching probability between the two is lower;

[0122] B4-3, then obtaining the tongue image and the evaluation values ​​of N0 kinds of physique types in sequence, and comparing them with the preset standard intervals of the physique types, to obtain N1 kinds of physique types that have a probability of matching the tongue image;

[0123] B4-4, then obtain the matching coefficient between the tongue image and N1 kinds of constitution types with matching probabilities, and sort the matching coefficients in descending order, and output the constitution types ranked in the top w% and their corresponding matching probabilities; for example, the top w% are the top 3 constitution types, namely, peaceful constitution, qi deficiency constitution, and yang deficiency constitution, and the matching probabilities are 80%, 40%, and 20%, respectively. The above conclusion is sent to the attending physician for reference and auxiliary diagnosis. The attending physician needs to comprehensively diagnose the patient's pulse and biological characteristics such as blood pressure and heart rate to determine the patient's actual constitution type, so as to achieve the constitution classification of the tongue image by evaluating the matching degree between the tongue image and N0 kinds of constitution types;

[0124] Among them, the feature extraction network uses ResNet50 as the backbone network, and 5 classification tasks are designed, namely Q1 (tongue color light and dark), Q2 (tongue coating yellow and white), Q3 (tongue shape fat and thin), Q4 (tongue coating thickness), Q5 (physique type). These five tasks are annotated by TCM doctors' diagnosis. The feature extraction network consists of five parallel branches. The first four are from Net1 (Q1) ~ Net4 (Q4), and their feature extraction layers are retained, while their global average pooling layer (GAP) and fully connected layer (FC) are deleted;

[0125] In order to utilize the features extracted by Net1~Net4 for Q1~Q4, the parameters of these four branches are retained in the training of Q5. Another branch Net5 is added for Q5. The GAP and FC layers are also deleted. Unlike the first four branches, Net5 is trained with ImageNet and fine-tuned with Dataset 2 to supplement the comprehensive evaluation function of tongue image G(x) and match the corresponding constitution type.

[0126] Net1~Net4 are combined in parallel with the pre-trained model Net5. The features of the five branches are fused together through the feature fusion network. After two 3×3 convolutional layers, the global average pooling layer (GAP) and the fully connected layer (FC) are passed, and finally the classification result is generated through the SoftMax function.

[0127] S4, construct a dynamic monitoring model to comprehensively evaluate the patient's health: set the tongue image acquisition cycle Tc to periodically collect the patient's tongue image, obtain the patient's actual physical type and its corresponding matching probability and establish a change curve, thereby obtaining the patient's current comprehensive health level and generating a corresponding risk warning signal;

[0128] The specific process of building a dynamic monitoring model is as follows:

[0129] C1, set the tongue image acquisition period Tc to periodically acquire the patient's tongue image, obtain the patient's actual physical type and mark it as Psj, and mark the matching coefficient between the patient's actual physical type Psj and the patient's tongue image as PVsj;

[0130] C2, with the matching coefficient PVsj as the ordinate and the tongue image acquisition cycle Tc as the abscissa, construct the change curve S1 between the matching coefficient PVsj and the tongue image acquisition cycle Tc, extract N2 points of the change curve S1, mark any point and its coordinates as m (Xm, Ym), calculate the variance through the ordinates of the N2 points, and obtain the fluctuation coefficient σm of the change curve S1: ;

[0131] in, It refers to the average value of the ordinates of N2 points. When the fluctuation coefficient σm of the change curve S1 is higher, it means that the fluctuation degree of the change curve S1 is higher;

[0132] C3, mark the ordinate of the end point of the change curve S1 as Ym0, and then obtain the patient's comprehensive health index JK: ;

[0133] Among them, υ1 and υ2 are the weight factor coefficients of the terminal point ordinate Ym0 and the fluctuation coefficient σm, respectively, and υ1 and υ2 are both greater than 0; when the terminal point ordinate Ym0 and the fluctuation coefficient σm are higher, the patient's comprehensive health index JK is lower, indicating that the patient's current time node matching probability is higher, the probability of physical type diagnosis is higher, and the matching coefficient fluctuation degree is higher, and the physical condition is more unstable;

[0134] C4, set the evaluation interval of the comprehensive health index JK, generate corresponding risk warning signals through interval comparison, and use the risk warning signals to visualize the patient's current physical health level;

[0135] There are M1 evaluation intervals of the preset comprehensive health index JK, and any evaluation interval is marked as QJg, where g is the serial number of the evaluation interval and 1≤g≤M1. When the comprehensive health index JK is in the evaluation interval QJg, the comprehensive health level of the patient is evaluated as level r, and an r-level risk warning signal is generated; when the comprehensive health index JK is higher, the level r of the risk warning signal is higher, indicating that the patient's comprehensive health level is higher at level r and the patient's current health risk is lower;

[0136] S5, construct a health prediction model to predict the patient's health risk: through the change curve of the patient's comprehensive health index JK and the tongue image collection period Tc, set the risk prediction period Tf to predict the patient's health risk level and generate corresponding early warning prompt signals;

[0137] The specific process of building a health prediction model is as follows:

[0138] D1, with the patient's comprehensive health index JK as the ordinate and the tongue image collection cycle Tc as the abscissa, construct a change curve S2 between the patient's comprehensive health index JK and the tongue image collection cycle Tc;

[0139] D2, extract N3 points of the change curve S2, mark any point and its coordinates as r1 (Xr1, Yr1), mark the adjacent point of point r1 as r2 (Xr2, Yr2), where Xr2>Xr1, and obtain the slope value Kr1 of point r1: ;

[0140] If the slope value Kr1 of point r1 is greater than 0, it means that the change curve S2 shows an upward trend at point r1;

[0141] If the slope value Kr1 of point r1 is less than 0, it means that the variation curve S2 shows a downward trend at point r1;

[0142] D3, by measuring the slope values ​​of N3 points and finding the average value, the increase rate Ks of the change curve S2 is obtained:

[0143] ;

[0144] By measuring the standard deviation of the slope values ​​of N3 points, the increase rate floating coefficient σr of the change curve S2 is obtained:

[0145] ;

[0146] D4, and then obtain the patient's health risk index FX by combining the increase rate Ks of the change curve S2, the increase rate floating coefficient σr and the risk prediction period Tf: ;

[0147] Among them, Yr0 is the ordinate of the end point of the change curve S2, that is, the comprehensive health index JK of the patient corresponding to the current time node, φ1 and φ2 are the weight factor coefficients of the increase rate Ks and the increase rate floating coefficient σr, respectively, and φ1 and φ2 are both greater than 0; when the increase rate Ks of the change curve S2 is higher and the increase rate floating coefficient σr is lower, the patient's health risk index FX is lower, indicating that the change curve of the comprehensive health index JK is in an increasing trend and the fluctuation degree is in a stable state, which further indicates that the patient's health risk is lower, and when the risk prediction period Tf is longer, the probability of generating unstable factors will increase, for example, the patient's living status, diet and daily routine may change in a longer period, causing the patient's health risk level to increase;

[0148] D5, setting the evaluation interval of the health risk index FX, generating corresponding early warning prompt signals through interval comparison, and performing corresponding early warning prompt operations on the patient's health development trend through the early warning prompt signals;

[0149] There are M2 evaluation intervals of the preset health risk index FX. Any evaluation interval is marked as QJr, where r is the serial number of the evaluation interval and 1≤r≤N1. When the health risk index FX is in the evaluation interval QJr, the patient's health risk level is assessed to be level r, and an r-level early warning prompt signal is generated; when the health risk index FX is lower, the level r of the early warning prompt signal is lower, indicating that the patient's health risk level in the risk prediction period is lower, thereby improving the accuracy and generalization ability of the model analysis and realizing automated intelligent health status monitoring.

[0150] In summary, the present invention collects tongue images and extracts tongue feature information, and then constructs a tongue image analysis model to extract features from four angles: tongue color brightness, tongue coating chromaticity, tongue shape area, and tongue coating grayscale, thereby successively evaluating the tongue color brightness, tongue coating yellowness, tongue shape fatness, and tongue coating thickness, and then constructs a constitution classification model to comprehensively analyze the matching probability between tongue images and constitution types, thereby improving the accuracy and generalization ability of model analysis, and constructs a dynamic monitoring model to comprehensively evaluate the patient's health status, thereby realizing health monitoring and auxiliary diagnosis based on tongue image features, and then predicting the patient's health risk by constructing a health prediction model, thereby realizing early warning of health risks and automated intelligent health status monitoring.

[0151] The size of the interval and threshold is set to facilitate comparison. The size of the threshold depends on the amount of sample data and the number of bases set by technical personnel in this field for each group of sample data; as long as it does not affect the proportional relationship between the parameter and the quantized value.

[0152] The above formulas are all dimensionless and numerical calculations. The formula is a formula obtained by collecting a large amount of data and performing software simulation to obtain the most recent real situation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0153] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for constructing a health status prediction model based on tongue image characteristics, characterized in that: The following steps are involved: S1, collecting tongue images and extracting tongue feature information: photographing the patient's tongue image by an image acquisition device, and extracting tongue feature information by image processing technology, wherein the tongue feature information includes tongue color brightness, tongue coating color, tongue shape area and tongue coating grayscale; S2, constructing a tongue image analysis model to analyze and process tongue image feature information: by preliminarily analyzing tongue image feature information, constructing feature extraction network models for tongue color brightness, tongue coating color, tongue shape area and tongue coating grayscale, so as to evaluate the brightness of the tongue color, the yellowness of the tongue coating, the fatness of the tongue shape and the thickness of the tongue coating; S3, constructing a constitution classification model to classify the tongue image by constitution: establishing an evaluation function G(x) of the constitution type Pi, obtaining the evaluation value GiP of the tongue image under the constitution type Pi classification, and determining the matching probability between the tongue image and the constitution type Pi by obtaining the matching coefficient PVi between the tongue image and the constitution type Pi; S4, construct a dynamic monitoring model to comprehensively evaluate the patient's health: set the tongue image acquisition cycle Tc to periodically collect the patient's tongue image, obtain the patient's actual physical type and its corresponding matching probability and establish a change curve, thereby obtaining the patient's current comprehensive health level and generating a corresponding risk warning signal; S5, constructing a health prediction model to predict the patient's health risk: setting a risk prediction period Tf, analyzing the periodic change curve of the patient's comprehensive health level, thereby predicting the patient's health risk level and generating a corresponding early warning signal; The specific process of constructing the tongue image analysis model is as follows: A1, by establishing a tongue color brightness feature extraction network model to preliminarily analyze the tongue color brightness, obtain the tongue color brightness evaluation coefficient J1 corresponding to the tongue image, and thus evaluate the brightness of the tongue color; A2, by establishing a tongue coating chromaticity feature extraction network model to preliminarily analyze the tongue coating chromaticity, obtain the tongue coating yellowness and whiteness evaluation coefficient J1 corresponding to the tongue image, and thus evaluate the degree of yellowness and whiteness of the tongue coating; A3, by establishing a tongue shape area feature extraction network model to preliminarily analyze the tongue shape area, obtain the tongue shape fatness and thinness evaluation coefficient J1 corresponding to the tongue image, and thus evaluate the fatness and thinness of the tongue shape; A4, by establishing a tongue coating grayscale feature extraction network model to preliminarily analyze the tongue coating grayscale, obtain the tongue coating thickness evaluation coefficient J1 corresponding to the tongue image, and thus evaluate the thickness of the tongue coating; The specific process of establishing the tongue color brightness feature extraction network model is as follows: A1-1, preliminary analysis of tongue color brightness by establishing a tongue color brightness feature extraction network model; A1-2, divide the tongue image into n0 feature regions, mark any feature region as Ze, extract n1 pixels of the feature region Ze, and mark any pixel as D; A1-3, collect the brightness value of pixel D and mark it as tongue color brightness LDd, and obtain the brightness coefficient XLze of feature area Ze by combining the brightness values ​​of n1 pixels; A1-4, and then measure and obtain the brightness coefficients of n0 feature areas, and comprehensively obtain the tongue color brightness evaluation coefficient J1 corresponding to the tongue image.

2. The method for constructing a health status prediction model based on tongue image characteristics according to claim 1, characterized in that: The specific process of establishing the tongue coating chromaticity feature extraction network model is as follows: A2-1, preliminary analysis of tongue coating chromaticity by establishing a tongue coating chromaticity feature extraction network model; A2-2, divide the tongue image into n0 feature regions, mark any feature region as Ze, extract n1 pixels of the feature region Ze, and mark any pixel as D; A2-3, classify and mark the tongue coating color, set m0 tongue coating color types, mark the tongue coating color of pixel D as Dc, collect the chromaticity value of pixel D and mark it as tongue coating chromaticity CDd, and obtain the chromaticity coefficient XCze of the feature area Ze by combining the chromaticity values ​​of n1 pixels; A2-4, and then calculate and obtain the chromaticity coefficients of n0 feature areas, and comprehensively obtain the tongue coating yellowness and whiteness evaluation coefficient J2 corresponding to the tongue image.

3. The method for constructing a health status prediction model based on tongue image characteristics according to claim 2, characterized in that: The specific process of establishing the tongue-shaped area feature extraction network model is as follows: A3-1, preliminary analysis of the tongue area by establishing a tongue area feature extraction network model; A3-2, substitute the tongue image into the two-dimensional coordinate system, extract n2 edge points of the tongue image, and obtain the area U of the tongue image by fitting through the n2 edge points and their coordinates; A3-3, and then calculate the tongue shape fatness assessment coefficient J3 corresponding to the tongue image.

4. The method for constructing a health status prediction model based on tongue image characteristics according to claim 3, characterized in that: The specific process of establishing the tongue coating grayscale feature extraction network model is as follows: A4-1, preliminary analysis of the tongue coating grayscale by establishing a tongue coating grayscale feature extraction network model, A4-2, divide the tongue image into n0 feature regions, mark any feature region as Ze, extract n1 pixels of the feature region Ze, and mark any pixel as D; A4-3, collect the gray value of pixel D and mark it as tongue coating gray HDd, and obtain the gray coefficient XHze of feature area Ze by combining the gray values ​​of n1 pixels; A4-4, and then calculate and obtain the grayscale coefficients of n0 feature areas, and comprehensively obtain the tongue coating thickness evaluation coefficient J4 corresponding to the tongue image.

5. The method for constructing a health status prediction model based on tongue image characteristics according to claim 4, characterized in that: The specific process of constructing the constitution classification model is as follows: B1, obtain the tongue image comprehensive evaluation function G(x) by combining the tongue color brightness evaluation coefficient J1, the tongue coating yellowness evaluation coefficient J2, the tongue shape fatness evaluation coefficient J3 and the tongue coating thickness evaluation coefficient J4; B2, divide the constitution types into N0 types, mark any constitution type as Pi, mark the tongue color brightness evaluation coefficient, tongue coating yellowness evaluation coefficient, tongue shape fatness evaluation coefficient and tongue coating thickness evaluation coefficient corresponding to constitution type Pi as Ji1, Ji2, Ji3, Ji4 respectively, and obtain the tongue image comprehensive evaluation function Gi (x) of constitution type Pi; B3, the tongue color brightness evaluation coefficient J1, the tongue coating yellowness evaluation coefficient J2, the tongue shape fatness evaluation coefficient J3 and the tongue coating thickness evaluation coefficient J4 of the tongue image are integrated and substituted into the tongue image comprehensive evaluation function Gi(x) of the constitution type Pi to obtain the evaluation value GiP of the tongue image under the classification of the constitution type Pi; B4, setting a standard interval QJi[Qi1, Qi2] of the evaluation value GiP of the tongue image under the classification of the physical type Pi, and comparing the evaluation value GiP with the standard interval QJi; B4-1, if the evaluation value GiP of the tongue image under the classification of the physical type Pi is not within the standard interval QJi, it is determined that there is no matching probability between the tongue image and the physical type Pi; B4-2, if the evaluation value GiP of the physique type Pi is within the standard interval QJi, the matching coefficient PVi between the tongue image and the physique type Pi is obtained to determine the matching probability between the tongue image and the physique type Pi; B4-3, then obtaining the tongue image and the evaluation values ​​of N0 kinds of physique types in sequence, and comparing them with the preset standard intervals of the physique types, to obtain N1 kinds of physique types that have a probability of matching the tongue image; B4-4, then obtain the matching coefficients between the tongue image and N1 kinds of physical types with matching probabilities, and sort the matching coefficients in descending order, output the physical types in the top w% of the order and their corresponding matching probabilities for the attending physician to use as a reference for auxiliary diagnosis, so as to determine the patient's actual physical type and realize physical classification of the tongue image.

6. The method for constructing a health status prediction model based on tongue image characteristics according to claim 5, characterized in that: The specific process of building a dynamic monitoring model is as follows: C1, set the tongue image acquisition period Tc to periodically acquire the patient's tongue image, obtain the patient's actual physical type and mark it as Psj, and mark the matching coefficient between the patient's actual physical type Psj and the patient's tongue image as PVsj; C2, construct the change curve S1 between the matching coefficient PVsj and the tongue image collection period Tc, extract N2 points of the change curve S1, mark any point and its coordinates as m (Xm, Ym), calculate the variance through the ordinates of the N2 points, and obtain the fluctuation coefficient σm of the change curve S1; C3, mark the ordinate of the end point of the change curve S1 as Ym0, and then obtain the patient's comprehensive health index JK; C4, set the evaluation interval of the comprehensive health index JK, and generate corresponding risk warning signals through interval comparison.

7. The method for constructing a health status prediction model based on tongue image characteristics according to claim 6, characterized in that: The specific process of building a health prediction model is as follows: D1, construct the change curve S2 between the patient's comprehensive health index JK and the tongue image collection period Tc; D2, extract N3 points of the change curve S2, mark any point and its coordinates as r1 (Xr1, Yr1), mark the adjacent point of point r1 as r2 (Xr2, Yr2), and obtain the slope value Kr1 of point r1; D3, by measuring the slope values ​​of N3 points and finding the average value, the increase rate Ks of the change curve S2 is obtained, and by measuring the standard deviation of the slope values ​​of N3 points, the increase rate floating coefficient σr of the change curve S2 is obtained; D4, then obtain the patient's health risk index FX by combining the increase rate Ks of the change curve S2, the increase rate floating coefficient σr and the risk prediction period Tf; D5, set the evaluation interval of the health risk index FX, and generate corresponding early warning signals through interval comparison.