Abstract

Uncertainty natural language processing has always been a research focus in the artificial intelligence field. In this paper, we continue to study the linguistic truth-valued concept lattice and apply it to the disease intelligent diagnosis by building an intelligent model to directly handle natural language. The theoretical bases of this model are the classical concept lattice and the lattice implication algebra with natural language. The model includes the case library formed by patients, attributes matching, and the matching degree calculation about the new patient. According to the characteristics of the patients, the disease attributes are firstly divided into intrinsic invariant attributes and extrinsic variable attributes. The calculation algorithm of the linguistic truth-valued formal concepts and the constructing algorithm of the linguistic truth-valued concept lattice based on the extrinsic attributes are proposed. And the disease bases of the different treatments for different patients with the same disease are established. Secondly, the matching algorithms of intrinsic attributes and extrinsic attributes are given, and all the linguistic truth-valued formal concepts that match the new patient’s extrinsic attributes are found. Lastly, by comparing the similarity between the new patients and the matching formal concepts, we calculate the best treatment options to realize the intelligent diagnosis of the disease.

1. Introduction

Intelligent diagnosis technology began in the 1980s, it has become a very active research field, and its characteristic is to apply the technical achievements of artificial intelligence to the field of intelligent diagnosis. Based on the conventional diagnosis, artificial intelligence promotes the expert experience and knowledge processing to logical reasoning or self-learning, self-diagnosis, self-processing, and system reconstruction. As a branch of computer science, artificial intelligence is a subject that makes computer simulate some thinking process and intelligent behavior of human. It has been widely used in many fields such as robot, economic and political decision-making, control system, and simulation system and has achieved fruitful results. Artificial intelligence technology has the characteristics of behavior ability, perception ability, thinking ability, uncertainty information processing, network intelligent management, and writing ability. It can improve the relevant intelligent diagnosis and management in many fields through a great quantity of data analysis and classification that human experts are difficult to complete, such as mechanical fault intelligent diagnosis, process equipment intelligent diagnosis, disease and pest intelligent diagnosis, and human disease intelligent diagnosis. From the way of information description and communication, concepts can be looked as the smallest unit of human basic thinking and an important component of artificial intelligence. In different fields such as knowledge representation, knowledge management, and machine learning, researchers analyze concepts from different perspectives and viewpoints, forming different formal description methods of concepts. Based on Birkhoff’s contribution to lattice theory [1], Professor Wille established a conceptual hierarchy model according to the dependence or causality of knowledge body in connotation and extension and first proposed concept lattice as a mathematical theory in 1982 [2, 3].

As a powerful tool for big data knowledge discovery in artificial intelligence, concept lattice has been successfully applied to digital book and literature retrieval, software engineering, knowledge discovery, and other fields and has achieved good economic and social benefits [410]. In the medical field, Cole and Eklund [11] have applied the concept lattice method to analyze and visualize the medical database with 1962 attributes and 4000 prescription abstracts; Liu Ling et al. [12] have also studied the application of concept lattice in the intelligent diagnosis of diseases. In these studies, the disease information in the case base is completely determined. Its essence is to build a concept lattice for each patient’s disease information. Each node in the lattice represents the symptom-degree pair of the disease and assigns the corresponding weight to each symptom and degree, so as to form a case base. Then, the query information entered by the new patient is expressed as a concept lattice, and the final diagnosis result is given by calculating the inclusion degree of query concept lattice and each concept lattice in case base. However, due to the large number of existing patients and their disease information, the number of concept lattices constructed in case base is even larger. At the same time, some correlations among concept lattices generated by the similarity of disease information among patients are not considered. When calculating the inclusion degree of concept lattices of new patients’ disease information and each concept lattice in the case database, the computation is too large, and the structural advantage of concept lattice Hasse graph is not used in the whole process. And besides, there exist a large amount of uncertain medical disease information described in natural language, which makes the current artificial intelligence technology difficult to play its higher value [13, 14].

In order to make better use of artificial intelligence technology to solve the problem of disease intelligent diagnosis with uncertain natural language information, based on the previous work [1518], this paper continues to study the linguistic truth-valued concept lattice (LTV-CL) and applies it to medical intelligent diagnosis. LTV-CL is a mathematical model based on the linguistic truth-valued lattice implication algebra (LTV-LIA). It is different from classical concept lattice and fuzzy concept lattice in that its value range is no longer binary {0,1} and interval value [0,1], but a complete lattice composed of natural languages. This complete lattice, namely, LTV-LIA, can be used to describe the uncertainty linguistic information through the nodes on the complete lattice to directly express the natural language.

