Next Article in Journal
Pullout Strength of Pedicle Screws Inserted Using Three Different Techniques: A Biomechanical Study on Polyurethane Foam Block
Next Article in Special Issue
Physiological Noise Filtering in Functional Near-Infrared Spectroscopy Signals Using Wavelet Transform and Long-Short Term Memory Networks
Previous Article in Journal
Neonatal Seizure Detection Using a Wearable Multi-Sensor System
Previous Article in Special Issue
GSN-HVNET: A Lightweight, Multi-Task Deep Learning Framework for Nuclei Segmentation and Classification
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Named Entity Recognition of Diabetes Online Health Community Data Using Multiple Machine Learning Models

1
Second Xiangya Hospital, Central South University, Changsha 410011, China
2
School of Life Sciences, Central South University, Changsha 410013, China
3
College of Computer Science and Engineering, Jishou University, Jishou 416000, China
4
Key Laboratory of Medical Information Research, Central South University, College of Hunan Province, Changsha 410013, China
5
Clinical Research Center for Cardiovascular Intelligent Healthcare in Hunan Province, Changsha 410011, China
6
Big Data Institute, Central South University, Changsha 410011, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Bioengineering 2023, 10(6), 659; https://doi.org/10.3390/bioengineering10060659
Submission received: 21 April 2023 / Revised: 19 May 2023 / Accepted: 25 May 2023 / Published: 29 May 2023
(This article belongs to the Special Issue Biomedical Application of Big Data and Artificial Intelligence)

Abstract

:
The rising prevalence of diabetes and the increasing awareness of self-health management have resulted in a surge in diabetes patients seeking health information and emotional support in online health communities. Consequently, there is a vast database of patient consultation information in these online health communities. However, due to the heterogeneity and incompleteness of the content, mining medical information and patient health data from these communities can be a challenge. To address this issue, we built the RoBERTa-BiLSTM-CRF (RBC) model for identifying entities in the online health community of diabetes. We selected 1889 question–answer texts from the most active online health community in China, Good Doctor Online, and used these public data to identify five types of entities. In addition, we conducted a comparative evaluation with three other commonly used models to validate the performance of our proposed model, including RoBERTa-CRF (RC), BilSTM-CRF (BC), and RoBERTa-Softmax (RS). The results showed that the RBC model achieved excellent performance on the test set, with an accuracy of 81.2% and an F1 score of 80.7%, outperforming the performance of traditional entity recognition models in named entity recognition in online medical communities for doctors and diabetes patients. The high performance of entity recognition in online health communities will provide a crucial knowledge source for constructing medical knowledge graphs. This integration would help alleviate the growing demand for medical consultations and the strain on healthcare resources, while assisting healthcare professionals in making informed decisions and providing personalized services to patients.

Graphical Abstract

1. Introduction

In 2030, it is expected that 11.3% of adults will have diabetes, which would affect roughly 643 million people. Diabetes is one of the most rapidly expanding global crises of the 21st century [1]. Relevant studies have indicated that roughly half of web-based health information users with chronic health issues may benefit from accessing online health information [2]. The Q&A structure of online health communities (OHCs) is becoming more and more popular, with diabetic patients seeking medical knowledge and diabetic self-management assistance [3,4,5].Online health communities store a significant amount of case information, medical knowledge, and prescription data, which serves as the hotspots for medical big data applications.
In the doctor–patient Q&A texts from the online health community, entities can be identified as linked to diseases, medications, tests, treatments, and symptoms for diabetes patients, and used to provide various intelligent services to diabetic patients. We can also gain a deeper understanding of patients’ needs and interests in health-related information through entity recognition [6].With this knowledge mined from online health communities, we can then offer patients individualized medical care, health information, decision-making participation, emotional support services, and improvements in online medical services.
Historically, vast sets of rules or lexicons had to be manually created by professionals for both rule-based and lexicon approaches to medical entity recognition [7,8,9]. Using benchmark data from the i2b2 2009 drug challenge and a hybrid lexicon-based and rule-based model, [10] achieved an F1 score of 66.97% for the named entity recognition of pharmaceuticals. Statistics-based machine learning algorithms leveraging manually annotated corpora for supervised training have exhibited a significant increase in accuracy over rule-based and lexicon-based entity recognition approaches [11,12]. With the advent of deep learning, numerous neural-network-based models have effectively been used for the textual entity recognition of biological documents [13,14], electronic medical records [15,16,17], and online health communities [18,19,20] Dreyfus Dreyfus. Based on the entity recognition infrastructure deep learning model LSTM-CRF, Guillaume Lample et al. [21] proposed a neural network model that combines bidirectional long short-term memory (BiLSTM) and conditional random fields (CRFs). This bidirectional structure enables the capture of sequential information in context, leading to widespread applications in entity recognition. Wang, Z. et al. [22] retrieved input patient fundamental information and illness information, annotated entities on medical community Q&A texts, and trained a BiLSTM-CRF to recognize and extract entities linked to diabetes in the medical domain. However, the BiLSTM-CRF model focuses on extracting features between words and characters from the text while disregarding the contextual meaning of context. To address this issue, Jacob Devlin et al. from Google introduced a BERT pre-training model [23]. This model improved the quality of embedding words and reduced the workload of downstream classification tasks, resulting in better recognition performance. In recent years, named entity identification in electronic medical records [24,25,26] and biomedical literature [27] has been successfully implemented with BERT, a pre-trained model with enhanced contextual long-range semantic learning capability based on word vectors.
Due to their lack of medical knowledge, users of the online healthcare communities for diabetes produce texts that contain inaccurate or slang expressions. Entity recognition of Q&A text in online health communities is challenged with semantic ambiguity, content heterogeneity, high complexity, and imperfect recognition; hence, it is difficult to achieve the desired outcome. Some studies have shown that applying the RoBERTa model to named entity recognition tasks improves the entity recognition performance (F1 score) [28]. To mitigate the impact of Chinese online health data on the performance of entity recognition, this paper utilizes a combined model of RoBERTa-BiLSTM-CRF to accomplish medical entity recognition tasks related to diabetes. This method primarily addressed the following tasks: (1) We standardized the diabetes annotation corpus of the online health community using the diabetes entity classification standards of Ruijin Hospital; (2) The pre-trained model RoBERTa-BiLSTM-CRF was used to identify named entities in Q&A text from the Good Doctor Online health community, and evaluated by comparing it with the other three models; (3) The entity recognition performance of the Q&A texts from the perspective of the patient was compared with that of electronic medical records from the clinician’s perspective.

