diabetes screening and monitoring using tongue images and self-reported symptoms: a machine learning approach

Conditions: Diabetes Mellitus

Summary: study background: diabetes mellitus (dm) is a major non-communicable disease. diagnosis and self-management of dm is important. currently, detection of diabetes requires blood tests, which is costly and inconvenient, especially for elderlies.tongue diagnosis has been used in chinese medicine as a routine diagnostic method, and it has recently been studied for detection of dm and diabetic retinopathy (dr). we have developed a method for taking tongue images using smartphone, which can reveal more detailed features than conventional clinical tongue inspection. there are many limitations of the preliminary study. therefore, it is our plan in this study to address these specific limitations with the following objectives. the results of this study will enable us to develop a practical app for diabetes screening and monitoring. study objective the aim of the study is to develop an algorithm for diabetes screening, with the following objectives: 1. . to determine the sensitivity and specificity of tongue images taken with smartphone in predicting abnormal hba1c (≥6.5%); 2. to determine tongue image features responsible for the classification of normal and abnormal levels of hba1c (≥6.5%); 3. to determine the sensitivity and specificity of tongues image in predicting four different levels of hba1c: \<6% (normal), 6-6.4% (prediabetes), 6.5-8.9% (diabetes) and ≥ 9% (diabetes with high hba1c); 4. to determine the sensitivity and specificity of combining image analysis results with the results from a tcm symptom questionnaire in predicting the four levels of hba1c. hypothesis: our working hypothesis is that different tongue coating features may be associated with different stages of diabetes, as indicated by different levels of hba1c；and different combination of symptoms from a tcm point of view may also be associated with different levels of hba1c. thus, combining tongue image with tcm symptoms may allow a machine learning model to build an algorithm for hba1c prediction with reasonable accuracy. inclusion criteria: the inclusion criteria is adult subjects with hba1c test results from a laboratory that meets the iso 15189 standard, such as those laboratories used by the hospital authority of hong kong. exclusion criteria: subjects who are unable to give consent, unable to answer the questionnaire or to cooperate in tongue image collection will be excluded. we will not include subject who are unable to understand written chinese or english. study design: this is a cross-sectional design looking at the relationship between tongue image pattern and hba1c reading. age, gender, weight, height , duration of diabetes, family history of diabetes and any comorbid disease will be recorded. the level of hemoglobin and blood lipid profile will also be recorded if the information is available. any acute repertory or digestive illness, as well as smoking habits will also be noted. an electronic questionnaire (using qualtrics survey software) based on published tcm symptoms of diabetes and the abovementioned information will be used for data collection. data processing and analysis 1. tongue segmentation the images containing the tongue and its surrounding area will be processed for segmentation of the tongue area. this segmentation is carried out by a computer algorithm developed in-house by machine learning. 2. machine learning two approaches will be used in machine learning. in the first approach, we will first perform image classification of either normal or abnormal hba1c and generate the probabilities for the classification using convolutional neural networks (cnns) (anwar et al., 2016; ødegaard et al., 2016). then we will try to classify the images into four different classes according to their hba1c level: \<6% (normal), 6-6.4% (prediabetes), 6.5-8.9% (diabetes) and ≥ 9% (diabetes with high hba1c). primary outcome: tongue image features: we will extract tongue image features and perform image classification of either normal or abnormal hba1c and generate the probabilities for the classification using convolutional neural networks (cnns). then we will try to classify the images into four different classes according to their hba1c level: \<6% (normal), 6-6.4% (prediabetes), 6.5-8.9% (diabetes) and ≥ 9% (diabetes with high hba1c). secondary outcome: symptom patterns: questionnaire data will be combined with image data for regression analysis