In the actual diagnosis process of human diseases, each patient’s condition is generally expressed in natural language, which to a large extent has inevitable uncertainty. Doctors need to make a comprehensive consideration of the current symptoms of the patient’s condition, the onset time of the disease, the patient’s age, gender, occupation, personal disease history, and family disease history, and other pieces of information and then give the final diagnosis result combined with their previous experience. Based on this application background, in this paper, we regard the patient’s disease characteristics as attributes, divide them into intrinsic attributes and extrinsic attributes in accordance with the attribute characteristics, and establish the LTV-CL which is the case database by the partial order relationship between extrinsic attributes and patients. Secondly, the matching algorithm between extrinsic attributes is given and several matching linguistic truth-valued formal concepts close to the condition of new patients can be found in the case database. Finally, the matching operator between intrinsic attributes is proposed; through the matching algorithm of intrinsic attributes, the matching degree between new patients and each matching formal concept is calculated and compared; the matching formal concept with the highest matching degree is determined. Combined with the diagnosis cases of matching formal concept in case database, the final treatment scheme of new patients is given.

In this paper, we summarize the artificial intelligence technology used in the disease intelligent diagnosis model in Section 1, expound the three important steps that the classic concept lattice model follows in the diagnosis process (namely, the construction of case base, the knowledge representation of new patients and the intelligent diagnosis based on matching algorithm), and compare and analyze the differences of the diagnosis model in this process; we mainly introduce the early theoretical basis of this paper, LTV-CL in Section 2; we study the formation process of intelligent diagnosis model based on the LTV-CL one by one and focus on the method and algorithm of case database formation in Section 3; we mainly study the extrinsic and intrinsic attribute matching between new patients and case database and give the phase in Section 4. Finally, we summarize the whole paper and discusses the approaching research direction in Section 5.

2. Research Framework

The diagnosis of human diseases is a significant field of artificial intelligence technology in the applied study of intelligent diagnosis. This research field has been formed since the early 1970s. The artificial intelligence technology involved is mainly represented by expert system, neural network, fuzzy diagnosis, and so on. In the branches of artificial intelligence, expert system is the most widely used, and it is also the most easy to combine with other disciplines and has obtained unprecedented development opportunities and space. The traditional medical diagnosis expert system is a production rule system. Its knowledge base is composed of many if-then rules. It completes the diagnosis process through pattern matching. The disadvantages are as follows: when there are too many rules in the knowledge base, it will lead to contradictions before and after the system reasoning; the medical diagnosis expert system based on fuzzy algorithm uses the theory of fuzzy mathematics and replaces the probability statistical methods with the fuzzy mathematical model. It can solve the highly complicated and nonlinear problems which are difficult to describe with the general mathematical model. The medical diagnosis expert system based on a neural network can not only keep the original characteristics of the expert system but also have the characteristics of neural network. It can make a reasonable judgment on the complex problems according to the learned knowledge and the experience of dealing with the problems and give a more satisfactory answer or give a more effective forecasting to the future. In recent years, many scholars have studied the intelligent diagnosis model based on concept lattice. The whole process of diagnosis involves three key steps. While the diagnosis model of LTV-CL in this paper makes a reasonable intelligent diagnosis with uncertainty natural language information, there exist fundamental differences in the realization of these three steps. For convenience, the diagnosis model based on classic concept lattice is recorded as model A, and the diagnosis model based on LTV-CL is recorded as model B as follows.

2.1. Construction of Case Base (See Section 3)

Model A represents the knowledge of each disease in medical experts or medical books as a concept lattice structure. Its essence is the knowledge representation of a patient about the symptom expression degree of the disease. Each node in the structure represents the symptom-degree pair of the patient. The object set in its corresponding formal context is composed of the symptom presented by a patient. The attribute set is composed of the degree value of each symptom. The case base is a collection of many concept lattice structures. Model B proposed in this paper is only represented by one concept lattice. The object set in the formal context is composed of a large number of patients with the same disease, while the attribute set is composed of the symptoms and symptom values displayed by the patients. Each node in the concept lattice structure is a patient symptom-value pair. In the construction of case base, compared with model A, the construction of concept lattice is greatly decreased in quantity, and each node can be used as a necessary reference to directly give the final diagnosis results in the feature matching of patients to be diagnosed.

2.2. Knowledge Representation of New Patients (See Section 4)

For the same new patient, in model A, we need to build our own query concept lattice according to the disease information of the new patient before matching, while in the model B, we only need to express the disease information of the patient in the form of node sequence pair, without building the concept lattice, which greatly reduces the computing time and complexity in the knowledge representation.

2.3. Intelligent Diagnosis Based on Matching Algorithm (See Section 5)

In model A, by calculating the inclusion degree between the query concept lattice and the case database one by one, the candidate concept lattice that meets the requirements in the case database is screened out, then a second match with the query concept lattice is made, and the similarity between them and the query disease is calculated by the weight of the candidate disease to find the most similar disease. In the two matching algorithms in model B, firstly, the candidate concept nodes are selected from the concept lattice of case base through the matching between the incomparable intrinsic attributes, then the most similar concept nodes are found through the similarity calculation of the variable extrinsic attributes, and the final diagnosis results and treatment methods are given through the concrete value of similarity and the treatment cases of the most similar concept nodes. Compared with model A, model B can not only find similar diseases but also calculate the severity and treatment plan of the patients to be diagnosed by matching algorithm. In addition, model B also considers extrinsic disease attributes and intrinsic inherent attributes, so that different inherent attributes (such as age, gender, and weight of the patients with incomplete consistency) with the same degree of disease attributes are considered. The doctors can directly give specific treatment plans including drug dosage in different patients.

3. Linguistic Truth-Valued Concept Lattice

The two theoretical bases of the LTV-CL are classical CL and LIA. Please refer to the literature for details.

Definition 1. (see [1]). The formal context is defined as a data table structure consisting of sets and and a binary relation . is called an object of and an attribute of , respectively. The relationship is read: the object has the attribute . For a set of objects , is defined as the set of features shared by all the objects in ; that is,Similarly, for , is defined as the set of objects that possess all the features in ; that is,

Definition 2. (see [1]). A formal concept of the context is defined as a pair with , and , . The set is called the extent and the intent of the formal concept .

Definition 3. (see [1]). Let denote the set of all formal concepts of the context ; for any two formal concepts and in , an order relation on is defined as follows:the formal concept is called a subconcept of the formal concept , and is called a superconcept of the formal concept . The concept lattice associated with the formal context described in Table 1 is shown in Figure 1.

Example 1. A formal context and its Hasse diagram of the concept lattice are depicted as Table 1 and Figure 1, where and .
In Figure 1, the formal concepts generated according to the partial order relation are , , , , , , , , , , , , and .
Human intelligence actions are always involved with uncertainty information processing which always exists not only in the processed object itself but also in the course of the object being dealt with. As one of the basic tools of human thinking, natural language is the way that people often use to express uncertainty information such as randomness, fuzziness, and incompatibility. It is also a very important research content in the field of artificial intelligence. In this paper, we use LIA to express uncertainty information and use the LTV-LIA to depict the uncertainty natural language information.

Definition 4. (see [19, 20]). Let be a bounded lattice with an order-reversing involution ′, and the greatest and the smallest element of , respectively, and a mapping. is called a quasilattice implication algebra if the following conditions hold for any :(1);(2);(3);(4) implies ;(5).

Definition 5. (see [19, 20]). A quasilattice implication algebra is called a lattice implication algebra, if the following conditions hold for any :(1);(2).

Definition 6. Let be a lattice implication algebra; if is a set of linguistic truth values, then is called a linguistic truth-valued lattice implication algebra (LTV-LIA), recorded as .

Definition 7. Let be a formal context with natural language, that is, a LTV-context, a finite nonempty objects’ set, and a finite nonempty attributes’ set. is a LTV-LIA, and is a relation between and ; that is, .
Let be a nonempty objects’ set and a LTV-LIA. Denote the set of all the -fuzzy subsets on as , for any and ; then, is a partial order set.
Let be a nonempty objects set and a LTV-LIA. Denote the set of all the -fuzzy subsets on as , for any and ; then, is a partial order set.

Theorem 1. Let be a linguistic truth-valued formal context and a linguistic truth-valued lattice implication algebra; define mappings and between and ,Then, for any , , is a Galois connection based on LTV-LIA.
The proof process can be referred to [18].

Definition 8. A formal concept of is defined as a pair with , , and and , which can be called LTV-formal concept; the set is called the extent and the intent of the concept .

Definition 9. (see [1]) Let denote the set of all formal concepts of the context ; for any two formal concepts and in, an order relation on is defined as follows:the formal concept is called a subconcept of the formal concept , and is called a superconcept of the formal concept .

4. Case Database

The creation and search of case database is one of the indispensable links for any doctor to give the final diagnosis results of patients. Patients usually need to answer two kinds of questions about patients and disease attributes: the first kind of attributes, for example, the patient’s age, gender, occupation, and home address, the onset time of the disease, and even a family history of disease, belong to the intrinsic attributes generally, and it is hard to be influenced by the external environment; the second kind of attribute is the symptom of the patient’s current condition and the performance degree of the symptom, such as the severity and duration of cough, headache, and fever, which belongs to the variable attribute and will change with the passage of time and the change of external environment. According to the different functions of these two kinds of attributes, we call the first one as intrinsic attributes and the second one as extrinsic attributes. The construction of case database needs the following three steps: the formation of the LTV-formal context, the calculation of the LTV-formal concept with the extrinsic attribute of patients as its intent, and the construction of the LTV-CL based on the partial order relationship.

4.1. LTV-Formal Context of the Disease

The formation of LTV-formal context is inseparable from the object set and attribute set, as well as the attribute value of each object. The attribute values of extrinsic attributes can be represented by the following elements in the natural language set.

Definition 10. A descriptive adjectives set is defined as , where is called the positive descriptive adjectives set and is called the negative descriptive adjectives set; in addition, .

Definition 11. Denote , which is called as the set of language modifiers. Define a Cartesian product between and , which is called the natural language set , recorded as . For any , they can be looked as the language modifiers, for example, slightly, somewhat, rather, almost, exactly, quite, very, highly, and absolutely.
The object set and attribute set are constructed with patients and extrinsic attributes of a disease in a department. According to the doctor’s inquiry about each extrinsic attribute feature of a disease, the extrinsic attribute values of each patient are obtained and sorted into the disease information table, as shown in Table 1, in which is the object set composed of patients and is the extrinsic attribute set about the relevant disease diagnosed by the doctor. aij indicates the patient’s attribute value; for example, a11, a21, a31, … of an attribute m1 “degree” is “very good,” “somewhat good,” “quite bad,” and so on; a12, a22, a32, … of an attribute m2 “frequency” is “very high,” “a little high,” “very high,” and so on; a13, a23, a33, … of an attribute m3 “persistence” is “very long,” “a little short,” “quite long,” and so on. Based on this, the patient and disease information can be expressed as Table 2.
In order to describe the natural language with these different types of descriptive and restrictive words in a unified form of information, the following is a method to convert natural language into linguistic truth values.

Definition 12. Define the linguistic truth-valued set and the mapping between and , s.t.

Definition 13. For the set of linguistic modifiers and the LTV set , define a Cartesian product between and ; that is, and , .
By Definition 13, patient and disease information (Table 1) can be converted to the linguistic truth-valued formal context , where , , and ; that is, , as shown in Table 3.

4.2. LTV-Formal Concept of Disease

By selecting the appropriate modifier set in case of the acquired natural language, we can transform the description form of the extrinsic attribute value of each patient’s general natural language to the linguistic truth values. In practice, we usually choose . Then according to Definition 13, we can construct Cartesian product , recorded as . By defining the corresponding operations on , we can form a six-ary linguistic truth-valued implication algebra and its Hasse diagram is shown in Figure 2. The implication operations between the linguistic truth values on are shown in Table 4.

For the LTV-LIA , and are the greatest and the smallest element of , respectively, where , , , , , and ; that is to say, the attribute value “absolutely false O” inverse to “absolutely true I,” the attribute value “slightly false ” inverse to “slightly true ,” the attribute value “rather false ” inverse to “rather true ,” and the attribute value “slightly false ” and “rather true ” and “slightly true ” and “rather false ” can’t be compared in its semantics, so they are called incomparable linguistic truth values, i.e., incomparable and incomparable , denoted as // , //.

According to Theorem 1 and Definition 8, the linguistic truth-valued formal concepts are generated from the formal context described by patients and their diseases.

Input: the linguistic truth-valued formal context
Output: the linguistic truth-valued formal concept
Begin
while do
,
fortodo
  fortodo
   fortodo
   
   
  endfor;
endfor;
  fortodo
   fortodo
   
   
  endfor;
   ifthen
   endif;
  endfor;
endfor;
end;

According to the Algorithm 1, the set of LTV-formal concepts is .

Example 2. The LTV-formal context is shown in Table 5, in which the three patients form the object set and the extrinsic attributes set , and is the LTV-LIA shown in Figure 2.
According to Algorithm 1, the LTV-formal concepts generated by Table 5 are as follows:In order to conveniently construct Hasse diagram of the LTV-CL, we follow the hierarchical relationship from top to bottom and construct it.

4.3. LTV-CL of Disease

The process of lattice building is actually the process of concept clustering. For the same batch of data, the generated lattice is also unique. The construction algorithm of concept lattice is mainly divided into batch algorithm and progressive construction algorithm. In this paper, from the point of view of batch algorithm, we construct the LTV-CL generated by patient and disease information. The generation algorithm is as follows.

Input: the linguistic truth-valued formal concepts
Output: Hasse diagram of LTV-CL
Begin
 Calculate the topmost formal concept , the extent set of is and the intent set of is .
  ; // is used to save lattices
  ; //initialize
   while
    
   for to
    ; //find out all the subconcepts
    for every node
     If c does not exist, then
     ; enter into Q;
     Add the edge from to
    endif
   endfor
  endfor
end

Through the generation of Hasse diagram of the LTV-CL, it not only can show the relationship between the linguistic truth formal concepts more intuitively but also can provide detailed case base for doctors’ diagnosis.

Example 3. According to Algorithm 2, we can build the corresponding LTV-CL as shown in Figure 3.
Based on the constructed case base, the attribute matching is carried out from two aspects: extrinsic attribute and intrinsic attribute.

5. Attribute Matching

For the patients to be diagnosed, if we want to find similar cases in the established case database, we need to perform two matching operations on their attributes. First, find the relevant matching formal concepts through the matching of extrinsic attributes, then find the formal concept with the highest matching degree through the matching of intrinsic attributes and the calculation of matching degree, and then calculate the treatment plan of the patient to be diagnosed.

5.1. Extrinsic Attribute Matching

Definition 14. Let be a linguistic truth-valued formal context and a linguistic truth-valued concept lattice on , where , , , , and are the sets of all the -fuzzy subsets on and , , , , and if there exists an uncertainty linguistic truth value of , that is, //, then is called an incomparable set of containing incomparable linguistic truth values, denoted as , is called a set of incomparable set, and is an incomparable set family of .
For example, , , ; if //, then there exist the following incomparable set families: the set with 1 incomparable linguistic truth value and the set with 2 incomparable linguistic truth values ; similarly, we can get the set with incomparable linguistic truth values .

Definition 15. Let be a LTV-formal context and a LTV-CL based on , where , , , , and are the sets of all the -fuzzy subsets on and , , , s.t. or //, and then is called the matching formal concept of extrinsic attribute .
For the patients to be diagnosed, if there is a matching formal concept of extrinsic attribute in the LTV-formal concept established from the case database, the extrinsic attribute matching of the patients to be diagnosed is successful; otherwise, the matching is not successful.
Let be a LTV-formal context and a LTV-CL based on ; in case database, is the objects set, is the extrinsic attributes set, and is the LTV-LIA; for patient to be diagnosed, the attribute value set of the extrinsic attribute is , , ; for the convenience of the following description, , denote as the incomparable linguistic truth value of in , that is, . In order to calculate the matching linguistic truth-valued formal concept of the patient about the extrinsic attribute set , the key step is to calculate the incomparable attribute set of . The algorithm is as follows.
Based on the set , which is generated by the above algorithm, the linguistic truth-valued formal concept in case database is searched. If , then is the matching formal concept of extrinsic attribute set about the patient to be diagnosed.

Input: the extrinsic attribute set of , , ;
Output: the incomparable set of
Begin
while
  for to do
   
   
   
   for to do
    ;
   
   
   
   for to ; to do
    ;
   
   
   
    
   endfor
  endfor
endfor
end

Example 4. In Example 2, if the extrinsic attribute set of the patient is , according to Algorithm 3, the set of incomparable set is . The matching formal concept of can be calculated.
As can be seen from Figure 2, , , and , we can get the sets , , , and which, respectively, contain 1, 2, 3, and 4 incomparable linguistic truth values by calculation; the incomparable sets of all extrinsic attributes are as follows: , , , , , ; , , , , , , , , , , , , ; , , , , , , , , , , , ; , , , and ; by comparing with the linguistic truth-valued formal concepts in the case database shown in Figure 3, and can be found in the case database with corresponding formal concepts; that is, and .

5.2. Intrinsic Attribute Matching

In the matching formal concept, we need to further calculate the formal concept with the largest matching degree, which is realized by matching the following intrinsic attribute matching.

Definition 16. Let be a linguistic truth-valued formal context, a linguistic truth-valued lattice implication algebra, and an intrinsic attribute set of . For any and , is an operator defined between and , which is called intrinsic attribute operator; that is,Note: for any , the set of intrinsic attribute values of is , which can be abbreviated as .

Definition 17. For any , , and , ,, the matching degree between object subsets and attribute subsets is defined asIn the linguistic truth-valued formal context , is the intrinsic attribute set of , the extrinsic and intrinsic attribute values sets of patient to be diagnosed can be expressed as and , respectively, the matching formal concept of about extrinsic attributes is , where , , , is the number of matching formal concepts); intrinsic attribute matching is to calculate the maximum matching degree in a series of matching formal concepts ; then we find the linguistic truth-valued formal concept with the highest matching degree. The matching degree between the set of intrinsic attribute values and can be expressed as . The algorithm is as follows (Algorithm 4).
From the above algorithm, we can finally calculate the matching degree between the patients to be diagnosed and the matching formal concepts obtained by extrinsic attribute matching in the case database through the intrinsic attribute matching algorithm, then find the linguistic truth-valued formal concept with the highest matching degree, and give a more specific diagnosis according to the specific matching degree by referring to the diagnosis scheme in the case database.

Input: the intrinsic attribute value set of the patient to be diagnosed and the extension set of formal concepts matching the extrinsic attributes of
Output: //matching degree set
Begin
while
  forto do
   for to do
    
   for to do
    
    
   endfor
  endfor
endfor
end

Example 5. The linguistic truth-valued formal context is shown in Table 4, in which, the intrinsic attributes set and , , , and . From the conclusion of Example 4, the matching linguistic truth-valued formal concepts and of can be found through the matching operation of extrinsic attributes. Denote and ; according to Definition 17, we firstly calculate the matching degree of intrinsic attributes as follows:The above results show that the matching degree of intrinsic attributes between patient to be diagnosed and each patient in the case database is , , and , respectively; then we can get . According to Definition 17, it is calculated as follows:Because , the best matching result is the linguistic truth-valued formal concept ; at the same time, the specific treatment scheme is also given.

6. Conclusions

In order to make artificial intelligence technology play a more important role in the application of natural language, this paper continues to study the LTV-CL with the aid of the LTV-LIA based on lattice-valued logic and the classical concept lattice and gives the LTV-formal concept and the generation algorithm of concept lattice based on the application background of medical intelligent diagnosis. According to the different characteristics of patients’ disease attributes obtained by doctors’ consultation, two kinds of matching algorithms based on extrinsic attributes and intrinsic attributes are proposed. Combined with the calculation formula of matching degree defined in this paper and the corresponding algorithm, the matching objects in the case database are accurately matched again to achieve the best matching with the diagnosed patients, so as to give the best treatment scheme.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

The project was partially supported by the National Natural Science Foundation of China (Grants nos. 71101049 and 61175055), Sichuan Key Technology Research and Development Program (Grant no. 2011FZ0051), the Key Natural Science Research Project of Anhui Education Department (nos. KJ2018A0598 and KJ2017A622), and the Project of Anhui Xinhua University (no. 2018xxk13).