2. Method

2.1. Data Collection and Preprocessing

We chose the top Chinese online doctor–patient Q&A platform, “Good Doctor Online” (https://www.haodf.com/, accessed on 5 December 2021), searched the Q&A section of the diabetes-specific disease section, and collected 9446 questions from November 2020 to November 2021. When consulting doctors, patients submitted content using a specified information description framework, as shown in Figure 1.
For this study, the following preprocessing processes were carried out: (1) Removed all non-textual content (replacing emoji icons with emoji-related codes); (2) Filtered 2000 values at random from the acquired dataset of 9445 values, deleted duplicate and nonsensical data to obtain 1889 values, and converted the data to JSON format; (3) Annotated the questions of health community Q&A text into eight categories (check, disease, drug, mood, life, social, symptom, and treat) using the Doccano annotation tool. Figure 2 depicts the annotation interface; (4) To process the exported text, it was divided into 6669 values. The dataset was then further split into a training set consisting of 6019 data slices and a test set consisting of 650 data slices. The ratio of this split was approximately 9:1. Within the training set, the data were divided into a training subset and a validation subset, at a ratio of 5:1. Next, we converted the JSON format files into a data format for generic named entity recognition tasks using BIO tagging; (5) Utilized the RoBERTa word vector model made available by the Harbin Institute of Technology as an open source. Figure 3 depicts the specific data preprocessing procedure.

2.2. RoBERTa-BiLSTM-CRF Model Construction

This article employed the RoBERTa-BiLSTM-CRF model, which is composed of three layers: the RoBERTa word vector layer, the BiLSTM layer, and the CRF layer. In the word vector layer, word embedding and model construction were carried out by applying the Chinese pre-training model from the HUST Xunfei Lab in order to obtain word-level vector information and a semantic representation suitable for the Chinese language. The BiLSTM layer is utilized for semantic encoding, and forward and backward LSTM networks are used for each training sequence; the forward and backward networks were connected to the same output layer. The CRF layer, which effectively evaluated the labeling information before and after the sequence, filtered out entities that did not conform to the labeling rules and outputs a sequence with the best likelihood of being correctly categorized. Figure 4 depicts the general structure of the RoBERTa-BiLSTM-CRF model.

2.2.1. RoBERTa Pre-Training Layer to Construct Word Vectors

Each input word of the encoder generated three vectors, denoted by vectors, accordingly. After calculating the inner product between and producing the similarity weights, the similarity was calculated. Then, the weights were normalized to a value between 0 and 1, and the similarity vector was processed using the function shown in Equation (1).
α i = s o f t m a x f Q , K i = e x p f Q , K i i e x p ( f ( Q , K i ) )
Scaling was accomplished by multiplying 1 d k with the result of the inner product of Q and K . The attentional mechanism is presented in Equation (2).
A t t e n t i o n Q , K , V = s o f t m a x Q K T d k V
Combining the outcomes of attention processes yielded the multi-headed attention module, as determined using Equation (3).
M u l t i H e a d Q , K , V = C o n c a t h e a d 1 , h e a d 2 , h e a d 3 , ,   h e a d h W o
The output of the multi-headed attention layer was then passed to the feed-forward neural network, the module described in Equation (4).
F F N Z = m a x 0 , Z W 1 + b 1 W 2 + b 2
The output layer employed a self-supervised approach to estimate the probability that the masked target word and the two phrases shared a contextual link. After multiple training iterations, the likelihood and the weight parameter with the largest value for the two tasks are determined.

2.2.2. Layer of BiLSTM for Semantic Encoding

Long short-term memory networks incorporate memory units in the hidden layer, which can better solve the problem of gradient disappearance caused by excessively long sequences in the training of conventional recurrent neural networks, enabling them to be more effectively used in the named entity recognition task. Its structure consists of the following equations:
i t = σ x t w x h i + h t 1 w h h i + b h i
f t = σ x t w x h f + h t 1 w h h f + b h f
o t = σ x t w x h o + h t 1 w h h o + b h o
c t = tanh x t w x h c + h t 1 w h h c + b h c
c t = i t c t + f t c t 1
h t = o t tanh c t
The σ denotes the S i g m o i d activation function, is the dot product operation, and x t is used as the unit input; i t , f t , o t denotes the input gate, forgetting gate, and output gate at a specific moment, respectively; t a n h denotes the hyperbolic tangent activation function; w , b represent the weight matrix and bias vector of the input gate, forgetting gate, and output gate, respectively; c t represents the state at time, which is the intermediate state obtained only from the current input and is used to update the state at time t ; h t represents the output at time t .
The BiLSTM bi-directional long and short-term memory network with forward and reverse L S T M for each word sequence was used to decode the text sentences in the input layer, and data conversion and transfer through forward L S T M and backward L S T M were used to acquire contextual feature vectors in both directions. First, the output calculated the error existing in the output layer at each moment, followed by the derivatives of parameters of the forward L S T M from moment t to moment 1. For the network portion of the backward L S T M , loss needs to be calculated from moment 1 to moment t, and reverse differentiation be conducted. The formula for the output is provided in the following equations:
h t = L S T M L x t , h t 1  
h t = L S T M R x t , h t 1
  h t = h t , h t  

2.2.3. CRF Optimized Tag Sequence

CRFs can compensate for the shortcomings of BiLSTM by providing an ideal sequence of predictions based on the relationship between surrounding labels. The output score matrix of BiLSTM is supposed to be P for any arbitrary sequence X = x 1 , x 2 , , x n . The size of P is n × k , where n represents the number of words, k represents the number of tags, and P i j   represents the score of the j t h tag of the word. Equation (14) describes the score function for the sequence of predictions Y = y 1 , y 2 , , y n .
s X , Y = i = 0 n A y i , y i + 1 + i = 0 n P i , y i
A denotes the matrix of transferred scores, A i j represents the scores transferred from label i to label j , and the size of A is k + 2 . Equation (15) describes the probability of generating the predicted sequence Y .
p Y | X = e s X , Y Y ˜ Y X s X , Y ˜
The probability function of the expected sequence could be obtained by taking the logarithm at both ends.
ln p Y | X = s X , Y ln ( Y ˜ Y X s X , Y ˜ )
In Equation (17), Y ˜ denotes the true labeled sequence, whereas Y X denotes all conceivable labeled sequences. Decoding yielded the output sequence corresponding to the maximum score.
Y * = arg m a x s ( X , Y ˜ ) Y ˜ ϵ Y X

3. Result

3.1. Text Annotation

Health Community Q&A texts are self-reported by patients to their physicians; therefore, the language of the text differed from that of the medical literature and electronic medical records. When annotating, it is important to note the frequent abbreviations and misspellings. The original words were precisely aligned with the common words. Under the supervision of two medical informatics professionals and one medical expert, we coded each record in terms of the classification criteria for diabetes mellitus at Ruijin Hospital. This labeling was divided into eight categories (check, disease, drug, lifestyle, mood, social context, symptom, and treatment). Table 1 summarizes the classification criteria.

3.2. Experimental Setup

This study was based on the Python + PyTorch + GPU deep neural network learning framework. The cross-entropy loss function was used as the loss function, and the AdamW method was employed for model training optimization. A five-fold cross-validation procedure was utilized to run our proposed model. During the training process, we performed fine-tuning on Roberta. The input dimension, sequence_length, was set to 128. The initial learning rate of the model was set to 3 × 10−5, while the learning rates of BiLSTM and CRF were set to five times greater than that of Roberta, namely, 1.5 × 10−4. A cosine schedule with a warmup was used to adjust the learning rate. We set the warmup steps to one-tenth of the total training epochs, and the learning rate decay rate was set to 0.01 (weight_decay). The word embedding dimension (pooler_fc_size) was set to 768, and the batch size was set to 16. Dropout was applied with rates of 0.1 at the input layer and hidden layers. The total number of training epochs was set to 50, and the F1 score was calculated on the validation set after each epoch. The best model was saved accordingly. The patient number was set to 10, which means that if the model did not show improvement on the validation set over 10 consecutive epochs, the training would be terminated early. The weights, biases, and other parameters were continuously optimized during the training process. To prevent issues such as gradient explosion or vanishing gradients during code execution, the gradient clipping technique was employed. The performance of the best model was tested on the final test set, which was not used during model training. The F1 score was calculated for each category, and the average score was taken as the F1 score on the test set. The average F1 score from the five rounds of cross-validation was calculated as the final F1 score. The experimental parameters for model training are summarized in Table 2.

3.3. Evaluation

This study examined the performance of the model by calculating its precision, recall, accuracy, and F1 scores. TP, TN, FP, and FN are the number of positive samples correctly predicted for the positive class, the number of samples correctly predicted for the negative class, the number of samples incorrectly predicted to be in the positive class, and the number of samples incorrectly predicted to be in the negative category, respectively. In this study, the entity array obtained through manual annotation was referred to as the truth entity set, while the array of entities predicted by the machine learning model after training was called the predicted entity set. Taking the intersection of these two arrays, the number of entities that appear in both arrays was defined as true positives (TPs), indicating that the machine successfully predicted the true entities. The number of entities in the truth entity set that were not correctly predicted was defined as false negatives (FNs), while the portion of entities in the predicted entity set that were not correctly predicted was defined as false positives (FPs). Figure 5 presents the confusion matrices for the four models.
P r e = T P T P + F P
R e = T P T P + F N
F 1 = 2 × P r e × R e P r e + R e
A c c u r a c y = T P + T N T P + T N + F P + F N
Precision refers to the ratio of actual positive samples to expected positive samples. Recall, also known as sensitivity, is the percentage of predicted true-positive samples to the total number of true-positive samples. The F1 value is a combined precision and recall rating. Accuracy reflects a model’s ability to correctly classify the overall samples, i.e., the proportion of samples that are correctly predicted among all samples.

3.4. Model Performance

To verify the validity and feasibility of the model, the total experimental results of our RBC model and other excellent models are shown in Table 3; the baseline model was BC. Other models are RC and RS. The experimental results demonstrate that our suggested RBC model enhanced precision by 4.3%, recall by 7%, F1 values by 5.6%, and Acc values by 5.8%, and had a better overall performance when compared with the BiLST-CRF baseline model. We used five-fold cross-validation, training, and testing on the corpus; the final results are shown in Table 3.
Table 4 presents a statistical evaluation of the effectiveness of eight distinct entity recognition categories. We observed that two entity types, emotional and social attributes, achieved superior results with significantly higher precision, recall, and F1 values than other entity types, whereas two entity types, symptoms and therapies, were significantly less effective. For the identical CRF model based on words, the RBC and RC impacts were extremely similar.
We identified eight entity types from Q&A texts: check, disease, drug, lifestyle, emotion, social attribute, symptom, and treatment. Table 5 displays the distribution of the eight types of entities in the 1890 records. The entities with the highest frequency were social properties, diseases, and tests, which accounted for 89.68, 80.05, and 80.00%, respectively; followed by drugs, symptoms, lifestyle, and treatment, which accounted for 56.4, 36.40, and 25.93%, respectively. The less frequent entities were symptoms and emotions, which accounted for 7.61 and 7.59%, respectively. In addition, we counted the top 10 highest-frequency words of each entity type. For example, among 4259 check entity types, fasting blood glucose, postprandial blood glucose, glycated hemoglobin, and glucose tolerance tests were the most common tests for diabetes; these high-frequency words accounted for 70.86% of the examination entity categories. Among the disease entity types, hypertension, fatty liver, coronary heart disease, cerebral infarction, and stroke were the most frequently occurring diseases; these high-frequency words accounted for 73.15% of the disease entity categories, indicating that diabetic patients are often afflicted by other types of cardiovascular diseases and complications. Table 5 describes the details of the top 10 entities.

4. Discussion

Combining the diabetes entity classification criteria of Shanghai Ruijin Hospital, our model demonstrated that the RoBERTa-BiLSTM-CRF-based deep learning model could perform the online Q&A text-based diabetes entity recognition task with an F1 value of 81.51%, outperforming previously published online healthcare entity recognition results using the BiLSTM-CRF model (68.43%) [29]. This is comparable to the recently reported BERT-BiLSTM-CRF-model-based named entity recognition system for the diabetes literature (79.89%) [30]. The benefit of the RoBERTa-BiLSTM-CRF model (F1 value of 81.51%) over the benchmark model, BiLSTM-CRF (F1 value of 75.28%), is that BERT produces better word-level vectors than the phrase vectors acquired using Word2vec. Pre-training in the biomedical corpus improves BERT’s ability to comprehend difficult biomedical literature.
The semi-structured doctor–patient health community requires patients to fill in socio-demographic data and provides optional fixed-word input, which may indicate that socio-demographic information descriptions are relatively standardized and fixed, and the accuracy and sensitivity of entity recognition were improved, with F1 values exceeding 90% for all four models. In addition, the patients’ inputs in the text boxes of “chief complaint” and “help wanted” were relatively free text, and the majority of patients used colloquial language to describe their symptoms and treatments due to a lack of professional knowledge. The “Help” text box contained a highly free-form description written primarily in colloquial language, with a certain number of misspellings and ambiguities regarding the concept of professional terms, which are significantly different from the electronic medical records portrayed from the physician’s perspective. The language style of the doctor–patient Q&A community is information-oriented language expression, which is characterized by specific, certain, and objective vocabularies, while the language style of the patient–patient community is social-support-oriented language expression, characterized by ambiguous and empathic features. In the Chinese electronic medical record dataset, CCKS, based on the BERT model, published studies demonstrating that the F1 values for the symptom-sign category all exceeded 95% and the F1 values for the treatment entity category all exceeded 82% [31,32]. Additionally, the entity recognition was superior to the entity recognition in online health communities [33,34]. It has been demonstrated that biomedical experts and the general public differently perceive medical entities in diabetes.
In addition, we analyzed named entities extracted from online health communities to investigate the key topics discussed and emphasized in patients’ online health Q&As for the purpose of studying the health information needs of patients. Table 5 shows the frequency of entity occurrences in each category and the proportion of TOP10 entities in the respective entity type. The frequency indicates the number of times a category of entities is mentioned in relevant posts. In 1890 relevant posts, for example, the test and examination category entities were mentioned 1512 times. The experimental data suggest that they focus on diseases (possibly assessment screening for diabetes and complications of diabetes), tests and examinations (on diabetes screening and concerns about glycemic control management), and medications (possibly counseling on medication involving diabetes), as confirmed by previously published studies on entity identification in online health communities for diabetes [35,36].
The limitations of this study include the following: (1) The data sources only comprised single online health community doctor–patient Q&A texts, without considering differences in recognition performance of the BERT model on datasets from other online health communities with different language styles. Furthermore, the study lacked a comprehensive investigation into the connection between language expression features of different chronic diseases and the applicability of the chosen model. Therefore, further research must be conducted on the applicability of our model to online health community texts. (2) The diabetes data used in the study were cross-sectional static data of patients, and longitudinal cohorts of different stages of chronic disease progression were not collected without patient tracking [37]. Future research must continue to standardize the annotated corpus, expand its coverage, and optimize the outcomes of the model.

5. Conclusions

For the named entity recognition of the online medical community of diabetes, the RoBERTa-LiSTM-CRF model outperforms the other three models: RoBERTa-CRF (RC), BilSTM-CRF (BC), and RoBERTa-Softmax (RS). The proposed model, consisting of a pre-trained model with enhanced contextual long-range semantic learning ability based on word vectors, can effectively address entity recognition challenges within the health community. In addition, we found that patients with different disease stages have distinct focused topics and that the extracted entity type and attribute values will also vary. The high-performance entity recognition in online health communities represents a crucial knowledge source for constructing medical knowledge graphs. It can be applied to intelligent question-answering systems, clinical decision support systems, and other applications. This integration helps alleviate the growing demand for medical consultations and the strain on healthcare resources while assisting healthcare professionals in making informed decisions and providing personalized services to patients. In our future research, we will implement the BERT model for pre-training on additional websites of online healthcare communities.

Author Contributions

Y.Z. collected the data, coded the program, and plotted the results; Q.X. wrote the manuscript and analyzed the data. Q.X., A.L., B.L. and Z.X. revised these drafts for significant scientific content. W.X. and C.H. contributed to the study’s concepts. A.L. is the guarantor of the funding acquisition. All authors have read and agreed to the published version of the manuscript.

Funding

This study was supported by both the Key Laboratory of Medical Information Research of Central South University in China within the project “Clinical Research Center for Cardiovascular Intelligent Healthcare in Hunan Province” agreement no. 2021SK4005, and Science and Technology Plan Project of Changsha (grant no. kq1901133).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets used and/or analyzed during the current study are available from the corresponding author upon approved written requests.

Acknowledgments

We appreciate the participation of all investigators, study teams, and subjects for participating in these studies. We appreciate the assistance of the doctors at the Second Xiangya Hospital for their participation in this study.

Conflicts of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as potential conflict of interest.

References

  1. Sun, H.; Saeedi, P.; Karuranga, S.; Pinkepank, M.; Ogurtsova, K.; Duncan, B.B.; Stein, C.; Basit, A.; Chan, J.C.N.; Mbanya, J.C.; et al. IDF Diabetes Atlas: Global, regional and country-level diabetes prevalence estimates for 2021 and projections for 2045. Diabetes Res. Clin. Pract. 2022, 183, 13. [Google Scholar] [CrossRef] [PubMed]
  2. Lee, K.; Hoti, K.; Hughes, J.D.; Emmerton, L.M. Consumer Use of “Dr Google”: A Survey on Health Information-Seeking Behaviors and Navigational Needs. J. Med. Internet Res. 2015, 17, 16. [Google Scholar] [CrossRef] [PubMed]
  3. Nakikj, D.; Mamykina, L. A park or a highway: Overcoming tensions in designing for socio-emotional and informational needs in online health communities. In Proceedings of the 2017 ACM Conference on Computer Supported Cooperative Work and Social Computing, Portland, OR, USA, 25 February–1 March 2017; pp. 1304–1319. [Google Scholar]
  4. Nakikj, D.; Mamykina, L. Lost in migration: Information management and community building in an online health community. In Proceedings of the 2018 CHI Conference on Human Factors in Computing Systems, Montreal, QC, Canada, 21–26 April 2018; pp. 1–14. [Google Scholar]
  5. Chen, Z.H.; Zhang, C.C.; Fan, G.H. Interrelationship between Interpersonal Interaction Intensity and Health Self-Efficacy in People with Diabetes or Prediabetes on Online Diabetes Social Platforms: An In-Depth Survey in China. Int. J. Environ. Res. Public Health 2020, 17, 21. [Google Scholar] [CrossRef] [PubMed]
  6. Chen, D.H.; Zhang, R.T.; Liu, K.C.; Hou, L. Knowledge Discovery from Posts in Online Health Communities Using Unified Medical Language System. Int. J. Environ. Res. Public Health 2018, 15, 16. [Google Scholar] [CrossRef] [PubMed]
  7. Coden, A.; Savova, G.; Sominsky, I.; Tanenblatt, M.; Masanz, J.; Schuler, K.; Cooper, J.; Guan, W.; de Groen, P.C. Automatically extracting cancer disease characteristics from pathology reports into a Disease Knowledge Representation Model. J. Biomed. Inform. 2009, 42, 937–949. [Google Scholar] [CrossRef] [PubMed]
  8. Song, M.; Yu, H.; Han, W.S. Developing a hybrid dictionary-based bio-entity recognition technique. BMC Med. Inform. Decis. Mak. 2015, 15, 8. [Google Scholar] [CrossRef]
  9. Khan, A.T.; Cao, X.W.; Liao, B.L.; Francis, A. Bio-inspired Machine Learning for Distributed Confidential Multi-Portfolio Selection Problem. Biomimetics 2022, 7, 20. [Google Scholar] [CrossRef]
  10. Pletscher-Frankild, S.; Pallejà, A.; Tsafou, K.; Binder, J.X.; Jensen, L.J. DISEASES: Text mining and data integration of disease–gene associations. Methods 2015, 74, 83–89. [Google Scholar] [CrossRef]
  11. Rais, M.; Lachkar, A.; Lachkar, A.; Ouatik, S.E.A. A comparative study of biomedical named entity recognition methods based machine learning approach. In Proceedings of the 2014 Third IEEE International Colloquium in Information Science and Technology (CIST), Tetouan, Morocco, 20–22 October 2014; pp. 329–334. [Google Scholar]
  12. Saha, S.K.; Sarkar, S.; Mitra, P. Feature selection techniques for maximum entropy based biomedical named entity recognition. J. Biomed. Inform. 2009, 42, 905–911. [Google Scholar] [CrossRef]
  13. Francis, A.; Nazeer, K.A. Literature search tool for the extraction of disease-associated genes using frequent itemset mining. In Proceedings of the 2016 International Conference on Computing, Analytics and Security Trends (CAST), Pune, India, 19–21 December 2016; pp. 306–311. [Google Scholar]
  14. Liang, T.; Shih, P.-K. Empirical textual mining to protein entities recognition from PubMed corpus. In Proceedings of the Natural Language Processing and Information Systems: 10th International Conference on Applications of Natural Language to Information Systems, NLDB 2005, Alicante, Spain, 15–17 June 2005; pp. 56–66. [Google Scholar]
  15. Cai, X.L.; Dong, S.B.; Hu, J.L. A deep learning model incorporating part of speech and self-matching attention for named entity recognition of Chinese electronic medical records. BMC Med. Inform. Decis. Mak. 2019, 19, 9. [Google Scholar] [CrossRef] [PubMed]
  16. Dong, X.S.; Chowdhury, S.; Qian, L.J.; Li, X.F.; Guan, Y.; Yang, J.F.; Yu, Q.B. Deep learning for named entity recognition on Chinese electronic medical records: Combining deep transfer learning with multitask bi-directional LSTM RNN. PLoS ONE 2019, 14, e0216046. [Google Scholar] [CrossRef] [PubMed]
  17. Dong, X.; Qian, L.; Guan, Y.; Huang, L.; Yu, Q.; Yang, J. A multiclass classification method based on deep learning for named entity recognition in electronic medical records. In Proceedings of the 2016 New York Scientific Data Summit (NYSDS), New York, NY, USA, 14–17 August 2016; pp. 1–10. [Google Scholar]
  18. Dreyfus, B.; Chaudhary, A.; Bhardwaj, P.; Shree, V.K. Application of natural language processing techniques to identify off-label drug usage from various online health communities. J. Am. Med. Inf. Assoc. 2021, 28, 2147–2154. [Google Scholar] [CrossRef] [PubMed]
  19. Zhang, Y.L.; Li, X.M.; Zhang, Z. Disease-Pertinent Knowledge Extraction in Online Health Communities Using GRU Based on a Double Attention Mechanism. IEEE Access 2020, 8, 95947–95955. [Google Scholar] [CrossRef]
  20. Whitfield, C.; Liu, Y.; Anwar, M. Surveillance of COVID-19 Pandemic using Social Media: A Reddit Study in North Carolina. In Proceedings of the 12th ACM Conference on Bioinformatics, Computational Biology, and Health Informatics, Gainesville, FL, USA, 1–4 August 2021; Association for Computing Machinery: New York, NY, USA; pp. 1–8. [Google Scholar]
  21. Lample, G.; Ballesteros, M.; Subramanian, S.; Kawakami, K.; Dyer, C. Neural Architectures for Named Entity Recognition. arXiv 2016, arXiv:1603.01360. [Google Scholar]
  22. Wang, Z.; Guan, H. Research on named entity recognition of doctor-patient question answering community based on bilstm-crf model. In Proceedings of the 2020 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), Seoul, Republic of Korea, 16–19 December 2020; pp. 1641–1644. [Google Scholar]
  23. Devlin, J.; Chang, M.-W.; Lee, K.; Toutanova, K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv 2019, arXiv:1810.04805. [Google Scholar]
  24. Zhang, Q.; Wu, M.; Lv, P.; Zhang, M.; Yang, H. Research on named entity recognition of chinese electronic medical records based on multi-head attention mechanism and character-word information fusion. J. Intell. Fuzzy Syst. 2022, 42, 4105–4116. [Google Scholar] [CrossRef]
  25. Zhu, Z.; Li, J.; Zhao, Q.; Wei, Y.-C.; Jia, Y. Medical named entity recognition of Chinese electronic medical records based on stacked Bidirectional Long Short-Term Memory. In Proceedings of the 2021 IEEE 45th Annual Computers, Software, and Applications Conference (COMPSAC), Madrid, Spain, 12–16 July 2021; pp. 1930–1935. [Google Scholar]
  26. Fang, A.; Hu, J.H.; Zhao, W.Q.; Feng, M.; Fu, J.; Feng, S.S.; Lou, P.; Ren, H.L.; Chen, X.L. Extracting clinical named entity for pituitary adenomas from Chinese electronic medical records. BMC Med. Inform. Decis. Mak. 2022, 22, 14. [Google Scholar] [CrossRef]
  27. Han, P.; Li, X.; Wang, X.; Wang, S.; Gao, C.; Chen, W. Exploring the effects of drug, disease, and protein dependencies on biomedical named entity recognition: A comparative analysis. Front. Pharmacol. 2022, 13. [Google Scholar] [CrossRef]
  28. Yang, X.; Bian, J.; Hogan, W.R.; Wu, Y. Clinical concept extraction using transformers. J. Am. Med. Inf. Assoc. 2020, 27, 1935–1942. [Google Scholar] [CrossRef]
  29. Yang, H.; Gao, H. Toward Sustainable Virtualized Healthcare: Extracting Medical Entities from Chinese Online Health Consultations Using Deep Neural Networks. Sustainability 2018, 10, 3292. [Google Scholar] [CrossRef]
  30. Yang, L.; Fu, Y.F.; Dai, Y. BIBC: A Chinese Named Entity Recognition Model for Diabetes Research. Appl. Sci. 2021, 11, 14. [Google Scholar] [CrossRef]
  31. Li, X.; Zhang, H.; Zhou, X.-H. Chinese clinical named entity recognition with variant neural structures based on BERT methods. J. Biomed. Inform. 2020, 107, 103422. [Google Scholar] [CrossRef] [PubMed]
  32. Ji, B.; Liu, R.; Li, S.; Tang, J.; Yu, J.; Li, Q.; Xu, W. A BILSTM-CRF method to Chinese electronic medical record named entity recognition. In Proceedings of the 2018 International Conference on Algorithms, Computing and Artificial Intelligence, Sanya, China, 21–23 December 2018; pp. 1–6. [Google Scholar]
  33. Zhang, Y.; Zhang, Y.; Yin, Y.; Xu, J.; Xing, C.; Chen, H. Chronic disease related entity extraction in online chinese question and answer services. In Proceedings of the Smart Health: International Conference, ICSH 2015, Phoenix, AZ, USA, 17–18 November 2015; pp. 55–67. [Google Scholar]
  34. Zhang, Q.; Sun, Y.; Zhang, L.; Jiao, Y.; Tian, Y. Named entity recognition method in health preserving field based on BERT. Procedia Comput. Sci. 2021, 183, 212–220. [Google Scholar] [CrossRef]
  35. Lu, Y.; Zhang, P.; Liu, J.; Li, J.; Deng, S. Health-Related Hot Topic Detection in Online Communities Using Text Clustering. PLoS ONE 2013, 8, e56221. [Google Scholar] [CrossRef] [PubMed]
  36. Lu, Y.; Wu, Y.; Liu, J.; Li, J.; Zhang, P. Understanding Health Care Social Media Use From Different Stakeholder Perspectives: A Content Analysis of an Online Health Community. J. Med. Internet Res. 2017, 19, e109. [Google Scholar] [CrossRef]
  37. Zhang, S.; Grave, E.; Sklar, E.; Elhadad, N. Longitudinal analysis of discussion topics in an online breast cancer community using convolutional neural networks. J. Biomed. Inform. 2017, 69, 1–9. [Google Scholar] [CrossRef]