tongue image collection tongue image collection will be carried out by trained research assistants based on our published protocol (wang et al., submitted), which consisted of the following steps. step 1, start the phone's camera function without using any filter or artificial intelligence (a.i.) function; step 2, turn on the flash; step 3, aim at the lips of the subject by holding the phone directly in front of, and 15-20 cm away from, the subject with a 45 degree angle; step 4, tap on the screen to adjust focus when the subject protrudes the tongue and then take a picture; step 5, upload the image in full resolution to the online questionnaire system (qualtrics survey software). chinese medicine questionnaire collection a questionnaire in electronic/paper form will be used to collect symptoms relevant to chinese medicine pattern diagnosis of diabetes. the questions have been selected from previous studies on the most commonly appearing symptoms of diabetes from chinese medicine perspectives (hsu et al., 2016; zhou et al., 2012; zhao et al., 2017). age, gender, weight, height , duration of diabetes, family history of diabetes and any comorbid disease, hb reading (if available) will also be taken into consideration. recent history of smoking is also recorded as a potential confounding factor for tongue coating features (tomooka et al., 2017) data entry and verification to ensure accuracy, image, questionnaire answers and hba1c (and hb, if available) readings will be uploaded to the server at the same time. a patient identification number for the trial will also be generated to facilitate data verification. such identification number consists of information on data collection date and outpatient number, etc. however, it will not contain any information related to patient's hkid, full patient name, hn, mrn, dob, address or phone number. the data will be collected by an online questionnaire service using qualtrics and then store at a local computer at scm/hkbu. a paper version of the questionnaire may be used when necessary, and the filled questionnaire will be kept for 3 years after the study. the collected image will contain no eye features on the photo, and the questionnaire will not include any information for identification of the subject, except a subject id number for the trial. after completion of the project, data on qualtrics will be deleted, whereas data on the local computer will be kept for seven years after the study has been published, as per institution requirement. machine learning two approaches will be used in machine learning. in the first approach, we will first perform image classification of either normal or abnormal hba1c and generate the probabilities for the classification using convolutional neural networks (cnns) (anwar et al., 2016; ødegaard et al., 2016). then we will try to classify the images into four different classes according to their hba1c level: \<6% (normal), 6-6.4% (prediabetes), 6.5-8.9% (diabetes) and ≥ 9% (diabetes with high hba1c). the probability data of image classification will be combined with data from the questionnaire as variables using fully connected cnns layers to determine which one of the four hba1c levels the subject belongs to (osia et al., 2018). the advantage of this approach is that it allow us to determine the sensitivity and specificity of the classifications using tongue image alone. however, a drawback of this approach is that it may lose some important features of the tongue in classification with questionnaire data. alternatively, we will extract features from each tongue image using cnns, and use one hot encoding to transfer the features into one dimensional matrix, which enable the blending of image data with questionnaire data for regression analysis using neural network. a separate testing data set, which contains at least 200 negative and 200 positive images, will be used to evaluated sensitivity and specificity of the algorithms obtained. in the final algorithm, sensitivity, specificity, positive predictive value (ppv) and negative predictive value (npv) will be reported. potential problems and experimental alternatives potential problem 1: it is highly likely that the tongue image features are not exclusive to abnormal level of hba1c, and they are also present in smokers and some acute and chronic diseases, such as copd, upper respiratory infection and chronic kidney or liver diseases. experimental alternatives: we have now included a section for smoking history and known acute or chronic diseases in our questionnaire. if we found a significant correlation between certain confounding variables with abnormal hba1c tongue diagnosis, we would warn the future user about the unreliability of the algorithm when used in a population with the confounding condition. furthermore, we would adjust the weighting of parameters in the questionnaire to achieve a prediction model with reasonable specificity and sensitivity, even for populations with the said condition. potential problem 2: machine classification results from the collected tongue image data set show poor specificity and sensitivity in predicting the four hba1c levels, even after the inclusion of parameters in tcm questionnaire. experimental alternatives: as we will collect blood lipid profile of subjects from the hospital when available, we can analyze our results as we go. when our total sample population reaches 2,000, and we still see a poor specificity and sensitivity, we will include blood lipid profile test to our community subjects. by adding blood lipid profile as parameters in our regression model, we should be able to enhance the specificity and sensitivity of the prediction, as previous studies have found a close correlation between high level of hba1c and dyslipidemia (khan et al., 2007). of course, we do not wish this to happen because it will lower the value of our prediction model, as it requires an invasive procedure to obtain blood lipid profile. nevertheless, we are confident that at least a non-invasive model for detection of abnormal level of hba1c (≥ 6.5%) can be produced, based on the results from our proof-of-concept study. potential problem 3: the image features responsible for the classification of normal and abnormal levels of hba1c (≥6.5%) could not be readily identified. experimental alternatives: extraction of visual features that can provide a semantic and robust representation of tongue images with abnormal levels of hba1c is highly desirable. the greasy and thick coating, which we have identified as features for the classification, needs to be further defined. to this end, we will try different techniques proposed in the literature (ching et al., 2018), including assigning example-specific importance scores, matching or exaggerating the hidden representation, activation maximization and latent space manipulation, etc.

Eligibility criteria:
inclusion criteria: adult subjects with hba1c test results from a laboratory meeting the iso 15189 standard within two weeks before or after the tongue images and questionnaire collection. exclusion criteria: unable to give consent unable to answer the questionnaire or to cooperate in tongue image collection unable to understand written chinese or english.