Figure 1. Online doctor-patient Q&A text structure (from the website’s original screenshot).
Figure 1. Online doctor-patient Q&A text structure (from the website’s original screenshot).
Bioengineering 10 00659 g001
Figure 2. Annotation tool interface (from the website’s original screenshot).
Figure 2. Annotation tool interface (from the website’s original screenshot).
Bioengineering 10 00659 g002
Figure 3. Data preprocessing flow chart.
Figure 3. Data preprocessing flow chart.
Bioengineering 10 00659 g003
Figure 4. Structural diagram of the Bert-BilSTM-CRF model.
Figure 4. Structural diagram of the Bert-BilSTM-CRF model.
Bioengineering 10 00659 g004
Figure 5. Confusion matrix for the four models.
Figure 5. Confusion matrix for the four models.
Bioengineering 10 00659 g005
Table 1. Labeling classification standards.
Table 1. Labeling classification standards.
ClassificationDescriptionLabeling Case
CheckTest and examination items, physical examination, review, etc.A review at the hospital the previous day; a check-up at the hospital.
DiseaseDisease names, such as hypertension, diabetes, etc.No diabetes in the family either.
DrugThe name of the drug, such as nifedipine, metformin, nifedipine, etc.The medications being taken are Metformin Hydrochloride and Vildagliptin.
LifestylePatient’s lifestyle, e.g., smoking, alcohol consumption, sleep, etc.Smoking; drinking; staying up late.
MoodIrritable, anxious, worriedSo now it is confusing.
Social contextDad (my dad), wife (my wife), medical history, occupation, height, weight, age, gender (pregnancy and gestation), wanting children.Height and weight: 171 cm, 70 kg. Pregnancy: not pregnant.
SymptomPatient’s subjective description of feelings and signs (skin jaundice), such as dizziness, non-dizziness, nocturia, puffy eyelids, and frequent need to urinate.Feeling of vertigo when standing suddenly; I urinate frequently and often, but each time the amount of urine is not much, nausea, vomiting, weakness, stomach pain, and breast swelling.
TreatmentChinese medicine treatment, immunotherapy, ventilator, and stent release.Immunotherapy.
Table 2. Experimental parameters.
Table 2. Experimental parameters.
Experimental ParametersValue
Sequence_length128
Batch_sizeTrain set 16, test set 16
Pooler_fc_size768
Epoch50
Learning rate3 × 10−5
OptimizerAdam
Input layer dropout0.1
Hidden layers dropout0.1
Table 3. Comparative experimental results of four models on the test set.
Table 3. Comparative experimental results of four models on the test set.
ModelsF1PRAcc
RBC0.8070.7860.8290.812
RC0.7950.7550.8270.803
RS0.7900.7550.8280.799
BC0.7510.7430.7590.754
Table 4. Evaluation of the effect of different entity recognition of four models.
Table 4. Evaluation of the effect of different entity recognition of four models.
ModelIndexCheckDiseaseDrugLifestyleMoodSocialSymptomsTreat
RBCP0.7390.7870.7300.7540.8650.9410.6090.571
R0.7740.8630.8230.7230.9220.9260.7090.585
F10.7560.8230.7740.7380.8920.9330.6550.578
RCP0.7190.7610.7300.6960.9030.9180.5960.542
R0.7710.8500.8210.7320.9330.9240.7100.639
F10.7440.8030.7730.7130.9170.9210.6470.586
RSP0.7170.7420.7040.6970.8780.9150.5820.516
R0.7720.8660.8240.7260.9560.9230.6900.624
F10.7430.7990.7590.7100.9150.9190.6310.564
BCP0.6820.7220.6970.7020.8570.9180.5330.559
R0.7310.7660.6840.6680.7560.9090.5210.610
F10.7040.7480.6870.6810.7950.9130.5260.582
Table 5. Related statistics of entity frequency.
Table 5. Related statistics of entity frequency.
Entity TypeEntity FrequencyRateTop 10 EntitiesTop 10
Number of Entities
Top 10
Rate
Check1512/189080%Blood glucose, fasting blood glucose, fasting, postprandial, glycated hemoglobin, physical examination, high blood glucose, glucose tolerance, review, and postprandial blood glucose.3019/425970.86%
Disease1513/189080.05%Diabetes, hypertension, hyperglycemia, type 2 diabetes, fatty liver, coronary heart disease, cerebral infarction, obesity, hyperlipidemia, and complications of diabetes.1790/244773.15%
Drug1066/189056.4%Insulin, Metformin, Acarbose, Glucose, Dapagliflozin, Glucagon, Glimepiride, Bystolic, Gleevec, and Chinese medicine.1306/250452.16%
Life490/189025.92%Blood sugar control, exercise, diet control, poor sleep, stopping the medication, exercise, not taking medication, losing weight, watching what you eat, and staying up late.509/78764.68%
Mood144/18907.61%Worry, doubt, fear, anxiety, hurry, tension, tiredness, anger, uneasiness, and fear.132/18571.35%
Social1695/189089.68%Height and weight, greater than six months, pregnant, not pregnant, within six months, within one month, within one week, self, allergy, and father.3864/469082.39%
Symptom688/189016.4%Thirst, bitterness and dryness, dizziness and lightheadedness, excessive urination, weakness, weight loss, nausea, sweating, panic attacks, and frequent urination.465/156429.73%
Treat421/189022.08%Surgery, chemotherapy, radiotherapy, drug therapy, inpatient treatment, weight loss, Chinese medicine, stents, minimally invasive, and immunization.429/65565.50%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xu, Q.; Zhou, Y.; Liao, B.; Xin, Z.; Xie, W.; Hu, C.; Luo, A. Named Entity Recognition of Diabetes Online Health Community Data Using Multiple Machine Learning Models. Bioengineering 2023, 10, 659. https://doi.org/10.3390/bioengineering10060659

AMA Style

Xu Q, Zhou Y, Liao B, Xin Z, Xie W, Hu C, Luo A. Named Entity Recognition of Diabetes Online Health Community Data Using Multiple Machine Learning Models. Bioengineering. 2023; 10(6):659. https://doi.org/10.3390/bioengineering10060659

Chicago/Turabian Style

Xu, Qian, Yue Zhou, Bolin Liao, Zirui Xin, Wenzhao Xie, Chao Hu, and Aijing Luo. 2023. "Named Entity Recognition of Diabetes Online Health Community Data Using Multiple Machine Learning Models" Bioengineering 10, no. 6: 659. https://doi.org/10.3390/bioengineering10060659

APA Style

Xu, Q., Zhou, Y., Liao, B., Xin, Z., Xie, W., Hu, C., & Luo, A. (2023). Named Entity Recognition of Diabetes Online Health Community Data Using Multiple Machine Learning Models. Bioengineering, 10(6), 659. https://doi.org/10.3390/bioengineering10060659

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop